]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add generic hp-timing support
[thirdparty/glibc.git] / ChangeLog
1 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
4 * benchtests/README: Update description.
5 * benchtests/bench-timing.h: Default to hp-timing.
6 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
7 HP_TIMING_PRINT): Remove.
8 (HP_TIMING_NOW): Add generic implementation.
9 (hp_timing_t): Change to uint64_t.
10
11 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
12 HP_TIMING_INLINE.
13 * nptl/descr.h: Likewise.
14 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
15 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
16 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
17 Abstract hp-timing usage with RTLD_* macros.
18 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
19 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
20 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
21 HP_TIMING_NONAVAIL): Likewise.
22 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
23 Likewise.
24 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
25 HP_SMALL_TIMING_AVAIL): Likewise.
26 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
27 HP_SMALL_TIMING_AVAIL): Likewise.
28 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
29 HP_SMALL_TIMING_AVAIL): Likewise.
30 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
31 HP_SMALL_TIMING_AVAIL): Likewise.
32 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
33 Likewise.
34 * sysdeps/generic/hp-timing-common.h: Update comment with
35 HP_TIMING_AVAIL removal.
36
37 * include/random-bits.h: New file.
38 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
39 (__res_context_mkquery): Remove usage hp-timing usage and replace with
40 random_bits.
41 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
42 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
43 Likewise.
44
45 * include/libc-internal.h (__get_clockfreq): Remove prototype.
46 * rt/Makefile (clock-routines): Remove get_clockfreq.
47 * rt/get_clockfreq.c: Remove file.
48 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
49 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
50 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
51 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
52 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
53
54 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
55 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
56 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
57 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
58 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
59
60 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
61 pthread_clock_settime.
62 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
63 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
64 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
65 * elf/rtld.c (_dl_start_final): Likewise.
66 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
67 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
68 Remove.
69 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
70 (_dl_cpuclock_offset): Remove.
71 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
72 cpuclock_offset_ununsed.
73 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
74 cpuclock_offset set.
75 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
76 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
77 * nptl/pthread_clock_gettime.c: Remove file.
78 * nptl/pthread_clock_settime.c: Likewise.
79 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
80 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
81 and CLOCK_PROCESS_CPUTIME_ID support.
82 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
83 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
84 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
85 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
86 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
87 Likewise.
88 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
89
90 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
91
92 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
93 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
94 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
95 New defines.
96 * sysdeps/s390/memmem-arch13.S: New file.
97 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
98 if it is only used as fallback.
99 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
100 * sysdeps/s390/multiarch/ifunc-impl-list.c
101 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
102
103 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
104
105 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
106 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
107 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
108 New defines.
109 * sysdeps/s390/multiarch/ifunc-impl-list.c
110 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
111 * sysdeps/s390/strstr-arch13.S: New file.
112 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
113 if it is only used as fallback.
114 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
115
116 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
117
118 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
119 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
120 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
121 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
122 ifunc selector.
123 * sysdeps/s390/multiarch/ifunc-impl-list.c
124 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
125 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
126 S390_IS_ARCH13_MIE3): New defines.
127
128 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
129
130 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
131 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
132 * sysdeps/s390/configure.ac: Add checks for arch13 support.
133 * sysdeps/s390/configure: Regenerated.
134
135 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
136
137 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
138 Add vxe2, vxp, dflt, sort flags.
139 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
140 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
141 capabilities.
142 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
143 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
144 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
145 HWCAP_S390_DFLT): Define.
146
147 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
148
149 [BZ #24372]
150 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
151 of compiler warning.
152 * locale/programs/ld-collate.c (collate_output): Likewise.
153
154 2019-03-21 DJ Delorie <dj@redhat.com>
155
156 [BZ #24372]
157 * iconv/iconvconfig.c (write_output): Replace floating point math
158 with integer math to avoid imprecise results.
159 * locale/programs/ld-collate.c (collate_output): Likewise.
160
161 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
162
163 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
164 Add HWCAP_S390_VX and HWCAP_S390_VXE.
165
166 2019-03-20 mansayk <6688000@gmail.com>
167
168 [BZ #24296]
169 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
170 (abday): Likewise, but remove the trailing dots.
171
172 2019-03-19 Joseph Myers <joseph@codesourcery.com>
173
174 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
175 macro.
176 (HWCAP_PACA): Likewise.
177 (HWCAP_PACG): Likewise.
178 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
179 Increase to 32.
180 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
181
182 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
183
184 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
185 should be handled.
186
187 2019-03-15 Joseph Myers <joseph@codesourcery.com>
188
189 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
190 version to 5.0.
191 (old_getpagesize): New syscall.
192
193 2019-03-15 Felix Yan <felixonmars@archlinux.org>
194
195 [BZ #24293]
196 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
197 * localedata/locales/cmn_TW (era): Likewise.
198 * localedata/locales/hak_TW (era): Likewise.
199 * localedata/locales/lzh_TW (era): Likewise.
200 * localedata/locales/nan_TW (era): Likewise.
201
202 2019-03-14 Florian Weimer <fweimer@redhat.com>
203
204 Remove obsolete, never-implemented XSI STREAMS declarations.
205 * manual/terminal.texi (Allocation): Remove portability note and
206 adjust example.
207 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
208 _SC_STREAMS.
209 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
210 * sysdeps/unix/inet/Subdirs (streams): Remove.
211 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
212 (conformtest-headers-UNIX98): Likewise.
213 (conformtest-headers-XOPEN2K): Likewise.
214 (conformtest-headers-POSIX2008): Likewise.
215 * posix/compat-streams.c: New file.
216 * posix/Makefile (routines): Add it.
217 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
218 getpmsg, isastream, putmsg, putpmsg.
219 (GLIBC_2.30): New section.
220 * bits/stropts.h: Remove file.
221 * bits/xtitypes.h: Likewise.
222 * conform/data/stropts.h-data: Likewise.
223 * include/stropts.h: Likewise.
224 * include/sys/stropts.h: Likewise.
225 * include/xtitypes.h: Likewise.
226 * streams/Makefile: Likewise.
227 * streams/fattach.c: Likewise.
228 * streams/fdetach.c: Likewise.
229 * streams/getmsg.c: Likewise.
230 * streams/getpmsg.c: Likewise.
231 * streams/isastream.c: Likewise.
232 * streams/putmsg.c: Likewise.
233 * streams/putpmsg.c: Likewise.
234 * streams/stropts.h: Likewise.
235 * streams/sys/stropts.h: Likewise.
236 * sysdeps/ia64/bits/xtitypes.h: Likewise.
237 * sysdeps/s390/bits/xtitypes.h: Likewise.
238 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
239 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
240 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
241 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
242 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
243 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
244 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
245 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
246 * sysdeps/x86/bits/xtitypes.h: Likewise.
247
248 2019-03-14 Florian Weimer <fweimer@redhat.com>
249
250 * nss/tst-nss-files-alias-truncated.c (do_test): Load
251 libnss_files.
252 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
253 but not with libnss_files.
254 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
255
256 2019-03-14 Zack Weinberg <zackw@panix.com>
257
258 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
259 Specify encoding="utf-8" when opening headers to check.
260
261 2019-03-13 Joseph Myers <joseph@codesourcery.com>
262
263 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
264 version to 5.0.
265 (Context.checkout_tar): Handle variable major version for Linux
266 kernel.
267
268 2019-03-13 Florian Weimer <fweimer@redhat.com>
269
270 [BZ #24047]
271 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
272
273 2019-03-13 Zack Weinberg <zackw@panix.com>
274
275 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
276 Move to stdlib.
277 * include/inttypes.h: Adjust to match.
278 * include/stdint.h: New wrapper.
279
280 2019-03-13 Zack Weinberg <zackw@panix.com>
281
282 * scripts/check-obsolete-constructs.py: New test script.
283 * scripts/check-installed-headers.sh: Remove tests for
284 obsolete typedefs, superseded by check-obsolete-constructs.py.
285 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
286 as a special test. Update commentary.
287 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
288 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
289 Update commentary.
290 * posix/sys/types.h (__u_intN_t): Remove.
291 (u_int8_t): Typedef using __uint8_t.
292 (u_int16_t): Typedef using __uint16_t.
293 (u_int32_t): Typedef using __uint32_t.
294 (u_int64_t): Typedef using __uint64_t.
295
296 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
297
298 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
299 call _dl_procinfo.
300 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
301 Ignore types other than AT_HWCAP.
302 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
303 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
304 Likewise.
305 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
306 in the case of falling back to generic output mechanism.
307 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
308 Likewise.
309
310 2019-03-12 Florian Weimer <fweimer@redhat.com>
311
312 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
313
314 2019-03-12 Florian Weimer <fweimer@redhat.com>
315
316 [BZ #24047]
317 resolv: Enable full ICMP errors for UDP DNS sockets
318 * resolv/res_enable_icmp.c: New file.
319 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
320 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
321 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
322 socket.
323
324 2019-03-11 Mao Han <han_mao@c-sky.com>
325
326 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
327 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
328
329 2019-03-11 Mao Han <han_mao@c-sky.com>
330
331 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
332 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
333 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
334
335 2019-03-11 Mao Han <han_mao@c-sky.com>
336
337 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
338 directly.
339 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
340 definition.
341
342 2019-03-11 Mao Han <han_mao@c-sky.com>
343
344 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
345 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
346 in mcontext_t
347
348 2019-03-08 Mike FABIAN <mfabian@redhat.com>
349
350 [BZ #24307]
351 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
352 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
353 Unicode 12.0.0.
354 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
355 * localedata/unicode-gen/PropList.txt: Likewise.
356 * localedata/unicode-gen/UnicodeData.txt: Likewise.
357 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
358 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
359 * localedata/charmaps/UTF-8: Regenerate.
360 * localedata/locales/i18n_ctype: Likewise.
361 * localedata/locales/tr_TR: Likewise.
362 * localedata/locales/translit_circle: Likewise.
363 * localedata/locales/translit_cjk_compat: Likewise.
364 * localedata/locales/translit_combining: Likewise.
365 * localedata/locales/translit_compat: Likewise.
366 * localedata/locales/translit_font: Likewise.
367 * localedata/locales/translit_fraction: Likewise.
368
369 2019-03-07 Joseph Myers <joseph@codesourcery.com>
370
371 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
372 than after operators.
373 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
374 (setitimer_locked): Likewise.
375 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
376 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
377 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
378 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
379 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
380 (PPC_CPU_SUPPORTED): Likewise.
381 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
382 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
383 (stat_overflow): Likewise.
384 (statfs_overflow): Likewise.
385 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
386 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
387 (eq_ttyname_r): Likewise.
388 (run_chroot_tests): Likewise.
389
390 2019-03-07 Florian Weimer <fweimer@redhat.com>
391
392 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
393 header check.
394
395 2019-03-07 Martin Liska <mliska@suse.cz>
396
397 * math/Makefile: Change location where math-vector-fortran.h is
398 installed.
399 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
400 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
401 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
402 * scripts/check-installed-headers.sh: Skip Fortran header files.
403 * scripts/check-wrapper-headers.py: Likewise.
404
405 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
406
407 * nptl/nptl-init.c (__have_futex_clock_realtime,
408 __have_futex_clock_realtime): Remove definition.
409 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
410 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
411 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
412 __ASSUME_FUTEX_CLOCK_REALTIME support.
413 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
414 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
415 * sysdeps/unix/sysv/linux/kernel-features.h
416 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
417 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
418 Adjust comment.
419
420 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
421
422 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
423 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
424 __GI___wcscpy and wcscpy.
425
426 2019-03-04 Florian Weimer <fweimer@redhat.com>
427
428 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
429 declaration.
430 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
431 defined.
432
433 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
434
435 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
436 * sysdeps/s390/s390-32/sysdep.h: Likewise.
437
438 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
439
440 [BZ #24162]
441 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
442 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
443
444 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
445
446 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
447 tests.
448 (do_test): Likewise.
449 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
450 (do_test_call_varg): Likewise.
451 (do_test_call_rarg): Likewise.
452 * sysdeps/ieee754/ldbl-opt/Makefile
453 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
454 tst-nldbl-error.
455 ($(objpfx)tst-nldbl-warn.c): New rule.
456 ($(objpfx)tst-nldbl-error.c): Likewise.
457 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
458 New variables.
459
460 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
461
462 [BZ #23984]
463 * include/bits/error-ldbl.h: New file.
464 * include/error.h: Include stdarg.h. Declare internal functions
465 __error_internal and __error_at_line_internal.
466 * misc/Makefile (headers): Add bits/error-ldbl.h.
467 * misc/bits/error-ldbl.h: New file.
468 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
469 avoid the inclusion of bits/error.h.
470 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
471 and __nldbl_error_at_line.
472 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
473 (__nldbl_error, __ndlbl_error_at_line): New functions.
474 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
475 Redirect error and error_at_line.
476 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
478 Likewise.
479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
480 Likewise.
481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
482 Likewise.
483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
484 Likewise.
485 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
486 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
487 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
488
489 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
490
491 [BZ #23984]
492 * include/bits/err-ldbl.h: New file.
493 * include/err.h: Add prototypes for the internal functions:
494 __vwarnx_internal and __vwarn_internal.
495 * misc/Makefile (headers): Add bits/err-ldbl.h.
496 * misc/bits/err-ldbl.h: New file.
497 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
498 defined, i.e.: when -mlong-double-64 is in use.
499 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
500 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
501 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
502 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
503 (VA_CALL): New macro.
504 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
505 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
506 functions.
507 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
508 declare prototypes for the new functions.
509 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
511 Likewise.
512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
513 Likewise.
514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
515 Likewise.
516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
517 Likewise.
518 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
519 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
520 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
521
522 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
523
524 * sysdeps/ieee754/ldbl-opt/Makefile
525 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
526 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
527 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
528
529 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
530
531 [BZ #23983]
532 * argp/Makefile (headers): Add bits/argp-ldbl.h.
533 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
534 * argp/bits/argp-ldbl.h: New file.
535 * include/argp.h: Include stdarg.h. Add prototypes for internal
536 functions: __argp_error_internal and __argp_failure_internal.
537 * include/bits/argp-ldbl.h: New file.
538 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
539 __nldbl_argp_error and __nldbl_argp_failure.
540 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
541 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
542 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
543 Redirect argp_error and argp_failure calls.
544 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
546 Likewise.
547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
548 Likewise.
549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
550 Likewise.
551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
552 Likewise.
553 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
554 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
555 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
556
557 2019-03-01 Florian Weimer <fweimer@redhat.com>
558
559 [BZ #20419]
560 * elf/tst-big-note-lib.S: Create a syntactically valid note.
561 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
562 code, to avoid creating an ABI tag note.
563 (modules-names-nobuild): Add tst-big-note-lib.
564
565 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
566
567 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
568 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
569
570 2019-03-01 Florian Weimer <fweimer@redhat.com>
571
572 [BZ #20271]
573 * sysdeps/unix/sysv/linux/netlink_assert_response.c
574 (__netlink_assert_response): Add additional missing newlines.
575
576 2019-02-28 Joseph Myers <joseph@codesourcery.com>
577
578 * sysdeps/powerpc/powerpc32/dl-machine.c
579 (__elf_machine_fixup_plt): Use space before '('.
580 (__process_machine_rela): Likewise.
581 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
582 Likewise.
583 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
584 Likewise.
585 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
586 Likewise.
587 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
588 (pattern): Likewise.
589 (delta): Likewise.
590 (check_result): Likewise.
591 (check_excepts): Likewise.
592 (check_op): Likewise.
593 (fail_xr): Likewise.
594 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
595 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
596 (SCNHSZ): Likewise.
597 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
598 Likewise.
599 (ARGS): Likewise.
600 (__makecontext): Likewise.
601 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
602 Likewise.
603
604 2019-02-28 Florian Weimer <fweimer@redhat.com>
605
606 [BZ #23937]
607 elf: Add test with a local IFUNC resolver.
608 * elf/ifuncmain9.c: New file.
609 * elf/ifuncmain9pic.c: Likewise.
610 * elf/ifuncmain9picstatic.c: Likewise.
611 * elf/ifuncmain9pie.c: Likewise.
612 * elf/ifuncmain9static.c: Likewise.
613 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
614 ifuncmain9static, ifuncmain9picstatic.
615 * elf/Makefile [multi-arch && build-shared] (tests-internal):
616 Add ifuncmain9, ifuncmain9pic.
617 * elf/Makefile [multi-arch && build-shared && have-fpie]
618 (ifunc-pie-tests): Add ifuncmain9pie.
619 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
620 (CFLAGS-ifuncmain9picstatic.c): Likewise.
621 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
622
623 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
624
625 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
626 * configure: Regenerated.
627 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
628
629 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
630
631 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
632 symbol as __wcspcy instead of wcscpy.
633
634 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
635
636 * include/stdio.h (__renameat2): New hidden prototype.
637 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
638 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
639 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
640 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
641
642 2019-02-27 Joseph Myers <joseph@codesourcery.com>
643
644 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
645 if statement.
646
647 * benchtests/bench-strcpy.c (do_test): Use space before '('.
648 * benchtests/bench-string.h (cmdline_process_function): Likewise.
649 * benchtests/bench-strlen.c (do_test): Likewise.
650 (test_main): Likewise.
651 * catgets/gencat.c (read_old): Likewise.
652 * elf/cache.c (load_aux_cache): Likewise.
653 * iconvdata/bug-iconv8.c (do_test): Likewise.
654 * math/test-tgmath-ret.c (do_test): Likewise.
655 * nis/nis_call.c (rec_dirsearch): Likewise.
656 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
657 * nptl/tst-audit-threads.c (do_test): Likewise.
658 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
659 * nss/nss_test1.c (init): Likewise.
660 * nss/test-netdb.c (test_hosts): Likewise.
661 * posix/execvpe.c (maybe_script_execute): Likewise.
662 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
663 * stdio-common/tst-printf.c (do_test): Likewise.
664 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
665 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
666 * stdlib/qsort.c (STACK_SIZE): Likewise.
667 * stdlib/test-canon.c (do_test): Likewise.
668 * stdlib/tst-swapcontext1.c (do_test): Likewise.
669 * string/memcmp.c (OPSIZ): Likewise.
670 * string/test-strcpy.c (do_test): Likewise.
671 (do_random_tests): Likewise.
672 * string/test-strlen.c (do_test): Likewise.
673 (test_main): Likewise.
674 * string/test-strrchr.c (do_test): Likewise.
675 (do_random_tests): Likewise.
676 * string/tester.c (test_memrchr): Likewise.
677 (test_memchr): Likewise.
678 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
679 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
680 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
681 (read_encoded_value_with_base): Likewise.
682 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
683 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
684 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
685 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
686 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
687 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
688 Likewise.
689 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
690 Likewise.
691 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
692 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
693 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
694 Likewise.
695 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
696 Likewise.
697 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
698 Likewise.
699 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
700 Likewise.
701 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
702 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
703 (FP_XSTATE_MAGIC2_SIZE): Likewise.
704 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
705 * time/test_time.c (main): Likewise.
706
707 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
708
709 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
710
711 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
712 wmemcpy.
713
714 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
715 wmemcpy.
716
717 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
718
719 * include/wchar.h (__wcscpy): New prototype.
720 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
721 (__wcscpy): Route internal symbol to generic implementation.
722 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
723 Add internal __wcscpy alias.
724 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
725 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
726 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
727 * wcsmbs/wcscpy.c (wcscpy): Add
728 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
729 use generic implementation.
730 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
731
732 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
733 wmemset.
734
735 * sysdeps/m68k/wcpcpy.c: Remove file.
736 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
737
738 2019-02-26 Joseph Myers <joseph@codesourcery.com>
739
740 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
741 than after operators.
742 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
743 * sysdeps/mach/hurd/getcwd.c
744 (__hurd_canonicalize_directory_name_internal): Likewise.
745 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
746 (pthread_mutex_consistent): Likewise.
747 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
748 Likewise.
749 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
750 (__pthread_mutex_transfer_np): Likewise.
751 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
752 (__pthread_mutex_unlock): Likewise.
753 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
754 (mtx_owned_p): Likewise.
755 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
756 (pthread_mutexattr_getrobust): Likewise.
757 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
758 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
759 Likewise.
760 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
761 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
762 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
763 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
764 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
765 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
766 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
767 Likewise.
768 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
769 Likewise.
770 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
771 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
772 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
773 (____longjmp_chk): Likewise.
774 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
775 Likewise.
776 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
777 (INTERNAL_SYSCALL): Likewise.
778 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
779 (INTERNAL_SYSCALL): Likewise.
780 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
781 (__get_clockfreq_via_cpuinfo): Likewise.
782
783 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
784 comments.
785 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
786 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
787 (WORD_COPY_BWD): Likewise.
788 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
789 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
790 Likewise.
791 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
792 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
793 comment.
794 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
795
796 2019-02-25 Joseph Myers <joseph@codesourcery.com>
797
798 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
799 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
800 rather than after operators.
801 * elf/cache.c (print_cache): Likewise.
802 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
803 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
804 * hurd/hurdinit.c (_hurd_setproc): Likewise.
805 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
806 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
807 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
808 (reauth_proc): Likewise.
809 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
810 (__file_name_split_at): Likewise.
811 (__directory_name_split_at): Likewise.
812 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
813 * hurd/port2fd.c (_hurd_port2fd): Likewise.
814 * iconv/gconv_dl.c (do_print): Likewise.
815 * inet/netinet/in.h (struct sockaddr_in): Likewise.
816 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
817 * locale/setlocale.c (new_composite_name): Likewise.
818 * malloc/memusagestat.c (main): Likewise.
819 * misc/fstab.c (fstab_convert): Likewise.
820 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
821 Likewise.
822 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
823 (getgrent_next_file): Likewise.
824 (internal_getgrnam_r): Likewise.
825 (internal_getgrgid_r): Likewise.
826 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
827 Likewise.
828 (internal_getgrent_r): Likewise.
829 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
830 (getpwent_next_nss): Likewise.
831 (getpwent_next_file): Likewise.
832 (internal_getpwnam_r): Likewise.
833 (internal_getpwuid_r): Likewise.
834 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
835 Likewise.
836 (getspent_next_nss): Likewise.
837 (internal_getspnam_r): Likewise.
838 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
839 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
840 * string/strchr.c (STRCHR): Likewise.
841 * string/strchrnul.c (STRCHRNUL): Likewise.
842 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
843 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
844 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
845 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
846 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
847 Likewise.
848 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
849 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
850 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
851 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
852 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
853 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
854 (open_file): Likewise.
855 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
856 (pthread_mutexattr_setprotocol): Likewise.
857 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
858 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
859 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
860 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
861 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
862 Likewise.
863 (elf_machine_rela): Likewise.
864 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
865 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
866 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
867 * sysdeps/posix/rename.c (rename): Likewise.
868 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
869 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
870 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
871 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
872 * sysdeps/unix/grantpt.c (grantpt): Likewise.
873 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
874 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
875 Likewise.
876 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
877 Likewise.
878 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
879 * time/tzfile.c (__tzfile_compute): Likewise.
880
881 2019-02-22 Joseph Myers <joseph@codesourcery.com>
882
883 * benchtests/bench-memmem.c (simple_memmem): Break lines before
884 rather than after operators.
885 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
886 * crypt/md5.c (md5_finish_ctx): Likewise.
887 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
888 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
889 * elf/cache.c (load_aux_cache): Likewise.
890 * elf/dl-load.c (open_verify): Likewise.
891 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
892 * elf/readelflib.c (process_elf_file): Likewise.
893 * elf/rtld.c (dl_main): Likewise.
894 * elf/sprof.c (generate_call_graph): Likewise.
895 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
896 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
897 * hurd/dtable.c (reauth_dtable): Likewise.
898 * hurd/getdport.c (__getdport): Likewise.
899 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
900 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
901 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
902 Likewise.
903 * hurd/hurdioctl.c (fioctl): Likewise.
904 * hurd/hurdselect.c (_hurd_select): Likewise.
905 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
906 (STOPSIGS): Likewise.
907 * hurd/hurdstartup.c (_hurd_startup): Likewise.
908 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
909 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
910 * hurd/msgportdemux.c (msgport_server): Likewise.
911 * hurd/setauth.c (_hurd_setauth): Likewise.
912 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
913 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
914 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
915 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
916 * login/tst-utmp.c (do_check): Likewise.
917 (simulate_login): Likewise.
918 * mach/lowlevellock.h (lll_lock): Likewise.
919 (lll_trylock): Likewise.
920 * math/test-fenv.c (ALL_EXC): Likewise.
921 * math/test-fenvinline.c (ALL_EXC): Likewise.
922 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
923 * nis/nis_call.c (__do_niscall3): Likewise.
924 * nis/nis_callback.c (cb_prog_1): Likewise.
925 * nis/nis_defaults.c (searchaccess): Likewise.
926 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
927 * nis/nis_ismember.c (internal_ismember): Likewise.
928 * nis/nis_local_names.c (nis_local_principal): Likewise.
929 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
930 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
931 Likewise.
932 * nis/ypclnt.c (yp_match): Likewise.
933 (yp_first): Likewise.
934 (yp_next): Likewise.
935 (yp_master): Likewise.
936 (yp_order): Likewise.
937 * nscd/hstcache.c (cache_addhst): Likewise.
938 * nscd/initgrcache.c (addinitgroupsX): Likewise.
939 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
940 (internal_getpwuid_r): Likewise.
941 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
942 * posix/glob.h (__GLOB_FLAGS): Likewise.
943 * posix/regcomp.c (peek_token): Likewise.
944 (peek_token_bracket): Likewise.
945 (parse_expression): Likewise.
946 * posix/regexec.c (sift_states_iter_mb): Likewise.
947 (check_node_accept_bytes): Likewise.
948 * posix/tst-spawn3.c (do_test): Likewise.
949 * posix/wordexp-test.c (testit): Likewise.
950 * posix/wordexp.c (parse_tilde): Likewise.
951 (exec_comm): Likewise.
952 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
953 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
954 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
955 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
956 * stdio-common/tst-fileno.c (do_test): Likewise.
957 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
958 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
959 * stdlib/strtod_l.c (round_and_return): Likewise.
960 (____STRTOF_INTERNAL): Likewise.
961 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
962 * string/strcspn.c (STRCSPN): Likewise.
963 * string/test-memmem.c (simple_memmem): Likewise.
964 * termios/tcsetattr.c (tcsetattr): Likewise.
965 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
966 * time/asctime.c (asctime_internal): Likewise.
967 * time/strptime_l.c (__strptime_internal): Likewise.
968 * time/sys/time.h (timercmp): Likewise.
969 * time/tzfile.c (__tzfile_compute): Likewise.
970
971 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
972
973 [BZ #21915]
974 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
975
976 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
977
978 * argp/argp-help.c (__argp_error_internal): New function,
979 renamed from __argp_error, but that takes a 'mode_flags'
980 parameter to control the format of long double parameters.
981 (__argp_error): Converted into a call __argp_error_internal.
982 (__argp_failure_internal): New function, renamed from
983 __argp_failure, but that takes a 'mode_flags' parameter.
984 (__argp_failure): Converted into a call __argp_failure_internal.
985 * misc/err.c (__vwarnx_internal): New function, renamed from
986 vwarnx, but that takes a 'mode_flags' parameter.
987 (vwarnx): Converted into a call to __vwarnx_internal.
988 (__vwarn_internal): New function, renamed from vwarn, but that
989 takes a 'mode_flags' parameter.
990 (vwarn): Converted into a call to __vwarn_internal.
991 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
992 call to __vfxprintf with 'mode_flags'.
993 (__error_internal): New function, renamed from error, but that
994 takes a 'mode_flags' parameter.
995 (error): Converted into a call to __error_internal.
996 (__error_at_line_internal): New function, renamed from
997 error_at_line, but that takes a 'mode_flags' parameter.
998 (error_at_line): Converted into a call to
999 __error_at_line_internal.
1000 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
1001 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
1002 Likewise.
1003
1004 2019-02-20 Martin Liska <mliska@suse.cz>
1005
1006 * math/Makefile: Install math-vector-fortran.h.
1007 * bits/math-vector-fortran.h: New file.
1008 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1009
1010 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1011
1012 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1013 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1014
1015 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
1016
1017 * nptl/pthread_mutex_trylock.c: Fix comment.
1018
1019 2019-02-19 Carlos O'Donell <carlos@redhat.com>
1020
1021 * nptl/pthread_tryjoin.c: Fix comment.
1022
1023 2019-02-18 Joseph Myers <joseph@codesourcery.com>
1024
1025 [BZ #24231]
1026 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1027 after R_SPARC_H34 case.
1028
1029 2019-02-18 Florian Weimer <fweimer@redhat.com>
1030
1031 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1032 (getanswer): Do not call Dprintf.
1033 (res_gethostbyname2_context): Likewise.
1034 (res_gethostbyaddr_context): Likewise.
1035
1036 2019-02-18 Florian Weimer <fweimer@redhat.com>
1037
1038 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1039 declaration.
1040 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1041 Remove definitions.
1042 * libio/stdfiles.c: Update comment.
1043 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
1044 set _IO_stdin, _IO_stdout, _IO_stderr.
1045 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1046 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1047 inline function.
1048 (_IO_deallocate_file): New inline function.
1049 * libio/iolibio.h (_IO_vprintf): Remove definition.
1050 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1051 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1052 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1053 _IO_legacy_file.
1054 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1055 __builtin_expect. Use _IO_legacy_file.
1056
1057 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
1058
1059 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1060 Initialize ctid with a known value and remove update of ctid
1061 after clone.
1062 (wait_tid): Adjust arguments and call futex_wait with ctid_val
1063 as assumed current value of ctid_ptr.
1064
1065 2019-02-15 Florian Weimer <fweimer@redhat.com>
1066
1067 Check that non-sysdeps headers have wrapper headers.
1068 * scripts/check-wrapper-headers.py: New file.
1069 * Makefile (tests-special): Add check-wrapper-headers.out.
1070 (check-wrapper-headers.out): New target.
1071 * Rules (tests-special): Add check-wrapper-headers.out.
1072 (check-wrapper-headers.out): New target.
1073
1074 2019-02-15 Florian Weimer <fweimer@redhat.com>
1075
1076 Add missing header wrappers under include/.
1077 * include/ar.h: New file.
1078 * include/bits/mqueue2.h: Likewise.
1079 * include/bits/stdio.h: Likewise.
1080 * include/bits/stdio2.h: Likewise.
1081 * include/fstab.h: Likewise.
1082 * include/fts.h: Likewise.
1083 * include/lastlog.h: Likewise.
1084 * include/netinet/icmp6.h: Likewise.
1085 * include/netinet/igmp.h: Likewise.
1086 * include/netinet/ip6.h: Likewise.
1087 * include/re_comp.h: Likewise.
1088 * include/regexp.h: Likewise.
1089 * include/rpcsvc/bootparam.h: Likewise.
1090 * include/rpcsvc/yp_prot.h: Likewise.
1091 * include/sys/random.h: Likewise.
1092 * include/sys/stropts.h: Likewise.
1093 * include/sys/ttychars.h: Likewise.
1094 * include/sys/vfs.h: Likewise.
1095 * include/wait.h: Likewise.
1096
1097 2019-02-15 Florian Weimer <fweimer@redhat.com>
1098
1099 * nptl_db/proc_service.h: Move to ...
1100 * sysdeps/nptl/proc_service.h: ... here.
1101 * nptl_db/thread_db.h: Move to ...
1102 * sysdeps/nptl/thread_db.h: ... here.
1103 * nptl/descr.h: Include <thread_db.h>.
1104
1105 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1106
1107 * io/Makefile (tests): Add tst-lockf.
1108 * io/lockf.c (lockf): Use __fcntl and only define for
1109 !__OFF_T_MATCHES_OFF64_T.
1110 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1111 __OFF_T_MATCHES_OFF64_T case.
1112 * io/tst-lockf.c: New file.
1113 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1114 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1115 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1116 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1117 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1119 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1120 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1121 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1122
1123 2019-02-15 Florian Weimer <fweimer@redhat.com>
1124
1125 [BZ #24211]
1126 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1127 pd->result after the thread descriptor has been freed.
1128
1129 2019-02-15 Joseph Myers <joseph@codesourcery.com>
1130
1131 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1132 from function return type.
1133
1134 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1135
1136 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 * scripts/test_printers_common.py: Set TERM to a known harmless
1139 value.
1140
1141 2019-02-14 Joseph Myers <joseph@codesourcery.com>
1142
1143 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1144 (xdr_u_int): Likewise.
1145 (xdr_enum): Likewise.
1146 (xdr_bytes): Reword fall-through comment.
1147 (xdr_string): Likewise.
1148
1149 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1150
1151 [BZ #2421]
1152 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1153 (tests): Add tst-join8 tst-join9.
1154 * nptl/lll_timedwait_tid.c: Remove file.
1155 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1156 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1157 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1158 * nptl/pthread_join_common.c (timedwait_tid): New function.
1159 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1160 is set.
1161 * nptl/tst-join5.c (thread_join): New function.
1162 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1163 check.
1164 * nptl/tst-join8.c: New file.
1165 * nptl/tst-join9.c: Likewise.
1166 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1167 lll_futex_timed_wait_cancel): Add generic macros.
1168 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1169 Remove definitions.
1170 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1171 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1172 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1173 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1174 Remove function.
1175 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1176 Likewise.
1177 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1178 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1179 (lll_futex_timed_wait_cancel): New macro.
1180
1181 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1182
1183 * benchtests/Makefile: Add malloc-simple benchmark.
1184 * benchtests/bench-malloc-simple.c: New benchmark.
1185
1186 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1187
1188 * benchtests/bench-memmove.c (do_one_test): Remove unused
1189 ORIG_SRC.
1190 (do_test): Adjust.
1191 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1192 ORIG_SRC.
1193 (do_test): Adjust.
1194
1195 2019-01-13 Jim Wilson <jimw@sifive.com>
1196
1197 [BZ #24040]
1198 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1199 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1200 (func): New.
1201 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1202 call func directly.
1203 * nptl/Makefile (tests): Add tst-unwind-thread.
1204 (CFLAGS-tst-unwind-thread.c): Define.
1205 * nptl/tst-unwind-thread.c: New file.
1206 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1207 as undefined.
1208
1209 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1210
1211 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1212 comment wording.
1213 * nis/nis_call.c (__do_niscall3): Likewise.
1214
1215 * catgets/gencat.c (normalize_line): Use braces around empty
1216 'else' body.
1217 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1218 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1219 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1220 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1221 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1222 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1223 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1224 definition.
1225
1226 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1227 execlp returns.
1228
1229 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1230
1231 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1232 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1233 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1234 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1235 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1236 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1237 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1238 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1239 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1240 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1241 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1242 * benchtests/bench-bcopy.c: Delete file.
1243 * benchtests/bench-bzero.c: Likewise.
1244 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1245 (simple_memccpy): Remove.
1246 (generic_memccpy): Add function.
1247 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1248 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1249 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1250 (generic_mempcpy): Add new function.
1251 * benchtests/bench-memset.c (simple_bzero): Remove.
1252 (builtin_bzero): Remove.
1253 (builtin_memset): Remove.
1254 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1255 (generic_rawmemchr): Add new function.
1256
1257 2019-02-12 Florian Weimer <fweimer@redhat.com>
1258
1259 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1260
1261 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1262
1263 [BZ #24122]
1264 * elf/Makefile (tests): Add tst-audit13.
1265 (modules-names): Add tst-audit13mod1.
1266 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1267 rule.
1268 * elf/tst-audit13.c: New file.
1269 * elf/tst-audit13mod1.c: Likewise.
1270
1271 2019-02-12 Florian Weimer <fweimer@redhat.com>
1272
1273 [BZ #24122]
1274 * elf/rtld.c (unload_audit_module): New function.
1275 (report_audit_module_load_error): Likewise.
1276 (load_audit_module): Likewise. Extracted from dl_main. Call
1277 _dl_close if the laversion symbol cannot be found. Use early
1278 returns for error handling. Add malloc error check. Check for a
1279 zero return value from la_version. Remove spurious comment about
1280 static TLS initialization. Remove useless casts.
1281 (notify_audit_modules_of_loaded_object): New function. Extracted
1282 from dl_main.
1283 (load_audit_module): Likewise.
1284 (dl_main): Call load_audit_modules.
1285
1286 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1287
1288 * elf/dl-exception.c (_dl_exception_create_format): Add
1289 fall-through comments.
1290 * elf/ldconfig.c (parse_conf_include): Likewise.
1291 * elf/rtld.c (print_statistics): Likewise.
1292 * locale/programs/charmap.c (parse_charmap): Likewise.
1293 * misc/mntent_r.c (__getmntent_r): Likewise.
1294 * posix/wordexp.c (parse_arith): Likewise.
1295 (parse_backtick): Likewise.
1296 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1297 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1298 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1299
1300 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1301
1302 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1303 Use float instead of double.
1304
1305 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1306
1307 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1308
1309 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1310
1311 * sysdeps/powerpc/bits/mathinline.h: Remove.
1312
1313 2019-02-08 Florian Weimer <fweimer@redhat.com>
1314
1315 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1316 * math/bits/math-finite.h: Move to ...
1317 * bits/math-finite.h: ... here.
1318
1319 2019-02-08 Florian Weimer <fweimer@redhat.com>
1320
1321 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1322 * bits/unistd_ext.h: here.
1323
1324 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1325
1326 [BZ #21915]
1327 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1328 * nss/tst-nss-files-hosts-long.c: New file.
1329 * nss/tst-nss-files-hosts-long.root: New directory.
1330 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1331 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1332
1333 2019-02-08 Florian Weimer <fweimer@redhat.com>
1334
1335 * include/bits/unistd_ext.h: Remove file.
1336 * posix/bits/unistd_ext.h: Move to ...
1337 * sysdeps/generic/bits/unistd_ext.h: ... here.
1338
1339 2019-02-08 Florian Weimer <fweimer@redhat.com>
1340
1341 * include/bits/unistd_ext.h: New file.
1342
1343 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1344
1345 * time/tst-strftime2.c: Use array_length macros instead of magic
1346 numbers.
1347
1348 2019-02-08 Florian Weimer <fweimer@redhat.com>
1349
1350 [BZ #24161]
1351 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1352 argument.
1353 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1354 locking if the new do_locking argument is true.
1355 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1356 __run_fork_handlers.
1357
1358 2019-02-08 Florian Weimer <fweimer@redhat.com>
1359
1360 [BZ #6399]
1361 Linux: Add gettid system call wrapper.
1362 * posix/Makefile (headers): Add bits/unistd_ext.h.
1363 * posix/bits/unistd_ext.h: New file.
1364 * posix/unistd.h: Include it.
1365 * manual/process.texi (Process Identification): Document gettid.
1366 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1367 tst-gettid, tst-gettid-kill.
1368 (tst-gettid): Link with $(shared-thread-library).
1369 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1370 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1371 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1372 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1373 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1374 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1375 Add gettid.
1376 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1377 Likewise.
1378 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1379 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1380 Likewise.
1381 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1382 Likewise.
1383 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1384 Likewise.
1385 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1386 Likewise.
1387 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1388 Likewise.
1389 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1390 Likewise.
1391 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1392 Likewise.
1393 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1394 (GLIBC_2.30): Likewise.
1395 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1396 (GLIBC_2.30): Likewise.
1397 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1398 (GLIBC_2.30): Likewise.
1399 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1400 (GLIBC_2.30): Likewise.
1401 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1402 Likewise.
1403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1404 (GLIBC_2.30): Likewise.
1405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1406 (GLIBC_2.30): Likewise.
1407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1408 (GLIBC_2.30): Likewise.
1409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1410 (GLIBC_2.30): Likewise.
1411 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1412 Likewise.
1413 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1414 Likewise.
1415 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1416 Likewise.
1417 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1418 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1419 Likewise.
1420 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1421 Likewise.
1422 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1423 Likewise.
1424 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1425 Likewise.
1426 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1427
1428 2019-02-07 Florian Weimer <fweimer@redhat.com>
1429
1430 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1431 compatibility symbols.
1432
1433 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1434
1435 [BZ #24180]
1436 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1437 Add compiler barriers and comments.
1438
1439 2019-02-07 Florian Weimer <fweimer@redhat.com>
1440
1441 * include/array_length.h (array_length): Do not use a statement
1442 expression and _Static_assert, so that array_length can be used at
1443 file scope and as a constant expression.
1444
1445 2019-02-07 Florian Weimer <fweimer@redhat.com>
1446
1447 * support/xdlfcn.h (xdlmopen): Declare.
1448 * support/xdlmopen.c: New file.
1449 * support/Makefile (libsupport-routines): Add xdlmopen.
1450
1451 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1452
1453 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1454 before return type, without separate inline.
1455 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1456 * elf/dl-tunables.h (tunable_is_name): Likewise.
1457 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1458 (do_set_top_pad): Likewise.
1459 (do_set_mmap_threshold): Likewise.
1460 (do_set_mmaps_max): Likewise.
1461 (do_set_mallopt_check): Likewise.
1462 (do_set_perturb_byte): Likewise.
1463 (do_set_arena_test): Likewise.
1464 (do_set_arena_max): Likewise.
1465 (do_set_tcache_max): Likewise.
1466 (do_set_tcache_count): Likewise.
1467 (do_set_tcache_unsorted_limit): Likewise.
1468 * nis/nis_subr.c (count_dots): Likewise.
1469 * nptl/allocatestack.c (advise_stack_range): Likewise.
1470 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1471 (do_sin): Likewise.
1472 (reduce_sincos): Likewise.
1473 (do_sincos): Likewise.
1474 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1475 (do_set_elision_enable): Likewise.
1476 (TUNABLE_CALLBACK_FNDECL): Likewise.
1477
1478 2019-02-06 Florian Weimer <fweimer@redhat.com>
1479
1480 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1481 (xdlsym): Use dlerror to detect a NULL symbol.
1482
1483 2019-02-06 Florian Weimer <fweimer@redhat.com>
1484
1485 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1486 <stap-probe.h>.
1487 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1488
1489 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1490
1491 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1492
1493 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1494
1495 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1496 __wmemcmp and weak alias to wmemcmp.
1497
1498 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1499
1500 [BZ #23403]
1501 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1502 TLS_TCB_AT_TP tls variant.
1503 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1504 Add alignment checks.
1505 * support/Makefile (libsupport-routines): Add xposix_memalign and
1506 xpthread_setstack.
1507 * support/support.h: Add xposix_memalign.
1508 * support/xthread.h: Add xpthread_attr_setstack.
1509 * support/xposix_memalign.c: New File.
1510 * support/xpthread_attr_setstack.c: Likewise.
1511
1512 2019-02-05 Florian Weimer <fweimer@redhat.com>
1513
1514 [BZ #24164]
1515 arm: Use "nr" constraint for Systemtap probes, to avoid the
1516 compiler using memory operands for constants, due to the "o"
1517 alternative in the default "nor" constraint.
1518 * include/stap-probe.h [USE_STAP_PROBE]: Include
1519 <stap-probe-machine.h>
1520 * sysdeps/generic/stap-probe-machine.h: New file.
1521 * sysdeps/arm/stap-probe-machine.h: Likewise.
1522
1523 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1524
1525 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1526 with 0, not tcache->entries[tc_idx].
1527
1528 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1529 once.
1530
1531 2019-02-04 Andreas Schwab <schwab@suse.de>
1532
1533 [BZ #16976]
1534 [BZ #17396]
1535 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1536 looking up collating elements match against (wide) character
1537 sequence instead of name. Correct alignment adjustment.
1538 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1539 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1540 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1541 (LOCALES): Add cs_CZ.ISO-8859-2.
1542 * posix/tst-fnmatch4.c: New file.
1543 * posix/tst-fnmatch5.c: New file.
1544 * include/wchar.h (__wmemcmp): Declare.
1545 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1546 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1547 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1548 * sysdeps/s390/wmemcmp.c: Likewise.
1549
1550 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1551
1552 [BZ #24155]
1553 CVE-2019-7309
1554 * NEWS: Updated for CVE-2019-7309.
1555 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1556 upper 32 bits of RDX register for x32. Use unsigned Jcc
1557 instructions, instead of signed.
1558 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1559 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1560
1561 2019-02-04 Florian Weimer <fweimer@redhat.com>
1562
1563 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1564 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1565 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1566 Likewise.
1567 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1568 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1569 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1570 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1571 Likewise.
1572 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1573 Likewise.
1574 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1575 Likewise.
1576 (posix_spawn_file_actions_addopen): Likewise.
1577 (posix_spawn_file_actions_addclose): Likewise.
1578 (posix_spawn_file_actions_adddup2): Likewise.
1579 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1580 qualifiers.
1581 (posix_spawn_file_actions_addfchdir_np): Likewise.
1582
1583 2019-02-04 David Newall <glibc@davidnewall.com>
1584
1585 elf: Implement --preload option for the dynamic linker.
1586 * elf/rtld.c (preloadarg): New variable.
1587 (handle_preload_list): Pass through “where” argument to
1588 do_preload.
1589 (dl_main): Handle "--preload" and add second call to
1590 handle_preload_list.
1591 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1592 (tst-rtld-preload-OBJS): Set variable.
1593 (tst-rtld-preload.out): New target.
1594 * elf/tst-rtld-preload.sh: New file.
1595
1596 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1597
1598 * Makefile (testrun.sh): Exit in case of incorrect argument.
1599
1600 2019-02-04 Florian Weimer <fweimer@redhat.com>
1601
1602 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1603 alignment gaps.
1604
1605 2019-02-03 Florian Weimer <fweimer@redhat.com>
1606
1607 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1608 implicit overflow checks.
1609
1610 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1611
1612 * stdlib/isomac.c: Include <unistd.h>.
1613
1614 2019-02-03 Florian Weimer <fweimer@redhat.com>
1615
1616 * include/time.h (__tzfile_default): Use int, not long int, for
1617 the GMT offsets.
1618 * time/tzfile.c (struct ttinfo): Change type of the offset member
1619 to int.
1620 (__tzfile_read): Remove useless cast.
1621 (__tzfile_default): Adjust prototype.
1622 * time/tzset.c (tz_rule): Change type of the offset member to int.
1623 (parse_offset): Change the type of the sign variable to int.
1624
1625 2019-02-03 Florian Weimer <fweimer@redhat.com>
1626
1627 [BZ #24153]
1628 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1629 * libio/getchar.c (getchar): Likewise.
1630 * libio/getchar_u.c (getchar_unlocked): Likewise.
1631 * libio/getwchar.c (getwchar): Likewise.
1632 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1633 * libio/iogets.c (_IO_gets): Likewise.
1634 * libio/vscanf.c (_IO_vscanf): Likewise.
1635 * libio/vwscanf.c (__vwscanf): Likewise.
1636 * libio/tst-bz24153.c: New file.
1637 * libio/Makefile (tests): Add it.
1638
1639 2019-02-02 Florian Weimer <fweimer@redhat.com>
1640
1641 [BZ #14829]
1642 * manual/resource.texi (Basic Scheduling Functions): Add
1643 portability note. Change process to task throughout the section.
1644 Remove incorrect comment about sched_yield as it affects
1645 tasks/threads, not entire processes.
1646 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1647 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1648
1649 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1650
1651 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1652 * configure: Regenerated.
1653 * manual/install.texi (Tools for Compilation): Update minimum GCC
1654 version.
1655 * INSTALL: Regenerated.
1656
1657 2019-02-01 Florian Weimer <fweimer@redhat.com>
1658
1659 * support/support_test_compare_string.c
1660 (support_test_compare_string): Use "string" in error message.
1661 * support/tst-test_compare_string.c (do_test): Adjust.
1662
1663 2019-02-01 Florian Weimer <fweimer@redhat.com>
1664
1665 * support/support_format_address_family.c
1666 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1667
1668 2019-02-01 Florian Weimer <fweimer@redhat.com>
1669
1670 * manual/socket.texi (Internet Address Formats): Clarify the byte
1671 order of struct sockaddr_in, struct sockaddr_in6. Document
1672 sin6_flowinfo and sin6_scope_id.
1673
1674 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1675
1676 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1677 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1678 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1679 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1680 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1681 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1682
1683 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1684
1685 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1686 [!MEMCHR](MEMCHR): Set to __memchr.
1687 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1688 Add memchr_generic and memchr_nosimd.
1689 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1690 (__libc_ifunc_impl_list): Add memchr ifuncs.
1691 * sysdeps/aarch64/multiarch/memchr.c: New file.
1692 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1693 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1694
1695 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1696
1697 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1698 Add memset_emag.
1699 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1700 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1701 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1702 Add IS_EMAG check for ifunc dispatch.
1703 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1704 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1705
1706 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1707
1708 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1709 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1710 Add emag.
1711 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1712 New macro.
1713
1714 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1715
1716 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1717
1718 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1719
1720 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1721 syscall-template file.
1722
1723 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1724 Torvald Riegel <triegel@redhat.com>
1725 Rik Prohaska <prohaska7@gmail.com>
1726
1727 [BZ# 23844]
1728 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1729 tst-rwlock-trywrlock-stall.
1730 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1731 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1732 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1733 Set __wrphase_fute to 1 only if we started the write phase.
1734 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1735 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1736 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1737 * support/xpthread_rwlock_destroy.c: New file.
1738 * support/xthread.h: Declare xpthread_rwlock_destroy.
1739
1740 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1741
1742 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1743 version to 4.0.2.
1744
1745 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1746
1747 [BZ #24051]
1748 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1749 * libio/fileops.c (_IO_new_file_underflow): Likewise
1750 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1751 * libio/putchar.c (putchar): Likewise.
1752 * libio/putchar_u.c (putchar_unlocked): Likewise.
1753 * libio/putwchar.c (putchar): Likewise.
1754 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1755 * libio/tst-bz24051.c: New test.
1756 * libio/Makefile (tests): Add tst-bz24051
1757
1758 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1759
1760 CVE-2019-9169
1761 regex: fix read overrun [BZ #24114]
1762 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1763 https://debbugs.gnu.org/34140
1764 * posix/regexec.c (proceed_next_node):
1765 Do not read past end of input buffer.
1766
1767 2019-01-31 Florian Weimer <fweimer@redhat.com>
1768
1769 [BZ #24059]
1770 * nss/nss_files/files-alias.c (get_next_alias): Handle
1771 continuation line without newline at the end.
1772 * nss/tst-nss-files-alias-truncated.c: New file.
1773 * nss/Makefile [$(build-shared)] (tests): Add
1774 tst-nss-files-alias-truncated.
1775 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1776 * support/namespace.h (struct support_chroot_configuration): Add
1777 aliases member.
1778 (struct support_chroot): Add path_aliases member.
1779 * support/support_chroot.c (support_chroot_create): Handle
1780 aliases.
1781 (support_chroot_free): Free path_aliases.
1782
1783 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1784
1785 * version.h (RELEASE): Set to "development".
1786 (VERSION): Set to "2.29.9000".
1787 * NEWS: Add section for 2.30.
1788
1789 * version.h (RELEASE): Set to "stable".
1790 (VERSION): Set to "2.29".
1791 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1792
1793 * NEWS: Add the list of bugs fixed in 2.29.
1794 * manual/contrib.texi: Update contributors list with some more
1795 names.
1796 * manual/install.texi: Update latest versions of packages
1797 tested.
1798 * INSTALL: Regenerated.
1799
1800 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1801
1802 * po/be.po: Update translations.
1803 * po/bg.po: Likewise.
1804 * po/ca.po: Likewise.
1805 * po/cs.po: Likewise.
1806 * po/da.po: Likewise.
1807 * po/de.po: Likewise.
1808 * po/el.po: Likewise.
1809 * po/eo.po: Likewise.
1810 * po/es.po: Likewise.
1811 * po/fi.po: Likewise.
1812 * po/fr.po: Likewise.
1813 * po/gl.po: Likewise.
1814 * po/hr.po: Likewise.
1815 * po/hu.po: Likewise.
1816 * po/ia.po: Likewise.
1817 * po/id.po: Likewise.
1818 * po/it.po: Likewise.
1819 * po/ja.po: Likewise.
1820 * po/ko.po: Likewise.
1821 * po/lt.po: Likewise.
1822 * po/nb.po: Likewise.
1823 * po/nl.po: Likewise.
1824 * po/pl.po: Likewise.
1825 * po/pt_BR.po: Likewise.
1826 * po/ru.po: Likewise.
1827 * po/rw.po: Likewise.
1828 * po/sk.po: Likewise.
1829 * po/sl.po: Likewise.
1830 * po/sv.po: Likewise.
1831 * po/tr.po: Likewise.
1832 * po/uk.po: Likewise.
1833 * po/vi.po: Likewise.
1834 * po/zh_CN.po: Likewise.
1835 * po/zh_TW.po: Likewise.
1836
1837 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1838
1839 [BZ #24130]
1840 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1841 of $f3 register on $y_is_neg path.
1842
1843 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1844
1845 [BZ #24110]
1846 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1847 sigaltstack.ss_flags.
1848
1849 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1850
1851 [BZ #23758]
1852 * manual/time.texi (strftime): Document "%Ey".
1853 * time/strftime_l.c (__strftime_internal): Set the default width
1854 padding with zero of "%Ey" to 2.
1855
1856 [BZ #24096]
1857 * manual/time.texi (strftime): Document "%EC" and "%EY".
1858 * time/Makefile (tests): Add tst-strftime2.
1859 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1860 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1861 override padding for "%Ey".
1862 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1863 "%Ey" in the subformat as if decorated with that flag.
1864 * time/tst-strftime2.c: New file.
1865
1866 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1867
1868 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1869 are not defined.
1870
1871 [BZ #24122]
1872 * elf/Makefile (tests): Add tst-audit13.
1873 (modules-names): Add tst-audit13mod1.
1874 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1875 rule.
1876 * elf/rtld.c (dl_main): Handle invalid audit module version.
1877 * elf/tst-audit13.c: New file.
1878 * elf/tst-audit13mod1.c: Likewise.
1879
1880 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1881
1882 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1883 returned by __hurd_at_flags.
1884 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1885 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1886 directly instead of __hurd_file_name_lookup.
1887
1888 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1889
1890 * scripts/build-many-glibcs.py (Context.checkout): Default
1891 binutils version to 2.32 branch.
1892
1893 2019-01-21 Florian Weimer <fweimer@redhat.com>
1894
1895 [BZ #20018]
1896 CVE-2016-10739
1897 resolv: Reject trailing characters in host names
1898 * include/arpa/inet.h (__inet_aton_exact): Declare.
1899 (inet_aton): Remove hidden prototype. No longer used internally.
1900 * nscd/gai.c (__inet_aton): Do not define.
1901 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1902 * nss/digits_dots.c (__inet_aton): Likewise.
1903 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1904 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1905 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1906 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1907 (tst-resolv-trailing): Likewise.
1908 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1909 libc.
1910 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1911 Make static. Add endp parameter.
1912 (__inet_aton_exact): New function.
1913 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1914 (__inet_addr): Call inet_aton_end.
1915 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1916 not just IPv6. Call __inet_aton_exact.
1917 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1918 (tests): Make const. Add additional test cases with trailing
1919 characters.
1920 (do_test): Use array_length.
1921 * resolv/tst-inet_aton_exact.c: New file.
1922 * resolv/tst-resolv-trailing.c: Likewise.
1923 * resolv/tst-resolv-nondecimal.c: Likewise.
1924 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1925
1926 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1927
1928 [BZ# 24097]
1929 CVE-2019-6488
1930 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1931 Clear the upper 32 bits of RSI register.
1932 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1933 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1934 and tst-size_t-wcsnlen.
1935 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1936 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1937
1938 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1939
1940 [BZ# 24097]
1941 CVE-2019-6488
1942 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1943 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1944 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1945 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1946 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1947
1948 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1949
1950 [BZ# 24097]
1951 CVE-2019-6488
1952 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1953 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1954 * sysdeps/x86_64/strcmp.S: Likewise.
1955 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1956 tst-size_t-strncmp and tst-size_t-wcsncmp.
1957 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1958 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1959 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1960
1961 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1962
1963 [BZ# 24097]
1964 CVE-2019-6488
1965 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1966 RDX_LP for length. Clear the upper 32 bits of RDX register.
1967 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1968 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1969 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1970 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1971
1972 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1973
1974 [BZ# 24097]
1975 CVE-2019-6488
1976 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1977 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1978 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1979 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1980
1981 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1982
1983 [BZ# 24097]
1984 CVE-2019-6488
1985 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1986 length. Clear the upper 32 bits of RDX register.
1987 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1988 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1989 Likewise.
1990 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1991 Likewise.
1992 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1993 tst-size_t-wmemchr.
1994 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1995
1996 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1997
1998 [BZ# 24097]
1999 CVE-2019-6488
2000 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
2001 length. Clear the upper 32 bits of RDX register.
2002 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2003 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2004 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
2005 tst-size_t-wmemcmp.
2006 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
2007 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2008
2009 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2010
2011 [BZ# 24097]
2012 CVE-2019-6488
2013 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
2014 upper 32 bits of RDX register.
2015 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2016 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2017 tst-size_t-wmemchr.
2018 * sysdeps/x86_64/x32/test-size_t.h: New file.
2019 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2020 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2021
2022 2019-01-18 Florian Weimer <fweimer@redhat.com>
2023
2024 [BZ #24112]
2025 resolv: Do not send queries for non-host-names in nss_dns.
2026 * resolv/nss_dns/dns-host.c (check_name): New function.
2027 (_nss_dns_gethostbyname2_r): Use it.
2028 (_nss_dns_gethostbyname_r): Likewise.
2029 (_nss_dns_gethostbyname4_r): Likewise.
2030
2031 2019-01-21 Florian Weimer <fweimer@redhat.com>
2032
2033 * resolv/inet_addr.c: Reformat to GNU style.
2034 (__inet_addr, __inet_aton): Update comment.
2035
2036 2019-01-18 Florian Weimer <fweimer@redhat.com>
2037
2038 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2039 ("malloc: Use current (C11-style) atomics for fastbin access").
2040 This commit introduces a substantial performance regression on
2041 POWER and Aarch64.
2042 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2043 (REMOVE_FB): Define.
2044 (_int_malloc): Use it and reindent.
2045 (_int_free): Use CAS loop with
2046 catomic_compare_and_exchange_val_rel.
2047 (malloc_consolidate): Use atomic_exchange_acq.
2048
2049
2050 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2051
2052 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
2053 -Wl,-z,now.
2054 (LDFLAGS-tst-minsigstksz-2): Likewise.
2055 (LDFLAGS-tst-minsigstksz-3): Likewise.
2056 (LDFLAGS-tst-minsigstksz-3a): Likewise.
2057 (LDFLAGS-tst-minsigstksz-4): Likewise.
2058
2059 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
2060
2061 * manual/time.texi (strftime): Fix the wording to "alternative" rather
2062 than "alternate".
2063
2064 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
2065
2066 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2067
2068 2019-01-16 Zack Weinberg <zackw@panix.com>
2069
2070 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2071 (xget_sigstack_location): New test support functions.
2072 * support/xsigstack.c: New file, implementing them.
2073 * support/tst-xsigstack.c: New test for them.
2074 * support/Makefile: Update.
2075
2076 * signal/tst-minsigstksz-1.c
2077 * signal/tst-minsigstksz-2.c
2078 * signal/tst-minsigstksz-3.c
2079 * signal/tst-minsigstksz-3a.c
2080 * signal/tst-minsigstksz-4.c: New tests.
2081 * signal/Makefile: Run them.
2082
2083 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
2084
2085 * po/libc.pot: Regenerate.
2086
2087 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2088
2089 * math/libm-test-fma.inc (fma_test_data): Set
2090 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2091
2092 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2093
2094 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2095 (do_test): Changed __vector __int128_t to __vector unsigned int.
2096
2097 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2098
2099 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2100 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2101 stpcpy-avx2 and stpncpy-avx2.
2102 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2103 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2104 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2105 and __stpncpy_avx2.
2106 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2107 ifunc-strcpy.h}: rename header for a more generic name.
2108 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2109 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2110 AVX unaligned load is fast and vzeroupper is preferred.
2111 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2112 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2113 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2114 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2115 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2116 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2117
2118 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
2119
2120 * argp/argp-help.c: Fix typo in comment.
2121 * misc/sys/cdefs.h: Likewise.
2122 * posix/regexec.c (sift_states_iter_mb): Likewise.
2123 * socket/sockatmark.c: Likewise.
2124 * socket/sys/socket.h: Likewise.
2125 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2126 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2127 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2128 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2129 * sysdeps/unix/sockatmark.c: Likewise.
2130 * time/strptime_l.c: Likewise.
2131
2132 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2133
2134 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2135 missing space after the cast of "_NL_CURRENT".
2136
2137 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2138
2139 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2140 ifdef to fix read of VSCR.
2141 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2142 tst-ucontext-ppc64-vscr.c to test list.
2143 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2144
2145 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2146
2147 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2148 fall-through.
2149
2150 2019-01-09 Jim Wilson <jimw@sifive.com>
2151
2152 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2153
2154 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2155
2156 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2157 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2158 __memcpy_falkor for ares.
2159 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2160 Add new define.
2161 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2162 Add ares cpu.
2163
2164 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2165
2166 [BZ #24066]
2167 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2168 4_FP_W_TYPEs are used for IEEE quad precision.
2169 * soft-fp/extendhftf2.c: Likewise.
2170 * soft-fp/extendsftf2.c: Likewise.
2171 * soft-fp/extendxftf2.c: Likewise.
2172 * soft-fp/trunctfdf2.c: Likewise.
2173 * soft-fp/trunctfhf2.c: Likewise.
2174 * soft-fp/trunctfsf2.c: Likewise.
2175 * soft-fp/trunctfxf2.c: Likewise.
2176 * sysdeps/alpha/ots_cvttx.c: Likewise.
2177 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2178 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2179 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2180 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2181 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2182 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2183 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2184 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2185 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2186 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2187 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2188 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2189 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2190 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2191 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2192 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2193 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2194
2195 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2196
2197 [BZ #24024]
2198 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2199 code with -fmath-errno.
2200 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2201 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2202 * string/test-strerror-errno.c: New file.
2203
2204 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2205
2206 [BZ #24046]
2207 * localedata/locales/en_US (date_fmt): Add, set to
2208 "%a %d %b %Y %r %Z".
2209
2210 2019-01-07 Florian Weimer <fweimer@redhat.com>
2211
2212 [BZ #24063]
2213 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2214 instead of @var{errno}.
2215 (Parsing of Integers): Likewise.
2216 (Parsing of Floats): Likewise.
2217 * manual/filesys.texi (Working with Directory Trees): Likewise.
2218 (Temporary Files): Likewise.
2219 * manual/job.texi (Terminal Access Functions): Likewise.
2220 * manual/llio.texi (Synchronizing I/O): Likewise.
2221 * manual/math.texi (SVID Random): Likewise.
2222 * manual/message.texi (The catgets Functions): Likewise.
2223 (Translation with gettext): Likewise.
2224 (Locating gettext catalog): Likewise.
2225 (Charset conversion in gettext): Likewise.
2226 * manual/nss.texi (NSS Module Function Internals): Likewise.
2227 * manual/search.texi (Hash Search Function): Likewise.
2228 * manual/setjmp.texi (System V contexts): Likewise.
2229 * manual/time.texi (Sleeping): Likewise.
2230 * manual/users.texi (Lookup User): Likewise.
2231 (Lookup Group): Likewise.
2232
2233 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2234
2235 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2236 fix typo.
2237
2238 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2239
2240 [BZ #19444]
2241 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2242 __builtin_unreachable for default case in switch.
2243 (__ieee754_yn): Likewise.
2244 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2245 (__ieee754_ynl): Likewise.
2246 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2247 (__ieee754_ynl): Likewise.
2248 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2249 (__ieee754_ynl): Likewise.
2250
2251 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2252
2253 * manual/maint.texi: Use @{ and @}.
2254
2255 2019-01-04 Florian Weimer <fweimer@redhat.com>
2256
2257 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2258 function.
2259 (do_in_chroot_1): Call it.
2260 (run_chroot_tests):
2261 Improve error reporting in case it is not possible to create a
2262 collision for the PTY name required by the test.
2263
2264 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2265
2266 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2267 lll_wait_tid with timeout.
2268 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2269 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2270 futex_reltimed_wait_cancelable for cancelabla mode.
2271 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2272 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2273 macros.
2274 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2275 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2276 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2277 SYSCALL_CANCEL_NCS): New macro.
2278 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2279 (lll_timedwait_tid): Remove macro.
2280 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2281 Likewise.
2282 (lll_timedwait_tid): Likewise.
2283 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2284 Likewise.
2285 (lll_timedwait_tid): Likewise.
2286 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2287 Likewise.
2288 (lll_timedwait_tid): Likewise.
2289 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2290 Use INTERNAL_SYSCALL_CANCEL.
2291 * sysdeps/unix/sysv/linux/futex-internal.h
2292 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2293 instead of __pthread_{enable,disable}_asynccancel.
2294 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2295 (lll_futex_wait_cancel): New macro.
2296
2297 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2298 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2299
2300 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2301 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2302
2303 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2304 in backtrace analysis.
2305 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2306 side-effects.
2307 (tf_send): Likewise.
2308
2309 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2310 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2311 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2312 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2313 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2314 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2315 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2316 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2317 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2318 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2319 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2320 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2321 Likewise.
2322 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2323 tst-cancel-wrappers.sh.
2324 (generated): Remove tst-cancel-wrappers.out.
2325 (tst-cancel-wrappers.out): Remove rule.
2326 * nptl/tst-cancel-wrappers.sh: Remove file.
2327
2328 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2329
2330 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2331 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2332 Update.
2333
2334 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2335
2336 [BZ #23640]
2337 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2338 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2339 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2340 close-on-exec reset for adddup2 file action.
2341 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2342
2343 2019-01-03 Zack Weinberg <zackw@panix.com>
2344
2345 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2346 parameter. Only use deprecated scanf when __USE_GNU is defined
2347 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2348 than 201103L, whichever is relevant for the language being compiled.
2349
2350 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2351 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2352 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2353 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2354 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2355
2356 * libio/iovsscanf.c
2357 * libio/fwscanf.c
2358 * libio/iovswscanf.c
2359 * libio/swscanf.c
2360 * libio/vscanf.c
2361 * libio/vwscanf.c
2362 * libio/wscanf.c
2363 * stdio-common/fscanf.c
2364 * stdio-common/scanf.c
2365 * stdio-common/vfscanf.c
2366 * stdio-common/vfwscanf.c
2367 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2368 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2369 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2370 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2371 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2372 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2373 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2374 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2375 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2376 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2377 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2378 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2379 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2380 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2381 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2382
2383 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2384 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2385 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2386 not sscanf.
2387 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2388 with a preprocessor macro.
2389
2390 * stdio-common/bug21.c, stdio-common/scanf14.c:
2391 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2392 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2393 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2394 to xscanf, xfscanf, xsscanf.
2395
2396 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2397 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2398 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2399 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2400 xfscanf, xsscanf.
2401 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2402 override feature selection macros or provide definitions of u_char etc.
2403 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2404 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2405 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2406 with -std=gnu89.
2407
2408 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2409
2410 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2411 bits/termios-misc.h.
2412 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2413 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2414 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2415 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2416 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2417 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2418
2419 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2420 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2421 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2422 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2423 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2424 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2425 termios-misc.h.
2426 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2427 (sysdep_headers): Add termios-misc.h.
2428
2429 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2430 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2431 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2432
2433 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2434 termios-tcflow.h.
2435 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2436 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2437 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2438 TCSAFLUSH): Move to termios-tcflow.h.
2439 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2440 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2441 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2442 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2443
2444 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2445 termios-c_lflag.h.
2446 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2447 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2448 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2449 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2450 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2451 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2452 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2453 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2454 Likewise.
2455 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2456 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2457 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2458 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2459
2460 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2461 termios-c_cflag.h.
2462 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2463 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2464 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2465 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2466 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2467 termios-c_cflag.h.
2468 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2469 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2470 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2471 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2472
2473 [BZ #23783]
2474 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2475 termios-baud.h.
2476 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2477 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2478 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2479 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2480 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2481 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2482 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2483 __MAX_BAUD): Move to termios-baud.h.
2484 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2485 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2486 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2487 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2488 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2489
2490 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2491 termios-c_oflag.h.
2492 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2493 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2494 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2495 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2496 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2497 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2498 termios-c_oflag.h.
2499 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2500 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2501 FFR1): Likewise.
2502 [USE_MISC] (XTABS): Likewise.
2503 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2504 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2505 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2506 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2507
2508 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2509 termios-c_iflag.h.
2510 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2511 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2512 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2513 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2514 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2515 IUTF8): Move to termios-c_iflag.h.
2516 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2517 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2518 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2519 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2520
2521 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2522 termios-cc.h.
2523 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2524 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2525 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2526 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2527 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2528 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2529 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2530 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2531 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2532 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2533 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2534 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2535
2536 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2537 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2538 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2539 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2540 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2541 termios-struct.h.
2542 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2543 termios-struct.h.
2544 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2545 Likewise.
2546 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2547 Likewise.
2548 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2549 Likewise.
2550 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2551 Likewise.
2552 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2553 _HAVE_C_OSPEED): Define.
2554 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2555 _HAVE_C_OSPEED): Likewise.
2556 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2557 _HAVE_C_OSPEED): Likewise.
2558 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2559 (cfsetospeed): Check for define value instead of existence.
2560 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2561 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2562 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2563 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2564 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2565
2566 [BZ #17783]
2567 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2568 Define.
2569 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2570 (TIOCSER_TEMT): Likewise.
2571 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2572 (TEOCSER_TEMT): Likewise.
2573
2574 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2575
2576 [BZ #24011]
2577 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2578
2579 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2580
2581 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2582
2583 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2584
2585 * sysdeps/htl/pt-barrierattr-setpshared.c
2586 (pthread_barrierattr_setpshared): Add stub warning.
2587 * sysdeps/htl/pt-condattr-setpshared.c
2588 (pthread_condattr_setpshared): Likewise.
2589 * sysdeps/htl/pt-mutexattr-setpshared.c
2590 (pthread_mutexattr_setpshared): Likewise.
2591 * sysdeps/htl/pt-rwlockattr-setpshared.c
2592 (pthread_rwlockattr_setpshared): Likewise.
2593 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2594 (pthread_mutexattr_setpshared): Likewise.
2595
2596 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2597
2598 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2599 constants to match with Linux 4.20.
2600
2601 * sysdeps/mips/mips32/libm-test-ulps: Update.
2602 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2603
2604 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2605
2606 [BZ #24034]
2607 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2608 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2609 than __typeof (...) for the a_ptr variable.
2610
2611 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2612
2613 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2614 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2615 * libio/Makefile (tests): Add tst-sprintf-ub and
2616 tst-sprintf-chk-ub.
2617 (CFLAGS-tst-sprintf-ub.c): New variable.
2618 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2619 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2620 destination buffer and check for overflows in fortified mode.
2621 * libio/libioP.h (PRINTF_CHK): New macro.
2622 * libio/tst-sprintf-chk-ub.c: New file.
2623 * libio/tst-sprintf-ub.c: Likewise.
2624
2625 2019-01-02 Florian Weimer <fweimer@redhat.com>
2626
2627 [BZ #24018]
2628 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2629 failure.
2630
2631 2019-01-02 Florian Weimer <fweimer@redhat.com>
2632
2633 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2634
2635 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2636
2637 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2638 macro.
2639
2640 * sysdeps/unix/sysv/linux/netpacket/packet.h
2641 (PACKET_IGNORE_OUTGOING): New macro.
2642
2643 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2644 macro.
2645
2646 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2647 version to 4.20.
2648 (riscv_flush_icache): New syscall.
2649
2650 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2651 trailing whitespace removed.
2652 * scripts/config.guess: Update to version 2019-01-01.
2653 * scripts/config.sub: Update to version 2019-01-01.
2654 * scripts/move-if-change: Update from gnulib.
2655
2656 * NEWS: Update copyright dates.
2657 * catgets/gencat.c (print_version): Likewise.
2658 * csu/version.c (banner): Likewise.
2659 * debug/catchsegv.sh: Likewise.
2660 * debug/pcprofiledump.c (print_version): Likewise.
2661 * debug/xtrace.sh (do_version): Likewise.
2662 * elf/ldconfig.c (print_version): Likewise.
2663 * elf/ldd.bash.in: Likewise.
2664 * elf/pldd.c (print_version): Likewise.
2665 * elf/sotruss.sh: Likewise.
2666 * elf/sprof.c (print_version): Likewise.
2667 * iconv/iconv_prog.c (print_version): Likewise.
2668 * iconv/iconvconfig.c (print_version): Likewise.
2669 * locale/programs/locale.c (print_version): Likewise.
2670 * locale/programs/localedef.c (print_version): Likewise.
2671 * login/programs/pt_chown.c (print_version): Likewise.
2672 * malloc/memusage.sh (do_version): Likewise.
2673 * malloc/memusagestat.c (print_version): Likewise.
2674 * malloc/mtrace.pl: Likewise.
2675 * manual/libc.texinfo: Likewise.
2676 * nptl/version.c (banner): Likewise.
2677 * nscd/nscd.c (print_version): Likewise.
2678 * nss/getent.c (print_version): Likewise.
2679 * nss/makedb.c (print_version): Likewise.
2680 * posix/getconf.c (main): Likewise.
2681 * scripts/test-installation.pl: Likewise.
2682 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2683
2684 * All files with FSF copyright notices: Update copyright dates
2685 using scripts/update-copyrights.
2686 * locale/programs/charmap-kw.h: Regenerated.
2687 * locale/programs/locfile-kw.h: Likewise.
2688
2689 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2690
2691 * timezone/zdump.c: Update from tzcode 2018i.
2692 * timezone/zic.c: Likewise.
2693
2694 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2695
2696 regex: improve Gnulib port to AIX
2697 From the glibc point of view, this removes duplicate macro
2698 definitions and is obviously safe.
2699 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2700 * posix/regex_internal.h:
2701 (__attribute__, __attribute_warn_unused_result__):
2702 Remove; already defined elsewhere.
2703
2704 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2705
2706 [BZ #24027]
2707 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2708 copying operation. (ncopies had the wrong type, resulting in an
2709 integer wraparound and too few elements being copied.)
2710
2711 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2712
2713 [BZ #24022]
2714 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2715 <asm/syscalls.h> exists with __has_include__ before including it.
2716
2717 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2718
2719 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2720 version to 4.20.
2721
2722 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2723
2724 * hurd/lookup-retry: Include <unistd.h>.
2725 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2726 Release it on return. Handle "pid" magical lookup retry.
2727
2728 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2729
2730 [BZ #10496]
2731 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2732 (t_fmt_ampm): Likewise.
2733 * localedata/locales/aa_ER (t_fmt): Likewise.
2734 (t_fmt_ampm): Likewise.
2735 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2736 (t_fmt_ampm): Likewise.
2737 * localedata/locales/aa_ET (t_fmt): Likewise.
2738 (t_fmt_ampm): Likewise.
2739 * localedata/locales/am_ET (t_fmt): Likewise.
2740 (t_fmt_ampm): Likewise.
2741 * localedata/locales/byn_ER (t_fmt): Likewise.
2742 (t_fmt_ampm): Likewise.
2743 * localedata/locales/om_ET (t_fmt): Likewise.
2744 (t_fmt_ampm): Likewise.
2745 * localedata/locales/sid_ET (t_fmt): Likewise.
2746 (t_fmt_ampm): Likewise.
2747 * localedata/locales/so_DJ (t_fmt): Likewise.
2748 (t_fmt_ampm): Likewise.
2749 * localedata/locales/so_ET (t_fmt): Likewise.
2750 (t_fmt_ampm): Likewise.
2751 * localedata/locales/so_SO (t_fmt): Likewise.
2752 (t_fmt_ampm): Likewise.
2753 * localedata/locales/ti_ER (t_fmt): Likewise.
2754 (t_fmt_ampm): Likewise.
2755 * localedata/locales/ti_ET (t_fmt): Likewise.
2756 (t_fmt_ampm): Likewise.
2757 * localedata/locales/tig_ER (t_fmt): Likewise.
2758 (t_fmt_ampm): Likewise.
2759 * localedata/locales/wal_ET (t_fmt): Likewise.
2760 (t_fmt_ampm): Likewise.
2761
2762 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2763 * localedata/locales/ar_IN (t_fmt): Likewise.
2764 * localedata/locales/bhb_IN (t_fmt): Likewise.
2765 * localedata/locales/bho_IN (t_fmt): Likewise.
2766 * localedata/locales/bi_VU (t_fmt): Likewise.
2767 * localedata/locales/bn_BD (t_fmt): Likewise.
2768 * localedata/locales/bn_IN (t_fmt): Likewise.
2769 * localedata/locales/brx_IN (t_fmt): Likewise.
2770 * localedata/locales/doi_IN (t_fmt): Likewise.
2771 * localedata/locales/en_HK (t_fmt): Likewise.
2772 (t_fmt_ampm): Likewise.
2773 * localedata/locales/en_IN (t_fmt): Likewise.
2774 * localedata/locales/en_PH (t_fmt): Likewise.
2775 * localedata/locales/gu_IN (t_fmt): Likewise.
2776 * localedata/locales/hi_IN (t_fmt): Likewise.
2777 * localedata/locales/hif_FJ (t_fmt): Likewise.
2778 * localedata/locales/hne_IN (t_fmt): Likewise.
2779 * localedata/locales/kn_IN (t_fmt): Likewise.
2780 * localedata/locales/kok_IN (t_fmt): Likewise.
2781 * localedata/locales/ks_IN (t_fmt): Likewise.
2782 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2783 * localedata/locales/mag_IN (t_fmt): Likewise.
2784 * localedata/locales/mai_IN (t_fmt): Likewise.
2785 * localedata/locales/mjw_IN (t_fmt): Likewise.
2786 * localedata/locales/ml_IN (t_fmt): Likewise.
2787 * localedata/locales/mni_IN (t_fmt): Likewise.
2788 * localedata/locales/mr_IN (t_fmt): Likewise.
2789 * localedata/locales/ms_MY (t_fmt): Likewise.
2790 * localedata/locales/pa_IN (t_fmt): Likewise.
2791 * localedata/locales/raj_IN (t_fmt): Likewise.
2792 * localedata/locales/sa_IN (t_fmt): Likewise.
2793 * localedata/locales/sat_IN (t_fmt): Likewise.
2794 * localedata/locales/sd_IN (t_fmt): Likewise.
2795 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2796 * localedata/locales/tcy_IN (t_fmt): Likewise.
2797 * localedata/locales/the_NP (t_fmt): Likewise.
2798 * localedata/locales/to_TO (t_fmt): Likewise.
2799 * localedata/locales/ur_IN (t_fmt): Likewise.
2800
2801 * localedata/locales/hif_FJ (d_t_fmt): Set to
2802 "%A %d %b %Y %I:%M:%S %p".
2803 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2804
2805 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2806 * localedata/locales/ar_BH (t_fmt): Likewise.
2807 * localedata/locales/ar_DZ (t_fmt): Likewise.
2808 * localedata/locales/ar_EG (t_fmt): Likewise.
2809 * localedata/locales/ar_IQ (t_fmt): Likewise.
2810 * localedata/locales/ar_JO (t_fmt): Likewise.
2811 * localedata/locales/ar_KW (t_fmt): Likewise.
2812 * localedata/locales/ar_LB (t_fmt): Likewise.
2813 * localedata/locales/ar_LY (t_fmt): Likewise.
2814 * localedata/locales/ar_OM (t_fmt): Likewise.
2815 * localedata/locales/ar_QA (t_fmt): Likewise.
2816 * localedata/locales/ar_SD (t_fmt): Likewise.
2817 * localedata/locales/ar_SS (t_fmt): Likewise.
2818 * localedata/locales/ar_SY (t_fmt): Likewise.
2819 * localedata/locales/ar_TN (t_fmt): Likewise.
2820 * localedata/locales/ar_YE (t_fmt): Likewise.
2821
2822 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2823 (t_fmt_ampm): Likewise.
2824 * localedata/locales/gez_ET (t_fmt): Likewise.
2825 (t_fmt_ampm): Likewise.
2826
2827 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2828 (t_fmt_ampm): Likewise.
2829 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2830
2831 * localedata/locales/zh_HK (t_fmt):
2832 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2833
2834 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2835 because this locale does not use the 12-hour clock.
2836 (t_fmt): Set to "%Z %H:%M:%S".
2837 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2838
2839 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2840 because this locale does not use the 12-hour clock.
2841 (t_fmt): Set to "%H:%M:%S %Z".
2842 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2843
2844 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2845 because this locale does not use the 12-hour clock.
2846 (t_fmt): Set to "%T".
2847 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2848 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2849
2850 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2851 because this locale does not use the 12-hour clock.
2852 (t_fmt): Set to "%H:%M:%S %Z".
2853 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2854
2855 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2856 because this locale does not use the 12-hour clock.
2857 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2858 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2859
2860 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2861
2862 [BZ #10496]
2863 [BZ #23724]
2864 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2865 (t_fmt_ampm): Likewise.
2866 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2867 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2868 (d_fmt): Set to "%-d.%-m.%y".
2869
2870 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2871
2872 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2873 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2874 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2875 Likewise.
2876 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2877 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2878 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2879 function.
2880 * support/blob_repeat.c (check_mul_overflow_size_t,
2881 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2882
2883 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2884
2885 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2886
2887 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2888
2889 regex: simplify Gnulib port
2890 This simplifies the code, by removing stuff intended for porting
2891 to Gnulib but no longer needed there.
2892 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2893 uses of libc_hidden_def, weak_alias.
2894 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2895 _Restrict_ except for public-facing headers.
2896 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2897 Remove; already defined elsewhere.
2898 * posix/regex.c, posix/regex_internal.h:
2899 Use __GNUC_PREREQ instead of rolling our own.
2900 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2901
2902 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2903
2904 * benchtests/bench-strlen.c (generic_strlen): New function.
2905 (memchr_strlen): New function.
2906
2907 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2908
2909 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2910 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2911 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2912
2913 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2914
2915 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2916
2917 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2918
2919 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2920 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2921 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2922 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2923 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2924 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2925 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2926
2927 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2928
2929 [BZ #24023]
2930 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2931 PLT reference in libc.so.
2932 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2933 _Q_lltoq and _Q_qtod PLT references in libc.so.
2934
2935 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2936
2937 * benchtests/bench-memchr.c: Cleanup defines.
2938 * benchtests/bench-memcmp.c: Likewise.
2939 * benchtests/bench-memset.c: Likewise.
2940 * benchtests/bench-memset-large.c: Likewise.
2941 * benchtests/bench-memset-walk.c: Likewise.
2942 * benchtests/bench-stpcpy.c: Likewise.
2943 * benchtests/bench-stpncpy.c: Likewise.
2944 * benchtests/bench-strcat.c: Likewise.
2945 * benchtests/bench-strchr.c: Likewise.
2946 * benchtests/bench-strcmp.c: Likewise.
2947 * benchtests/bench-strcpy.c: Likewise.
2948 * benchtests/bench-strcspn.c: Likewise.
2949 * benchtests/bench-string.h: Likewise.
2950 * benchtests/bench-strlen.c: Likewise.
2951 * benchtests/bench-strncat.c: Likewise.
2952 * benchtests/bench-strncmp.c: Likewise.
2953 * benchtests/bench-strncpy.c: Likewise.
2954 * benchtests/bench-strnlen.c: Likewise.
2955 * benchtests/bench-strpbrk.c: Likewise.
2956 * benchtests/bench-strrchr.c: Likewise.
2957 * benchtests/bench-strspn.c: Likewise.
2958
2959 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2960
2961 * stdlib/longlong.h: Update from GCC.
2962
2963 [BZ #23993]
2964 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2965 * configure: Regenerated.
2966 * manual/install.texi (Tools for Compilation): Update minimum GCC
2967 version.
2968 * INSTALL: Regenerated.
2969
2970 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2971
2972 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2973
2974 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2975
2976 * malloc/malloc.c (mremap_chunk): Additional checks.
2977
2978 2018-12-21 Mao Han <han_mao@c-sky.com>
2979
2980 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2981 * scripts/build-many-glibcs.py: Add C-SKY targets.
2982 * sysdeps/csky/Implies: New file.
2983 * sysdeps/csky/Makefile: Likewise.
2984 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2985 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2986 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2987 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2988 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2989 * sysdeps/csky/abiv2/memmove.S: Likewise.
2990 * sysdeps/csky/abiv2/memset.S: Likewise.
2991 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2992 * sysdeps/csky/abiv2/start.S: Likewise.
2993 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2994 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2995 * sysdeps/csky/abiv2/strlen.S: Likewise.
2996 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2997 * sysdeps/csky/abort-instr.h: Likewise.
2998 * sysdeps/csky/atomic-machine.h: Likewise.
2999 * sysdeps/csky/bits/endian.h: Likewise.
3000 * sysdeps/csky/bits/fenv.h: Likewise.
3001 * sysdeps/csky/bits/link.h: Likewise.
3002 * sysdeps/csky/bits/setjmp.h: Likewise.
3003 * sysdeps/csky/bsd-_setjmp.S: Likewise.
3004 * sysdeps/csky/bsd-setjmp.S: Likewise.
3005 * sysdeps/csky/configure: Likewise.
3006 * sysdeps/csky/configure.ac: Likewise.
3007 * sysdeps/csky/dl-machine.h: Likewise.
3008 * sysdeps/csky/dl-procinfo.c: Likewise.
3009 * sysdeps/csky/dl-procinfo.h: Likewise.
3010 * sysdeps/csky/dl-sysdep.h: Likewise.
3011 * sysdeps/csky/dl-tls.h: Likewise.
3012 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3013 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3014 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3015 * sysdeps/csky/fpu/fegetenv.c: Likewise.
3016 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3017 * sysdeps/csky/fpu/fegetmode.c: Likewise.
3018 * sysdeps/csky/fpu/fegetround.c: Likewise.
3019 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3020 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3021 * sysdeps/csky/fpu/fenv_private.h: Likewise.
3022 * sysdeps/csky/fpu/fesetenv.c: Likewise.
3023 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3024 * sysdeps/csky/fpu/fesetmode.c: Likewise.
3025 * sysdeps/csky/fpu/fesetround.c: Likewise.
3026 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3027 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3028 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3029 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3030 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3031 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3032 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3033 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3034 * sysdeps/csky/fpu_control.h: Likewise.
3035 * sysdeps/csky/gccframe.h: Likewise.
3036 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3037 * sysdeps/csky/ldsodefs.h: Likewise.
3038 * sysdeps/csky/libc-tls.c: Likewise.
3039 * sysdeps/csky/linkmap.h: Likewise.
3040 * sysdeps/csky/machine-gmon.h: Likewise.
3041 * sysdeps/csky/memusage.h: Likewise.
3042 * sysdeps/csky/nofpu/Implies: Likewise.
3043 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3044 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3045 * sysdeps/csky/nptl/Makefile: Likewise.
3046 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3047 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3048 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3049 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3050 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3051 * sysdeps/csky/nptl/tls.h: Likewise.
3052 * sysdeps/csky/preconfigure: Likewise.
3053 * sysdeps/csky/sfp-machine.h: Likewise.
3054 * sysdeps/csky/sotruss-lib.c: Likewise.
3055 * sysdeps/csky/stackinfo.h: Likewise.
3056 * sysdeps/csky/sysdep.h: Likewise.
3057 * sysdeps/csky/tininess.h: Likewise.
3058 * sysdeps/csky/tst-audit.h: Likewise.
3059 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3060 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3061 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3062 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3063 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3064 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3065 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3066 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3067 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3068 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3069 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3070 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3071 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3072 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3073 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3074 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3075 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3076 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3077 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3078 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3079 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3080 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3081 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3082 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3083 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3084 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3085 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3086 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3087 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3088 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3089 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3090 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3091 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3092 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3093 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3094 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3095 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3096 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3097 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3098 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3099 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3100 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3101 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3102 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3103
3104 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3105
3106 * include/time.h (__difftime64): Add.
3107 * time/difftime.c (subtract): convert to 64-bit time.
3108 * time/difftime.c (__difftime64): Add.
3109 * time/difftime.c (__difftime): Wrap around __difftime64.
3110
3111 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3112
3113 * manual/examples/add.c: Remove redundant "if not".
3114 * manual/examples/argp-ex1.c: Likewise.
3115 * manual/examples/argp-ex2.c: Likewise.
3116 * manual/examples/argp-ex3.c: Likewise.
3117 * manual/examples/argp-ex4.c: Likewise.
3118 * manual/examples/atexit.c: Likewise.
3119 * manual/examples/db.c: Likewise.
3120 * manual/examples/dir.c: Likewise.
3121 * manual/examples/dir2.c: Likewise.
3122 * manual/examples/execinfo.c: Likewise.
3123 * manual/examples/filecli.c: Likewise.
3124 * manual/examples/filesrv.c: Likewise.
3125 * manual/examples/fmtmsgexpl.c: Likewise.
3126 * manual/examples/genpass.c: Likewise.
3127 * manual/examples/inetcli.c: Likewise.
3128 * manual/examples/inetsrv.c: Likewise.
3129 * manual/examples/isockad.c: Likewise.
3130 * manual/examples/longopt.c: Likewise.
3131 * manual/examples/memopen.c: Likewise.
3132 * manual/examples/memstrm.c: Likewise.
3133 * manual/examples/mkdirent.c: Likewise.
3134 * manual/examples/mkfsock.c: Likewise.
3135 * manual/examples/mkisock.c: Likewise.
3136 * manual/examples/mygetpass.c: Likewise.
3137 * manual/examples/pipe.c: Likewise.
3138 * manual/examples/popen.c: Likewise.
3139 * manual/examples/rprintf.c: Likewise.
3140 * manual/examples/search.c: Likewise.
3141 * manual/examples/select.c: Likewise.
3142 * manual/examples/setjmp.c: Likewise.
3143 * manual/examples/sigh1.c: Likewise.
3144 * manual/examples/sigusr.c: Likewise.
3145 * manual/examples/stpcpy.c: Likewise.
3146 * manual/examples/strdupa.c: Likewise.
3147 * manual/examples/strftim.c: Likewise.
3148 * manual/examples/subopt.c: Likewise.
3149 * manual/examples/swapcontext.c: Likewise.
3150 * manual/examples/termios.c: Likewise.
3151 * manual/examples/testopt.c: Likewise.
3152 * manual/examples/testpass.c: Likewise.
3153 * manual/examples/timeval_subtract.c: Likewise.
3154
3155 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3156
3157 * sysdeps/x86/fpu/math_private.h: New file.
3158 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3159
3160 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3161 definition.
3162 (cosh): Likewise.
3163 (tanh): Likewise.
3164
3165 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3166
3167 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3168 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3169 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3170 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3171 fields.
3172 (_dl_show_auxv): Give a special treatment to
3173 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3174 and AT_L3_CACHEGEOMETRY.
3175 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3176 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3177 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3178 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3179
3180 2018-12-19 Andreas Schwab <schwab@suse.de>
3181
3182 * nscd/connections.c (check_use): Don't abort on invalid len.
3183
3184 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3185
3186 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3187 values in the 64bit value cases.
3188
3189 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3190
3191 * include/time.h
3192 (__ctime64_r): Add.
3193 * time/ctime_r.c
3194 (__ctime64_r): Add.
3195 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3196
3197 * include/time.h
3198 (__ctime64): Add.
3199 * time/gmtime.c
3200 (__ctime64): Add.
3201 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3202
3203 * include/time.h
3204 (__gmtime64_r): Add.
3205 * time/gmtime.c
3206 (__gmtime64_r): Add.
3207 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3208
3209 * include/time.h
3210 (__gmtime64): Add.
3211 * time/gmtime.c
3212 (__gmtime64): Add.
3213 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3214
3215 * include/time.h
3216 (__localtime64_r): Add.
3217 * time/localtime.c
3218 (__localtime64_r): Add.
3219 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3220
3221 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3222
3223 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3224 kernel_sigction definition.
3225
3226 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3227
3228 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3229
3230 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3231 __syscall_rt_sigaction.
3232 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3233 (kernel_sigaction): Use Linux generic defintion.
3234 (STUB): Define.
3235 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3236 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3237 (__syscall_rt_sigaction): Remove implementation.
3238 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3239 hidden.
3240 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3241 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3242 INTERNAL_SYSCALL): Remove definitions.
3243 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3244 action and signal set size.
3245 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3246 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3247
3248 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3249 James Clarke <jrtc27@jrtc27.com>
3250
3251 [BZ #23967]
3252 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3253 Define if SA_RESTORER is defined.
3254 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3255 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3256 already defined.
3257 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3258 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3259 definitions.
3260 (HAS_SA_RESTORER): Define.
3261 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3262 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3263 (HAS_SA_RESTORER): Define.
3264 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3265 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3266 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3267 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3268 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3269
3270 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3271
3272 * sysdeps/unix/sysv/linux/kernel-features.h
3273 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3274 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3275 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3276 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3277 (__ASSUME_ST_INO_64_BIT): Likewise.
3278 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3279 <kernel-features.h>.
3280 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3281 Remove conditional code.
3282 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3283 <kernel-features.h>.
3284 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3285 Remove conditional code.
3286 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3287 <kernel-features.h>.
3288 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3289 Remove conditional code.
3290 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3291 <kernel-features.h>.
3292 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3293 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3294
3295 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3296
3297 * sysdeps/s390/multiarch/ifunc-resolve.h
3298 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3299 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3300 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3301 Delete macro definition.
3302 (s390_libc_ifunc_init): Rename to
3303 s390_libc_ifunc_expr_stfle_init.
3304 * sysdeps/s390/bzero: Use
3305 s390_libc_ifunc_expr_stfle_init instead of
3306 s390_libc_ifunc_init.
3307 * sysdeps/s390/memcmp.c: Likewise.
3308 * sysdeps/s390/memcpy.c: Likewise.
3309 * sysdeps/s390/mempcpy.c: Likewise.
3310 * sysdeps/s390/memset.c: Likewise.
3311
3312 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3313
3314 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3315 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3316
3317 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3318
3319 * sysdeps/s390/multiarch/Makefile
3320 (sysdep_routines): Remove wmemcmp variants.
3321 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3322 * sysdeps/s390/multiarch/ifunc-impl-list.c
3323 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3324 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3325 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3326 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3327 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3328 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3329 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3330 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3331
3332 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3333
3334 * sysdeps/s390/multiarch/Makefile
3335 (sysdep_routines): Remove wmemset variants.
3336 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3337 * sysdeps/s390/multiarch/ifunc-impl-list.c
3338 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3339 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3340 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3341 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3342 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3343 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3344 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3345 * sysdeps/s390/ifunc-wmemset.h: New file.
3346
3347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3348
3349 * sysdeps/s390/multiarch/Makefile
3350 (sysdep_routines): Remove wmemchr variants.
3351 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3352 * sysdeps/s390/multiarch/ifunc-impl-list.c
3353 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3354 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3355 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3356 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3357 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3358 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3359 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3360 * sysdeps/s390/ifunc-wmemchr.h: New file.
3361
3362 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3363
3364 * sysdeps/s390/multiarch/Makefile
3365 (sysdep_routines): Remove wcscspn variants.
3366 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3367 * sysdeps/s390/multiarch/ifunc-impl-list.c
3368 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3369 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3370 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3371 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3372 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3373 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3374 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3375 * sysdeps/s390/ifunc-wcscspn.h: New file.
3376
3377 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3378
3379 * sysdeps/s390/multiarch/Makefile
3380 (sysdep_routines): Remove wcspbrk variants.
3381 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3382 * sysdeps/s390/multiarch/ifunc-impl-list.c
3383 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3384 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3385 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3386 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3387 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3388 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3389 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3390 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3391
3392 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3393
3394 * sysdeps/s390/multiarch/Makefile
3395 (sysdep_routines): Remove wcsspn variants.
3396 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3397 * sysdeps/s390/multiarch/ifunc-impl-list.c
3398 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3399 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3400 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3401 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3402 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3403 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3404 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3405 * sysdeps/s390/ifunc-wcsspn.h: New file.
3406
3407 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3408
3409 * sysdeps/s390/multiarch/Makefile
3410 (sysdep_routines): Remove wcsrchr variants.
3411 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3412 * sysdeps/s390/multiarch/ifunc-impl-list.c
3413 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3414 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3415 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3416 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3417 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3418 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3419 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3420 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3421
3422 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3423
3424 * sysdeps/s390/multiarch/Makefile
3425 (sysdep_routines): Remove wcschrnul variants.
3426 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3427 * sysdeps/s390/multiarch/ifunc-impl-list.c
3428 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3429 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3430 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3431 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3432 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3433 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3434 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3435 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3436
3437 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3438
3439 * sysdeps/s390/multiarch/Makefile
3440 (sysdep_routines): Remove wcschr variants.
3441 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3442 * sysdeps/s390/multiarch/ifunc-impl-list.c
3443 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3444 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3445 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3446 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3447 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3448 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3449 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3450 * sysdeps/s390/ifunc-wcschr.h: New file.
3451
3452 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3453
3454 * sysdeps/s390/multiarch/Makefile
3455 (sysdep_routines): Remove wcsncmp variants.
3456 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3457 * sysdeps/s390/multiarch/ifunc-impl-list.c
3458 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3459 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3460 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3461 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3462 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3463 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3464 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3465 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3466
3467 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3468
3469 * sysdeps/s390/multiarch/Makefile
3470 (sysdep_routines): Remove wcscmp variants.
3471 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3472 * sysdeps/s390/multiarch/ifunc-impl-list.c
3473 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3474 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3475 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3476 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3477 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3478 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3479 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3480 * sysdeps/s390/ifunc-wcscmp.h: New file.
3481
3482 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3483
3484 * sysdeps/s390/multiarch/Makefile
3485 (sysdep_routines): Remove wcsncat variants.
3486 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3487 * sysdeps/s390/multiarch/ifunc-impl-list.c
3488 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3489 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3490 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3491 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3492 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3493 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3494 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3495 * sysdeps/s390/ifunc-wcsncat.h: New file.
3496
3497 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3498
3499 * sysdeps/s390/multiarch/Makefile
3500 (sysdep_routines): Remove wcscat variants.
3501 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3502 * sysdeps/s390/multiarch/ifunc-impl-list.c
3503 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3504 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3505 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3506 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3507 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3508 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3509 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3510 * sysdeps/s390/ifunc-wcscat.h: New file.
3511
3512 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3513
3514 * sysdeps/s390/multiarch/Makefile
3515 (sysdep_routines): Remove wcpncpy variants.
3516 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3517 * sysdeps/s390/multiarch/ifunc-impl-list.c
3518 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3519 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3520 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3521 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3522 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3523 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3524 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3525 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3526
3527 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3528
3529 * sysdeps/s390/multiarch/Makefile
3530 (sysdep_routines): Remove wcsncpy variants.
3531 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3532 * sysdeps/s390/multiarch/ifunc-impl-list.c
3533 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3534 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3535 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3536 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3537 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3538 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3539 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3540 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3541
3542 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3543
3544 * sysdeps/s390/multiarch/Makefile
3545 (sysdep_routines): Remove wcpcpy variants.
3546 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3547 * sysdeps/s390/multiarch/ifunc-impl-list.c
3548 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3549 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3550 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3551 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3552 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3553 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3554 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3555 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3556
3557 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3558
3559 * sysdeps/s390/multiarch/Makefile
3560 (sysdep_routines): Remove wcscpy variants.
3561 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3562 * sysdeps/s390/multiarch/ifunc-impl-list.c
3563 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3564 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3565 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3566 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3567 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3568 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3569 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3570 * sysdeps/s390/ifunc-wcscpy.h: New file.
3571
3572 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3573
3574 * sysdeps/s390/multiarch/Makefile
3575 (sysdep_routines): Remove wcsnlen variants.
3576 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3577 * sysdeps/s390/multiarch/ifunc-impl-list.c
3578 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3579 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3580 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3581 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3582 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3583 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3584 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3585 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3586
3587 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3588
3589 * sysdeps/s390/multiarch/Makefile
3590 (sysdep_routines): Remove wcslen variants.
3591 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3592 * sysdeps/s390/multiarch/ifunc-impl-list.c
3593 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3594 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3595 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3596 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3597 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3598 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3599 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3600 * sysdeps/s390/ifunc-wcslen.h: New file.
3601
3602 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3603
3604 * sysdeps/s390/multiarch/Makefile
3605 (sysdep_routines): Remove memrchr variants.
3606 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3607 * sysdeps/s390/multiarch/ifunc-impl-list.c
3608 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3609 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3610 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3611 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3612 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3613 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3614 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3615 * sysdeps/s390/ifunc-memrchr.h: New file.
3616
3617 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3618
3619 * sysdeps/s390/multiarch/Makefile
3620 (sysdep_routines): Remove memccpy variants.
3621 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3622 * sysdeps/s390/multiarch/ifunc-impl-list.c
3623 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3624 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3625 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3626 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3627 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3628 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3629 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3630 * sysdeps/s390/ifunc-memccpy.h: New file.
3631
3632 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3633
3634 * sysdeps/s390/multiarch/Makefile
3635 (sysdep_routines): Remove rawmemchr variants.
3636 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3637 * sysdeps/s390/multiarch/ifunc-impl-list.c
3638 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3639 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3640 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3641 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3642 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3643 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3644 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3645 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3646
3647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3648
3649 * sysdeps/s390/multiarch/Makefile
3650 (sysdep_routines): Remove memchr variants.
3651 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3652 * sysdeps/s390/multiarch/ifunc-impl-list.c
3653 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3654 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3655 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3656 * sysdeps/s390/multiarch/memchr.c: Move to ...
3657 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3658 * sysdeps/s390/ifunc-memchr.h: New file.
3659 * sysdeps/s390/s390-64/memchr.S: Move to ...
3660 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3661 for 31/64bit and ifunc handling.
3662 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3663 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3664 * sysdeps/s390/s390-32/memchr.S: Likewise.
3665
3666 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3667
3668 * sysdeps/s390/multiarch/Makefile
3669 (sysdep_routines): Remove strcspn variants.
3670 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3671 * sysdeps/s390/multiarch/ifunc-impl-list.c
3672 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3673 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3674 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3675 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3676 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3677 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3678 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3679 * sysdeps/s390/ifunc-strcspn.h: New file.
3680
3681 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3682
3683 * sysdeps/s390/multiarch/Makefile
3684 (sysdep_routines): Remove strpbrk variants.
3685 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3686 * sysdeps/s390/multiarch/ifunc-impl-list.c
3687 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3688 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3689 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3690 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3691 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3692 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3693 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3694 * sysdeps/s390/ifunc-strpbrk.h: New file.
3695
3696 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3697
3698 * sysdeps/s390/multiarch/Makefile
3699 (sysdep_routines): Remove strspn variants.
3700 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3701 * sysdeps/s390/multiarch/ifunc-impl-list.c
3702 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3703 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3704 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3705 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3706 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3707 * sysdeps/s390/multiarch/strspn.c: Move to ...
3708 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3709 * sysdeps/s390/ifunc-strspn.h: New file.
3710
3711 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3712
3713 * sysdeps/s390/multiarch/Makefile
3714 (sysdep_routines): Remove strrchr variants.
3715 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3716 * sysdeps/s390/multiarch/ifunc-impl-list.c
3717 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3718 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3719 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3720 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3721 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3722 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3723 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3724 * sysdeps/s390/ifunc-strrchr.h: New file.
3725
3726 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3727
3728 * sysdeps/s390/multiarch/Makefile
3729 (sysdep_routines): Remove strchrnul variants.
3730 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3731 * sysdeps/s390/multiarch/ifunc-impl-list.c
3732 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3733 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3734 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3735 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3736 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3737 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3738 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3739 * sysdeps/s390/ifunc-strchrnul.h: New file.
3740
3741 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3742
3743 * sysdeps/s390/multiarch/Makefile
3744 (sysdep_routines): Remove strchr variants.
3745 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3746 * sysdeps/s390/multiarch/ifunc-impl-list.c
3747 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3748 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3749 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3750 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3751 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3752 * sysdeps/s390/multiarch/strchr.c: Move to ...
3753 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3754 * sysdeps/s390/ifunc-strchr.h: New file.
3755
3756 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3757
3758 * sysdeps/s390/multiarch/Makefile
3759 (sysdep_routines): Remove strncmp variants.
3760 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3761 * sysdeps/s390/multiarch/ifunc-impl-list.c
3762 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3763 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3764 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3765 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3766 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3767 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3768 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3769 * sysdeps/s390/ifunc-strncmp.h: New file.
3770
3771 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3772
3773 * sysdeps/s390/multiarch/Makefile
3774 (sysdep_routines): Remove strcmp variants.
3775 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3776 * sysdeps/s390/multiarch/ifunc-impl-list.c
3777 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3778 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3779 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3780 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3781 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3782 * sysdeps/s390/ifunc-strcmp.h: New file.
3783 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3784 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3785 for 31/64bit and ifunc handling.
3786 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3787 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3788 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3789
3790 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3791
3792 * sysdeps/s390/multiarch/Makefile
3793 (sysdep_routines): Remove strncat variants.
3794 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3795 * sysdeps/s390/multiarch/ifunc-impl-list.c
3796 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3797 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3798 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3799 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3800 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3801 * sysdeps/s390/multiarch/strncat.c: Move to ...
3802 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3803 * sysdeps/s390/ifunc-strncat.h: New file.
3804
3805 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3806
3807 * sysdeps/s390/multiarch/Makefile
3808 (sysdep_routines): Remove strcat variants.
3809 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3810 * sysdeps/s390/multiarch/ifunc-impl-list.c
3811 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3812 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3813 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3814 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3815 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3816 * sysdeps/s390/multiarch/strcat.c: Move to ...
3817 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3818 * sysdeps/s390/ifunc-strcat.h: New file.
3819
3820 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3821
3822 * sysdeps/s390/multiarch/Makefile
3823 (sysdep_routines): Remove stpncpy variants.
3824 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3825 * sysdeps/s390/multiarch/ifunc-impl-list.c
3826 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3827 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3828 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3829 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3830 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3831 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3832 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3833 * sysdeps/s390/ifunc-stpncpy.h: New file.
3834
3835 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3836
3837 * sysdeps/s390/multiarch/Makefile
3838 (sysdep_routines): Remove strncpy variants.
3839 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3840 * sysdeps/s390/multiarch/ifunc-impl-list.c
3841 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3842 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3843 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3844 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3845 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3846 * sysdeps/s390/ifunc-strncpy.h: New file.
3847 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3848 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3849 and adjust ifunc handling.
3850 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3851 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3852 and adjust ifunc handling.
3853 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3854 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3855
3856 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3857
3858 * sysdeps/s390/multiarch/Makefile
3859 (sysdep_routines): Remove stpcpy variants.
3860 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3861 * sysdeps/s390/multiarch/ifunc-impl-list.c
3862 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3863 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3864 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3865 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3866 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3867 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3868 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3869 * sysdeps/s390/ifunc-stpcpy.h: New file.
3870
3871 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3872
3873 * sysdeps/s390/multiarch/Makefile
3874 (sysdep_routines): Remove strcpy variants.
3875 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3876 * sysdeps/s390/multiarch/ifunc-impl-list.c
3877 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3878 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3879 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3880 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3881 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3882 * sysdeps/s390/ifunc-strcpy.h: New file.
3883 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3884 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3885 for 31/64bit and ifunc handling.
3886 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3887 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3888 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3889
3890 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3891
3892 * sysdeps/s390/multiarch/Makefile
3893 (sysdep_routines): Remove strnlen variants.
3894 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3895 * sysdeps/s390/multiarch/ifunc-impl-list.c
3896 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3897 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3898 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3899 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3900 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3901 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3902 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3903 * sysdeps/s390/ifunc-strnlen.h: New file.
3904
3905 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3906
3907 * sysdeps/s390/multiarch/Makefile
3908 (sysdep_routines): Remove strlen variants.
3909 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3910 * sysdeps/s390/multiarch/ifunc-impl-list.c
3911 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3912 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3913 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3914 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3915 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3916 * sysdeps/s390/multiarch/strlen.c: Move to ...
3917 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3918 * sysdeps/s390/ifunc-strlen.h: New file.
3919
3920 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3921
3922 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3923 * sysdeps/s390/multiarch/ifunc-impl-list.c
3924 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3925 * sysdeps/s390/ifunc-memmem.h: New file.
3926 * sysdeps/s390/memmem.c: Likewise.
3927 * sysdeps/s390/memmem-c.c: Likewise.
3928 * sysdeps/s390/memmem-vx.c: Likewise.
3929
3930 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3931
3932 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3933 * sysdeps/s390/multiarch/ifunc-impl-list.c
3934 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3935 * sysdeps/s390/ifunc-strstr.h: New file.
3936 * sysdeps/s390/strstr.c: Likewise.
3937 * sysdeps/s390/strstr-c.c: Likewise.
3938 * sysdeps/s390/strstr-vx.c: Likewise.
3939
3940 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3941
3942 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3943 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3944 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3945 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3946 New defines.
3947 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3948 * sysdeps/s390/memmove-c.c: New file.
3949 * sysdeps/s390/memmove.c: Likewise.
3950 * sysdeps/s390/multiarch/ifunc-impl-list.c
3951 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3952
3953 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3954
3955 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3956 * sysdeps/s390/configure.ac: Add check for z13 support.
3957 * sysdeps/s390/configure: Regenerated.
3958
3959 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3960
3961 * sysdeps/s390/memcopy.h: New file.
3962
3963 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3964
3965 * sysdeps/s390/s390-32/bcopy.S: Remove.
3966 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3967
3968 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3969
3970 * sysdeps/s390/ifunc-memcpy.h: New File.
3971 * sysdeps/s390/memcpy.S: Move to ...
3972 * sysdeps/s390/memcpy-z900.S ... here.
3973 Move implementations from memcpy-s390x.s to here.
3974 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3975 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3976 Remove memcpy/mempcpy variants.
3977 * sysdeps/s390/Makefile (sysdep_routines):
3978 Add memcpy/mempcpy variants.
3979 * sysdeps/s390/multiarch/ifunc-impl-list.c
3980 (__libc_ifunc_impl_list): Adjust ifunc variants for
3981 memcpy and mempcpy.
3982 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3983 to ...
3984 * sysdeps/s390/memcpy.c: ... here.
3985 Adjust ifunc variants for memcpy.
3986 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3987 * sysdeps/s390/mempcpy.c: ... here.
3988 Adjust ifunc variants for mempcpy.
3989 * sysdeps/s390/mempcpy.S: Delete file.
3990
3991 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3992
3993 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3994 * sysdeps/s390/memcpy.S: ... here.
3995 Adjust to be usable for 31/64bit.
3996 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3997 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3998 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3999 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4000 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
4001 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
4002 Adjust to be usable for 31/64bit.
4003 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
4004 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
4005 * sysdeps/s390/multiarch/memcpy.c: ... here.
4006 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
4007
4008 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4009
4010 * sysdeps/s390/ifunc-memcmp.h: New File.
4011 * sysdeps/s390/memcmp.S: Move to ...
4012 * sysdeps/s390/memcmp-z900.S ... here.
4013 Move implementations from memcmp-s390x.s to here.
4014 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4015 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4016 Remove memcmp variants.
4017 * sysdeps/s390/Makefile (sysdep_routines):
4018 Add memcmp variants.
4019 * sysdeps/s390/multiarch/ifunc-impl-list.c
4020 (__libc_ifunc_impl_list): Adjust ifunc variants for
4021 memcmp.
4022 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4023 to ...
4024 * sysdeps/s390/memcmp.c: ... here.
4025 Adjust ifunc variants for memcmp.
4026
4027 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4028
4029 * sysdeps/s390/s390-64/memcmp.S: Move to ...
4030 * sysdeps/s390/memcmp.S: ... here.
4031 Adjust to be usable for 31/64bit.
4032 * sysdeps/s390/s390-32/memcmp.S: Delete File.
4033 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4034 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4035 Remove memcmp.
4036 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4037 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4038 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4039 Adjust to be usable for 31/64bit.
4040 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4041 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4042 * sysdeps/s390/multiarch/memcmp.c: ... here.
4043 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4044
4045 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4046
4047 * sysdeps/s390/s390-32/bzero.S: Delete file.
4048 * sysdeps/s390/s390-64/bzero.S: Likewise.
4049 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4050 * sysdeps/s390/bzero.c: New file.
4051 * sysdeps/s390/memset-z900.S: Add bzero entry points.
4052 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4053 * sysdeps/s390/multiarch/ifunc-impl-list.c
4054 (__libc_ifunc_impl_list): Add bzero ifunc variants.
4055
4056 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4057
4058 * sysdeps/s390/ifunc-memset.h: New File.
4059 * sysdeps/s390/memset.S: Move to ...
4060 * sysdeps/s390/memset-z900.S ... here.
4061 Move implementations from memset-s390x.s to here.
4062 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4063 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4064 Remove memset variants.
4065 * sysdeps/s390/Makefile (sysdep_routines):
4066 Add memset variants.
4067 * sysdeps/s390/multiarch/ifunc-impl-list.c
4068 (__libc_ifunc_impl_list): Adjust ifunc variants for
4069 memset.
4070 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4071 to ...
4072 * sysdeps/s390/memset.c: ... here.
4073 Adjust ifunc variants for memset.
4074
4075 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4076
4077 * sysdeps/s390/s390-64/memset.S: Move to ...
4078 * sysdeps/s390/memset.S: ... here.
4079 Adjust to be usable for 31/64bit.
4080 * sysdeps/s390/s390-32/memset.S: Delete File.
4081 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4082 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4083 Remove memset.
4084 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4085 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4086 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4087 Adjust to be usable for 31/64bit.
4088 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4089 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4090 * sysdeps/s390/multiarch/memset.c: ... here.
4091 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4092
4093 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4094
4095 * sysdeps/s390/multiarch/ifunc-resolve.h
4096 (s390_libc_ifunc_init, s390_libc_ifunc,
4097 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4098
4099 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4100
4101 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4102 * sysdeps/s390/configure.ac: Add check for z10 support.
4103 * sysdeps/s390/configure: Regenerated.
4104
4105 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
4106
4107 * sysdeps/i386/atomic-machine.h: Merged with ...
4108 * sysdeps/x86_64/atomic-machine.h: To ...
4109 * sysdeps/x86/atomic-machine.h: This. New file.
4110
4111 2018-12-18 Florian Weimer <fweimer@redhat.com>
4112
4113 Rewrite locale/gen-translit.pl in Python.
4114 * locale/Makefile (generated): Add C-translit.h.
4115 (before-compile): Add $(objpfx)C-translit.h.
4116 (C-translit.h): Move to $(objpfx). Create target directory.
4117 Build using Python script.
4118 * locale/gen-translit.py: New file.
4119 * locale/gen-translit.pl: Remove file.
4120 * locale/C-translit.h.in: Change comment character to '#' for
4121 easier parsing without a C preprocessor.
4122 * locale/C-translit.h: Remove generated file.
4123 * manual/install.texi (Tools for Compilation): Do not mention
4124 C-translit.h.
4125 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4126 Remove locale/C-translit.h.
4127 * scripts/update-copyrights: Likewise.
4128 * INSTALL: Regenerate.
4129
4130 2018-12-18 Florian Weimer <fweimer@redhat.com>
4131
4132 [BZ #23995]
4133 * localedata/locales/bi_VU: Remove executable bit from file.
4134
4135 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
4136
4137 * include/time.h
4138 (__localtime64): Add.
4139 * manual/maint.texi: Document Y2038 symbol handling.
4140 * time/localtime.c
4141 (__localtime64): Add.
4142 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4143
4144 2018-12-17 Joseph Myers <joseph@codesourcery.com>
4145
4146 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4147 Do not clobber r12.
4148
4149 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4150 to allow extra macros from first or second sources.
4151 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4152 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4153 (tests-special): Add $(objpfx)tst-mman-consts.out.
4154 ($(objpfx)tst-mman-consts.out): New makefile target.
4155
4156 2018-12-17 Mao Han <han_mao@c-sky.com>
4157
4158 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4159 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4160 without stat64 system call support.
4161 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4162 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4163 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4164 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4165 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4166 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4167 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4168 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4169 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4170 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4171 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4172
4173 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4174
4175 regex: fix storage-exhaustion error
4176 [BZ #18040]
4177 * posix/regexec.c (get_subexp):
4178 Do not continue if storage is exhausted.
4179
4180 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4181
4182 regex: fix heap-use-after-free error
4183 [BZ #18040]
4184 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4185 https://debbugs.gnu.org/32592
4186 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4187 call extend_buffers which reallocates the re_string_t internal buffer.
4188 Local variable 'buf' was not updated in such case, resulting in
4189 use-after-free.
4190 * posix/regexec.c (get_subexp): Update 'buf' after call to
4191 get_subexp_sub.
4192
4193 2018-12-15 Florian Weimer <fweimer@redhat.com>
4194
4195 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4196 (minimum_stride_size): Use it.
4197 (support_blob_repeat_allocate): Likewise.
4198
4199 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4200
4201 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4202 definition.
4203 (acosh): Likewise.
4204 (atanh): Likewise.
4205
4206 2018-12-14 Florian Weimer <fweimer@redhat.com>
4207
4208 * manual/process.texi (Process Creation Concepts): Remove
4209 documentation of process (ID) lifetime. List more process
4210 creation functions. Reference Process Identification section.
4211 (Process Identification): Add information about process ID
4212 lifetime. Describe Linux thread/task IDs.
4213 * manual/signal.texi (Signaling Another Process): Mention that the
4214 signal is always sent to the process.
4215
4216 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4217
4218 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4219 and tst-ldbl-efgcvt.
4220 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4221 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4222 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4223 (fcvt_tests, output_error, output_r_error, do_test): Use the
4224 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4225 select the type of floating-point variables and arguments; to
4226 produce extra tests for double and conversion specifiers for
4227 printf; and to set the names of called functions.
4228 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4229 in tst-efgcvt-template.c.
4230 * misc/tst-ldbl-efgcvt.c: Likewise.
4231
4232 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4233
4234 * nss/Makefile (tst-nss-test3.out): New rule.
4235
4236 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4237
4238 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4239 clobber sp.
4240
4241 2018-12-13 fanjinke <fanjinke@hygon.cn>
4242
4243 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4244 "HygonGenuine".
4245
4246 2018-12-13 Andreas Schwab <schwab@suse.de>
4247
4248 [BZ #23861]
4249 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4250 (__pthread_rwlock_rdlock_full): Update expected value for
4251 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4252 * nptl/tst-rwlock-pwn.c: New file.
4253 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4254
4255 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4256
4257 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4258 definition.
4259
4260 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4261
4262 * benchtests/scripts/compare_bench.py (do_compare): write to
4263 stderr in casestat is not present.
4264 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4265 stderr in case timings field is not present. Also string showing
4266 the output filename goes into the stderr.
4267
4268 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4269
4270 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4271 and ZeroDivisorError exceptions.
4272 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4273 argument to loop through user provided statistics.
4274 * benchtests/scripts/compare_bench.py (main): Include the --stats
4275 argument.
4276
4277 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4278
4279 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4280 instead of return.
4281
4282 2018-12-12 Florian Weimer <fweimer@redhat.com>
4283
4284 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4285 clause to copyright header.
4286
4287 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4288
4289 [BZ #23614]
4290 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4291 registers saved in the stack frame.
4292 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4293 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4294
4295 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4296
4297 * include/bits/monetary-ldbl.h: New file.
4298 * include/bits/printf-ldbl.h: Likewise.
4299 * include/bits/stdio-ldbl.h: Likewise.
4300 * include/bits/stdlib-ldbl.h: Likewise.
4301 * include/bits/syslog-ldbl.h: Likewise.
4302 * include/bits/wchar-ldbl.h: Likewise.
4303
4304 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4305
4306 * libio/libio.h: Remove redirection for _IO_vfprintf.
4307
4308 2018-12-11 Andreas Schwab <schwab@suse.de>
4309
4310 * Makerules: Remove all references to abilist-pattern.
4311 (update-all-abi): Simplify find expression.
4312
4313 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4314
4315 [BZ #23961]
4316 * math/auto-libm-test-in: Add new test case.
4317 * math/auto-libm-test-out-pow: Regenerated.
4318 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4319
4320 2018-12-10 DJ Delorie <dj@redhat.com>
4321
4322 [BZ #23948]
4323 * support/test-container.c: Move postclean step to before we
4324 change namespaces.
4325
4326 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4327
4328 * scripts/gen-as-const.py (main): Handle --python option.
4329 * scripts/gen-py-const.awk: Remove.
4330 * Makerules (py-const-script): Use gen-as-const.py.
4331 ($(py-const)): Likewise.
4332 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4333 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4334 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4335 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4336 ~PTHREAD_MUTEX_NO_ELISION_NP.
4337 * manual/README.pretty-printers: Update reference to
4338 gen-py-const.awk.
4339
4340 * scripts/glibcextract.py: New file.
4341 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4342 or tempfile. Import glibcexctract.
4343 (compute_c_consts): Remove. Moved to glibcextract.py.
4344 (gen_test): Update reference to compute_c_consts.
4345 (main): Likewise.
4346 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4347 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4348 * sysdeps/unix/sysv/linux/Makefile
4349 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4350 Redirect stderr as well as stdout.
4351
4352 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4353
4354 [BZ #19767]
4355 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4356 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4357 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4358 ALWAYS_USE_VSYSCALL.
4359 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4360 ALWAYS_USE_VSYSCALL.
4361 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4362 ALWAYS_USE_VSYSCALL.
4363
4364 2018-12-10 Florian Weimer <fweimer@redhat.com>
4365
4366 [BZ #23972]
4367 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4368 offset instead of count for clarity. Fix typo in comment.
4369 (__old_getdents64): Keep track of previous offset. Use it to call
4370 handle_overflow.
4371 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4372 that d_off is never zero.
4373
4374 2018-12-10 Andreas Schwab <schwab@suse.de>
4375
4376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4377 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4379 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4380 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4381
4382 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4383
4384 * timezone/private.h: Update from tzcode 2018g.
4385 * timezone/tzfile.h: Likewise.
4386 * timezone/tzselect.ksh: Likewise.
4387 * timezone/zdump.c: Likewise.
4388 * timezone/zic.c: Likewise.
4389
4390 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4391
4392 [BZ #23490]
4393 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4394 (do_test): Adjust buffer size and fix format.
4395
4396 2018-12-07 DJ Delorie <dj@redhat.com>
4397
4398 [BZ #23907]
4399 * malloc/tst-tcfree3.c: New.
4400 * malloc/Makefile: Add it.
4401
4402 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4403
4404 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4405
4406 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4407
4408 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4409 used as a mask for the mode argument of __vfscanf_internal and
4410 __vfwscanf_internal.
4411 * stdio-common/vfscanf-internal.c
4412 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4413 (__strtof128_internal): Define to __wcstof128_internal.
4414 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4415 __strtof128_internal or __wcstof128_internal when the format of
4416 long double is the same as _Float128.
4417
4418 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4419
4420 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4421 * posix/confstr.c (confstr): Rename to __confstr.
4422 (__confstr): Add hidden def.
4423 (confstr): Add weak alias for __confstr.
4424 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4425 confstr.
4426
4427 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4428
4429 * NEWS: Mention getcpu.
4430 * include/sched.h (__getcpu): New libc_hidden_proto.
4431 * manual/resource.texi: Document getcpu.
4432 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4433 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4434 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4435 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4436 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4437 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4438 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4439 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4440 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4441 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4442 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4443 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4444 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4445 Likewise.
4446 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4447 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4448 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4449 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4450 Likewise.
4451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4452 Likewise.
4453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4454 Likewise.
4455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4456 Likewise.
4457 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4458 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4459 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4460 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4461 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4462 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4463 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4464 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4465 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4466 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4467 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4468 Also check getcpu.
4469
4470 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4471
4472 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4473 functions.
4474 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4475
4476 2018-12-07 Florian Weimer <fweimer@redhat.com>
4477
4478 [BZ #17405]
4479 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4480 * posix/Versions (GLIBC_2.29): Export
4481 posix_spawn_file_actions_addfchdir_np.
4482 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4483 * posix/spawn_faction_destroy.c
4484 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4485 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4486 and the field action.fchdir_action.
4487 * posix/tst-spawn-chdir.c (add_chdir): New function.
4488 (do_test): Add do_fchdir loop. Call add_chdir.
4489 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4490 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4491 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4492 posix_spawn_file_actions_addfchdir_np.
4493 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4494 Likewise.
4495 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4496 Likewise.
4497 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4498 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4499 Likewise.
4500 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4501 Likewise.
4502 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4503 Likewise.
4504 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4505 Likewise.
4506 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4507 Likewise.
4508 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4509 Likewise.
4510 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4511 (GLIBC_2.29): Likewise.
4512 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4513 (GLIBC_2.29): Likewise.
4514 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4515 (GLIBC_2.29): Likewise.
4516 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4517 (GLIBC_2.29): Likewise.
4518 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4519 Likewise.
4520 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4521 (GLIBC_2.29): Likewise.
4522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4523 (GLIBC_2.29): Likewise.
4524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4525 (GLIBC_2.29): Likewise.
4526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4527 (GLIBC_2.29): Likewise.
4528 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4529 Likewise.
4530 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4531 Likewise.
4532 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4533 Likewise.
4534 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4535 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4536 Likewise.
4537 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4538 Likewise.
4539 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4540 Likewise.
4541 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4542 Likewise.
4543
4544 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4545
4546 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4547 trailing whitespace removed.
4548 * scripts/config.guess: Update to version 2018-11-28.
4549 * scripts/config.sub: Update to version 2018-11-28.
4550 * scripts/install-sh: Update to version 2018-03-11.20.
4551 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4552 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4553
4554 2018-12-07 Florian Weimer <fweimer@redhat.com>
4555
4556 [BZ #23927]
4557 CVE-2018-19591
4558 * inet/tst-if_index-long.c: New file.
4559 * inet/Makefile (tests): Add tst-if_index-long.
4560
4561 2018-12-07 Florian Weimer <fweimer@redhat.com>
4562
4563 * support/check.h (support_record_failure_is_failed): Declare.
4564 * support/descriptors.h: New file.
4565 * support/support_descriptors.c: Likewise.
4566 * support/tst-support_descriptors.c: Likewise.
4567 * support/support_record_failure.c
4568 (support_record_failure_is_failed): New function.
4569 * support/Makefile (libsupport-routines): Add support_descriptors.
4570 (tests): Add tst-support_descriptors.
4571
4572 2018-12-05 Zack Weinberg <zackw@panix.com>
4573 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4574
4575 * stdio-common/vfprintf-internal.c
4576 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4577 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4578 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4579 and __no_long_double.
4580 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4581 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4582 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4583 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4584 and __nldbl_*syslog* functions.
4585 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4586 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4587 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4588 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4589 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4590 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4591 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4592 (__nldbl_vwprintf, __nldbl_wprintf):
4593 Directly call the appropriate __v*printf_internal routine, passing
4594 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4595 variable names.
4596 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4597 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4598 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4599 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4600 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4601 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4602 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4603 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4604 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4605 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4606 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4607 (__nldbl_syslog, __nldbl_vsyslog):
4608 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4609 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4610 appropriate.
4611 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4612 appropriate.
4613
4614 2018-12-05 Zack Weinberg <zackw@panix.com>
4615 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4616
4617 [BZ #11319]
4618 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4619 Moved here from debug/vsprintf_chk.c.
4620 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4621 and completion logic for the strfile to match exactly what
4622 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4623 _IO_str_init_static_internal instead of maxlen-1.
4624 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4625 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4626 __vsprintf_internal.
4627
4628 * debug/vsprintf_chk.c (__vsprintf_chk)
4629 * debug/sprintf_chk.c (__sprintf_chk):
4630 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4631 'flags' argument is positive, and slen as maxlen. No need to lock
4632 the FILE and/or construct a temporary FILE. Minimize and normalize
4633 header inclusions and variable names. Do not libc_hidden_def anything.
4634
4635 * debug/asprintf_chk.c (__asprintf_chk)
4636 * debug/dprintf_chk.c (__dprintf_chk)
4637 * debug/fprintf_chk.c (__fprintf_chk)
4638 * debug/fwprintf_chk.c (__fwprintf_chk)
4639 * debug/printf_chk.c (__printf_chk)
4640 * debug/snprintf_chk.c (__snprintf_chk)
4641 * debug/swprintf_chk.c (__swprintf_chk)
4642 * debug/vasprintf_chk.c (__vasprintf_chk)
4643 * debug/vdprintf_chk.c (__vdprintf_chk)
4644 * debug/vfprintf_chk.c (__vfprintf_chk)
4645 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4646 * debug/vprintf_chk.c (__vprintf_chk)
4647 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4648 * debug/vswprintf_chk.c (__vswprintf_chk)
4649 * debug/vwprintf_chk.c (__vwprintf_chk)
4650 * debug/wprintf_chk.c (__wprintf_chk):
4651 Directly call the corresponding vxxprintf_internal function, passing
4652 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4653 the FILE and/or construct a temporary FILE. Minimize and normalize
4654 header inclusions and variable names. Do not libc_hidden_def anything.
4655
4656 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4657 __obstack_vprintf_internal.
4658 (__obstack_vprintf_chk): Convert into a wrapper that calls
4659 __obstack_vprintf_internal (these two functions already had the
4660 same code) and move to new file...
4661 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4662 file.
4663 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4664 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4665 * debug/Makefile (routines): Add vobprintf_chk.
4666
4667 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4668 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4669 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4670 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4671 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4672 (__nldbl___obstack_vfprintf_chk):
4673 Directly call the corresponding vxxprintf_internal function,
4674 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4675 duplicate comparison of slen with 0 or maxlen from the corresponding
4676 non-__nldbl function.
4677
4678 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4679 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4680 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4681 Remove libc_hidden_proto.
4682
4683 * stdio-common/vfprintf-internal.c
4684 (__vfprintf_internal, __vfwprintf_internal):
4685 Do not check _IO_FLAGS2_FORTIFY.
4686 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4687 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4688 a comment explaining why it has the maxlen argument.
4689 (_IO_acquire_lock_clear_flags2_fct): Remove.
4690 (_IO_acquire_lock_clear_flags2): Remove.
4691 (_IO_release_lock): Remove conditional statement which will
4692 now never execute.
4693 (_IO_acquire_lock): Remove variable which is now unused.
4694 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4695 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4696
4697 * stdio-common/Makefile (tests): Add tst-bz11319 and
4698 tst-bz11319-fortify2.
4699 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4700 * stdio-common/tst-bz11319-fortify2.c: New file.
4701 * stdio-common/tst-bz11319.c: Likewise.
4702
4703 2018-12-05 Zack Weinberg <zackw@panix.com>
4704 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4705
4706 * misc/syslog.c: Include libioP.h, not iolibio.h.
4707 (__vsyslog_internal): New function with the former body of
4708 __vsyslog_chk; takes mode_flags argument same as
4709 __v*printf_internal. Call __vfprintf_internal directly.
4710
4711 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4712 Remove libc_hidden_def.
4713 (__syslog, __syslog_chk): Use __vsyslog_internal.
4714 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4715
4716 * include/sys/syslog.h: Add multiple inclusion guard.
4717 Add prototype for __vsyslog_internal.
4718 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4719
4720 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4721 Use __vsyslog_internal.
4722
4723 2018-12-05 Zack Weinberg <zackw@panix.com>
4724 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4725
4726 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4727 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4728 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4729 New functions.
4730 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4731 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4732
4733 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4734 Include wctype.h here if COMPILE_WPRINTF is defined.
4735 Define __vfprintf_internal or __vfwprintf_internal, depending
4736 on COMPILE_WPRINTF.
4737 Temporarily, on entry to this function, update mode_flags
4738 according to the environmental settings corresponding to
4739 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4740 Throughout, check mode_flags instead of __ldbl_is_dbl and
4741 _IO_FLAGS2_FORTIFY on the destination FILE.
4742 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4743 Include vfprintf-internal.c. Don't include wctype.h.
4744 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4745 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4746 and vfprintf.
4747 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4748 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4749 and vfwprintf.
4750 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4751
4752 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4753 and add mode_flags argument; use __vfprintf_internal.
4754 (__vdprintf): New function. Alias vdprintf to this.
4755 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4756 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4757 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4758 (__obstack_printf): Use __obstack_printf_internal.
4759 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4760 public aliases __vsnprintf and vsnprintf.
4761 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4762 called internally.
4763 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4764 public aliases _IO_vsprintf and vsprintf.
4765 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4766 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4767 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4768 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4769 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4770
4771 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4772 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4773 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4774 * stdio-common/printf.c: Use __vfprintf_internal.
4775
4776 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4777 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4778 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4779
4780 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4781 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4782 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4783 __vfwprintf_internal.
4784
4785 * libio/libio.h: Remove libc_hidden_proto and declaration for
4786 _IO_vfprintf.
4787 Remove declaration of _IO_vfwprintf.
4788 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4789 _IO_vsprintf.
4790 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4791 _IO_obstack_printf.
4792 * include/stdio.h: Add prototype for __vasprintf.
4793 (__vsnprintf): Remove declaration, because there are no more
4794 internal calls.
4795 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4796 declaration, because there are no more internal calls.
4797
4798 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4799 __vsnprintf_internal, instead of _IO_vsnprintf.
4800 * argp/argp-help.c (__argp_error, __argp_failure): Use
4801 __vasprintf_internal, instead of _IO_vasprintf.
4802 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4803 redefine, because there are no more internal calls.
4804
4805 2018-12-05 Zack Weinberg <zackw@panix.com>
4806 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4807
4808 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4809 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4810 Include libio/strfile.h instead of libioP.h.
4811 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4812 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4813 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4814 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4815 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4816 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4817 necessary. Do not set __no_long_double. Normalize variable names.
4818 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4819 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4820 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4821 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4822 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4823 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4824 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4825 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4826 Do not set __no_long_double. Normalize variable names.
4827
4828 2018-12-05 Zack Weinberg <zackw@panix.com>
4829 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4830
4831 * stdio-common/isoc99_scanf.c
4832 * stdio-common/isoc99_fscanf.c
4833 * stdio-common/isoc99_sscanf.c
4834 * stdio-common/isoc99_vscanf.c
4835 * stdio-common/isoc99_vfscanf.c
4836 * stdio-common/isoc99_vsscanf.c
4837 * wcsmbs/isoc99_wscanf.c
4838 * wcsmbs/isoc99_fwscanf.c
4839 * wcsmbs/isoc99_swscanf.c
4840 * wcsmbs/isoc99_vwscanf.c
4841 * wcsmbs/isoc99_vfwscanf.c
4842 * wcsmbs/isoc99_vswscanf.c:
4843 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4844 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4845 No need to lock and unlock the FILE passed to that function.
4846
4847 * stdio-common/vfscanf-internal.c
4848 (__vfscanf_internal, __vfwscanf_internal):
4849 Don't look at _IO_FLAGS2_SCANF_STD.
4850 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4851 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4852 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4853
4854 2018-12-05 Zack Weinberg <zackw@panix.com>
4855 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4856
4857 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4858 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4859 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4860 * libio/strfile.h: Add multiple inclusion guard.
4861 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4862
4863 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4864 consistency with the other version of this file.
4865 (ldbl_compat_symbol): New macro.
4866 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4867 New macro.
4868
4869 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4870 Define __vfscanf_internal or __vfwscanf_internal, depending on
4871 COMPILE_WSCANF; don't define any other public symbols.
4872 Remove errval and code to set errp.
4873 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4874 as the mode_flags argument.
4875 (encode_error, conv_error, input_error): Don't set errval.
4876 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4877 Include vfscanf-internal.c.
4878 * stdio-common/vfscanf.c: New file defining the public entry
4879 point vfscanf, which calls __vfscanf_internal.
4880 * stdio-common/vfwscanf.c: New file defining the public entry
4881 point vfwscanf, which calls __vfwscanf_internal.
4882
4883 * stdio-common/iovfscanf.c: New file.
4884 * stdio-common/iovfwscanf.c: Likewise.
4885
4886 * stdio-common/Makefile (routines): Add vfscanf-internal,
4887 vfwscanf-internal, iovfscanf, iovfwscanf.
4888 * stdio-common/Versions: Mention GLIBC_2.29, so that
4889 it can be used in SHLIB_COMPAT expressions.
4890 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4891 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4892 Call __vfscanf_internal, instead of _IO_vfscanf.
4893 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4894 _IO_vfscanf.
4895 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4896 _IO_vfwscanf.
4897
4898 * libio/iovsscanf.c: Clean up includes, when possible. Use
4899 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4900 __vfscanf_internal or __vfwscanf_internal directly.
4901 * libio/iovswscanf.c: Likewise.
4902 * libio/swscanf.c: Likewise.
4903 * libio/vscanf.c: Likewise.
4904 * libio/vwscanf.c: Likewise.
4905 * libio/wscanf.c: Likewise.
4906 * stdio-common/isoc99_fscanf.c: Likewise.
4907 * stdio-common/isoc99_scanf.c: Likewise.
4908 * stdio-common/isoc99_sscanf.c: Likewise.
4909 * stdio-common/isoc99_vfscanf.c: Likewise.
4910 * stdio-common/isoc99_vscanf.c: Likewise.
4911 * stdio-common/isoc99_vsscanf.c: Likewise.
4912 * stdio-common/scanf.c: Likewise.
4913 * stdio-common/sscanf.c: Likewise.
4914 * wcsmbs/isoc99_fwscanf.c: Likewise.
4915 * wcsmbs/isoc99_swscanf.c: Likewise.
4916 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4917 * wcsmbs/isoc99_vswscanf.c: Likewise.
4918 * wcsmbs/isoc99_vwscanf.c: Likewise.
4919 * wcsmbs/isoc99_wscanf.c: Likewise.
4920
4921 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4922
4923 * include/time.h
4924 (__tz_compute): Replace time_t with __time64_t.
4925 (__tz_convert): Replace time_t* with __time64_t.
4926 (__offtime): Replace time_t* with __time64_t.
4927 * time/gmtime.c
4928 (__gmtime_r): Adjust call to __tz_convert.
4929 (gmtime): Likewise.
4930 * time/localtime.c
4931 (__localtime_r): Likewise.
4932 (localtime): Likewise.
4933 * time/offtime.c: Replace time_t with __time64_t.
4934 * time/tzset.c: Likewise.
4935
4936 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4937
4938 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4939 dynamic linker unless [$(run-built-tests) = yes].
4940
4941 2018-12-03 DJ Delorie <dj@delorie.com>
4942
4943 * support/test-container.c (check_for_unshare_hints): New.
4944 (main): Call it if unshare fails. Add support for "su" scriptlet
4945 command.
4946
4947 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4948
4949 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4950 'START' to indicate that start text should be output.
4951 (gen_test): Likewise.
4952 (main): Generate 'START' for first symbol or '--' line, or at end
4953 of input if not previously generated.
4954
4955 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4956
4957 [BZ #19767]
4958 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4959 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4960 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4961 ALWAYS_USE_VSYSCALL.
4962
4963 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4964
4965 [BZ #23913]
4966 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4967 new_argv by one.
4968
4969 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4970
4971 [BZ #23923]
4972 * locale/programs/localedef.c: Declare boolean hard_links default true.
4973 (options): Add --no-hard-links option.
4974 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4975 * locale/programs/localedef.h: Declare prototype for hard_links.
4976 * locale/programs/locfile.c (write_locale_data): Don't use hard
4977 links if hard_links is false.
4978
4979 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4980
4981 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4982 cpu_features_basic.
4983 (__cache_sysconf): Likewise.
4984 (init_cacheinfo): Likewise.
4985 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4986 populate COMMON_CPUID_INDEX_80000007 and
4987 COMMON_CPUID_INDEX_80000008.
4988 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4989 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4990 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4991 (init_cpu_features): Use _Static_assert on
4992 index_arch_Fast_Unaligned_Load.
4993 __get_cpuid_registers and __get_arch_feature. Updated for
4994 cpu_features_basic. Set stepping in cpu_features.
4995 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4996 (FEATURE_INDEX_2): New.
4997 (FEATURE_INDEX_MAX): Changed to enum.
4998 (COMMON_CPUID_INDEX_D_ECX_1): New.
4999 (COMMON_CPUID_INDEX_80000007): Likewise.
5000 (COMMON_CPUID_INDEX_80000008): Likewise.
5001 (cpuid_registers): Likewise.
5002 (cpu_features_basic): Likewise.
5003 (CPU_FEATURE_USABLE): Likewise.
5004 (bit_arch_XXX_Usable): Likewise.
5005 (cpu_features): Use cpuid_registers and cpu_features_basic.
5006 (bit_arch_XXX): Reweritten.
5007 (bit_cpu_XXX): Likewise.
5008 (index_cpu_XXX): Likewise.
5009 (reg_XXX): Likewise.
5010 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5011 <support/check.h>.
5012 (CHECK_CPU_FEATURE): New.
5013 (CHECK_CPU_FEATURE_USABLE): Likewise.
5014 (cpu_kinds): Likewise.
5015 (do_test): Print vendor, family, model and stepping. Check
5016 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5017 (TEST_FUNCTION): Removed.
5018 Include <support/test-driver.c> instead of
5019 "../../test-skeleton.c".
5020 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5021 Check POPCNT instead of POPCOUNT.
5022 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5023
5024 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5025
5026 * scripts/gen-as-const.py (main): Avoid emitting empty line when
5027 there is no element in `consts'.
5028
5029 2018-12-01 Florian Weimer <fweimer@redhat.com>
5030
5031 * support/support_capture_subprocess.c
5032 (support_capture_subprocess): Check that pipe descriptors have
5033 expected values. Close original pipe descriptors in subprocess.
5034
5035 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5036
5037 [BZ #23032]
5038 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5039 attr with __pthread_default_barrierattr.
5040 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5041 attr with __pthread_default_condattr.
5042 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5043 attr with __pthread_default_mutexattr.
5044 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5045 attr with __pthread_default_rwlockattr.
5046
5047 2018-12-01 Kemi Wang <kemi.wang@intel.com>
5048
5049 * manual/tunables.texi (POSIX Thread Tunables): New node.
5050 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5051 * nptl/nptl-init.c: Include pthread_mutex_conf.h
5052 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5053 __pthread_tunables_init.
5054 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5055 (max_adaptive_count): Define.
5056 * nptl/pthread_mutex_conf.c: New file.
5057 * nptl/pthread_mutex_conf.h: New file.
5058 * sysdeps/generic/adaptive_spin_count.h: New file.
5059 * sysdeps/nptl/dl-tunables.list: New file.
5060 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5061 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5062 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5063 Likewise.
5064
5065 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5066
5067 [BZ #20544]
5068 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5069 * stdlib/on_exit.c (__on_exit): Likewise.
5070 * stdlib/Makefile (tests): Add tst-bz20544.
5071 * stdlib/tst-bz20544.c: New test.
5072
5073 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
5074
5075 [BZ #19767]
5076 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5077 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5078 New.
5079
5080 2018-11-30 Florian Weimer <fweimer@redhat.com>
5081
5082 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5083 Extend error logging.
5084 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5085 symbol.
5086
5087 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5088
5089 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5090 __sigismember instead of sigismember.
5091 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5092 cancel_handler): New definitions.
5093 (do_system): Use posix_spawn instead of fork and execl and remove
5094 reentracy code.
5095 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5096 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5097 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5098 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5099 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5100 * sysdeps/unix/sysv/linux/system.c: Likewise.
5101
5102 [BZ #22834]
5103 [BZ #17490]
5104 * NEWS: Add new semantic for atfork with popen and system.
5105 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5106 fork and execl.
5107
5108 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5109
5110 [BZ #23690]
5111 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5112 modification order when accessing reloc_result->addr.
5113 * include/link.h (reloc_result): Add field init.
5114 * nptl/Makefile (tests): Add tst-audit-threads.
5115 (modules-names): Add tst-audit-threads-mod1 and
5116 tst-audit-threads-mod2.
5117 Add rules to build tst-audit-threads.
5118 * nptl/tst-audit-threads-mod1.c: New file.
5119 * nptl/tst-audit-threads-mod2.c: Likewise.
5120 * nptl/tst-audit-threads.c: Likewise.
5121 * nptl/tst-audit-threads.h: Likewise.
5122
5123 2018-11-30 Joseph Myers <joseph@codesourcery.com>
5124
5125 * scripts/gen-as-const.py: New file.
5126 * scripts/gen-as-const.awk: Remove.
5127 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5128 gen-as-const.py.
5129 ($(objpfx)test-as-const-%.c): Likewise.
5130
5131 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5132
5133 * elf/dl-exception.c: Include <_itoa.h>.
5134
5135 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5136
5137 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5138 returned by __f_setlk.
5139
5140 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5141 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5142
5143 * elf/Makefile (tests-internal): Add tst-create_format1.
5144 * elf/dl-exception.c (_dl_exception_create_format): Support
5145 %x, %lx and %zx.
5146 * elf/tst-create_format1.c: New file.
5147
5148 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5149
5150 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5151 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5152 gnulib.)
5153 * argp/argp-help.c (__argp_failure): Likewise.
5154
5155 2018-11-29 Mao Han <han_mao@c-sky.com>
5156
5157 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5158 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5159 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5160 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5161 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5162 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5163 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5164 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5165 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5166 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5167 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5168 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5169 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5170 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5171 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5172 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5173 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5174 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5175 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5176 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5177 (R_CKCORE_TLS_TPOFF32): New defines.
5178
5179 2018-11-29 Florian Weimer <fweimer@redhat.com>
5180
5181 * posix/Makefile (before-compile): Remove testcases.h and
5182 ptestcases.h.
5183 (generated): Add testcases.h and ptestcases.h.
5184 (testcases.h, ptestcases.h): Move to $(objpfx).
5185 (runtests.o): Add dependency on testcases.h.
5186 (runptests.o): Add dependency on ptestcases.h.
5187 * posix/testcases.h, posix/ptestcases.h: Remove files.
5188 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5189 not touch posix/testcases.h and posix/ptestcases.h.
5190
5191 2018-11-28 Florian Weimer <fweimer@redhat.com>
5192
5193 support: Add signal support to support_capture_subprocess_check.
5194 * support/capture_subprocess.h (support_capture_subprocess_check):
5195 Adjust comment and rename parameter.
5196 * support/support_capture_subprocess_check.c
5197 (print_actual_status): New function.
5198 (support_capture_subprocess_check): Support negative
5199 status_or_signal. Call print_actual_status.
5200 * support/tst-support_capture_subprocess.c (do_test): Call
5201 support_capture_subprocess_check.
5202 * libio/tst-vtables-common.c (termination_status)
5203 (init_termination_status): Remove.
5204 (check_for_termination): Adjust support_capture_subprocess_check
5205 call.
5206 (do_test): Remove call to init_termination_status.
5207
5208 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5209
5210 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5211 source directory instead of a copy.
5212 (CommandList.create_copy_dir): Remove.
5213
5214 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5215
5216 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5217
5218 2018-11-28 Florian Weimer <fweimer@redhat.com>
5219
5220 * support/support.h (support_quote_string): Do not use str
5221 parameter name.
5222
5223 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5224
5225 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5226 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5227
5228 2018-11-27 Florian Weimer <fweimer@redhat.com>
5229
5230 * support/support.h (support_quote_string): Declare.
5231 * support/support_quote_string.c: New file.
5232 * support/tst-support_quote_string.c: Likewise.
5233 * support/Makefile (libsupport-routines): Add
5234 support_quote_string.
5235 (tests): Add tst-support_quote_string.
5236
5237 2018-11-27 Florian Weimer <fweimer@redhat.com>
5238
5239 [BZ #23927]
5240 CVE-2018-19591
5241 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5242 descriptor leak in case of ENODEV error.
5243
5244 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5245
5246 [BZ #19767]
5247 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5248 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5249 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5250
5251 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5252
5253 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5254 Error for unknown lines.
5255
5256 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5257
5258 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5259 Touch additional files.
5260
5261 2018-11-26 Florian Weimer <fweimer@redhat.com>
5262
5263 [BZ #23907]
5264 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5265 double-frees.
5266
5267 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5268
5269 [BZ #19767]
5270 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5271 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5272 SHARED. Include sysdep.h.
5273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5274 ALWAYS_USE_VSYSCALL.
5275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5276 ALWAYS_USE_VSYSCALL.
5277
5278 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5279
5280 [BZ #19767]
5281 * nptl/Makefile (tests-static): Add tst-cond11-static.
5282 (tests): Likewise.
5283 * nptl/tst-cond11-static.c: New File.
5284 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5285 tst-affinity-static.
5286 (tests): Likewise.
5287 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5288 instead of SHARED.
5289 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5290 (USE_VSYSCALL): Likewise.
5291 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5292 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5293 instead of SHARED.
5294 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5295 SHARED.
5296 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5297 New.
5298
5299 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5300
5301 [BZ #23915]
5302 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5303 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5304 Undefine.
5305
5306 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5307
5308 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5309 (tst-cet-legacy-1a-ARGS): New.
5310 ($(objpfx)tst-cet-legacy-1a): New target.
5311 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5312
5313 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5314
5315 * conform/conformtest.py (CompileSubTest.__init__): Set
5316 self.run_early to False.
5317 (ExecuteSubTest.__init__): Likewise.
5318 (HeaderTests.run): Try running all non-optional, non-XFAILed
5319 compilation tests in a single execution of the compiler.
5320
5321 * conform/conformtest.py (CompileSubTest): New class.
5322 (ExecuteSubTest): Likewise.
5323 (ElementTest.run): Rename to gen_subtests. Append tests to
5324 self.subtests instead of running them.
5325 (ConstantTest.run): Likewise.
5326 (SymbolTest.run): Likewise.
5327 (TypeTest.run): Likewise.
5328 (TagTest.run): Likewise.
5329 (FunctionTest.run): Likewise.
5330 (VariableTest.run): Likewise.
5331 (MacroFunctionTest.run): Likewise.
5332 (MacroStrTest.run): Likewise.
5333 (HeaderTests.handle_test_line): Generate subtests for tests.
5334 (HeaderTests.run): Run subtests for tests.
5335
5336 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5337
5338 * math/Versions (GLIBC_2.29): Add pow.
5339 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5340 symbol.
5341 * math/w_pow.c: New file.
5342 * sysdeps/i386/fpu/w_pow.c: New file.
5343 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5344 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5345 and add necessary aliases.
5346 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5347 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5348 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5349 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5350 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5351 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5352 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5353 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5354 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5355 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5356 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5357 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5358 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5359 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5360 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5361 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5365 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5366 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5367 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5368 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5369 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5370 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5371 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5372 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5373 __pow.
5374 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5375 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5376 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5377
5378 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5379
5380 * math/Versions (GLIBC_2.29): Add log2.
5381 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5382 symbol.
5383 * math/w_log2.c: New file.
5384 * sysdeps/i386/fpu/w_log2.c: New file.
5385 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5386 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5387 and add necessary aliases.
5388 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5389 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5390 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5391 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5392 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5393 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5394 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5395 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5396 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5397 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5398 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5399 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5400 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5401 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5402 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5407 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5408 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5409 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5410 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5411 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5412 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5413 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5414
5415 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5416
5417 * math/Versions (GLIBC_2.29): Add log.
5418 * math/w_log_compat.c (__log_compat): Change to versioned compat
5419 symbol.
5420 * math/w_log.c: New file.
5421 * sysdeps/i386/fpu/w_log.c: New file.
5422 * sysdeps/ia64/fpu/e_log.S: Update.
5423 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5424 and add necessary aliases.
5425 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5426 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5427 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5428 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5429 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5430 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5431 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5432 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5433 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5434 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5435 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5436 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5437 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5438 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5439 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5444 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5445 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5446 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5447 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5448 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5449 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5450 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5451 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5452 __log.
5453 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5454 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5455 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5456 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5457
5458 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5459
5460 * math/Versions (GLIBC_2.29): Add exp and exp2.
5461 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5462 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5463 * math/w_exp_compat.c (__exp_compat): Likewise.
5464 * math/w_exp.c: New file.
5465 * math/w_exp2.c: New file.
5466 * sysdeps/i386/fpu/w_exp.c: New file.
5467 * sysdeps/i386/fpu/w_exp2.c: New file.
5468 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5469 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5470 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5471 and add necessary aliases.
5472 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5473 and add necessary aliases.
5474 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5475 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5476 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5477 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5478 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5479 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5480 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5481 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5482 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5483 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5484 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5485 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5486 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5487 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5488 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5489 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5490 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5495 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5496 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5497 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5498 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5499 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5500 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5501 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5502 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5503 (__ieee754_exp): Rename to __exp.
5504 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5505 (__ieee754_exp): Rename to __exp.
5506 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5507 (__ieee754_exp): Rename to __exp.
5508 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5509 __exp.
5510 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5511
5512 2018-11-20 DJ Delorie <dj@redhat.com>
5513
5514 * malloc/malloc.c (tcache_entry): Add key field.
5515 (tcache_put): Set it.
5516 (tcache_get): Likewise.
5517 (_int_free): Check for double free in tcache.
5518 * malloc/tst-tcfree1.c: New.
5519 * malloc/tst-tcfree2.c: New.
5520 * malloc/Makefile: Run the new tests.
5521 * manual/probes.texi: Document memory_tcache_double_free probe.
5522
5523 * dlfcn/dlerror.c (check_free): Prevent double frees.
5524
5525 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5526
5527 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5528
5529 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5530
5531 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5532 in tests. Use names for format arguments.
5533 (ConstantTest.run): Likewise.
5534 (SymbolTest.run): Likewise.
5535 (TypeTest.run): Likewise.
5536 (TagTest.run): Likewise.
5537 (FunctionTest.run): Likewise.
5538 (VariableTest.run): Likewise.
5539 (MacroFunctionTest.run): Likewise.
5540 (MacroStrTest.run): Likewise.
5541 (HeaderTests.__init__): Set self.num_tests.
5542 (HeaderTests.handle_test_line): Set test.num. Increment
5543 self.num_tests.
5544
5545 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5546
5547 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5548 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5549 SEEK_SET.
5550
5551 2018-11-19 Mao Han <han_mao@c-sky.com>
5552
5553 * scripts/config.guess: Update to version 2018-08-29.
5554 * scripts/config.sub: Update to version 2018-08-29.
5555
5556 2018-11-19 Florian Weimer <fweimer@redhat.com>
5557
5558 support: Print timestamps in timeout handler.
5559 * support/support_test_main.c (print_timestamp): New function.
5560 (signal_handler): Use it to print the termination time and the
5561 time of the last write to standard output.
5562
5563 2018-11-16 Zack Weinberg <zackw@panix.com>
5564 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5565
5566 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5567 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5568 argument.
5569 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5570 and add flags argument. Check flags instead of __ldbl_is_dbl when
5571 deciding whether to set is_long_double.
5572 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5573 passing zero for flags argument.
5574 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5575
5576 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5577 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5578 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5579 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5580 variable names. Remove libc_hidden_def/libc_hidden_proto from
5581 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5582 longer called from within the library.
5583 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5584 for __nldbl___vstrfmon_l, declare it explicitly.
5585
5586 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5587
5588 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5589
5590 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5591 macros
5592 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5593 F_SETLK64, F_SETLKW64, respectively.
5594 * sysdeps/mach/hurd/f_setlk.c: New file.
5595 * sysdeps/mach/hurd/f_setlk.h: New file.
5596 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5597 f_setlk.
5598 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5599 (__libc_fcntl): Move non-flock operations to...
5600 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5601 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5602
5603 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5604
5605 mktime: DEBUG_MKTIME cleanup
5606 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5607 And it’s no longer needed now that glibc and Gnulib both have
5608 their own testing mechanisms for mktime.
5609 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5610
5611 mktime: fix non-EOVERFLOW errno handling
5612 [BZ#23789]
5613 mktime was not properly reporting failures when the underlying
5614 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5615 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5616 The problem could happen on non-glibc platforms, with Gnulib.
5617 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5618 (tm_diff): ... this simpler function, which does not change errno.
5619 All callers changed to deal with errno themselves.
5620 (ranged_convert, __mktime_internal): Return failure immediately if
5621 the underlying function reports any failure other than EOVERFLOW.
5622 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5623 gap code fails.
5624
5625 mktime: fix bug with Y2038 DST transition
5626 [BZ#23789]
5627 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5628 mishandle a DST transition that jumps over the Y2038 boundary.
5629 No such DST transitions are known so this is only a theoretical
5630 bug, but we might as well do things right.
5631
5632 mktime: make more room for overflow
5633 [BZ#23789]
5634 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5635 This is so that we can add tm_diff results to a previous guess,
5636 which will be useful in a later patch.
5637
5638 mktime: simplify offset guess
5639 [BZ#23789]
5640 * time/mktime.c (__mktime_internal): Omit excess precision.
5641
5642 mktime: new test for mktime failure
5643 [BZ#23789]
5644 Based on a test suggested by Albert Aribaud in:
5645 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5646 * time/Makefile (tests): Add bug-mktime4.
5647 * time/bug-mktime4.c: New file.
5648
5649 mktime: fix EOVERFLOW bug
5650 [BZ#23789]
5651 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5652 Include libc-config.h, not config.h, for __set_errno.
5653 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5654
5655 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5656
5657 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5658 __attribute_copy__ to copy attributes from name. Drop static qualifier
5659 to avoid warnings about leaf attribute not having effect on static
5660 functions.
5661
5662 2018-11-13 Florian Weimer <fweimer@redhat.com>
5663
5664 * malloc/malloc.c (fastbin_push_entry): New function.
5665 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5666 (REMOVE_FB): Remove macro.
5667 (_int_malloc): Use fastbin_pop_entry and reindent.
5668 (_int_free): Use fastbin_push_entry.
5669 (malloc_consolidate): Use atomic_exchange_acquire.
5670
5671 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5672
5673 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5674 alias attribute, not with strong_alias.
5675
5676 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5677 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5678 with additional parameter thread.
5679 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5680 in terms of __hidden_ver2.
5681 (hidden_tls_def): New macro.
5682 (libc_hidden_tls_def): Likewise.
5683 (rtld_hidden_tls_def): Likewise.
5684 (libm_hidden_tls_def): Likewise.
5685 (libmvec_hidden_tls_def): Likewise.
5686 (libresolv_hidden_tls_def): Likewise.
5687 (librt_hidden_tls_def): Likewise.
5688 (libdl_hidden_tls_def): Likewise.
5689 (libnss_files_hidden_tls_def): Likewise.
5690 (libnsl_hidden_tls_def): Likewise.
5691 (libnss_nisplus_hidden_tls_def): Likewise.
5692 (libutil_hidden_tls_def): Likewise.
5693 (libutil_hidden_tls_def): Likweise.
5694 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5695 libc_hidden_tls_def.
5696 (__sim_disabled_exceptions_thread): Likewise.
5697 (__sim_round_mode_thread): Likewise.
5698
5699 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5700 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5701 copy attributes from name.
5702
5703 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5704
5705 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5706 Use __attribute_copy__ to copy attributes from name.
5707
5708 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5709 with __hidden_ver1 call.
5710 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5711 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5712 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5713 (__cosf): Do not declare here.
5714 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5715 (__sincosf): Do not declare here.
5716 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5717 (__sinf): Do not declare here.
5718
5719 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5720 (__BIG_ENDIAN): Likewise.
5721 (__BYTE_ORDER): Likewise.
5722 (strong_alias): Likewise.
5723 (_strong_alias): Likewise.
5724
5725 2018-11-12 Florian Weimer <fweimer@redhat.com>
5726
5727 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5728 function. Move after the definition of in_smallbin_range. Do not
5729 use __builtin_expect for paths that lead to a noreturn function.
5730 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5731 because it is unclear whether this is in fact an unlikely
5732 condition.
5733 (_int_malloc, _int_free): Adjust.
5734 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5735 variables.
5736 * malloc/arena.c (heap_trim): Likewise.
5737
5738 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5739
5740 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5741 it, free it if needed.
5742 (reauthenticate): Test and use ccwdir.
5743 (child_init_port): In non-resetids case, test and use ccwdir.
5744 (child_chdir): New nested function to set ccwdir.
5745 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5746 * hurd/hurd/port.h (_hurd_port_move): New function.
5747 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5748 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5749 * hurd/Versions (_hurd_port_move): Export function.
5750 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5751 symbol.
5752 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5753 of dtablesize for allocating dtable_cloexec.
5754
5755 2018-11-09 Martin Sebor <msebor@redhat.com>
5756
5757 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5758 it's already defined.
5759 (_strong_alias): Use __attribute_copy__.
5760 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5761 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5762 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5763 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5764 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5765 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5766 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5767 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5768 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5769 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5770 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5771 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5772 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5773 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5774 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5775 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5776 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5777 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5778 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5779
5780 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5781
5782 * misc/tst-efgcvt.c: Include support/check.h and
5783 support/test-driver.c. Do not include test-skeleton.c.
5784 (error_count): Remove.
5785 (output_error): Replace increments to error_count with calls to
5786 support_record_failure.
5787 (output_r_error): Likewise.
5788 (special): Likewise.
5789 (do_test): Unconditionally return zero.
5790 (TEST_FUNCTION): Remove.
5791
5792 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5793
5794 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5795 not $(@D)/scratch.
5796 ($(linknamespace-header-tests)): Likewise.
5797
5798 * conform/conformtest.py: New file.
5799 * conform/conformtest.pl: Remove.
5800 * conform/GlibcConform.pm: Likewise.
5801 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5802 (KEYWORDS_C99): Likewise.
5803 (KEYWORDS): Likewise.
5804 * conform/Makefile ($(conformtest-header-tests)): Use
5805 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5806 option. Use --header instead of --headers.
5807 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5808 function entries.
5809 * conform/data/spawn.h-data: Likewise.
5810 * conform/data/fcntl.h-data (openat): Add space after function
5811 name.
5812 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5813 (wcscasecmp_l): Likewise.
5814 * conform/data/termios.h-data (c_cc): Add space after element
5815 name.
5816
5817 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5818
5819 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5820 instead of manually comparing and reporting mismatching strings.
5821 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5822 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5823
5824 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5825
5826 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5827 __ASSUME_SOCKETCALL.
5828 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5829 (__ASSUME_SOCKETCALL): Remove.
5830 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5831 (__ASSUME_SOCKETCALL): Likewise.
5832 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5833 (__ASSUME_SOCKETCALL): Likewise.
5834 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5835 (__ASSUME_SOCKETCALL): Likewise.
5836 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5837 (__ASSUME_SOCKETCALL): Likewise.
5838 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5839 (__ASSUME_SOCKETCALL): Likewise.
5840 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5841 (__ASSUME_SOCKETCALL): Likewise.
5842
5843 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5844
5845 [BZ #23509]
5846 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5847 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5848 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5849 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5850 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5851 lc_unknown.
5852
5853 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5854
5855 [BZ #17630]
5856 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5857
5858 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5859
5860 [BZ #23867]
5861 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5862 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5863 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5864 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5865
5866 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5867
5868 * support/support_test_compare_string.c
5869 (support_test_compare_string): Fix printf format.
5870
5871 2018-11-07 Florian Weimer <fweimer@redhat.com>
5872
5873 Implement TEST_COMPARE_STRING.
5874 * support/check.h (TEST_COMPARE_STRING): Define.
5875 (support_test_compare_string): Declare.
5876 * support/Makefile (libsupport-routines): Add
5877 support_test_compare_string.
5878 (tests): Add tst-test_compare_string.
5879 * support/support_test_compare_string.c: New file.
5880 * support/tst-test_compare_string.c: Likewise.
5881
5882 2018-11-07 Andreas Schwab <schwab@suse.de>
5883
5884 [BZ #23864]
5885 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5886 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5887 Undef.
5888
5889 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5890
5891 [BZ #23862]
5892 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5893 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5894 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5895 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5896 Likewise.
5897
5898 2018-11-06 Florian Weimer <fweimer@redhat.com>
5899
5900 [BZ #17405]
5901 * posix/Makefile (routines): Add spawn_faction_addchdir.
5902 (tests): Add tst-spawn-chdir.
5903 * posix/Versions (GLIBC_2.29): Add
5904 posix_spawn_file_actions_addchdir_np.
5905 * posix/spawn_faction_addchdir.c: New file.
5906 * posix/spawn_faction_destroy.c
5907 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5908 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5909 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5910 chdir_action.
5911 * posix/tst-spawn-chdir.c: New file.
5912 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5913 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5914 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5915 posix_spawn_file_actions_addchdir_np.
5916 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5917 Likewise.
5918 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5919 Likewise.
5920 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5921 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5922 Likewise.
5923 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5924 Likewise.
5925 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5926 Likewise.
5927 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5928 Likewise.
5929 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5930 Likewise.
5931 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5932 Likewise.
5933 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5934 (GLIBC_2.29): Likewise.
5935 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5936 (GLIBC_2.29): Likewise.
5937 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5938 (GLIBC_2.29): Likewise.
5939 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5940 (GLIBC_2.29): Likewise.
5941 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5942 Likewise.
5943 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5944 (GLIBC_2.29): Likewise.
5945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5946 (GLIBC_2.29): Likewise.
5947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5948 (GLIBC_2.29): Likewise.
5949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5950 (GLIBC_2.29): Likewise.
5951 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5952 Likewise.
5953 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5954 Likewise.
5955 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5956 Likewise.
5957 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5958 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5959 Likewise.
5960 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5961 Likewise.
5962 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5963 Likewise.
5964 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5965 Likewise.
5966
5967 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5968
5969 * misc/Makefile (tests): Add tst-ldbl-error.
5970 * misc/tst-ldbl-error.c: New file.
5971
5972 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5973
5974 * misc/Makefile (tests): Add tst-ldbl-warn.
5975 * misc/tst-ldbl-warn.c: New file.
5976
5977 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5978
5979 * argp/Makefile (tests): Add tst-ldbl-argp.
5980 * argp/tst-ldbl-argp.c: New file.
5981
5982 2018-11-05 Arjun Shankar <arjun@redhat.com>
5983
5984 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5985 __gconv_path_elem and call __gconv_get_path unconditionally.
5986
5987 2018-11-05 Andreas Schwab <schwab@suse.de>
5988
5989 [BZ #22927]
5990 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5991 creating the first helper thread failed.
5992
5993 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5994
5995 * sysdeps/mach/hurd/msync.c: New file.
5996
5997 2018-11-02 Florian Weimer <fweimer@redhat.com>
5998
5999 * support/shell-container.c (copy_func): Call
6000 support_copy_file_range instead of copy_file_range to support
6001 cross-device copies.
6002
6003 2018-11-02 Florian Weimer <fweimer@redhat.com>
6004
6005 * support/test-container.c: Include <libc-pointer-arith.h> for
6006 ALIGN_UP.
6007
6008 2018-11-01 Zong Li <zong@andestech.com>
6009
6010 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6011 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6012 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6013 (__FP_FRAC_SET_8): Add implementation for RV32 use.
6014
6015 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6016 variable to avoid overlap arguments.
6017
6018 2018-11-01 Joseph Myers <joseph@codesourcery.com>
6019
6020 * posix/bug-regex22.c (main): Use puts with distinct error
6021 messages for unexpected success of re_compile_pattern, not printf
6022 with NULL argument to %s.
6023
6024 * stdio-common/bug22.c: Include <libc-diag.h>.
6025 (do_test): Disable -Wformat-overflow= warnings around fprintf
6026 calls outputting more than INT_MAX characters.
6027 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6028 around printf call with NULL %s argument.
6029
6030 [BZ #23848]
6031 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6032 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6033 Undefine.
6034 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6035 (__ASSUME_RECVMSG_SYSCALL): Likewise.
6036 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6037 (__ASSUME_SENDTO_SYSCALL): Likewise.
6038 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6039 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6040 [!__arch64__].
6041 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6042 (__ASSUME_CONNECT_SYSCALL): Likewise.
6043 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6044 (__ASSUME_RECVFROM_SYSCALL): Likewise.
6045 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6046 Define.
6047 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6048 Likewise.
6049 [__LINUX_KERNEL_VERSION >= 0x040400]
6050 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6051 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6052 Remove.
6053 (listen): Likewise.
6054 (setsockopt): Likewise.
6055
6056 2018-11-01 Fredrik Noring <noring@nocrew.org>
6057
6058 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6059 with the ISA override.
6060
6061 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
6062
6063 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6064 #endif.
6065
6066 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6067
6068 * manual/errno.texi (EIEIO): Document how translators should
6069 translate the error message.
6070 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
6071 printing trailing whitespaces refused by git.
6072 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6073 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6074 * hurd/Makefile (user-interfaces): Add pci.
6075
6076 2018-10-30 Joseph Myers <joseph@codesourcery.com>
6077
6078 * conform/linknamespace.py: New file.
6079 * conform/linknamespace.pl: Remove file.
6080 * conform/Makefile ($(linknamespace-header-tests)): Use
6081 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
6082 option.
6083
6084 2018-10-30 Florian Weimer <fweimer@redhat.com>
6085
6086 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6087 memory leaks.
6088
6089 2018-10-30 Florian Weimer <fweimer@redhat.com>
6090
6091 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6092
6093 2018-10-30 Florian Weimer <fweimer@redhat.com>
6094
6095 * stdlib/tst-strtod-overflow.c (do_test): Switch to
6096 support_blob_repeat.
6097
6098 2018-10-30 Florian Weimer <fweimer@redhat.com>
6099
6100 Avoid spurious test failures in stdlib/test-bz22786.
6101 * support/Makefile (libsupport-routines): Add blob_repeat.
6102 (tests): Add tst-support_blob_repeat.
6103 * support/blob_repeat.h: New file.
6104 * support/blob_repeat.c: Likewise.
6105 * support/tst-support_blob_repeat.c: Likewise.
6106 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6107 support_blob_repeat_allocate.
6108
6109 2018-10-30 Andreas Schwab <schwab@suse.de>
6110
6111 [BZ #23125]
6112 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6113 Don't use tail call.
6114 * elf/tst-unwind-main.c: New file.
6115 * elf/Makefile (tests): Add tst-unwind-main.
6116 (CFLAGS-tst-unwind-main.c): Define.
6117
6118 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
6119
6120 [BZ #23791]
6121 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6122 n_cs_precedes to 0.
6123 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6124
6125 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6126
6127 * conform/glibcconform.py: Do not import shutil.
6128 (list_exported_functions): Use tempfile.TemporaryDirectory instead
6129 of mkdtemp.
6130
6131 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
6132 critic_missing for versions before 3.4.
6133 * configure: Regenerated.
6134 * manual/install.texi (Tools for Compilation): Document
6135 requirement for Python to build glibc.
6136 * INSTALL: Regenerated.
6137 * Rules [PYTHON]: Make code unconditional.
6138 * benchtests/Makefile [PYTHON]: Likewise.
6139 * conform/Makefile [PYTHON]: Likewise.
6140 * manual/Makefile [PYTHON]: Likewise.
6141 * math/Makefile [PYTHON]: Likewise.
6142
6143 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6144
6145 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6146 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6147 answer to interrupt_operation, return EIEIO instead of EINTR.
6148 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6149 _hurd_intr_rpc_msg_about_to global point to start of controlled
6150 assembly snippet. Make it check canceled flag.
6151 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6152 the _hurd_intr_rpc_msg_about_to point.
6153 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6154 issue, remove cancel flag check.
6155
6156 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6157
6158 * scripts/build-many-glibcs.py: Remove compatibility for missing
6159 os.cpu_count and re.fullmatch.
6160
6161 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6162
6163 [BZ #23822]
6164 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6165 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6166 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6167
6168 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6169
6170 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6171 macro.
6172
6173 2018-10-25 Florian Weimer <fweimer@redhat.com>
6174
6175 [BZ #23562]
6176 [BZ #23821]
6177 XFAIL siginfo_t si_band conform test on sparc64.
6178 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6179 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6180 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6181 (conformtest-xfail-conds): Add sparc64-linux.
6182 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6183 sparc64.
6184 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6185
6186 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6187
6188 * elf/elf.h (NT_MIPS_DSP): New macro.
6189 (NT_MIPS_FP_MODE): Likewise.
6190
6191 2018-10-25 Zong Li <zong@andestech.com>
6192
6193 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6194 name by adding the file extension (.so).
6195
6196 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6197
6198 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6199 (test-xfail-ISO11/threads.h/linknamespace,
6200 test-xfail-ISO11/threads.h/conform): Add.
6201
6202 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6203
6204 * math/gen-libm-test.py: Import os.
6205 (ALL_FLOATS_MANUAL): New constant.
6206 (ALL_FLOATS_SUFFIX): Likewise.
6207 (Ulps.all_functions): New function.
6208 (real_all_ulps): Likewise.
6209 (generate_err_table_sub): Likewise.
6210 (generate_err_table): Likewise.
6211 (main): Handle -s and -m options.
6212 * manual/libm-err-tab.pl: Remove.
6213 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6214 instead of libm-err-tab.pl.
6215 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6216 != no].
6217 * manual/install.texi (Tools for Compilation): Document
6218 requirement for Python to build manual.
6219 * INSTALL: Regenerated.
6220
6221 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6222
6223 * bits/time64.h: New file.
6224 * include/time.h: Replace internal_time_t with __time64_t.
6225 * posix/bits/types (__time64_t): Add.
6226 * stdlib/Makefile: Add bits/time64.h to includes.
6227 * time/tzfile.c: Replace internal_time_t with __time64_t.
6228
6229 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6230
6231 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6232 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6233 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6234 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6235 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6236 prototype.
6237 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6238 * posix/spawn_faction_addclose.c
6239 (__posix_spawn_file_actions_addclose): Add hidden definition.
6240 * posix/spawn_faction_adddup2.c
6241 (__posix_spawn_file_actions_adddup2): Likewise.
6242 * posix/spawn_faction_destroy.c
6243 (__posix_spawn_file_actions_destroy): Likewise.
6244 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6245 Likewise.
6246 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6247 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6248 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6249 Likewise.
6250 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6251 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6252 Likewise.
6253
6254 2018-10-24 Andreas Schwab <schwab@suse.de>
6255
6256 [BZ #18093]
6257 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6258 format cache.
6259 * elf/cache.c (print_cache): Likewise.
6260
6261 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6262
6263 * bits/timesize.h: New file.
6264 * stdlib/Makefile (headers): Add bits/timesize.h.
6265 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6266 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6267 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6268 (__SEM_PAD_AFTER_TIME): Likewise.
6269 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6270 (__SHM_PAD_AFTER_TIME): Likewise.
6271 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6272 (__MSQ_PAD_BEFORE_TIME): Likewise.
6273 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6274 (__SEM_PAD_BEFORE_TIME): Likewise.
6275 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6276 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6277 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6278 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6279 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6280 (__MSQ_PAD_BEFORE_TIME): Likewise.
6281 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6282 (__SEM_PAD_BEFORE_TIME): Likewise.
6283 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6284 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6285 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6286 (__MSQ_PAD_BEFORE_TIME): Likewise.
6287 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6288 (__SEM_PAD_BEFORE_TIME): Likewise.
6289 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6290 (__SHM_PAD_BEFORE_TIME): Likewise.
6291 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6292 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6293 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6294
6295 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6296
6297 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6298 USE_RDTSCP is defined.
6299 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6300 USE_RDTSCP is defined.
6301
6302 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6303
6304 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6305 defined.
6306
6307 [BZ #23709]
6308 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6309 independently of other flags.
6310
6311 2018-10-23 Florian Weimer <fweimer@redhat.com>
6312
6313 * time/tst-mktime2.c (N_STRINGS): Remove.
6314 (set_timezone): New function.
6315 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6316 (mktime_test1): Report localtime failure and check errno value.
6317 Use TEST_COMPARE.
6318 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6319 (do_test): Remove alarm call. Use set_timezone and array_length.
6320
6321 2018-10-23 Andreas Schwab <schwab@suse.de>
6322
6323 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6324 (__start_context): Use END instead of PSEUDO_END.
6325
6326 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6327
6328 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6329 version to 4.19.
6330
6331 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6332 version to 4.19.
6333
6334 [BZ #23793]
6335 * wcsmbs/c32rtomb.c: New file.
6336 * wcsmbs/mbrtoc32.c: Likewise.
6337 * wcsmbs/tst-c32-state.c: Likewise.
6338 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6339 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6340 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6341 (tests): Add tst-c32-state.
6342 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6343 $(gen-locales).
6344
6345 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6346
6347 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6348 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6349
6350 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6351
6352 [BZ #23794]
6353 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6354 pair and return 0 in that case, and use saved character to
6355 interpret following character.
6356 * wcsmbs/tst-c16-surrogate.c: New file.
6357 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6358 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6359 Depend on $(gen-locales)
6360
6361 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6362
6363 [BZ #23562]
6364 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6365 (struct siginfo_t): Use correct type for si_band.
6366
6367 2018-10-19 Florian Weimer <fweimer@redhat.com>
6368
6369 [BZ #23689]
6370 * resource/bits/types/struct_rusage.h (struct rusage): Update
6371 comment on struct. Remove extraneous field comment.
6372
6373 2018-10-18 David S. Miller <davem@davemloft.net>
6374
6375 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6376 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6377 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6378 sysdep_routines in subdir elf.
6379 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6380 version for __vdso_clock_gettime.
6381 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6382 Define.
6383 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6384 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6385
6386 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6387
6388 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6389
6390 * sysdeps/i386/init-arch.h: Removed.
6391 * sysdeps/i386/i586/init-arch.h: Likewise.
6392 * sysdeps/i386/i686/init-arch.h: Likewise.
6393 * sysdeps/i386/i686/hp-timing.h: Likewise.
6394 * sysdeps/x86_64/hp-timing.h: Likewise.
6395 * sysdeps/i386/isa.h: New file.
6396 * sysdeps/i386/i586/isa.h: Likewise.
6397 * sysdeps/i386/i686/isa.h: Likewise.
6398 * sysdeps/x86_64/isa.h: Likewise.
6399 * sysdeps/x86/hp-timing.h: New file.
6400 * sysdeps/x86/init-arch.h: Include <isa.h>.
6401
6402 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6403
6404 * math/libm-test-pow.inc (pow_test_data): Do not allow
6405 divide-by-zero exception for pow(+/- 0, -Inf).
6406
6407 2018-10-17 Zack Weinberg <zackw@panix.com>
6408
6409 * manual/job.texi (Job Control is Optional): Remove node, as
6410 job control has not been optional in quite some time.
6411 (Job Control): Mention briefly that systems older than
6412 POSIX.1-2001 might not support job control.
6413 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6414 defined on systems conforming to POSIX.1-2001.
6415
6416 2018-10-17 Arjun Shankar <arjun@redhat.com>
6417
6418 [BZ #22062]
6419 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6420 indentation.
6421 * (__gconv_read_conf): Mark function static.
6422 * (once): New static variable.
6423 * (__gconv_load_conf): New function.
6424 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6425 * iconv/gconv_db.c (once): Remove static variable.
6426 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6427 __gconv_read_conf.
6428 * (__gconv_find_transform): Likewise.
6429 * iconv/tst-iconv-mt.c: New test.
6430 * iconv/Makefile: Add tst-iconv_mt.
6431
6432 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6433
6434 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6435 bits/shm-pad.h.
6436 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6437 (shmatt_t): Define as __syscall_ulong_t.
6438 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6439 and [__SHM_PAD_AFTER_TIME].
6440 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6441 Define shm_segsz and associated padding based on
6442 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6443 Use __syscall_ulong_t instead of unsigned long int.
6444 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6445 unsigned long int.
6446 [__USE_MISC] (struct shm_info): Likewise.
6447 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6448 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6449 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6450 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6451 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6452 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6453 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6454 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6455 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6456 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6457 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6458
6459 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6460 bits/shmlba.h.
6461 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6462 (SHMLBA): Remove macro.
6463 (__getpagesize): Remove function declaration.
6464 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6465 <bits/shmlba.h>.
6466 (SHMLBA): Remove macro.
6467 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6468 <bits/shmlba.h>.
6469 (SHMLBA): Remove macro.
6470 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6471 <bits/shmlba.h>.
6472 (SHMLBA): Remove macro.
6473 (__getpagesize): Remove function declaration.
6474 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6475 <bits/shmlba.h>.
6476 (SHMLBA): Remove macro.
6477 (__getshmlba): Remove function declaration.
6478 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6479 (SHMLBA): Remove macro.
6480 (__getpagesize): Remove function declaration.
6481 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6482 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6483 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6484 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6485 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6486 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6487 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6488 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6489 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6490 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6491
6492 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6493
6494 [BZ #23275]
6495 * nptl/tst-mutex10.c: New File.
6496 * nptl/Makefile (tests): Add tst-mutex10.
6497 (tst-mutex10-ENV): New variable.
6498 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6499 Ensure that elision path is used if elision is available.
6500 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6501 Likewise.
6502 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6503 Likewise.
6504 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6505 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6506 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6507 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6508 Likewise.
6509 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6510 (__pthread_mutex_cond_lock_adjust): Likewise.
6511 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6512 Likewise.
6513 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6514 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6515 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6516 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6517 Add comments.
6518 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6519 Use atomic_load_relaxed and atomic_store_relaxed.
6520 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6521 Use atomic_store_relaxed.
6522
6523 2018-10-17 Andreas Schwab <schwab@suse.de>
6524
6525 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6526 * crypt/badsalttest.c (TIMEOUT): Likewise.
6527 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6528 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6529 * io/test-lfs.c (TIMEOUT): Likewise.
6530 * libio/tst-atime.c (TIMEOUT): Likewise.
6531 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6532 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6533 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6534 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6535 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6536 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6537 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6538 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6539 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6540 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6541 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6542 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6543 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6544 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6545 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6546 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6547 * nptl/tst-once2.c (TIMEOUT): Likewise.
6548 * nptl/tst-once3.c (TIMEOUT): Likewise.
6549 * nptl/tst-once4.c (TIMEOUT): Likewise.
6550 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6551 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6552 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6553 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6554 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6555 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6556 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6557 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6558 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6559 * posix/tst-chmod.c (TIMEOUT): Likewise.
6560 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6561 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6562 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6563 * posix/tst-regex2.c (TIMEOUT): Likewise.
6564 * posix/tst-waitid.c (TIMEOUT): Likewise.
6565 * rt/tst-aio.c (TIMEOUT): Likewise.
6566 * rt/tst-aio10.c (TIMEOUT): Likewise.
6567 * rt/tst-aio4.c (TIMEOUT): Likewise.
6568 * rt/tst-aio5.c (TIMEOUT): Likewise.
6569 * rt/tst-aio6.c (TIMEOUT): Likewise.
6570 * rt/tst-aio64.c (TIMEOUT): Likewise.
6571 * rt/tst-aio7.c (TIMEOUT): Likewise.
6572 * rt/tst-aio9.c (TIMEOUT): Likewise.
6573 * rt/tst-clock.c (TIMEOUT): Likewise.
6574 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6575 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6576 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6577 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6578 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6579 * rt/tst-timer4.c (TIMEOUT): Likewise.
6580 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6581 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6582 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6583 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6584 * time/tst-ftime.c (TIMEOUT): Likewise.
6585 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6586
6587 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6588
6589 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6590 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6591 for thunderX2.
6592
6593 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6594
6595 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6596 bits/sem-pad.h.
6597 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6598 instead of <bits/wordsize.h>.
6599 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6600 and [__SEM_PAD_AFTER_TIME].
6601 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6602 __syscall_ulong_t instead of unsigned long int.
6603 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6604 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6605 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6606 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6607 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6608 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6609 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6610 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6611 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6612 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6613 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6614
6615 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6616
6617 regex: simplify by using intprops.h
6618 [BZ#23744]
6619 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6620 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6621 intprops.h defines them.
6622
6623 regex: __builtin_expect → __glibc_unlikely
6624 [BZ#23744]
6625 This refactoring was prompted by a problem when the regex code is
6626 used as part of Gnulib and when the builder’s compiler does not grok
6627 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6628 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6629 Although this refactoring does not fix the problem directly,
6630 we might as well have Gawk use the now-preferred glibc style for when
6631 __builtin_expect is unavailable.
6632 * posix/regex_internal.h (BE): Remove.
6633 All uses replaced by __glibc_unlikely or __glibc_likely.
6634
6635 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6636
6637 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6638 bits/msq-pad.h.
6639 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6640 instead of <bits/wordsize.h>.
6641 (msgqnum_t): Define as __syscall_ulong_t.
6642 (msglen_t): Likewise.
6643 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6644 and [__MSQ_PAD_AFTER_TIME].
6645 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6646 __syscall_ulong_t instead of unsigned long int.
6647 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6648 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6649 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6650 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6651 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6652 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6653 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6654 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6655 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6656 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6657 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6658
6659 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6660
6661 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6662 (struct shmid_ds): Condition padding after time fields on
6663 [__WORDSIZE == 32].
6664 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6665 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6666 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6667
6668 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6669 (struct semid_ds): Condition padding after time fields on
6670 [__WORDSIZE == 32].
6671 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6672 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6673 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6674 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6675
6676 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6677 (struct msqid_ds): Condition padding after time fields on
6678 [__WORDSIZE == 32].
6679 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6680 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6681 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6682 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6683
6684 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6685
6686 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6687
6688 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6689
6690 * libio/tst-readline.c (TIMEOUT): Define.
6691
6692 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6693
6694 mktime fix for Gnulib + coreutils
6695 [BZ#23745]
6696 This fix affects only Gnulib. Problem discovered when
6697 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6698 * time/mktime.c:
6699 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6700 Do not define since it is not used. Defining an unused static
6701 function prompts a warning from GCC when Coreutils is configured
6702 with --enable-gcc-warnings.
6703
6704 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6705
6706 * benchtests/scripts/compare_bench.py (main): set float type on
6707 threshold argument.
6708
6709 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6710
6711 [BZ #23740]
6712 * localedata/locales/kl_GL (mon): Update, the relative case.
6713 (alt_mon): Add, fill with month names in the nominative case.
6714 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6715 (d_fmt): Set to "%b %d %Y".
6716
6717 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6718
6719 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6720 <bits/mman-linux.h>.
6721 (PROT_READ): Don't define here.
6722 (PROT_WRITE): Likewise.
6723 (PROT_EXEC): Likewise.
6724 (PROT_NONE): Likewise.
6725 (PROT_GROWSDOWN): Likewise.
6726 (PROT_GROWSUP): Likewise.
6727 (MAP_SHARED): Likewise.
6728 (MAP_PRIVATE): Likewise.
6729 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6730 [__USE_MISC] (MAP_FILE): Likewise.
6731 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6732 [__USE_MISC] (MAP_ANON): Likewise.
6733 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6734 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6735 (MCL_CURRENT): Likewise.
6736 (MCL_FUTURE): Likewise.
6737 (MCL_ONFAULT): Likewise.
6738 [__USE_MISC] (MADV_NORMAL): Likewise.
6739 [__USE_MISC] (MADV_RANDOM): Likewise.
6740 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6741 [__USE_MISC] (MADV_WILLNEED): Likewise.
6742 [__USE_MISC] (MADV_DONTNEED): Likewise.
6743 [__USE_MISC] (MADV_FREE): Likewise.
6744 [__USE_MISC] (MADV_REMOVE): Likewise.
6745 [__USE_MISC] (MADV_DONTFORK): Likewise.
6746 [__USE_MISC] (MADV_DOFORK): Likewise.
6747 [__USE_MISC] (MADV_HWPOISON): Likewise.
6748 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6749 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6750 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6751 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6752 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6753 (__MAP_ANONYMOUS): New macro.
6754 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6755 <bits/mman-linux.h> inclusion.
6756 (MAP_FIXED): Likewise.
6757 (MS_SYNC): Likewise.
6758 (MS_ASYNC): Likewise.
6759 (MS_INVALIDATE): Likewise.
6760 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6761 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6762 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6763 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6764 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6765 [__USE_MISC] (MADV_DODUMP): Likewise.
6766 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6767 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6768
6769 [BZ #23735]
6770 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6771 Define.
6772 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6773 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6774 Add test-nldbl-redirect.
6775 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6776 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6777 $(objpfx)libnldbl_nonshared.a.
6778
6779 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6780
6781 * support/support.h (support_objdir_elf_ldso): New variable.
6782 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6783 * support/Makefile (CFLAGS-support_paths.c): Add definition
6784 for OBJDIR_ELF_LDSO_PATH.
6785 * support/test-container.c (main): Search for the ld.so
6786 which is also used by the testsuite.
6787
6788 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6789
6790 [BZ #20209]
6791 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6792 should be "sap" rather than "sab".
6793 (day): Fix spelling of Sunday, should be "sapaat" rather than
6794 "sabaat".
6795
6796 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6797
6798 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6799
6800 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6801
6802 [BZ #19444]
6803 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6804 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6805 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6806
6807 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6808
6809 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6810
6811 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6812
6813 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6814 Add -mrtm.
6815 (CFLAGS-elision-unlock.c): Likewise.
6816 (CFLAGS-elision-timed.c): Likewise.
6817 (CFLAGS-elision-trylock.c): Likewise.
6818 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6819
6820 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6821
6822 [BZ #21037]
6823 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6824 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6825 new fd_to_filename interface.
6826 * libio/freopen64.c (freopen64): Likewise.
6827 * libio/tst-memstream.h: New file.
6828 * libio/tst-memstream4.c: Likewise.
6829 * libio/tst-wmemstream4.c: Likewise.
6830 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6831 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6832 and remove internal dynamic allocation.
6833
6834 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6835
6836 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6837 (MREMAP_MAYMOVE): Do not define here.
6838 [__USE_GNU] (MREMAP_FIXED): Likewise.
6839 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6840 (MREMAP_MAYMOVE): Define here instead.
6841 [__USE_GNU] (MREMAP_FIXED): Likewise.
6842 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6843 (MREMAP_MAYMOVE): Remove.
6844 [__USE_GNU] (MREMAP_FIXED): Likewise.
6845
6846 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6847
6848 * math/fromfp.h: Do not include <math_private.h>.
6849 * math/s_cacosh_template.c: Likewise.
6850 * math/s_casin_template.c: Likewise.
6851 * math/s_casinh_template.c: Likewise.
6852 * math/s_ccos_template.c: Likewise.
6853 * math/s_cproj_template.c: Likewise.
6854 * math/s_fdim_template.c: Likewise.
6855 * math/s_fmaxmag_template.c: Likewise.
6856 * math/s_fminmag_template.c: Likewise.
6857 * math/s_iseqsig_template.c: Likewise.
6858 * math/s_ldexp_template.c: Likewise.
6859 * math/s_nextdown_template.c: Likewise.
6860 * math/w_log1p_template.c: Likewise.
6861 * math/w_scalbln_template.c: Likewise.
6862 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6863 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6864 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6865 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6866 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6867 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6868 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6869 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6870 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6871 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6872 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6873 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6874 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6875 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6876 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6877 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6878 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6879 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6880 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6881 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6882 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6883 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6884 * sysdeps/ieee754/k_standardf.c: Likewise.
6885 * sysdeps/ieee754/k_standardl.c: Likewise.
6886 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6887 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6888 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6889 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6890 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6891 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6892 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6893 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6894 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6895 * sysdeps/ieee754/s_signgam.c: Likewise.
6896 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6897 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6898 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6899 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6900 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6901 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6902 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6903 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6904 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6905 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6906 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6907 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6908 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6909 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6910 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6911 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6912 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6913 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6914 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6915 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6916 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6917 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6918 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6919 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6920 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6921 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6922 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6923 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6924 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6925 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6926 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6927 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6928 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6929 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6930 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6931 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6932 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6933 <math_private.h>.
6934 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6935
6936 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6937
6938 [BZ #23716]
6939 * sysdeps/i386/dl-cet.c: Removed.
6940 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6941 prototype.
6942 (_dl_runtime_profile_shstk): Likewise.
6943 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6944 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6945
6946 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6947
6948 [BZ #23579]
6949 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6950 do_test_with_invalid_iov): New tests.
6951 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6952 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6953 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6954 errno is ENOSYS.
6955 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6956 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6957 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6958
6959 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6960
6961 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6962 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6963 (MATH_REDIRECT_BINARY_ARGS): New macro.
6964 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6965 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6966 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6967 header inclusion.
6968 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6969 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6970 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6971 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6972 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6973 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6974 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6975 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6976 Likewise.
6977 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6978 Likewise.
6979 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6980 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6981 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6982 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6983 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6984 Likewise.
6985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6986 Likewise.
6987 * sysdeps/generic/math_private_calls.h
6988 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6989 Do not declare and define as an inline function.
6990 * math/divtc3.c (__divtc3): Use copysign functions instead of
6991 __copysign variants.
6992 * math/multc3.c (__multc3): Likewise.
6993 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6994 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6995 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6996 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6997 Likewise.
6998 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6999 (__ieee754_yn): Likewise.
7000 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7001 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
7002 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7003 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7004 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
7005 (__sin): Likewise.
7006 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
7007 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7008 Likewise.
7009 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7010 Likewise.
7011 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7012 Likewise.
7013 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7014 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7015 Likewise.
7016 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7017 (__ieee754_ynf): Likewise.
7018 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7019 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7020 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7021 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7022 Likewise.
7023 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7024 (__ieee754_ynl): Likewise.
7025 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7026 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7027 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7028 Likewise.
7029 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7030 (__ieee754_ynl): Likewise.
7031 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7032 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7033 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7034 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7035 Likewise.
7036 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7037 (__ieee754_ynl)
7038 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7039 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7040 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7041 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7042 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7043
7044 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7045 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7046 using MATH_REDIRECT.
7047 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7048 header inclusion.
7049 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7050 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7051 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7052 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7053 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7054 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7055 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7056 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7057 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7059 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7060 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7061 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7062 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7063 (round): Redirect to __round.
7064 (__roundl): Call round instead of __round.
7065 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7066 Remove macro.
7067 [_ARCH_PWR5X] (__roundf): Likewise.
7068 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7069 functions instead of __round variants.
7070 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7071 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7072 Likewise.
7073 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7074 Likewise.
7075 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7076 Likewise.
7077 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7078 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7079 __lroundl.
7080 (__ieee754_expl): Call roundl instead of __roundl.
7081
7082 2018-09-27 Andreas Schwab <schwab@suse.de>
7083
7084 [BZ #23717]
7085 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7086 (do_test): Make st1 static.
7087
7088 2018-09-26 Andreas Schwab <schwab@suse.de>
7089
7090 [BZ #23707]
7091 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7092 * elf/Makefile (tests): Add tst-unwind-ctor.
7093 (modules-names): Add tst-unwind-ctor-lib.
7094 ($(objpfx)tst-unwind-ctor): Depend on
7095 $(objpfx)tst-unwind-ctor-lib.so.
7096
7097 2018-09-26 Joseph Myers <joseph@codesourcery.com>
7098
7099 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7100 file. Most contents moved from ....
7101 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
7102 and include <bits/mman-map-flags-generic.h>.
7103 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7104 (sysdep_headers): Add bits/mman-map-flags-generic.h.
7105 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7106 <bits/mman-map-flags-generic.h>.
7107 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7108 macros defined in <bits/mman-map-flags-generic.h>.
7109 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7110 <bits/mman-map-flags-generic.h>.
7111 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7112 defined in <bits/mman-map-flags-generic.h>.
7113
7114 2018-09-26 Andreas Schwab <schwab@suse.de>
7115
7116 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7117 output.
7118
7119 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
7120 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7121 Fangrui Song <maskray@google.com>
7122
7123 [BZ #20480]
7124 * config.make.in (have-textrel_ifunc): New define.
7125 * configure.ac: Add check if linker supports textrel relocation with
7126 ifunc.
7127 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7128 tst-ifunc-textrel.
7129 (CFLAGS-tst-ifunc-textrel.c): New rule.
7130 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7131 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7132 * elf/tst-ifunc-textrel.c: New file.
7133
7134 2018-09-25 Joseph Myers <joseph@codesourcery.com>
7135
7136 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7137 <bits/procfs-prregset.h>.
7138 (prgregset_t): Define using __prgregset_t.
7139 (prfpregset_t): Define using __prfpregset_t.
7140 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7141 (sysdep_headers): Add bits/procfs-prregset.h.
7142 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7143 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7144 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7145 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7146
7147 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7148 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7149 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7150 pr_uid and pr_gid.
7151 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7152 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7153 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7154 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7155 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7156 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7157 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7158 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7159 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7160 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7161 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7162 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7163 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7164 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7165 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7166 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7167 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7168 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7169 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7170 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7171 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7172 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7173 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7174 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7175
7176 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7177 AArch64 version. Include <bits/procfs.h>.
7178 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7179 (sysdep_headers): Add bits/procfs.h.
7180 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7181 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7182 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7183 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7184 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7185 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7186 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7187 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7188 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7189 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7190 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7191 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7192 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7193 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7194 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7195 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7196 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7197
7198 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7199
7200 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7201 Use libsupport.
7202
7203 2018-09-25 Arjun Shankar <arjun@redhat.com>
7204
7205 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7206 (__gconv_max_path_elem_len): Likewise.
7207 (__gconv_nmodules): Likewise.
7208 (__gconv_get_path): Likewise.
7209 (path_elem): Move to ...
7210 * iconv/gconv_conf.c: ... here.
7211 (__gconv_get_path): Mark function static.
7212 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7213 * iconv/gconv_open.c: ... here.
7214
7215 2018-09-24 Andreas Schwab <schwab@suse.de>
7216
7217 * scripts/haveversions.awk: New file.
7218 * Makerules ($(common-objpfx)Versions.def)
7219 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7220 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7221 Move rules ...
7222 * Makeconfig ($(common-objpfx)Versions.def)
7223 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7224 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7225 ... here.
7226 ($(common-objpfx)Versions.mk): New rule. Include it.
7227 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7228 Emit error if build-obsolete-nsl = yes.
7229 * manual/install.texi (Configuring and compiling): Describe
7230 --enable-obsolete-nsl as unavaiable after version 2.28.
7231 * INSTALL: Regenerate.
7232
7233 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7234
7235 * NEWS: Add note about new TLE support on powerpc64le.
7236 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7237 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7238 __ununsed1.
7239 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7240 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7241 * sysdeps/powerpc/powerpc32/sysdep.h,
7242 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7243 ABORT_TRANSACTION): Remove macros.
7244 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7245 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7246 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7247 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7248 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7249 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7250 usage.
7251 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7252
7253 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7254
7255 [BZ #10425]
7256 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7257 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7258 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7259 which is the same as in it_IT.
7260 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7261 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7262
7263 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7264
7265 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7266 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7267 using MATH_REDIRECT.
7268 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7269 header inclusion.
7270 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7271 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7272 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7273 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7274 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7275 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7276 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7277 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7280 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7281 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7282 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7283 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7284 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7285 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7286 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7287 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7288 (ceil): Redirect to __ceil.
7289 (floor): Redirect to __floor.
7290 (trunc): Redirect to __trunc.
7291 (__truncl): Call trunc instead of __trunc.
7292 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7293 Remove macro.
7294 [_ARCH_PWR5X] (__truncf): Likewise.
7295 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7296 trunc functions instead of __trunc variants.
7297 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7298 Likewise.
7299 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7300 Likewise.
7301 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7302 Likewise.
7303 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7304 Likewise.
7305
7306 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7307 [__i586__ || __pentium__].
7308 [__i486__]: Handle explicitly.
7309 (HAS_CPUID): Define to 1 if above macros are undefined.
7310 (HAS_I586): Likewise.
7311 (HAS_I686): Likewise.
7312
7313 2018-09-20 Florian Weimer <fweimer@redhat.com>
7314
7315 * misc/tst-gethostid.c: New file.
7316 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7317 (tst-gethostid): Link with -ldl.
7318
7319 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7320
7321 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7322 value from gethostbyname_r.
7323
7324 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7325
7326 * stdlib/tst-setcontext9.c (f1): Rename to...
7327 (f1a): ... this.
7328 (f1b): New function implementing lower half of f1 in alternate stack.
7329
7330 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7331
7332 Fix mktime localtime offset confusion
7333 [BZ #23603]
7334 * include/time.h (__mktime_internal): The localtime offset is now
7335 of type long int instead of time_t. This is the longstanding type
7336 in glibc, and it is more than enough to represent difference
7337 between localtime and gmtime even if it is 32 bits and time_t is
7338 64. Changing it now will let us avoid an unnecessary change when
7339 time_t is widened to 64 bits on 32-bit platforms.
7340 * time/mktime-internal.h (mktime_offset_t): Now long int.
7341
7342 Merge mktime, timegm from upstream Gnulib
7343 [BZ #23603][BZ #16346]
7344 This fixes some obscure problems with integer overflow.
7345 Although it looks scary, it is almost all a byte-for-byte copy
7346 from Gnulib, and the Gnulib code has been tested reasonably well.
7347 * include/intprops.h: New file, copied from Gnulib.
7348 * include/verify.h, time/mktime-internal.h:
7349 New tiny files, simplified from Gnulib.
7350 * time/mktime.c: Copy from Gnulib. This has the following changes:
7351 Do not include config.h if DEBUG_MKTIME is nonzero.
7352 Include stdbool.h, intprops.h, verify.h.
7353 Include string.h only if needed.
7354 Include stdlib.h on MS-Windows.
7355 Include mktime-internal.h.
7356 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7357 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7358 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7359 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7360 simplify later conditionals; default the others to zero. Use
7361 these conditionals to express only the code needed on the current
7362 platform. In uses of these conditionals, explicitly spell out how
7363 _LIBC affects things, so it’s easier to review from a glibc
7364 viewpoint.
7365 (WRAPV): Remove; no longer needed now that we have
7366 systematic overflow checking.
7367 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7368 compartmentalize tzset issues. Move system-dependent tzsettish
7369 code here from mktime.
7370 (verify): Remove; now done by verify.h. All uses changed.
7371 (long_int): Use a more-conservative definition, to avoid
7372 integer overflow.
7373 (SHR): Remove, replacing with ...
7374 (shr): New function, which means we needn’t worry about side
7375 effects in args, and conversion analysis is simpler.
7376 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7377 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7378 (time_t_avg, time_t_add_ok): Remove.
7379 (mktime_min, mktime_max): New constants.
7380 (leapyear, isdst_differ): Use bool for booleans.
7381 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7382 Use long_int, not time_t, for mktime differences.
7383 (long_int_avg): New function, replacing time_t_avg.
7384 INT_ADD_WRAPV replaces time_t_add_ok.
7385 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7386 All uses changed.
7387 (convert_time): New function.
7388 (ranged_convert): Use it.
7389 (__mktime_internal): Last arg now points to mktime_offset_t, not
7390 time_t. All uses changed. This is a no-op on glibc, where
7391 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7392 offset guess. Directly check for integer overflow instead of
7393 using a heuristic that works only 99.9...% of the time.
7394 Access *OFFSET only once, to avoid an unlikely race if the
7395 compiler delays a load and if this cascades into a signed integer
7396 overflow.
7397 (mktime): Move tzsettish code to my_tzset, and move
7398 localtime_offset to within mktime so that it doesn’t
7399 need a separate ifdef.
7400 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7401 instead of localtime.
7402 * time/timegm.c: Copy from Gnulib. This has the following changes:
7403 Include mktime-internal.h.
7404 [!_LIBC]: Include config.h and time.h. Do not include
7405 timegm.h or time_r.h. Make __mktime_internal a macro,
7406 and include mktime-internal.h to get its declaration.
7407 (timegm): Temporary is now mktime_offset_t, not time_t.
7408 This affects only Gnulib.
7409
7410 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7411
7412 [BZ #23637]
7413 * string/test-strstr.c (pr23637): New function.
7414 (test_main): Add tests with longer needles.
7415 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7416 * string/strstr.c (AVAILABLE): Likewise.
7417
7418 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7419
7420 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7421
7422 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7423
7424 * NEWS: Mention pow improvements.
7425 * math/Makefile (type-double-routines): Add e_pow_log_data.
7426 * sysdeps/generic/math_private.h (__exp1): Remove.
7427 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7428 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7429 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7430 contraction.
7431 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7432 (exp_inline): Remove.
7433 (__ieee754_exp): Only single double input is handled.
7434 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7435 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7436 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7437 (__pow_log_data): Define.
7438 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7439 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7440 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7441 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7442 contraction.
7443 (CFLAGS-e_pow-fma4.c): Likewise.
7444
7445 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7446
7447 Simplify tzfile fstat failure code
7448 [BZ #21716]
7449 * time/tzfile.c (__tzfile_read): Simplify slightly.
7450
7451 Fix tzfile low-memory assertion failure
7452 [BZ #21716]
7453 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7454 when registering time zone abbreviations.
7455
7456 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7457
7458 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7459 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7460 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7461 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7462 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7463 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7464 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7465 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7466 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7467
7468 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7469 __ceil.
7470 (__ceill): Call ceil instead of __ceil.
7471 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7472 __floor.
7473 (__floorl): Call floor instead of __floor.
7474
7475 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7476
7477 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7478 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7479 using MATH_REDIRECT.
7480 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7481 header inclusion.
7482 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7483 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7484 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7485 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7486 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7487 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7488 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7489 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7490 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7491 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7492 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7493 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7494 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7495 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7496 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7497 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7498 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7499 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7500 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7501 Remove macro.
7502 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7503 functions instead of __ceil variants.
7504 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7505 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7506 Likewise.
7507 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7508 Likewise.
7509 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7510 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7511 Likewise.
7512 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7513 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7514
7515 [BZ #21286]
7516 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7517 constant.
7518 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7519 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7520 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7521 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7522 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7523 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7524 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7525 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7526 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7527 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7528 (ILL_BADIADDR): Remove constant.
7529 (TRAP_BRANCH): Likewise.
7530 (TRAP_HWBKPT): Likewise.
7531
7532 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7533
7534 [BZ #23656]
7535 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7536 Remove [_MIPS_SIM = _ABIN32] conditional case.
7537 (struct elf_prpsinfo): Likewise.
7538
7539 [BZ #23649]
7540 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7541 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7542 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7543 Likewise.
7544 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7545 elf_prpsinfo): Likewise.
7546 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7547 elf_prpsinfo): Likewise.
7548 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7549 Likewise.
7550
7551 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7552 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7553 using MATH_REDIRECT.
7554 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7555 header inclusion.
7556 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7557 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7558 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7559 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7560 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7561 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7562 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7563 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7564 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7565 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7566 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7567 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7568 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7569 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7570 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7571 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7572 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7573 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7574 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7576 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7577 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7578 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7579 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7580 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7581 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7582 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7583 __rint variants.
7584 * math/e_scalbf.c (invalid_fn): Likewise.
7585 * math/e_scalbl.c (invalid_fn): Likewise.
7586 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7587 Likewise.
7588 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7589 Likewise.
7590 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7591 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7592 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7593 Likewise.
7594 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7595 Likewise.
7596 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7597 Likewise.
7598 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7599 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7600
7601 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7602 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7603 New macro.
7604 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7605 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7606 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7607 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7608 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7609 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7610 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7611 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7612 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7613 && !NO_MATH_REDIRECT] (floor): Likewise.
7614 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7615 header inclusion.
7616 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7617 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7618 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7619 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7620 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7621 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7622 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7623 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7624 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7625 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7626 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7627 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7628 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7629 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7630 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7631 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7632 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7633 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7634 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7635 Remove macro.
7636 [_ARCH_PWR5X] (__floorf): Likewise.
7637 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7638 inline function.
7639 [__SSE4_1__] (__floorf): Likewise.
7640 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7641 instead of __floor variants.
7642 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7643 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7644 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7645 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7646 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7647 * math/w_tgamma_compat.c (__tgamma): Likewise.
7648 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7649 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7650 * math/w_tgammal_compat.c (__tgammal): Likewise.
7651 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7652 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7653 Likewise.
7654 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7655 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7656 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7657 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7658 Likewise.
7659 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7660 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7661 Likewise.
7662 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7663 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7664 Likewise.
7665 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7666 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7667 Likewise.
7668 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7669 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7670 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7671 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7672 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7673 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7674
7675 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7676
7677 * elf/Makefile (modules-names-tests): New variable.
7678
7679 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7680
7681 * NEWS: Mention log2 improvements.
7682 * math/Makefile (type-double-routines): Add e_log2_data.
7683 * sysdeps/i386/fpu/e_log2_data.c: New file.
7684 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7685 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7686 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7687 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7688 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7689 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7690
7691 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7692
7693 * NEWS: Mention log improvement.
7694 * math/Makefile (type-double-routines): Add e_log_data.
7695 * sysdeps/i386/fpu/e_log_data.c: New file.
7696 * sysdeps/ia64/fpu/e_log_data.c: New file.
7697 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7698 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7699 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7700 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7701 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7702 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7703
7704 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7705 Xuepeng Guo <xuepeng.guo@intel.com>
7706
7707 [BZ #23606]
7708 * sysdeps/i386/start.S: Include <sysdep.h>
7709 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7710 enabled. Add cfi_undefined (eip).
7711
7712 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7713
7714 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7715 (MOVQ): Likewise.
7716 (EXTRACT_WORDS64): Likewise.
7717 (INSERT_WORDS64): Likewise.
7718 (GET_FLOAT_WORD): Likewise.
7719 (SET_FLOAT_WORD): Likewise.
7720
7721 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7722 argument.
7723 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7724 build, but not for second build if --full-gcc. Use
7725 --enable-languages=all for second build if --full-gcc.
7726 (get_parser): Add --full-gcc option.
7727 (main): Update call to Context.
7728
7729 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7730
7731 [BZ #10797]
7732 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7733 Single Quotation Mark).
7734 (thousands_sep): Likewise.
7735 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7736 * localedata/locales/it_IT (thousands_sep): Use ".".
7737 (grouping): Use "3;3".
7738
7739 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7740
7741 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7742 x86_64 and i686 configs using --enable-obsolete-rpc
7743 --enable-obsolete-nsl.
7744
7745 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7746
7747 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7748
7749 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7750
7751 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7752 Increment size of new_argv by one.
7753
7754 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7755
7756 [BZ #17426]
7757 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7758 * localedata/locales/ar_IN (d_fmt): Likewise.
7759 * localedata/locales/bhb_IN (d_fmt): Likewise.
7760 * localedata/locales/bho_IN (d_fmt): Likewise.
7761 * localedata/locales/bn_BD (d_fmt): Likewise.
7762 * localedata/locales/bn_IN (d_fmt): Likewise.
7763 * localedata/locales/doi_IN (d_fmt): Likewise.
7764 * localedata/locales/gu_IN (d_fmt): Likewise.
7765 * localedata/locales/hi_IN (d_fmt): Likewise.
7766 * localedata/locales/hne_IN (d_fmt): Likewise.
7767 * localedata/locales/kn_IN (d_fmt): Likewise.
7768 * localedata/locales/mag_IN (d_fmt): Likewise.
7769 * localedata/locales/mai_IN (d_fmt): Likewise.
7770 * localedata/locales/mjw_IN (d_fmt): Likewise.
7771 * localedata/locales/ml_IN (d_fmt): Likewise.
7772 * localedata/locales/mni_IN (d_fmt): Likewise.
7773 * localedata/locales/mr_IN (d_fmt): Likewise.
7774 * localedata/locales/pa_IN (d_fmt): Likewise.
7775 * localedata/locales/raj_IN (d_fmt): Likewise.
7776 * localedata/locales/sat_IN (d_fmt): Likewise.
7777 * localedata/locales/sd_IN (d_fmt): Likewise.
7778 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7779 * localedata/locales/ta_IN (d_fmt): Likewise.
7780 * localedata/locales/ta_LK (d_fmt): Likewise.
7781 * localedata/locales/tcy_IN (d_fmt): Likewise.
7782 * localedata/locales/ur_IN (d_fmt): Likewise.
7783
7784 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7785 * localedata/locales/ks_IN (d_fmt): Likewise.
7786 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7787
7788 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7789 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7790 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7791 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7792
7793 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7794
7795 * NEWS: Mention exp and exp2 improvements.
7796 * math/Makefile (libm-support): Remove t_exp.
7797 (type-double-routines): Add math_err and e_exp_data.
7798 * sysdeps/aarch64/libm-test-ulps: Update.
7799 * sysdeps/arm/libm-test-ulps: Update.
7800 * sysdeps/i386/fpu/e_exp_data.c: New file.
7801 * sysdeps/i386/fpu/math_err.c: New file.
7802 * sysdeps/i386/fpu/t_exp.c: Remove.
7803 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7804 * sysdeps/ia64/fpu/math_err.c: New file.
7805 * sysdeps/ia64/fpu/t_exp.c: Remove.
7806 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7807 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7808 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7809 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7810 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7811 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7812 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7813 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7814 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7815 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7816 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7817 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7818 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7819 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7820 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7821 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7822
7823 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7824
7825 * sysdeps/alpha/fpu/math_private.h: Remove.
7826
7827 * sysdeps/generic/math_private.h
7828 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7829 Move this inline function ....
7830 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7831 * include/math.h [!_ISOMAC]: To here....
7832
7833 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7834
7835 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7836 code ....
7837 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7838 * include/fenv.h [!_ISOMAC]: ... to here.
7839 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7840 (feraiseexcept): Likewise.
7841 * math/fromfp.h: Do not include <fenv_private.h>.
7842 * math/s_cexp_template.c: Likewise.
7843 * math/s_csin_template.c: Likewise.
7844 * math/s_csinh_template.c: Likewise.
7845 * math/s_ctan_template.c: Likewise.
7846 * math/s_ctanh_template.c: Likewise.
7847 * math/s_iseqsig_template.c: Likewise.
7848 * math/w_acos_compat.c: Likewise.
7849 * math/w_acosf_compat.c: Likewise.
7850 * math/w_acosl_compat.c: Likewise.
7851 * math/w_asin_compat.c: Likewise.
7852 * math/w_asinf_compat.c: Likewise.
7853 * math/w_asinl_compat.c: Likewise.
7854 * math/w_j0_compat.c: Likewise.
7855 * math/w_j0f_compat.c: Likewise.
7856 * math/w_j0l_compat.c: Likewise.
7857 * math/w_j1_compat.c: Likewise.
7858 * math/w_j1f_compat.c: Likewise.
7859 * math/w_j1l_compat.c: Likewise.
7860 * math/w_jn_compat.c: Likewise.
7861 * math/w_jnf_compat.c: Likewise.
7862 * math/w_log10_compat.c: Likewise.
7863 * math/w_log10f_compat.c: Likewise.
7864 * math/w_log10l_compat.c: Likewise.
7865 * math/w_log2_compat.c: Likewise.
7866 * math/w_log2f_compat.c: Likewise.
7867 * math/w_log2l_compat.c: Likewise.
7868 * math/w_log_compat.c: Likewise.
7869 * math/w_logf_compat.c: Likewise.
7870 * math/w_logl_compat.c: Likewise.
7871 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7872 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7873 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7874 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7875 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7876 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7877 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7878 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7879 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7880 * sysdeps/ieee754/k_standardl.c: Likewise.
7881 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7882 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7883 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7884 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7885 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7886 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7887 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7888 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7889 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7890 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7891 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7892 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7893 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7894 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7895 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7896 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7897 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7898 * math/w_ilogb_template.c: Include <fenv.h> instead of
7899 <fenv_private.h>.
7900 * math/w_llogb_template.c: Likewise.
7901 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7902 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7903
7904 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7905
7906 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7907 * math/fromfp.h: Include <fenv_private.h>.
7908 * math/math-narrow.h: Likewise.
7909 * math/s_cexp_template.c: Likewise.
7910 * math/s_csin_template.c: Likewise.
7911 * math/s_csinh_template.c: Likewise.
7912 * math/s_ctan_template.c: Likewise.
7913 * math/s_ctanh_template.c: Likewise.
7914 * math/s_iseqsig_template.c: Likewise.
7915 * math/w_acos_compat.c: Likewise.
7916 * math/w_acosf_compat.c: Likewise.
7917 * math/w_acosl_compat.c: Likewise.
7918 * math/w_asin_compat.c: Likewise.
7919 * math/w_asinf_compat.c: Likewise.
7920 * math/w_asinl_compat.c: Likewise.
7921 * math/w_ilogb_template.c: Likewise.
7922 * math/w_j0_compat.c: Likewise.
7923 * math/w_j0f_compat.c: Likewise.
7924 * math/w_j0l_compat.c: Likewise.
7925 * math/w_j1_compat.c: Likewise.
7926 * math/w_j1f_compat.c: Likewise.
7927 * math/w_j1l_compat.c: Likewise.
7928 * math/w_jn_compat.c: Likewise.
7929 * math/w_jnf_compat.c: Likewise.
7930 * math/w_llogb_template.c: Likewise.
7931 * math/w_log10_compat.c: Likewise.
7932 * math/w_log10f_compat.c: Likewise.
7933 * math/w_log10l_compat.c: Likewise.
7934 * math/w_log2_compat.c: Likewise.
7935 * math/w_log2f_compat.c: Likewise.
7936 * math/w_log2l_compat.c: Likewise.
7937 * math/w_log_compat.c: Likewise.
7938 * math/w_logf_compat.c: Likewise.
7939 * math/w_logl_compat.c: Likewise.
7940 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7941 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7942 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7943 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7944 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7945 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7946 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7947 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7948 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7949 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7950 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7951 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7952 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7953 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7954 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7955 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7956 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7957 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7958 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7959 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7960 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7961 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7962 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7963 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7964 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7965 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7966 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7967 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7968 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7969 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7970 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7971 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7972 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7973 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7974 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7975 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7976 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7977 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7978 * sysdeps/ieee754/k_standardl.c: Likewise.
7979 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7980 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7981 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7982 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7983 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7984 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7985 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7986 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7987 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7988 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7989 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7990 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7991 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7992 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7993 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7994 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7995 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7996 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7997 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7998 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7999 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8000 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8001 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8002 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8003 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8004 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8005 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8006 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8007 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8008 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8009 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8010 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8011 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8012 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8013 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8014 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8015 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8016 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8017 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8018 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8019 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8020 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8021 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8022 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8023 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8024 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8025 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8026 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8027 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8028 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8029 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8030 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8031 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8032 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8033 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8034 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8035 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8036 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8037 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8038 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8039 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8040 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8041 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8042 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8043 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8044 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8045 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8046 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8047 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8048 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8049 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8050
8051 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8052
8053 [BZ #20271]
8054 * include/stdio.h (__libc_fatal): Mention newline in comment.
8055 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8056 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8057 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8058 * nss/nsswitch.c (__nss_next2): Likewise.
8059 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8060 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8061 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8062 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8063 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8064 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8065 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8066 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8067 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8068 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8069 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8070 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8071 (__netlink_assert_response): Likewise.
8072
8073 2018-08-31 Joseph Myers <joseph@codesourcery.com>
8074
8075 * conform/glibcconform.py: New file.
8076 * conform/list-header-symbols.py: Likewise.
8077 * conform/list-header-symbols.pl: Remove.
8078 * conform/Makefile (tests-special): Only add linknamespace tests
8079 if [PYTHON].
8080 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8081
8082 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
8083
8084 [BZ #23597]
8085 * support/Makefile (libsupport-routines): Add
8086 support_copy_file_range and xcopy_file_range.
8087 * support/support.h: Include <sys/types.h>.
8088 (support_copy_file_range): New prototype.
8089 * support/support_copy_file_range.c: New file. Copied and
8090 modified from io/copy_file_range-compat.c.
8091 * support/test-container.c (copy_one_file): Call xcopy_file_rang
8092 instead of copy_file_range.
8093 * support/xcopy_file_range.c: New file.
8094 * support/xunistd.h (xcopy_file_range): New prototype.
8095
8096 2018-08-30 Carlos O'Donell <carlos@redhat.com>
8097
8098 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8099 xpthread_create and xpthread_join.
8100
8101 2018-08-30 Florian Weimer <fweimer@redhat.com>
8102
8103 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8104
8105 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
8106
8107 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8108 if malloc fails.
8109
8110 2018-08-29 Joseph Myers <joseph@codesourcery.com>
8111
8112 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8113 and minus_oflow as non-finite.
8114
8115 2018-08-28 Joseph Myers <joseph@codesourcery.com>
8116
8117 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
8118 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
8119 moved to fenv_private.h except for ...
8120 (TOINT_INTRINSICS): Kept in math_private.h.
8121 (roundtoint): Likewise.
8122 (converttoint): Likewise.
8123 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8124 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8125 * sysdeps/arm/math_private.h: Remove.
8126 * sysdeps/generic/fenv_private.h: New file. Contents moved from
8127 ....
8128 * sysdeps/generic/math_private.h: ... this file. Include
8129 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
8130 Include <fenv_private.h>. Remove functions and macros moved to
8131 fenv_private.h.
8132 * sysdeps/i386/fpu/math_private.h: Remove.
8133 * sysdeps/mips/math_private.h: Move to ....
8134 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
8135 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
8136 [__mips_hard_float] conditional. Include next <fenv_private.h>.
8137 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8138 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8139 * sysdeps/powerpc/fpu/math_private.h: Do not include
8140 <fenv_private.h>.
8141 * sysdeps/riscv/rvf/math_private.h: Move to ....
8142 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
8143 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
8144 <fenv_private.h>.
8145 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8146 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8147 * sysdeps/sparc/fpu/math_private.h: Remove.
8148 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8149 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8150 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8151 <fenv_private.h>.
8152 * sysdeps/x86_64/fpu/math_private.h: Do not include
8153 <sysdeps/i386/fpu/fenv_private.h>.
8154
8155 2018-08-28 Florian Weimer <fweimer@redhat.com>
8156
8157 [BZ #23578]
8158 * posix/tst-regcomp-truncated.c: New file.
8159 * posix/Makefile (tests): Add it.
8160 (tst-regcomp-truncated.out): Depend on generated locales.
8161
8162 2018-08-28 Florian Weimer <fweimer@redhat.com>
8163
8164 * support/test-container.c (main): Treat unshare failure with
8165 EPERM as an unsupported test.
8166
8167 2018-08-28 Florian Weimer <fweimer@redhat.com>
8168
8169 [BZ #23520]
8170 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8171 * nscd/netgroupcache.c
8172 (addgetnetgrentX): Add tofreep parameter. Do not free
8173 heap-allocated buffer.
8174 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8175 (addgetnetgrentX_ignore): New function.
8176 (addgetnetgrent): Call it.
8177 (readdgetnetgrent): Likewise.
8178
8179 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8180
8181 * string/memmem.c: Use memcmp for first match.
8182
8183 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8184
8185 [BZ #17426]
8186 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8187
8188 2018-08-27 DJ Delorie <dj@redhat.com>
8189
8190 * support/Makefile (others): Don't list programs explicitly as a
8191 dependency of "others".
8192
8193 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8194
8195 * sysdeps/generic/math-tests-trap-force.h: New file.
8196 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8197 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8198 * sysdeps/powerpc/math-tests.h: Remove file.
8199 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8200
8201 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8202 Torvald Riegel <triegel@redhat.com>
8203
8204 [BZ #23538]
8205 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8206 Update r to include the set wake-request flag if waiters are
8207 remaining after spinning.
8208
8209 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8210
8211 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8212
8213 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8214
8215 [BZ #23578]
8216 regex: fix uninitialized memory access
8217 I introduced this bug into gnulib in commit
8218 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8219 eventually it was merged into glibc. The bug was found by
8220 project-repo <bugs@feusi.co> and reported here:
8221 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8222 Diagnosis and draft fix reported by Assaf Gordon here:
8223 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8224 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8225 * posix/regex_internal.c (build_wcs_upper_buffer):
8226 Fix bug when mbrtowc returns 0.
8227
8228 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8229
8230 * po/be.po: Update translation.
8231
8232 2018-08-24 DJ Delorie <dj@delorie.com>
8233
8234 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8235 $(libunwind).
8236
8237 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8238
8239 [BZ #23400]
8240 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8241 create temporary files in source tree.
8242
8243 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8244
8245 * sysdeps/generic/math-tests-trap.h: New file.
8246 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8247 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8248 * sysdeps/aarch64/math-tests.h: Remove file.
8249 * sysdeps/arm/math-tests.h: Likewise.
8250 * sysdeps/riscv/math-tests.h: Likewise.
8251 * sysdeps/aarch64/math-tests-trap.h: New file.
8252 * sysdeps/arm/math-tests-trap.h: Likewise.
8253 * sysdeps/riscv/math-tests-trap.h: Likewise.
8254
8255 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8256
8257 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8258 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8259 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8260 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8261 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8262 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8263 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8264 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8265 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8266 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8267 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8268 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8269 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8270 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8271 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8272 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8273 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8274 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8275
8276 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8277
8278 * sysdeps/generic/math-tests-exceptions.h: New file.
8279 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8280 (EXCEPTION_TESTS_float): Do not define here.
8281 (EXCEPTION_TESTS_double): Likewise.
8282 (EXCEPTION_TESTS_long_double): Likewise.
8283 (EXCEPTION_TESTS_float128): Likewise.
8284 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8285 Likewise.
8286 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8287 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8288 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8289 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8290 * sysdeps/mips/math-tests.h: Likewise.
8291 * sysdeps/nios2/math-tests.h: Likewise.
8292 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8293 (EXCEPTION_TESTS_float): Do not define here.
8294 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8295 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8296 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8297
8298 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8299
8300 * NEWS: Move optimized sinf entry to 2.29.
8301
8302 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8303
8304 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8305
8306 2018-08-22 DJ Delorie <dj@redhat.com>
8307
8308 * Makefile (testroot.pristine): New rules to initialize the
8309 test-in-container "testroot".
8310 * Makerules (all-testsuite): Add tests-container.
8311 * Rules (tests-expected): Add tests-container.
8312 (binaries-all-tests): Likewise.
8313 (tests-container): New, run these tests in the testroot container.
8314 * support/Makefile (others): Add *-container, support_paths.c,
8315 xmkdirp, and links-dso-program.
8316 * support/links-dso-program-c.c: New.
8317 * support/links-dso-program.cc: New.
8318 * support/test-container.c: New.
8319 * support/shell-container.c: New.
8320 * support/echo-container.c: New.
8321 * support/true-container.c: New.
8322 * support/xmkdirp.c: New.
8323 * support/xsymlink.c: New.
8324 * support/support_paths.c: New.
8325 * support/support.h: Add support paths prototypes.
8326 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8327
8328 * nss/tst-nss-test3.c: Convert to test-in-container.
8329 * nss/tst-nss-test3.root/: New.
8330
8331 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8332
8333 regex: port Gnulib code to z/OS POSIX environment
8334 Problem reported by Arnold Robbins in:
8335 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8336 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8337 Undef.
8338
8339 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8340
8341 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8342 (ROUNDING_TESTS_double): Remove.
8343 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8344 (ROUNDING_TESTS_double): Remove.
8345 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8346 (ROUNDING_TESTS_double): Remove.
8347 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8348 (ROUNDING_TESTS_float): Remove.
8349 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8350 (ROUNDING_TESTS_float): Remove.
8351 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8352 (ROUNDING_TESTS_float): Remove.
8353 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8354 !TEST_MATHVEC here.
8355 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8356 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8357
8358 * sysdeps/generic/math-tests-rounding.h: New file.
8359 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8360 (ROUNDING_TESTS_float): Do not define here.
8361 (ROUNDING_TESTS_double): Likewise.
8362 (ROUNDING_TESTS_long_double): Likewise.
8363 (ROUNDING_TESTS_float128): Likewise.
8364 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8365 (ROUNDING_TESTS_double): Undefine before defining.
8366 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8367 (ROUNDING_TESTS_double): Undefine before defining.
8368 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8369 (ROUNDING_TESTS_double): Undefine before defining.
8370 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8371 (ROUNDING_TESTS_float): Undefine before defining.
8372 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8373 (ROUNDING_TESTS_float): Undefine before defining.
8374 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8375 (ROUNDING_TESTS_float): Undefine before defining.
8376 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8377 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8378 not define here.
8379 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8380 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8381 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8382 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8383 (ROUNDING_TESTS_float): Do not define here.
8384 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8385 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8386 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8387 (ROUNDING_TESTS_float): Likewise.
8388 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8389 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8390 * sysdeps/mips/math-tests.h [__mips_soft_float]
8391 (ROUNDING_TESTS_float): Likewise.
8392 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8393 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8394 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8395 (ROUNDING_TESTS_double): Likewise.
8396 (ROUNDING_TESTS_long_double): Likewise.
8397
8398 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8399
8400 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8401 (PF_XDP): New macro.
8402 (AF_XDP): New macro.
8403 (SOL_XDP): New macro.
8404
8405 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8406
8407 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8408 (TCP_INQ): Likewise.
8409 (TCP_CM_INQ): Likewise.
8410 (TCP_REPAIR_ON): Likewise.
8411 (TCP_REPAIR_OFF): Likewise.
8412 (TCP_REPAIR_OFF_NO_WP): Likewise.
8413 (struct tcp_zerocopy_receive): New type.
8414
8415 2018-08-21 Florian Weimer <fweimer@redhat.com>
8416
8417 * support/support.h (support_descriptor_supports_holes): Declare.
8418 * support/Makefile (libsupport-routines): Add
8419 support_descriptor_supports_holes.
8420 * support/support_descriptor_supports_holes.c: New file.
8421 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8422 and stop testing if holes are not supported.
8423 * io/test-lfs.c (do_prepare): Likewise.
8424 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8425 Likewise.
8426 * timezone/tst-tzset.c (create_tz_file): Likewise.
8427 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8428 variable.
8429 (do_prepare): Set it.
8430 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8431
8432 2018-08-21 Florian Weimer <fweimer@redhat.com>
8433
8434 [BZ #17248]
8435 * Makeconfig (+cflags): Do not sort (and deduplicate).
8436
8437 2018-08-21 Florian Weimer <fweimer@redhat.com>
8438
8439 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8440 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8441
8442 2018-08-20 Florian Weimer <fweimer@redhat.com>
8443
8444 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8445 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8446
8447 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8448
8449 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8450 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8451 and ssi_arch members.
8452
8453 * elf/elf.c (NT_VMCOREDD): New macro.
8454 (AT_MINSIGSTKSZ): Likewise.
8455
8456 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8457
8458 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8459 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8460 s_cosf-ppc64 and s_cosf-power8.
8461 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8462 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8463 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8464 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8465 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8468 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8471 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8472 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8473
8474 2018-08-17 Florian Weimer <fweimer@redhat.com>
8475
8476 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8477
8478 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8479
8480 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8481
8482 2018-08-16 Florian Weimer <fweimer@redhat.com>
8483
8484 * configure.ac: Add --with-nonshared-cflags option.
8485 * config.make.in (extra-nonshared-cflags): Set variable.
8486 * Makeconfig (CFLAGS-.oS): Use it.
8487 * manual/install.texi (Configuring and compiling): Document
8488 --with-nonshared-cflags.
8489 * configure: Regenerate.
8490 * INSTALL: Likewise.
8491
8492 2018-08-16 Florian Weimer <fweimer@redhat.com>
8493
8494 * Makeconfig (ASFLAGS): Always append required assembler flags.
8495
8496 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8497
8498 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8499 (malloc_consolidate): Likewise.
8500
8501 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8502
8503 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8504
8505 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8506
8507 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8508 every strlen call.
8509
8510 * benchtests/bench-strlen.c: Print performance numbers in json.
8511
8512 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8513
8514 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8515 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8516 only for little endian.
8517 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8518 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8519 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8520 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8521 Add check for little endian.
8522 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8523 (__strcmp_power9): Add check for little endian.
8524 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8525 Add check for little endian.
8526 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8527 (__strncmp_power9): Add check for little endian.
8528 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8529 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8530 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8531 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8532 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8533
8534 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8535
8536 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8537 [!STRLEN](STRLEN): Set to __strlen.
8538 * sysdeps/aarch64/multiarch/strlen.c: New file.
8539 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8540 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8541 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8542 (__libc_ifunc_impl_list): Add strlen.
8543 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8544 strlen_generic and strlen_asimd.
8545
8546 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8547
8548 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8549 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8550 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8551
8552 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8553
8554 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8555
8556 2018-08-14 Florian Weimer <fweimer@redhat.com>
8557
8558 [BZ #23519]
8559 * include/stdio.h (__vfxprintf): Declare.
8560 * stdio-common/fxprintf.c (__vfxprintf): New function.
8561 (__fxprintf): Call it.
8562 * misc/err.c (convert_and_print): Remove function.
8563 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8564 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8565 * misc/Makefile (tests): Add tst-warn-wide.
8566 * misc/tst-warn-wide.c: New file.
8567
8568 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8569 Szabolcs Nagy <szabolcs.nagy@arm.com>
8570
8571 * NEWS: Mention sinf, cosf, sincosf.
8572 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8573 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8574 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8575 constants rather than including generic sincosf.h.
8576 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8577 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8578 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8579 (reduced_cos): Remove.
8580 (sinf_poly): New function.
8581 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8582
8583 2018-08-14 Florian Weimer <fweimer@redhat.com>
8584
8585 [BZ #23521]
8586 [BZ #23522]
8587 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8588 processing, bail out if no room, and close the stream before
8589 returning ERANGE.
8590 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8591 (tst-nss-files-alias-leak): Link with libdl.
8592 (tst-nss-files-alias-leak.out): Depend on nss_files.
8593
8594 * nss/tst-nss-files-alias-leak.c: New file.
8595
8596 2018-08-14 Florian Weimer <fweimer@redhat.com>
8597
8598 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8599 server_user, stat_user.
8600
8601 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8602
8603 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8604 version to 4.18.
8605 (io_pgetevents): New syscall.
8606 (rseq): Likewise.
8607
8608 * manual/install.texi (Configuring and compiling): Do not list
8609 tools used for testing pretty printers here.
8610 (Tools for Compilation): List Python, PExpect and GDB here.
8611 Update descriptions of uses of Perl and Python.
8612 * INSTALL: Regenerate.
8613
8614 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8615 version to 4.18.
8616
8617 2018-08-13 Florian Weimer <fweimer@redhat.com>
8618
8619 * misc/error.c (error): Add missing va_end call.
8620 (error_at_line): Likewise.
8621
8622 2018-08-13 Florian Weimer <fweimer@redhat.com>
8623
8624 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8625
8626 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8627
8628 * benchtests/scripts/benchout.schema.json (properties): Add
8629 new properties.
8630
8631 * benchtests/bench-skeleton.c (main): Add duration and
8632 iterations attributes.
8633
8634 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8635
8636 regex: Gnulib unibyte RRI uses bytes not chars
8637 Adjust the non-glibc code to agree with what Gawk needs for
8638 rational range interpretation (RRI) for regular expression ranges.
8639 In unibyte locales, Gawk wants ranges to use the underlying byte
8640 rather than the character code point. This change does not affect
8641 glibc proper.
8642 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8643 In unibyte locales, use the byte value rather than
8644 running it through btowc.
8645
8646 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8647
8648 * sysdeps/generic/math-tests-snan.h: New file.
8649 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8650 (SNAN_TESTS_float): Do not define here.
8651 (SNAN_TESTS_double): Likewise.
8652 (SNAN_TESTS_long_double): Likewise.
8653 (SNAN_TESTS_float128): Likewise.
8654 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8655 * sysdeps/i386/fpu/math-tests.h: Remove file.
8656 * sysdeps/ia64/math-tests-snan.h: New file.
8657 * sysdeps/ia64/math-tests.h: Remove file.
8658 * sysdeps/x86/math-tests.h: Likewise.
8659 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8660
8661 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8662 Szabolcs Nagy <szabolcs.nagy@arm.com>
8663
8664 * math/Makefile: Add s_sincosf_data.c.
8665 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8666 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8667 (sincosf_poly): Likewise.
8668 (reduce_small): Likewise.
8669 (reduce_large): Likewise.
8670 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8671 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8672 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8673 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8674
8675 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8676 Szabolcs Nagy <szabolcs.nagy@arm.com>
8677
8678 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8679 (converttoint): Use lround.
8680 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8681 document the semantics when TOINT_INTRINSICS is set.
8682 (converttoint): Likewise.
8683 (TOINT_RINT): Remove.
8684 (TOINT_SHIFT): Remove.
8685 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8686 path.
8687
8688 2018-08-10 Florian Weimer <fweimer@redhat.com>
8689
8690 [BZ #23497]
8691 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8692 function.
8693 (__old_getdents64): Use getdents64. Convert entries without
8694 moving them.
8695 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8696 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8697 tst-readdir64-compat.
8698
8699 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8700
8701 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8702 Fix unwind.
8703
8704 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8705
8706 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8707 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8708 code to s390x-mcount.h and #include it.
8709 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8710 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8711 (__fentry__): Add.
8712
8713 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8714
8715 * stdlib/Versions: Remove __fentry__.
8716 * sysdeps/i386/Versions: Add __fentry__.
8717 * sysdeps/x86_64/Versions: Add __fentry__.
8718
8719 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8720
8721 * sysdeps/s390/Makefile: Register the new tests.
8722 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8723 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8724 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8725 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8726 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8727 * sysdeps/s390/tst-dl-runtime.c: New file.
8728
8729 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8730
8731 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8732 Do not clobber R0.
8733
8734 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8735
8736 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8737 Do not clobber R0.
8738
8739 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8740
8741 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8742 Do not clobber R0.
8743
8744 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8745
8746 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8747 Do not clobber R0.
8748
8749 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8750
8751 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8752 Use symbolic offsets for stack variables.
8753
8754 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8755
8756 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8757 Use symbolic offsets for stack variables.
8758
8759 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8760
8761 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8762 Use symbolic offsets for stack variables.
8763
8764 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8765
8766 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8767 Use symbolic offsets for stack variables.
8768
8769 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8770
8771 * math/gen-libm-test.py: New file.
8772 * math/gen-libm-test.pl: Remove.
8773 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8774 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8775 gen-libm-test.pl.
8776 ($(libm-test-c-noauto-obj)): Likewise.
8777 ($(libm-test-c-auto-obj)): Likewise.
8778 ($(libm-test-c-narrow-obj)): Likewise.
8779 (regen-ulps): Likewise.
8780 * math/README.libm-test: Update references to gen-libm-test.pl.
8781 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8782 referencing gen-libm-test.pl.
8783 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8784 * math/libm-test-support.c: Likewise.
8785 * math/libm-test-support.h: Likewise.
8786 * sysdeps/generic/libm-test-ulps: Likewise.
8787
8788 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8789
8790 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8791 Fix value.
8792
8793 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8794
8795 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8796 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8797
8798 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8799
8800 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8801 symbols.
8802 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8803 __pthread_setspecific): Add hidden proto.
8804 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8805 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8806
8807 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8808
8809 * benchtests/bench-string.h (buf1_size, buf2_size): New
8810 variables.
8811 (init_sizes): New function.
8812 (test_init): Use it.
8813 (alloc_buf, exit_error): New functions.
8814 (alloc_bufs): Use ALLOC_BUF.
8815 (realloc_bufs): Remove.
8816 * benchtests/bench-memcmp.c (do_test): Adjust.
8817 * benchtests/bench-memset-large.c (do_test): Likewise.
8818 * benchtests/bench-memset-walk.c (do_test): Likewise.
8819 * benchtests/bench-memset.c (do_test): Likewise.
8820 * benchtests/bench-strncmp.c (do_test): Likewise.
8821
8822 2018-08-06 Andreas Schwab <schwab@suse.de>
8823
8824 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8825 of CONST_THREAD_AREA.
8826
8827 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8828
8829 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8830 (STATE_SAVE_MASK): Likewise.
8831 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8832 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8833 (STATE_SAVE_MASK): Likewise.
8834 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8835 instead of <cpu-features.h>.
8836
8837 2018-08-03 DJ Delorie <dj@redhat.com>
8838
8839 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8840 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8841
8842 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8843
8844 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8845
8846 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8847 after TEST_* calls.
8848 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8849 * math/libm-test-logb.inc (logb_test_data): Likewise.
8850
8851 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8852
8853 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8854 * string/strstr.c (AVAILABLE): Likewise.
8855
8856 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8857
8858 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8859 <init-arch.h>.
8860 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8861 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8862 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8863
8864 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8865
8866 * po/be.po: Update translation.
8867
8868 * po/be.po: Update translation.
8869
8870 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8871
8872 * sysdeps/x86/cpu-features-offsets.sym
8873 (rtld_global_ro_offsetof): Removed.
8874 (CPU_FEATURES_SIZE): Likewise.
8875 (CPUID_OFFSET): Likewise.
8876 (CPUID_SIZE): Likewise.
8877 (CPUID_EAX_OFFSET): Likewise.
8878 (CPUID_EBX_OFFSET): Likewise.
8879 (CPUID_ECX_OFFSET): Likewise.
8880 (CPUID_EDX_OFFSET): Likewise.
8881 (FAMILY_OFFSET): Likewise.
8882 (MODEL_OFFSET): Likewise.
8883 (FEATURE_OFFSET): Likewise.
8884 (FEATURE_SIZ): Likewise.
8885 (COMMON_CPUID_INDEX_1): Likewise.
8886 (COMMON_CPUID_INDEX_7): Likewise.
8887 (FEATURE_INDEX_1): Likewise.
8888 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8889
8890 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8891
8892 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8893 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8894 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8895 (install-locales): Depend on install-locale-archive.
8896 (install-locale-archive): Define.
8897 (install-locale-files): Define.
8898 (build-one-locale): Define macro.
8899 * manual/install.texi (Running make install): Document.
8900 * manual/INSTALL: Regenerate.
8901
8902 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8903
8904 * benchtests/scripts/compare_strings.py: Import traceback.
8905 (parse_file): Pretty-print error.
8906
8907 * NEWS: Mention the change.
8908 * elf/dl-tunables.list: Rename tune namespace to cpu.
8909 * sysdeps/powerpc/dl-tunables.list: Likewise.
8910 * sysdeps/x86/dl-tunables.list: Likewise.
8911 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8912 cpu.name.
8913 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8914 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8915 * manual/README.tunables: Likewise.
8916 * manual/tunables.texi: Likewise.
8917 * sysdeps/powerpc/cpu-features.c: Likewise.
8918 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8919 (init_cpu_features): Likewise.
8920 * sysdeps/x86/cpu-features.c: Likewise.
8921 * sysdeps/x86/cpu-features.h: Likewise.
8922 * sysdeps/x86/cpu-tunables.c: Likewise.
8923 * sysdeps/x86_64/Makefile: Likewise.
8924 * sysdeps/x86/dl-cet.c: Likewise.
8925
8926 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8927
8928 [BZ #23479]
8929 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8930 [__mips_hard_float].
8931 (FE_UNDERFLOW): Likewise.
8932 (FE_OVERFLOW): Likewise.
8933 (FE_DIVBYZERO): Likewise.
8934 (FE_INVALID): Likewise.
8935 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8936 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8937 (FE_UPWARD): Likewise.
8938 (FE_DOWNWARD): Likewise.
8939 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8940 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8941 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8942 [__mips_hard_float].
8943 (FP_ROUNDMODE): Likewise.
8944 (FP_RND_NEAREST): Likewise.
8945 (FP_RND_ZERO): Likewise.
8946 (FP_RND_PINF): Likewise.
8947 (FP_RND_MINF): Likewise.
8948 (FP_EX_INVALID): Likewise.
8949 (FP_EX_OVERFLOW): Likewise.
8950 (FP_EX_UNDERFLOW): Likewise.
8951 (FP_EX_DIVZERO): Likewise.
8952 (FP_EX_INEXACT): Likewise.
8953 (FP_INIT_ROUNDMODE): Likewise.
8954 * sysdeps/mips/nofpu/fesetenv.c: New file.
8955 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8956
8957 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8958
8959 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8960 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8961 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8962 conditional on [FE_UPWARD].
8963
8964 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8965
8966 regex: fix memory leak in Gnulib
8967 Problem and fix reported by Assaf Gordon in:
8968 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8969 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8970 range_ends members too, as they are defined in 'struct
8971 re_charset_t' even if not _LIBC. This affects only Gnulib.
8972
8973 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8974
8975 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8976 ...
8977 (get_common_indices): This.
8978 (init_cpu_features): Updated.
8979
8980 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8981
8982 * sysdeps/generic/math-tests-snan-payload.h: New file.
8983 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8984 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8985 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8986 * sysdeps/generic/math-tests.h: Include
8987 <math-tests-snan-payload.h>.
8988 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8989 * sysdeps/hppa/math-tests.h: Remove file.
8990 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8991 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8992 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8993 Likewise.
8994
8995 * sysdeps/generic/math-tests-snan-cast.h: New file.
8996 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8997 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8998 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8999 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
9000
9001 2018-08-01 Carlos O'Donel <carlos@redhat.com>
9002
9003 * version.h (RELEASE): Set to "development".
9004 (VERSION): Set to "2.28.9000".
9005 * NEWS (2.29): New section.
9006
9007 * version.h (RELEASE): Set to "stable".
9008 (VERSION): Set to "2.28".
9009 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9010 * NEWS: Add the list of bugs fixed in 2.28.
9011
9012 * po/ca.po: Update to latest version.
9013 * po/cs.po: Likewise
9014 * po/da.po: Likewise
9015 * po/el.po: Likewise
9016 * po/eo.po: Likewise
9017 * po/es.po: Likewise
9018 * po/fi.po: Likewise
9019 * po/fr.po: Likewise
9020 * po/gl.po: Likewise
9021 * po/hu.po: Likewise
9022 * po/ia.po: Likewise
9023 * po/id.po: Likewise
9024 * po/it.po: Likewise
9025 * po/ja.po: Likewise
9026 * po/ko.po: Likewise
9027 * po/lt.po: Likewise
9028 * po/nb.po: Likewise
9029 * po/nl.po: Likewise
9030 * po/pt_BR.po: Likewise
9031 * po/ru.po: Likewise
9032 * po/rw.po: Likewise
9033 * po/sk.po: Likewise
9034 * po/sl.po: Likewise
9035 * po/tr.po: Likewise
9036 * po/zh_CN.po: Likewise
9037 * po/zh_TW.po: Likewise
9038
9039 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
9040
9041 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9042 initialization...
9043 (init): ... before initializing libpthread.
9044
9045 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9046 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9047 (__mach_setup_tls): ... new function.
9048 (mach_setup_tls): New alias.
9049 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9050 __mach_setup_thread.
9051 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9052 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9053 * mach/Versions [libc] (mach_setup_tls): Add symbol.
9054 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9055
9056 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9057
9058 * manual/install.texi: Update versions.
9059 * INSTALL: Regenerate.
9060
9061 * manual/contrib.texi (Contributors): Update contributions.
9062
9063 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9064
9065 * po/be.po: Update translations.
9066
9067 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9068
9069 * sysdeps/sh/libm-test-ulps: Update.
9070
9071 2018-07-30 Carlos O'Donell <carlos@redhat.com>
9072
9073 * po/bg.po: Update translations.
9074 * po/de.po: Likewise.
9075 * po/hr.po: Likewise.
9076 * po/pt_BR.po: Likewise.
9077 * po/sv.po: Likewise.
9078 * po/vi.po: Likewise.
9079
9080 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9081
9082 [BZ #23467]
9083 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9084 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9085 (CFLAGS-tst-cet-property-1.o): New.
9086 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9087 ($(objpfx)tst-cet-property-2): Likewise.
9088 ($(objpfx)tst-cet-property-2.out): Likewise.
9089 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9090 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9091 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9092 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9093 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9094
9095 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9096
9097 [BZ #23458]
9098 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9099
9100 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9101
9102 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9103 __sbrk): Do not set attribute_hidden.
9104 * sysdeps/mach/hurd/not-errno.h: New file.
9105 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9106 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9107
9108 2018-07-27 Carlos O'Donell <carlos@redhat.com>
9109
9110 * po/uk.po: Update translations.
9111 * po/cs.po: Likewise.
9112 * po/pl.po: Likewise.
9113
9114 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
9115
9116 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9117 parse beyond the note end.
9118
9119 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9120
9121 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9122 kernel does not support OFD locks.
9123 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9124
9125 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9126
9127 * sysdeps/mach/hurd/Versions (libc): Make __access and
9128 __access_noerrno external so they can override the ld symbols.
9129 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9130 __writev, __open64, __access_noerrno extern so they can be overrided.
9131 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9132 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9133
9134 2018-07-26 Carlos O'Donell <carlos@redhat.com>
9135
9136 * po/libc.pot: Regenerate.
9137
9138 2018-07-26 Joseph Myers <joseph@codesourcery.com>
9139
9140 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9141
9142 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9143
9144 [BZ #23459]
9145 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9146 function.
9147 (init_cpu_features): Call get_extended_indices for both Intel
9148 and AMD CPUs.
9149 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9150 Remove "for AMD" comment.
9151
9152 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9153
9154 [BZ # 23456]
9155 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9156 COMMON_CPUID_INDEX_80000001.
9157
9158 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9159
9160 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9161 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9162
9163 2018-07-26 Florian Weimer <fweimer@redhat.com>
9164
9165 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9166 aliases for symbols not in the implementation namespace.
9167
9168 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9169
9170 [BZ #23393]
9171 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9172 lowercase in LATIN script.
9173 * localedata/Makefile (test-input): Add en_US.UTF-8.
9174 * localedata/en_US.UTF-8.in: New file.
9175 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9176 and restore old tests.
9177 * posix/tst-regexloc.c (do_test): Add back range expression test.
9178
9179 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9180
9181 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9182
9183 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9184
9185 * nptl/threads.h: Move to ...
9186 * sysdeps/nptl/threads.h: ... here.
9187 * sysdeps/hurd/stdc-predef.h: New file.
9188
9189 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9190
9191 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9192 tst-cet-setcontext-1 if CET is enabled.
9193 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9194 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9195
9196 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9197
9198 * include/threads.h: Move to ...
9199 * sysdeps/nptl/threads.h: ... here.
9200 * sysdeps/htl/threads.h: New file.
9201 * conform/Makefile (linknamespace-libs-ISO11): Use
9202 static-thread-library instead of linking libpthread.
9203 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9204
9205 2018-07-25 Florian Weimer <fweimer@redhat.com>
9206
9207 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9208 nanoseconds into seconds.
9209 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9210 (do_test): Likewise.
9211 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9212 (do_test): Likewise. Avoid nanosecond overflow and spurious
9213 timeouts due to system load.
9214 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9215 (child_wait): Increment it.
9216 (do_test): Wait as long as necessary until all expected threads
9217 have arrived.
9218
9219 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9220 H.J. Lu <hongjiu.lu@intel.com>
9221
9222 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9223 __ssp.
9224 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9225 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9226 (__push___start_context): New.
9227 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9228 <asm/prctl.h>.
9229 (__getcontext): Record the current shadow stack base. Save the
9230 caller's shadow stack pointer and base.
9231 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9232 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9233 (__push___start_context): New prototype.
9234 (__makecontext): Call __push___start_context to allocate a new
9235 shadow stack, push __start_context onto the new stack as well
9236 as the new shadow stack.
9237 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9238 <asm/prctl.h>.
9239 (__setcontext): Restore the target shadow stack.
9240 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9241 <asm/prctl.h>.
9242 (__swapcontext): Record the current shadow stack base. Save
9243 the caller's shadow stack pointer and base. Restore the target
9244 shadow stack.
9245 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9246 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9247 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9248
9249 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9250
9251 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9252 tst-setcontext8 and tst-setcontext9.
9253 * stdlib/tst-setcontext6.c: New file.
9254 * stdlib/tst-setcontext7.c: Likewise.
9255 * stdlib/tst-setcontext8.c: Likewise.
9256 * stdlib/tst-setcontext9.c: Likewise.
9257
9258 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9259
9260 * stdlib/Makefile ((tests): Add tst-setcontext5.
9261 * stdlib/tst-setcontext5.c: New file.
9262
9263 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9264
9265 * stdlib/Makefile (tests): Add tst-setcontext4.
9266 * stdlib/tst-setcontext4.c: New file.
9267
9268 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9269
9270 * stdlib/Makefile (tests): Add tst-swapcontext1.
9271 * stdlib/tst-swapcontext1.c: New test.
9272
9273 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9274
9275 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9276 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9277 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9278 and tst-cet-legacy-4c.
9279 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9280 and tst-cet-legacy-mod-4.
9281 (CFLAGS-tst-cet-legacy-2.c): New.
9282 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9283 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9284 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9285 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9286 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9287 ($(objpfx)tst-cet-legacy-1): Likewise.
9288 ($(objpfx)tst-cet-legacy-2): Likewise.
9289 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9290 ($(objpfx)tst-cet-legacy-2a): Likewise.
9291 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9292 ($(objpfx)tst-cet-legacy-4): Likewise.
9293 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9294 ($(objpfx)tst-cet-legacy-4a): Likewise.
9295 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9296 (tst-cet-legacy-4a-ENV): Likewise.
9297 ($(objpfx)tst-cet-legacy-4b): Likewise.
9298 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9299 (tst-cet-legacy-4b-ENV): Likewise.
9300 ($(objpfx)tst-cet-legacy-4c): Likewise.
9301 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9302 (tst-cet-legacy-4c-ENV): Likewise.
9303 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9304 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9305 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9306 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9307 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9308 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9309 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9310 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9311 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9312 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9313 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9314
9315 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9316
9317 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9318 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9319 with ssp_base.
9320 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9321 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9322 with ssp_base.
9323
9324 2018-07-25 Andreas Schwab <schwab@suse.de>
9325
9326 [BZ #23442]
9327 * locale/weightwc.h (findidx): Handle the case where usrc is a
9328 prefix of cp but one character too short.
9329
9330 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9331
9332 * NEWS: Add ISO C threads addition.
9333
9334 2018-07-24 Florian Weimer <fweimer@redhat.com>
9335
9336 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9337 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9338 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9339 4.13.
9340
9341 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9342
9343 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9344 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9345 <sys/prctl.h> and <asm/prctl.h>.
9346 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9347 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9348 and <asm/prctl.h>.
9349 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9350 ARCH_CET_LEGACY_BITMAP.
9351 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9352 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9353 * sysdeps/x86/libc-start.c: Include <startup.h>.
9354
9355 2018-07-24 Florian Weimer <fweimer@redhat.com>
9356
9357 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9358 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9359
9360 2018-07-24 Rical Jasan <rj@2c3t.io>
9361 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9362 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9363
9364 [BZ #14092]
9365 * manual/debug.texi: Update adjacent chapter name.
9366 * manual/probes.texi: Likewise.
9367 * manual/threads.texi (ISO C Threads): New section.
9368 (POSIX Threads): Convert to a section.
9369
9370 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9371 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9372
9373 [BZ# 14092]
9374 * nptl/Makefile (tests): Add new test files.
9375 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9376 * nptl/tst-cnd-basic.c: Likewise.
9377 * nptl/tst-cnd-broadcast.c: Likewise.
9378 * nptl/tst-cnd-timedwait.c: Likewise.
9379 * nptl/tst-mtx-basic.c: Likewise.
9380 * nptl/tst-mtx-recursive.c: Likewise.
9381 * nptl/tst-mtx-timedlock.c: Likewise.
9382 * nptl/tst-mtx-trylock.c: Likewise.
9383 * nptl/tst-thrd-basic.c: Likewise.
9384 * nptl/tst-thrd-detach.c: Likewise.
9385 * nptl/tst-thrd-sleep.c: Likewise.
9386 * nptl/tst-tss-basic.c: Likewise.
9387
9388 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9389
9390 [BZ #14092]
9391 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9392 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9393 symbols.
9394 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9395 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9396 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9397 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9398 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9399 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9400 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9401 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9402 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9403 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9404 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9405 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9406 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9407 Likewise.
9408 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9409 Likewise.
9410 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9411 Likewise.
9412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9413 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9414 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9415 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9416 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9417 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9418 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9419 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9420 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9421 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9422 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9423 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9424 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9425 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9426 Likewise.
9427 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9428 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9429 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9430 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9431 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9432 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9433 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9434 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9435 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9436 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9437 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9438 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9439 ikewise.
9440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9442 Likewise.
9443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9444 Likewise.
9445 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9446 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9447 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9448 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9449 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9450 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9451 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9452 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9453
9454 [BZ #14092]
9455 * conform/data/threads.h-data (thread_local): New macro.
9456 (TSS_DTOR_ITERATIONS): Likewise.
9457 (tss_t): New type.
9458 (tss_dtor_t): Likewise.
9459 (tss_create): New function.
9460 (tss_get): Likewise.
9461 (tss_set): Likewise.
9462 (tss_delete): Likewise.
9463 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9464 tss_get, and tss_set objects.
9465 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9466 * nptl/tss_create.c: New file.
9467 * nptl/tss_delete.c: Likewise.
9468 * nptl/tss_get.c: Likewise.
9469 * nptl/tss_set.c: Likewise.
9470 * sysdeps/nptl/threads.h (thread_local): New define.
9471 (TSS_DTOR_ITERATIONS): Likewise.
9472 (tss_t): New typedef.
9473 (tss_dtor_t): Likewise.
9474 (tss_create): New prototype.
9475 (tss_get): Likewise.
9476 (tss_set): Likewise.
9477 (tss_delete): Likewise.
9478
9479 [BZ #14092]
9480 * conform/data/threads.h-data (cnd_t): New type.
9481 (cnd_init): New function.
9482 (cnd_signal): Likewise.
9483 (cnd_broadcast): Likewise.
9484 (cnd_wait): Likewise.
9485 (cnd_timedwait): Likewise.
9486 (cnd_destroy): Likewise.
9487 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9488 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9489 object.
9490 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9491 * nptl/cnd_broadcast.c: New file.
9492 * nptl/cnd_destroy.c: Likewise.
9493 * nptl/cnd_init.c: Likewise.
9494 * nptl/cnd_signal.c: Likewise.
9495 * nptl/cnd_timedwait.c: Likewise.
9496 * nptl/cnd_wait.c: Likewise.
9497 * sysdeps/nptl/threads.h (cnd_t): New type.
9498 (cnd_init): New prototype.
9499 (cnd_signa): Likewise.
9500 (cnd_broadcast): Likewise.
9501 (cnd_wait): Likewise.
9502 (cnd_timedwait): Likewise.
9503 (cnd_destroy): Likewise.
9504
9505 [BZ #14092]
9506 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9507 (once_flag): New type.
9508 (call_once): New function.
9509 * nptl/Makefile (libpthread-routines): Add call_once object.
9510 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9511 * nptl/call_once.c: New file.
9512 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9513 (once_flag): New type.
9514 (call_once): New prototype.
9515
9516 [BZ #14092]
9517 * conform/data/threads.h-data (mtx_plain): New constant.
9518 (mtx_recursive): Likewise.
9519 (mtx_timed): Likewise.
9520 (mtx_t): New type.
9521 (mtx_init): New function.
9522 (mtx_lock): Likewise.
9523 (mtx_timedlock): Likewise.
9524 (mtx_trylock): Likewise.
9525 (mtx_unlock): Likewise.
9526 (mtx_destroy): Likewise.
9527 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9528 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9529 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9530 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9531 * nptl/mtx_destroy.c: New file.
9532 * nptl/mtx_init.c: Likewise.
9533 * nptl/mtx_lock.c: Likewise.
9534 * nptl/mtx_timedlock.c: Likewise.
9535 * nptl/mtx_trylock.c: Likewise.
9536 * nptl/mtx_unlock.c: Likewise.
9537 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9538 (mtx_recursive): Likewise.
9539 (mtx_timed): Likewise.
9540 (mtx_t): New type.
9541 (mtx_init): New prototype.
9542 (mtx_lock): Likewise.
9543 (mtx_timedlock): Likewise.
9544 (mtx_trylock): Likewise.
9545 (mtx_unlock): Likewise.
9546 (mtx_destroy): Likewise.
9547
9548 [BZ #14092]
9549 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9550 (linknamespace-libs-ISO11): Add libpthread.a.
9551 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9552 functions.
9553 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9554 * nptl/Makefile (headers): Add threads.h.
9555 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9556 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9557 thrd_yield.
9558 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9559 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9560 thrd_join, thrd_sleep, and thrd_yield symbols.
9561 * nptl/descr.h (struct pthread): Add c11 field.
9562 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9563 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9564 routine with expected function prototype.
9565 (__pthread_create_2_1): Add C11 threads check based on attribute
9566 value.
9567 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9568 * nptl/thrd_create.c: New file.
9569 * nptl/thrd_current.c: Likewise.
9570 * nptl/thrd_detach.c: Likewise.
9571 * nptl/thrd_equal.c: Likewise.
9572 * nptl/thrd_exit.c: Likewise.
9573 * nptl/thrd_join.c: Likewise.
9574 * nptl/thrd_priv.h: Likewise.
9575 * nptl/thrd_sleep.c: Likewise.
9576 * nptl/thrd_yield.c: Likewise.
9577 * include/threads.h: Likewise.
9578
9579 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9580
9581 * bits/indirect-return.h: New file.
9582 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9583 * sysdeps/x86/bits/indirect-return.h: Likewise.
9584 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9585 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9586 (swapcontext): Add __INDIRECT_RETURN.
9587 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9588 (prepare_test_buffer): Use it.
9589
9590 2018-07-24 Andreas Schwab <schwab@suse.de>
9591
9592 [BZ #23448]
9593 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9594 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9595
9596 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9597
9598 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9599 Redefine if shadow stack is enabled.
9600 (SYSCALL_ERROR_LABEL): Likewise.
9601 (__vfork): Pop shadow stack and jump back to to caller directly
9602 when shadow stack is in use.
9603 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9604 Redefine if shadow stack is enabled.
9605 (SYSCALL_ERROR_LABEL): Likewise.
9606 (__vfork): Pop shadow stack and jump back to to caller directly
9607 when shadow stack is in use.
9608
9609 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9610
9611 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9612 enabled.
9613 (foo): Likewise.
9614 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9615 (foo): Likewise.
9616
9617 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9618
9619 * scripts/build-many-glibcs.py (Context.checkout): Default
9620 binutils version to 2.31 branch.
9621
9622 2018-07-20 Zong Li <zong@andestech.com>
9623
9624 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9625 URL of gcc's tarball.
9626
9627 2018-07-20 Florian Weimer <fweimer@redhat.com>
9628
9629 [BZ #23396]
9630 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9631 not compare an extra byte after the end of the weights.
9632
9633 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9634
9635 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9636 to 1.
9637 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9638 hidden prototypes.
9639 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9640 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9641 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9642 list of libraries whose stack executability is expected.
9643 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9644 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9645 variable.
9646 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9647 libc.so libpthread.so.
9648
9649 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9650
9651 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9652 SOCK_NONBLOCK.
9653 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9654 and SOCK_NONBLOCK.
9655 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9656 implement __pipe2.
9657 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9658
9659 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9660
9661 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9662 library to improve command line parsing.
9663 (__main__): make schema file as optional parameter (--schema),
9664 defaulting to benchtests/scripts/benchout.schema.json.
9665 (main): move out of the parsing stuff to __main_  and leave it
9666 only as caller of main comparison functions.
9667
9668 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9669
9670 * NEWS: Add a note for Intel CET status.
9671 * manual/install.texi: Likewise.
9672 * INSTALL: Regenerated.
9673
9674 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9675
9676 [BZ #23140]
9677 * localedata/locales/oc_FR (mon): Rename to...
9678 (alt_mon): This, then update October (typo fix).
9679 (mon): New content (genitive case, month names preceded by
9680 "de" or "d’").
9681
9682 [BZ #23422]
9683 * localedata/locales/oc_FR (abday): Update all items.
9684 (day): Update Wednesday and Saturday (typo fixes).
9685 (abmon): Update all items, except May.
9686 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9687 (LC_IDENTIFICATION): Bump the revision number and date.
9688 Keep the "category" entries in alphabetic order.
9689 (LC_ADDRESS): Remove no longer needed comment.
9690 (LC_COLLATE): Use “copy "ca_ES"”.
9691 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9692 "name_mrs".
9693
9694 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9695
9696 * grp/tst_fgetgrent.c: Include <unistd.h>.
9697 (main): Use mkstemp instead of tmpnam.
9698 * io/test-utime.c (main): Likewise.
9699 * posix/annexc.c (macrofile): Change to modifiable array.
9700 (main): Remove macrofile here.
9701 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9702 macrofile here.
9703 (check_header): Do not remove macrofile here.
9704 * posix/bug-getopt1.c: Include <stdlib.h>.
9705 (do_test): Use mkstemp instead of tmpnam.
9706 * posix/bug-getopt2.c: Include <stdlib.h>.
9707 (do_test): Use mkstemp instead of tmpnam.
9708 * posix/bug-getopt3.c: Include <stdlib.h>.
9709 (do_test): Use mkstemp instead of tmpnam.
9710 * posix/bug-getopt4.c: Include <stdlib.h>.
9711 (do_test): Use mkstemp instead of tmpnam.
9712 * posix/bug-getopt5.c: Include <stdlib.h>.
9713 (do_test): Use mkstemp instead of tmpnam.
9714 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9715 (main): Use mkstemp instead of tmpnam.
9716 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9717 (main): Use mkstemp instead of tmpnam.
9718 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9719 (main): use mkstemp instead of tmpnam.
9720 * stdlib/isomac.c (macrofile): Change to modifiable array.
9721 (main): Remove macrofile here.
9722 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9723 macrofile here.
9724 (check_header): Do not remove macrofile here.
9725
9726 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9727
9728 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9729 glibc.tune.x86_shstk.
9730
9731 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9732
9733 * NEWS: Mention --enable-cet.
9734 * manual/install.texi: Document --enable-cet.
9735 * INSTALL: Regenerated.
9736
9737 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9738
9739 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9740 Add _CET_NOTRACK before indirect jump to jump table.
9741
9742 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9743
9744 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9745 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9746 to jump table.
9747
9748 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9749
9750 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9751 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9752 to jump table.
9753
9754 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9755
9756 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9757 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9758 to jump table.
9759
9760 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9761
9762 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9763 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9764 to jump table.
9765
9766 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9767
9768 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9769 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9770 to jump table.
9771 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9772
9773 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9774
9775 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9776 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9777 to jump table.
9778
9779 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9780
9781 * sysdeps/i386/i686/multiarch/memset-sse2.S
9782 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9783 to jump table.
9784
9785 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9786
9787 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9788 indirect jump to jump table.
9789
9790 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9791
9792 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9793 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9794 to jump table.
9795 (MEMCPY): Likewise.
9796
9797 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9798
9799 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9800 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9801 to jump table.
9802 (MEMCPY): Likewise.
9803
9804 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9805
9806 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9807 _CET_NOTRACK before indirect jump to jump table.
9808
9809 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9810
9811 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9812 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9813 to jump table.
9814
9815 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9816
9817 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9818 indirect jump to jump table.
9819
9820 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9821
9822 [BZ #22241]
9823 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9824 (LOCALES): Likewise.
9825 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9826 * localedata/locales/sah_RU: New file.
9827 * localedata/sah_RU.UTF-8.in: New file.
9828
9829 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9830
9831 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9832 "sysdep.h".
9833 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9834 _CET_ENDBR to indirect jump targets and adjust jump destination
9835 for _CET_ENDBR.
9836 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9837 "sysdep.h".
9838 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9839 _CET_ENDBR to indirect jump targets and adjust jump destination
9840 for _CET_ENDBR.
9841 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9842 "sysdep.h".
9843 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9844 _CET_ENDBR to indirect jump targets and adjust jump destination
9845 for _CET_ENDBR.
9846
9847 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9848
9849 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9850 _CET_ENDBR.
9851
9852 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9853
9854 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9855 _CET_ENDBR.
9856 (_dl_tlsdesc_undefweak): Likewise.
9857 (_dl_tlsdesc_dynamic): Likewise.
9858 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9859 (_dl_tlsdesc_resolve_rel): Likewise.
9860 (_dl_tlsdesc_resolve_rela): Likewise.
9861 (_dl_tlsdesc_resolve_hold): Likewise.
9862 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9863 (_dl_tlsdesc_undefweak): Likewise.
9864 (_dl_tlsdesc_dynamic): Likewise.
9865 (_dl_tlsdesc_resolve_rela): Likewise.
9866 (_dl_tlsdesc_resolve_hold): Likewise.
9867
9868 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9869
9870 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9871 (_fini): Likewise.
9872 * sysdeps/x86_64/crti.S (_init): Likewise.
9873 (_fini): Likewise.
9874
9875 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9876
9877 [BZ #23140]
9878 * localedata/locales/os_RU (mon): Rename to...
9879 (alt_mon): This.
9880 (mon): Import from CLDR (genitive case).
9881
9882 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9883
9884 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9885 cet-tunables.h> when CET is enabled.
9886
9887 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9888
9889 [BZ #21598]
9890 * configure.ac: Add --enable-cet.
9891 * configure: Regenerated.
9892 * elf/Makefille (all-built-dso): Add a comment.
9893 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9894 Include <dl-prop.h>.
9895 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9896 segment.
9897 * elf/dl-open.c: Include <dl-prop.h>.
9898 (dl_open_worker): Call _dl_open_check.
9899 * elf/rtld.c: Include <dl-prop.h>.
9900 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9901 _rtld_main_check.
9902 * sysdeps/generic/dl-prop.h: New file.
9903 * sysdeps/i386/dl-cet.c: Likewise.
9904 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9905 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9906 * sysdeps/x86/cet-tunables.h: Likewise.
9907 * sysdeps/x86/check-cet.awk: Likewise.
9908 * sysdeps/x86/configure: Likewise.
9909 * sysdeps/x86/configure.ac: Likewise.
9910 * sysdeps/x86/dl-cet.c: Likewise.
9911 * sysdeps/x86/dl-procruntime.c: Likewise.
9912 * sysdeps/x86/dl-prop.h: Likewise.
9913 * sysdeps/x86/libc-start.h: Likewise.
9914 * sysdeps/x86/link_map.h: Likewise.
9915 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9916 _CET_ENDBR.
9917 (_dl_runtime_profile): Likewise.
9918 (_dl_runtime_resolve_shstk): New.
9919 (_dl_runtime_profile_shstk): Likewise.
9920 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9921 if CET is enabled.
9922 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9923 (CFLAGS-.os): Likewise.
9924 (CFLAGS-.op): Likewise.
9925 (CFLAGS-.oS): Likewise.
9926 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9927 is enabled.
9928 (tests-special): Add $(objpfx)check-cet.out.
9929 (cet-built-dso): New.
9930 (+$(cet-built-dso:=.note)): Likewise.
9931 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9932 ($(objpfx)check-cet.out): New.
9933 (generated): Add check-cet.out.
9934 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9935 <cet-tunables.h>.
9936 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9937 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9938 (init_cpu_features): Call get_cet_status to check CET status
9939 and update dl_x86_feature_1 with CET status. Call
9940 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9941 (set_x86_shstk). Disable and lock CET in libc.a.
9942 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9943 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9944 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9945 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9946 (_CET_ENDBR): Define if not defined.
9947 (ENTRY): Add _CET_ENDBR.
9948 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9949 x86_shstk.
9950 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9951 _CET_ENDBR.
9952 (_dl_runtime_profile): Likewise.
9953
9954 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9955
9956 [BZ #21895]
9957 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9958 restore r2 on longjmp.
9959 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9960 test list.
9961 Added rules to build test tst-setjmp-bug21895-static.
9962 Added module setjmp-bug21895 and rules to build a shared object from it.
9963 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9964 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9965
9966 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9967
9968 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9969 * benchtests/bench-strstr.c: Likewise.
9970 * string/memmem.c (FASTSEARCH): Define.
9971 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9972 Add support for FASTSEARCH.
9973 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9974 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9975 (FASTSEARCH): Define.
9976 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9977 * string/test-strstr.c: Likewise.
9978
9979 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9980
9981 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9982 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9983
9984 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9985 H.J. Lu <hongjiu.lu@intel.com>
9986
9987 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9988 (__longjmp): Restore shadow stack pointer if shadow stack is
9989 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9990 isn't defined for __longjmp_cancel.
9991 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9992 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9993 and SHADOW_STACK_POINTER_OFFSET is defined.
9994 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9995 (setjmp): Save shadow stack pointer if shadow stack is enabled
9996 and SHADOW_STACK_POINTER_OFFSET is defined.
9997 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9998 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9999 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10000 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
10001 <jmp_buf-ssp.h>.
10002 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10003 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10004 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
10005 Remove jmp_buf-ssp.sym.
10006 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10007 <jmp_buf-ssp.h>.
10008 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10009 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10010 * sysdeps/x86/Makefile (gen-as-const-headers): Add
10011 jmp_buf-ssp.sym.
10012 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10013 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10014 (__longjmp): Restore shadow stack pointer if shadow stack is
10015 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10016 isn't defined for __longjmp_cancel.
10017 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10018 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10019 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10020
10021 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
10022
10023 [BZ #22563]
10024 * nptl/pthread_create.c: Include <tls-setup.h>.
10025 (__pthread_create_2_1): Call tls_setup_tcbhead.
10026 * sysdeps/generic/tls-setup.h: New file.
10027 * sysdeps/x86/nptl/tls-setup.h: Likewise.
10028 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10029 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10030 Likewise.
10031 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10032 to feature_1.
10033 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10034 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10035 (X86_FEATURE_1_SHSTK): Likewise.
10036 (CET_ENABLED): Likewise.
10037 (IBT_ENABLED): Likewise.
10038 (SHSTK_ENABLED): Likewise.
10039
10040 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
10041
10042 [BZ #23208]
10043 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10044 (LOCALES): Likewise.
10045 * localedata/dsb_DE.UTF-8.in: New file.
10046 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10047
10048 2018-07-12 Florian Weimer <fweimer@redhat.com>
10049
10050 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10051 __mprotect, not mprotect.
10052
10053 2018-07-11 Florian Weimer <fweimer@redhat.com>
10054
10055 * io/Makefile (headers): Add bits/statx.h.
10056
10057 2018-07-10 Mike FABIAN <mfabian@redhat.com>
10058
10059 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10060 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10061 and headers.
10062 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10063 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10064 for utf8_gen.py
10065
10066 2018-07-10 Florian Weimer <fweimer@redhat.com>
10067
10068 * io/Makefile (routines): Add statx.
10069 (tests-internal): Add tst-statx.
10070 * io/Versions (GLIBC_2.28): Export statx.
10071 * io/bits/statx.h: New file.
10072 * io/sys/stat.h [__USE_GNU]: Include it.
10073 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10074 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10075 Define.
10076 * io/statx.c: New file.
10077 * io/statx_generic.: Likewise.
10078 * io/tst-statx.: Likewise.
10079 * include/bits/statx.h: Likewise.
10080 * sysdeps/unix/sysv/linux/kernel-features.h
10081 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10082 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10083 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10084 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10085 Undefine.
10086 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10087 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10088 * sysdeps/unix/sysv/linux/statx.c: New file.
10089 * manual/filesys.texi: Note that statx is undocumented.
10090 * sysdeps/**/libc*.abilist: Update.
10091
10092 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10093
10094 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10095 a kernel issue which lead to test failure in some cases.
10096
10097 2018-07-10 Florian Weimer <fweimer@redhat.com>
10098
10099 [BZ #23036]
10100 * posix/regexec.c (check_node_accept_bytes): When comparing
10101 weights, do not compare an extra byte after the end of the
10102 weights.
10103
10104 2018-07-10 Florian Weimer <fweimer@redhat.com>
10105
10106 * libio/readline.c: Fix copyright year.
10107 * libio/tst-readline.c Likewise.
10108 * nss/tst-nss-files-hosts-getent.c: Likewise.
10109
10110 2018-07-06 Florian Weimer <fweimer@redhat.com>
10111
10112 [BZ #18991]
10113 * nss/nss_files/files-XXX.c (internal_getent): Use
10114 __libc_readline_unlocked. Seek back to the start of the line if
10115 parsing failes with ERANGE.
10116 (get_contents_ret, get_contents): Remove.
10117 * nss/tst-nss-files-hosts-getent.c: New file.
10118 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10119 (tst-nss-files-hosts-getent): Link with -ldl.
10120
10121 2018-07-06 Florian Weimer <fweimer@redhat.com>
10122
10123 * include/stdio.h (__libc_readline_unlocked): Declare.
10124 (__ftello64, __fseeko64): Declare aliases.
10125 * libio/readline.c: New file.
10126 * libio/tst-readline.c: Likewise.
10127 (routines): Add readline.
10128 (tests-internal): Add tst-readlime.
10129 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10130 __libc_readline_unlocked.
10131 * libio/fseeko.c (__fseeko): Rename from fseeko.
10132 (fseeko): Add alias.
10133 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10134 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10135 (fseeko64): Add alias.
10136 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10137 * libio/ftello64.c (__ftello64): Rename from ftello64.
10138 (ftello64): Add alias.
10139
10140 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10141
10142 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10143 HWCAP_ATOMICS.
10144
10145 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10146
10147 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10148 Use dl_hwcap without masking.
10149 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10150 Remove HWCAP_CPUID.
10151
10152 2018-07-06 Florian Weimer <fweimer@redhat.com>
10153
10154 * conform/conformtest.pl (checknamespace): Escape literal braces
10155 in regular expressions.
10156
10157 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10158
10159 * sysdeps/x86/cpu-features.c (get_common_indeces):
10160 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10161 * sysdeps/x86/cpu-features.c (init_cpu_features):
10162 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10163
10164 2018-07-05 Florian Weimer <fweimer@redhat.com>
10165
10166 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10167 protector.
10168 (CFLAGS-elf-init.oS): Likewise.
10169
10170 2018-07-05 Florian Weimer <fweimer@redhat.com>
10171 Carlos O'Donell <carlos@redhat.com>
10172
10173 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10174 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10175 with stack protector enabled because there is no risk of infinite
10176 recursion.
10177
10178 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10179
10180 [BZ #19818]
10181 [BZ #23307]
10182 * libc-abis (ABSOLUTE): New ABI.
10183 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10184 * NEWS: Mention the new ABI.
10185
10186 2018-07-05 Florian Weimer <fweimer@redhat.com>
10187
10188 [BZ # 17662]
10189 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10190 (RENAME_WHITEOUT): Define.
10191 [__USE_GNU] (renameat2): Declare.
10192 * stdio-common/Makefile (routines): Add renameat2.
10193 (tests): Add tst-renameat2.
10194 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10195 * stdio-common/renameat2.c: New file.
10196 * stdio-common/tst-renameat2.c: Likewise.
10197 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10198 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10199 undocumented.
10200 * sysdeps/unix/sysv/linux/kernel-features.h
10201 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10202 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10203 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10204 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10205 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10206 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10207 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10208 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10209 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10210 * include/stdio.h (__renameat): Add alias for renameat.
10211 * stdio-common/renameat.c (__renameat): Rename from renameat.
10212 Add hidden definition and alias.
10213 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10214 * sysdeps/mach/hurd/renameat.c: Likewise.
10215 * sysdeps/**/libc*.abilist: Add renameat2.
10216
10217 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10218
10219 * posix/bug-regex33.c: Fix build after regex sync.
10220
10221 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10222
10223 [BZ #23164]
10224 * localedata/tst-langinfo-setlocale.c: New file.
10225 * localedata/tst-langinfo-setlocale-static.c: New file.
10226 * localedata/tst-langinfo-newlocale.c: New file.
10227 * localedata/tst-langinfo-newlocale-static.c: New file.
10228 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10229 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10230 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10231 (tests-static): Remove tst-langinfo-static. Add
10232 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10233 (tests-special): Remove $(objpfx)tst-langinfo.out,
10234 $(objpfx)tst-langinfo-static.out. Add
10235 $(objpfx)tst-langinfo-setlocale.out,
10236 $(objpfx)tst-langinfo-newlocale.out,
10237 $(objpfx)tst-langinfo-setlocale-static.out,
10238 $(objpfx)tst-langinfo-newlocale-static.out.
10239 ($(objpfx)tst-langinfo.out): Remove.
10240 ($(objpfx)tst-langinfo-static.out): Remove.
10241 ($(objpfx)tst-langinfo-newlocale.out): New target.
10242 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10243 (test-xfail-tst-langinfo-newlocale-static): Add.
10244 ($(objpfx)tst-langinfo-setlocale.out): New target.
10245 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10246 * localedata/tst-langinfo.c: Call test_locale.
10247 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10248 data.
10249
10250 2018-07-04 Florian Weimer <fweimer@redhat.com>
10251
10252 testrun.sh: Implement --tool=strace, --tool=valgrind
10253 * Makefile (testrun-script): Define variable.
10254 (testrun.sh): Use variable.
10255 * manual/install.texi (Tools for Compilation): make 4.0 or later
10256 is required.
10257 * configure.ac: Check for make 4.0 or later.
10258 * INSTALL: Regenerate.
10259 * configure: Likewise.
10260
10261 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10262
10263 [BZ #23233]
10264 [BZ #21163]
10265 [BZ #18986]
10266 [BZ #13762]
10267 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10268 * posix/PCRE.tests: Remove invalid test.
10269 * posix/bug-regex28.c: Fix expected values for used syntax.
10270 * posix/bug-regex37.c: New file.
10271 * posix/bug-regex38.c: Likewise.
10272 * posix/regcomp.c: Sync with gnulib.
10273 * posix/regex.c: Likewise.
10274 * posix/regex.h: Likewise.
10275 * posix/regex_internal.c: Likewise.
10276 * posix/regex_internal.h: Likewise.
10277 * posix/regexec.c: Likewise.
10278
10279 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10280
10281 [BZ #23308]
10282 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10283 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10284 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10285 * localedata/unicode-gen/PropList.txt: likewise.
10286 * localedata/unicode-gen/UnicodeData.txt: likewise.
10287 * localedata/charmaps/UTF-8: Regenerate.
10288 * localedata/locales/i18n_ctype: likewise.
10289 * localedata/locales/tr_TR: likewise.
10290 * localedata/locales/translit_circle: likewise.
10291 * localedata/locales/translit_cjk_compat: likewise.
10292 * localedata/locales/translit_combining: likewise.
10293 * localedata/locales/translit_compat: likewise.
10294 * localedata/locales/translit_font: likewise.
10295 * localedata/locales/translit_fraction: likewise.
10296
10297 2018-07-03 Florian Weimer <fweimer@redhat.com>
10298
10299 [BZ #23363]
10300 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10301 * stdio-common/tst-printf.sh: Adjust expected output.
10302 * LICENSES: Update.
10303
10304 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10305
10306 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10307 symbol.
10308
10309 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10310
10311 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10312 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10313 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10314 * stdio-common/tst-printfsz-islongdouble.c: New file.
10315 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10316 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10317 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10318 [subdir == stdio-common] (tests-internal): Add
10319 test-printf-size-ieee128, and test-printf-size-ibm128.
10320 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10321 (CFLAGS-test-printf-size-ibm128.c): New variables.
10322 [subdir == stdio-common] (tests-special): Add
10323 $(objpfx)test-printf-size-ieee128.out and
10324 $(objpfx)test-printf-size-ibm128.out.
10325 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10326 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10327 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10328 __printf_sizeieee128.
10329 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10330 New file.
10331 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10332 Likewise.
10333 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10334 Likewise.
10335
10336 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10337
10338 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10339 (exp2f_inline): Likewise.
10340 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10341 (__math_uflowf): Likewise.
10342 (__math_may_uflowf): Likewise.
10343 (__math_divzerof): Likewise.
10344 (__math_invalidf): Likewise.
10345 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10346 (__math_oflowf): Likewise.
10347 (__math_uflowf): Likewise.
10348 (__math_may_uflowf): Likewise.
10349 (__math_divzerof): Likewise.
10350 (__math_invalidf): Likewise.
10351
10352 2018-06-29 DJ Delorie <dj@redhat.com>
10353 Carlos O'Donell <carlos@redhat.com>
10354
10355 [BZ #23329]
10356 * include/libc-symbols.h: Comment the freeres framework.
10357 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10358 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10359 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10360 * dlfcn/dlerror.c: Include libc-symbols.h
10361 (__dlerror_main_freeres): New function.
10362 * dlfcn/dlfreeres.c: New file.
10363 * dlfcn/sdlfreeres.c: New file.
10364 * include/dlfcn.h: Declare __dlerror_main_freeres.
10365 * malloc/set-freeres.c: Declare __libdl_freeres, and
10366 __libpthread_freeres.
10367 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10368 the releavant libraries are loaded.
10369 * malloc/thread-freeres.c: Add comments.
10370 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10371 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10372 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10373 (__free_stacks): Rename to...
10374 (free_stacks): ...this. Mark static.
10375 (queue_stack): Call free_stacks.
10376 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10377 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10378 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10379 ptr_freeres element from struct.
10380 (pthread_functions): Remove .ptr_freeres from struct initializer.
10381 [SHARED] (nptl_freeres): Remove.
10382 * nptl/nptlfreeres.c: New file.
10383 * nptl/pthreadP.h
10384 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10385 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10386 attribute_hidden.
10387 (__free_stacks): Rename to...
10388 (__nptl_stacks_freeres): ...this.
10389 (__shm_directory_freeres): Declare.
10390 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10391 (__nptl_unwind_freeres): ...this.
10392 * resolv/res-close.c: Add comment.
10393 * resolv/resolv_conf.c: Include libc-symbols.h.
10394 * string/strerror_l.c: Include libc-symbols.h.
10395 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10396 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10397 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10398 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10399
10400 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10401
10402 * stdlib/tst-strfmon_l.c: Add tests for long double.
10403
10404 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10405
10406 [BZ #23208]
10407 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10408 * localedata/locales/dsb_DE: New file.
10409
10410 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10411
10412 [BZ #23140]
10413 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10414 genitive case).
10415 (alt_mon): New entry, import from CLDR (nominative case).
10416
10417 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10418
10419 [BZ #22996]
10420 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10421
10422 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10423
10424 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10425 Use vector registers.
10426
10427 * sysdeps/aarch64/multiarch/memmove_falkor.S
10428 (__memcpy_falkor): Use vector registers.
10429
10430 2018-06-29 Martin Sebor <msebor@redhat.com>
10431
10432 * manual/stdio.texi (Customizing Printf): Mention interaction
10433 with GCC built-ins.
10434
10435 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10436
10437 [BZ #23307]
10438 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10439 `st_value' is 0 if `st_shndx' is SHN_ABS.
10440 * elf/tst-absolute-zero.c: New file.
10441 * elf/tst-absolute-zero-lib.c: New file.
10442 * elf/tst-absolute-zero-lib.lds: New file.
10443 * elf/Makefile (tests): Add `tst-absolute-zero'.
10444 (modules-names): Add `tst-absolute-zero-lib'.
10445 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10446 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10447 ($(objpfx)tst-absolute-zero: New dependency.
10448
10449 2018-06-29 Zack Weinberg <zackw@panix.com>
10450
10451 * configure.ac: New command-line option --disable-crypt.
10452 Force --disable-nss-crypt when --disable-crypt is given, with a
10453 warning if it was explicitly enabled.
10454 * configure: Regenerate.
10455 * config.make.in: New boolean substitution variable $(build-crypt).
10456 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10457 when $(build-crypt).
10458 * manual/install.texi: Document --disable-crypt.
10459 * INSTALL: Regenerate.
10460
10461 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10462 which is never set.
10463 * conform/Makefile: Only include libcrypt.a in
10464 linknamespace-libs-xsi and linknamespace-libs-XPG4
10465 when $(build-crypt).
10466 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10467 USE_CRYPT to 1 when $(build-crypt).
10468 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10469 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10470 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10471
10472 2018-06-29 Zack Weinberg <zackw@panix.com>
10473
10474 * crypt/crypt.h, posix/unistd.h: Update comments and
10475 prototypes for crypt and crypt_r.
10476
10477 * manual/crypt.texi (Cryptographic Functions): New initial
10478 exposition.
10479 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10480 (Unpredictable Bytes): Improve initial exposition. Clarify error
10481 behavior of getentropy and getrandom.
10482 * manual/examples/genpass.c: Generate a salt using getentropy
10483 instead of the current time. Use hash $5$ (SHA-2-256).
10484 * manual/examples/testpass.c: Demonstrate validation against
10485 hashes generated with three different one-way functions.
10486
10487 * manual/intro.texi: crypt.texi does not need an overview
10488 anymore.
10489
10490 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10491 * manual/terminal.texi: Consistently refer to "passphrases"
10492 * instead of "passwords", and to the "user database" instead
10493 * of the "password database".
10494 * manual/users.texi: Similarly. Add notes about how actual
10495 passphrase hashes are now stored in the shadow database.
10496 Remove 20-year-old junk todo note.
10497
10498 2018-06-29 Zack Weinberg <zackw@panix.com>
10499
10500 * manual/crypt.texi: Use a normal top-level @node declaration.
10501 Move most of the introductory text to the 'crypt' section.
10502 Move the example programs below the @deftypefun for 'crypt_r'.
10503 Move the 'getpass' section...
10504 * manual/terminal.texi: ...here.
10505
10506 2018-06-29 Zack Weinberg <zackw@panix.com>
10507 Florian Weimer <fweimer@redhat.com>
10508
10509 * posix/unistd.h: Do not declare encrypt.
10510 (_XOPEN_CRYPT): Remove macro definition.
10511 (crypt): Declare only for _USE_MISC.
10512 * stdlib/stdlib.h: Do not declare setkey.
10513 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10514 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10515
10516 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10517 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10518 into compat symbols. Don't define initial_perm if it's not
10519 going to be used.
10520 * crypt/cert.c: Link explicitly with the expected versions for
10521 setkey and encrypt. If they are not available at all, mark
10522 the test as unsupported.
10523
10524 * sunrpc/des_crypt.c: Unconditionally block linkage with
10525 cbc_crypt and ecb_crypt for new binaries.
10526 * sunrpc/des_soft.c: Unconditionally block linkage with
10527 des_setparity for new binaries.
10528
10529 * manual/crypt.texi: Remove the entire "DES Encryption"
10530 section. Also remove the paragraph talking about FIPS 140-2
10531 from the introduction.
10532 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10533 of libgcrypt for "real" encryption, not DES.
10534 * manual/conf.texi (Constants for Sysconf): Mention that
10535 _XOPEN_CRYPT is no longer impelemented.
10536
10537 * conform/data/unistd.h-data: Remove crypt function declaration.
10538
10539 2018-06-29 Florian Weimer <fweimer@redhat.com>
10540
10541 [BZ #23351]
10542 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10543 (disallow_malloc_check): Remove variable.
10544 (__malloc_check_init): Adjust.
10545 (malloc_set_state): Update comment.
10546 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10547 declarations.
10548
10549 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10550
10551 [BZ #23140]
10552 * localedata/locales/ast_ES (mon): Rename to...
10553 (alt_mon): This.
10554 (mon): Import from CLDR (genitive case).
10555
10556 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10557 Jakub Sitnicki <jkbs@redhat.com>
10558
10559 [BZ #21812]
10560 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10561 on NLM_F_DUMP_INTR.
10562
10563 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10564
10565 * manual/llio.texi: Remove spurious space.
10566
10567 2018-06-28 Florian Weimer <fweimer@redhat.com>
10568
10569 [BZ #23349]
10570 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10571 _STRUCT_TIMESPEC.
10572
10573 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10574
10575 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10576 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10577 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10578 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10579 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10580 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10581 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10582
10583 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10584
10585 [BZ #23266]
10586 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10587 Copy and null-terminate entries that are not terminated, in
10588 addition to empty ones.
10589
10590 2018-06-27 Florian Weimer <fweimer@redhat.com>
10591
10592 [BZ #18023]
10593 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10594 (extend_alloca_account): Remove.
10595 * manual/stdio.texi (Variable Arguments Output): Update comment.
10596
10597 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10598
10599 * nptl/sockperf.c: Remove file.
10600
10601 2018-06-27 Florian Weimer <fweimer@redhat.com>
10602
10603 [BZ #18023]
10604 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10605 scratch_buffer instead of extend_alloca.
10606
10607 2018-06-27 Florian Weimer <fweimer@redhat.com>
10608
10609 [BZ #18023]
10610 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10611 scratch_buffer instead of extend_alloca. Update comments.
10612
10613 2018-06-27 Florian Weimer <fweimer@redhat.com>
10614
10615 [BZ #18023]
10616 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10617 instead of extend_alloca.
10618
10619 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10620
10621 [BZ #13888]
10622 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10623 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10624 /tmp.
10625 * scripts/test-installation.pl: Put temporary files in build
10626 directory, not /tmp.
10627 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10628 (CFLAGS-bug4.c): Likewise.
10629 (CFLAGS-bug5.c): Likewise.
10630 (CFLAGS-test-fseek.c): Likewise.
10631 (CFLAGS-test-popen.c): Likewise.
10632 (CFLAGS-test_rdwr.c): Likewise.
10633 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10634 /tmp.
10635 * stdio-common/bug4.c (main): Likewise.
10636 * stdio-common/bug5.c (main): Likewise.
10637 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10638 * stdio-common/test-popen.c (do_test): Likewise.
10639 * stdio-common/test_rdwr.c (main): Likewise.
10640
10641 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10642
10643 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10644 (sem_open): Set sem.newsem.pad to zero for valgrind.
10645
10646 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10647
10648 [BZ #20251]
10649 * NEWS: Mention fcntl64 addition.
10650 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10651 * login/utmp_file.c: Likewise.
10652 * sysdeps/posix/fdopendir.c: Likewise.
10653 * sysdeps/posix/opendir.c: Likewise.
10654 * sysdeps/unix/pt-fcntl.c: Likewise.
10655 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10656 __fcntl64_nocancel_adjusted): New prototype.
10657 (__fcntl_nocancel_adjusted): Remove prototype.
10658 * io/Makefile (routines): Add fcntl64.
10659 (CFLAGS-fcntl64.c): New rule.
10660 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10661 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10662 * io/fcntl.h (fcntl64): Add prototype and redirect if
10663 __USE_FILE_OFFSET64 is defined.
10664 * io/fcntl64.c: New file.
10665 * manual/llio.text: Add a note for which commands fcntl acts a
10666 cancellation point.
10667 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10668 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10669 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10670 New symbols.
10671 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10672 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10673 non-LFS case.
10674 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10675 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10676 to __fcntl64_nocancel.
10677 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10678 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10679 to __fcntl64_nocancel.
10680 * sysdeps/generic/not-cancel.h: Likewise.
10681 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10682 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10683 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10684 (fcntl64): New symbol.
10685 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10686 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10687 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10690 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10691 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10692 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10693 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10694 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10695 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10696 fcntl64): Likewise.
10697 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10698 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10699 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10700 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10701 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10702 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10703 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10704 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10705 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10707 Likewise.
10708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10709 Likewise.
10710 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10711 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10712 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10713
10714 2018-06-26 Florian Weimer <fweimer@redhat.com>
10715
10716 Run thread shutdown functions in an explicit order.
10717 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10718 definition.
10719 (__libc_thread_freeres): Call thread shutdown functions
10720 explicitly.
10721 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10722 * include/string.h (__strerror_thread_freeres): Declare.
10723 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10724 arena_thread_freeres. No longer static. Remove thread shutdown
10725 hook registration.
10726 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10727 Declare.
10728 * resolv/res-close.c (__res_thread_freeres): Renamed from
10729 res_thread_freeres. No longer static. Remove thread shutdown
10730 hook registration.
10731 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10732 * resolv/resolv_conf.c (freeres): Remove incorrect section
10733 attribute and use libc_freeres_fn.
10734 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10735 strerror_thread_freeres. No longer static. Remove thread
10736 shutdown hook registration.
10737 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10738 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10739 shutdown hook registration.
10740 * Makerules (shlib.lds): Do not provide section boundary symbols
10741 for __libc_thread_subfreeres.
10742 * manual/memory.texi (Basic Allocation): Update comment.
10743
10744 2018-06-26 Florian Weimer <fweimer@redhat.com>
10745
10746 Remove always-defined _RPC_THREAD_SAFE_ macro.
10747 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10748 Do not define _RPC_THREAD_SAFE_.
10749 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10750 conditional.
10751 * sunrpc/clnt_perr.c: Likewise.
10752 * sunrpc/clnt_raw.c: Likewise.
10753 * sunrpc/clnt_simp.c: Likewise.
10754 * sunrpc/key_call.c: Likewise.
10755 * sunrpc/rpc_common.c: Likewise.
10756 * sunrpc/rpc_main.c: Likewise.
10757 * sunrpc/rpc_thread.c: Likewise.
10758 * sunrpc/svc.c: Likewise.
10759 * sunrpc/svc_raw.c: Likewise.
10760 * sunrpc/svc_simple.c: Likewise.
10761 * sumrpc/svcauth_des.c: Likewise.
10762
10763 2018-06-26 Florian Weimer <fweimer@redhat.com>
10764
10765 * libio/Makefile (tests-internal): Add tst-vtables,
10766 tst-vtables-interposed.
10767 * libio/tst-vtables.c: New file.
10768 * libio/tst-vtables-common.c: Likewise.
10769 * libio/tst-vtables-interposed.c: Likewise.
10770
10771 2018-06-26 Florian Weimer <fweimer@redhat.com>
10772
10773 * support/support_test_main.c (support_test_main): Only call
10774 setvbuf if not disables.
10775 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10776 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10777
10778 2018-06-26 Florian Weimer <fweimer@redhat.com>
10779
10780 [BZ #23313]
10781 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10782
10783 2018-06-25 Florian Weimer <fweimer@redhat.com>
10784
10785 [BZ #18023]
10786 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10787 Use struct scratch_buffer instead of extend_alloca.
10788
10789 2018-06-25 Florian Weimer <fweimer@redhat.com>
10790
10791 [BZ #18023]
10792 * nss/getent.c (initgroups_keys): Use dynarray instead of
10793 extend_alloca.
10794
10795 2018-06-25 Florian Weimer <fweimer@redhat.com>
10796
10797 [BZ #18023]
10798 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10799 Use struct scratch_buffer instead of extend_alloca.
10800
10801 2018-06-25 Florian Weimer <fweimer@redhat.com>
10802
10803 [BZ #18023]
10804 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10805 back to malloc directly, without stack allocations.
10806
10807 2018-06-25 Florian Weimer <fweimer@redhat.com>
10808
10809 [BZ #18023]
10810 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10811 of extend_alloca.
10812
10813 2018-06-25 Florian Weimer <fweimer@redhat.com>
10814
10815 [BZ #18023]
10816 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10817 of extend_alloca.
10818 * nscd/hstcache.c (addhstbyX): Likewise.
10819 * nscd/pwdcache.c (addpwbyX): Likewise.
10820 * nscd/servicescache.c (addservbyX): Likewise.
10821
10822 2018-06-25 Florian Weimer <fweimer@redhat.com>
10823
10824 [BZ #18023]
10825 * nscd/connections.c (read_cmdline): New function.
10826 (restart): Use it. Update comment.
10827
10828 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10829
10830 [BZ #23140]
10831 * localedata/locales/csb_PL (mon): Rename to...
10832 (alt_mon): This.
10833 (abmon): Rename to...
10834 (ab_alt_mon): This.
10835 (mon): Add with proper genitive forms, copy from Wikipedia.
10836 (abmon): Likewise.
10837
10838 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10839
10840 [BZ #19485]
10841 * localedata/locales/csb_PL (mon): Fix typos:
10842 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10843 (yesstr): Add, value is "jo".
10844 (nostr): Add, value is "nié".
10845
10846 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10847
10848 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10849 all log1p and significand functions on m680x0.
10850 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10851 of s_significand.c..
10852 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10853 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10854 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10855 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10856 s_log1p.c and include it..
10857
10858 2018-06-21 Vincent Chen <vincentc@andestech.com>
10859
10860 * elf/elf.h (R_NDS32_NONE): New define.
10861 (R_NDS32_32_RELA): Likewise.
10862 (R_NDS32_COPY): Likewise.
10863 (R_NDS32_GLOB_DAT): Likewise.
10864 (R_NDS32_JUMP_SLOT): Likewise.
10865 (R_NDS32_RELATIVE): Likewise.
10866 (R_NDS32_TLS_TPOFF): Likewise.
10867 (R_NDS32_TLS_DESC): Likewise.
10868
10869 2018-06-21 Mark Wielaard <mark@klomp.org>
10870
10871 * elf/elf.h (R_BPF_MAP_FD): Removed.
10872 (R_BPF_64_64, R_BPF_64_32): New.
10873
10874 2018-06-21 Florian Weimer <fweimer@redhat.com>
10875
10876 [BZ #23253]
10877 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10878 Renamed from libc_feholdsetround_ctx.
10879 (default_libc_feresetround_ctx): Renamed from
10880 libc_feresetround_ctx.
10881 (default_libc_feholdsetround_noex_ctx): Renamed from
10882 libc_feholdsetround_noex_ctx.
10883 (default_libc_feresetround_noex_ctx): Renamed from
10884 libc_feresetround_noex_ctx.
10885 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10886 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10887 forwardning to the old implementations under the new names.
10888 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10889 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10890 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10891 (libc_feresetround_ctx): Forward to default implements for i386
10892 and MATH_SET_BOTH_ROUNDING_MODES.
10893 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10894 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10895
10896 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10897
10898 * string/tst-cmp.c: Include <libc-diag.h>.
10899 (strncmp_max): Disable -Wstringop-overflow= around call to
10900 strncmp.
10901 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10902 strncasecmp.
10903
10904 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10905 (main): Disable -Wunused-value around call to strpbrk.
10906 * string/bug-strspn1.c: Include <libc-diag.h>.
10907 (main): Disable -Wunused-value around call to strspn.
10908
10909 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10910 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10911
10912 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10913 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10914
10915 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10916
10917 * math/Makefile (libm-calls): Move s_significandF to...
10918 (gen-libm-calls): ... here.
10919 * math/s_significand_template.c: New file.
10920 * math/s_significand.c: Removed.
10921 * math/s_significandf.c: Removed.
10922 * math/s_significandl.c: Removed.
10923 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10924 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10925
10926 * math/e_exp2_template.c (declare_mgen_finite_alias,
10927 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10928 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10929 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10930
10931 2018-06-20 Florian Weimer <fweimer@redhat.com>
10932
10933 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10934
10935 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10936
10937 [BZ #23280]
10938 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10939 floating-point number to strtod functions rather than possibly
10940 negating result of those functions.
10941 * stdio-common/tst-scanf-round.c: New file.
10942 * stdio-common/Makefile (tests): Add tst-scanf-round.
10943 ($(objpfx)tst-scanf-round): Depend on $(libm).
10944
10945 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10946
10947 * sysdeps/mach/hurd/localplt.data: Move to...
10948 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10949 R_386_GLOB_DAT like on Linux i386.
10950
10951 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10952
10953 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10954 (SHM_STAT_ANY): New macro.
10955 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10956 (SHM_STAT_ANY): Likewise.
10957 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10958 (SHM_STAT_ANY): Likewise.
10959 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10960 (SHM_STAT_ANY): Likewise.
10961 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10962 (SHM_STAT_ANY): Likewise.
10963 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10964 (SHM_STAT_ANY): Likewise.
10965 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10966 (SHM_STAT_ANY): Likewise.
10967 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10968 (SHM_STAT_ANY): Likewise.
10969 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10970 (SHM_STAT_ANY): Likewise.
10971 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10972 (SHM_STAT_ANY): Likewise.
10973 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10974 (SHM_STAT_ANY): Likewise.
10975 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10976 (SHM_STAT_ANY): Likewise.
10977
10978 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10979 (SEM_STAT_ANY): New macro.
10980 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10981 (SEM_STAT_ANY): Likewise.
10982 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10983 (SEM_STAT_ANY): Likewise.
10984 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10985 (SEM_STAT_ANY): Likewise.
10986 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10987 (SEM_STAT_ANY): Likewise.
10988 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10989 (SEM_STAT_ANY): Likewise.
10990 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10991 (SEM_STAT_ANY): Likewise.
10992 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10993 (SEM_STAT_ANY): Likewise.
10994 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10995 (SEM_STAT_ANY): Likewise.
10996 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10997 (SEM_STAT_ANY): Likewise.
10998
10999 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
11000 (MSG_STAT_ANY): New macro.
11001 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
11002 (MSG_STAT_ANY): Likewise.
11003 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
11004 (MSG_STAT_ANY): Likewise.
11005 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
11006 (MSG_STAT_ANY): Likewise.
11007 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11008 (MSG_STAT_ANY): Likewise.
11009 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11010 (MSG_STAT_ANY): Likewise.
11011 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11012 (MSG_STAT_ANY): Likewise.
11013 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11014 (MSG_STAT_ANY): Likewise.
11015 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11016 (MSG_STAT_ANY): Likewise.
11017 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11018 (MSG_STAT_ANY): Likewise.
11019
11020 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11021 (MAP_TYPE): Change value to 0x2b.
11022
11023 2018-06-18 Florian Weimer <fweimer@redhat.com>
11024
11025 [BZ #15722]
11026 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11027 socket with SOCK_CLOEXEC.
11028
11029 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11030
11031 [BZ #23303]
11032 * sysdeps/powerpc/powerpc64/le/Makefile
11033 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11034 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11035 (gnulib-tests): Also add $(f128-loader-link) for
11036 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11037
11038 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11039
11040 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11041 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11042 of sendfile.
11043 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11044 (sendfile64): New strong alias.
11045 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11046 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11047 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11048 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11049 attribute.
11050 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11051 ___pthread_get_cleanup_stack.
11052 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11053 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11054 * mach/shortcut.awk: Make syscall stubs include
11055 <mach-shortcuts-hidden.h> and add hidden definition.
11056 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11057 (__mach_msg): Add hidden prototype.
11058 * mach/msg.c: Include <mach.h>.
11059 (__mach_msg): Add hidden definition.
11060 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11061 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11062 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11063 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11064 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11065 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11066 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11067 prototype and definition.
11068 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11069 hidden target for _hurd_self_sigstate.
11070
11071 2018-06-15 Joseph Myers <joseph@codesourcery.com>
11072
11073 [BZ #23007]
11074 * stdlib/tst-strtod-nan-sign-main.c: New file.
11075 * stdlib/tst-strtod-nan-sign.c: Likewise.
11076 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11077 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11078 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11079 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11080 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11081
11082 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
11083
11084 [BZ #23007]
11085 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11086 appropriate sign.
11087
11088 2018-06-14 Florian Weimer <fweimer@redhat.com>
11089
11090 [BZ #23290]
11091 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11092 that the result stays within the ISO-8859-1 range.
11093 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11094 characters are defined in IBM273.
11095
11096 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11097
11098 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11099 __mach_task_self): Remove attribute_hidden.
11100
11101 2018-06-14 Joseph Myers <joseph@codesourcery.com>
11102
11103 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11104 ignore -Wrestrict for one test.
11105
11106 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
11107 Szabolcs Nagy <szabolcs.nagy@arm.com>
11108
11109 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11110
11111 2018-06-14 Florian Weimer <fweimer@redhat.com>
11112
11113 * scripts/update-abilist.sh: Accept empty list of files to patch.
11114
11115 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
11116
11117 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11118 test-xfail-check-abi-libmachuser): Add.
11119 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11120 __libc_read and __libc_write to __read and __write.
11121 * sysdeps/hurd/include/hurd/port.h: New file.
11122 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11123 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11124 __thread_switch, __evc_wait): Move declarations to...
11125 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11126 attribute_hidden.
11127 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11128 use PLT to call _hurd_self_sigstate.
11129
11130 2018-06-13 Joseph Myers <joseph@codesourcery.com>
11131
11132 [BZ #23279]
11133 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11134 MAX_EXP as overflowing.
11135 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11136 overflow flag.
11137 (round_str): Output also whether result overflows in each rounding
11138 mode.
11139 * stdlib/tst-strtod-round-data: Add more tests.
11140 * stdlib/tst-strtod-round-data.h: Regenerated.
11141 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11142 (TEST): Handle extra arguments for overflow flags.
11143 (struct test_overflow): New type.
11144 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11145 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11146 (test_in_one_mode): Take argument with overflow information.
11147 (do_test): Update calls to test_in_one_mode.
11148
11149 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11150
11151 * elf/dl-load (_dl_dst_substitute): Correct comment.
11152 (_dl_dst_count): Likewise.
11153
11154 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11155 lll_futex_timed_wait.
11156
11157 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11158
11159 [BZ #23277]
11160 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11161 attribute.
11162 * math/test-nan-const.c: New file.
11163 * math/Makefile (tests): Add test-nan-const.
11164 (CFLAGS-test-nan-const.c): New variable.
11165
11166 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11167
11168 * benchtests/scripts/compare_strings.py (process_results): Add
11169 funcs argument. Compare only functions which are selected.
11170 (main): Check if base function is among selected functions.
11171 Pass selected functions to process_results.
11172 (__main__): Add -f/--functions argument.
11173
11174 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11175 Hongbo Zhang <hongbo.zhang@linaro.org>
11176
11177 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11178 __memcpy_falkor for phecda core.
11179 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11180 __memmove_falkor for phecda core.
11181 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11182 __memset_falkor for phecda core.
11183 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11184 for phecda core.
11185 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11186 macro to identify phecda core.
11187
11188 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11189 Andreas Schwab <schwab@suse.de>
11190 Dmitry V. Levin <ldv@altlinux.org>
11191 Florian Weimer <fweimer@redhat.com>
11192
11193 [BZ #23102]
11194 [BZ #21942]
11195 [BZ #18018]
11196 [BZ #23259]
11197 CVE-2011-0536
11198 * elf/dl-dst.h: Remove DL_DST_COUNT.
11199 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11200 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11201 (is_dst): Comment. Support ELF gABI.
11202 (_dl_dst_count): Comment. Simplify and count DSTs.
11203 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11204 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11205 locals.
11206
11207 2018-06-12 Zack Weinberg <zackw@panix.com>
11208
11209 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11210 * sysdeps/unix/sysv/linux/dl-sysdep.c
11211 Include not-cancel.h. Use __close_nocancel instead of __close,
11212 __open64_nocancel instead of __open, __read_nocancel instead of
11213 __libc_read, and __write_nocancel instead of __libc_write.
11214
11215 * csu/check_fds.c (check_one_fd)
11216 * sysdeps/posix/fdopendir.c (__fdopendir)
11217 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11218 instead of __fcntl and/or __libc_fcntl.
11219
11220 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11221 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11222 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11223 Use __open64_nocancel instead of __open_nocancel.
11224
11225 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11226 hidden_proto declarations to the end and issue them if either
11227 IS_IN(libc) or IS_IN(rtld).
11228 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11229 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11230 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11231 read_nocancel, waitpid_nocancel, write_nocancel.
11232
11233 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11234 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11235 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11236
11237 * nptl/pt-fcntl.c: New file.
11238 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11239 (libpthread-routines): Add pt-fcntl.
11240 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11241 (__libc_fcntl): Remove attribute_hidden.
11242 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11243 __fcntl_nocancel_adjusted, not fcntl_common.
11244 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11245 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11246 to fcntl_nocancel.c.
11247 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11250 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11251
11252 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11253 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11254 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11255 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11256 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11257 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11258 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11259 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11260 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11261 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11262 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11263 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11264 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11265 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11266 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11267 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11268 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11269 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11270 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11271 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11272
11273 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11274 libpthread-routines.
11275 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11276 defines nothing.
11277
11278 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11279 __libc_read, and __write instead of __libc_write. Define
11280 __open64 in addition to __open.
11281
11282 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11283
11284 [BZ #23250]
11285 [BZ #10686]
11286 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11287 to _private_tm[3] and add __glibc_reserved2.
11288 Add _Static_assert of offset of __private_ss == 0x30.
11289 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11290 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11291
11292 2018-06-12 Florian Weimer <fweimer@redhat.com>
11293
11294 x86: Make strncmp usable from rtld.
11295 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11296 __strncmp_ia32 if in libc (and not in rtld).
11297 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11298 strncmp if not in libc (and not to __strncmp_sse2).
11299
11300 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11301
11302 [BZ #23140]
11303 * localedata/locales/gd_GB (mon): Rename to...
11304 (alt_mon): This.
11305 (mon): Import from CLDR (genitive case).
11306 * localedata/locales/hsb_DE (mon): Rename to...
11307 (alt_mon): This.
11308 (mon): Import from CLDR (genitive case).
11309 * localedata/locales/wa_BE (mon): Rename to...
11310 (alt_mon): This.
11311 (mon): Add, fill with the proper genitive forms, but CLDR data
11312 is incomplete; completed according to the comments in this file.
11313 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11314
11315 * localedata/locales/wa_BE (country_name): Reword
11316 "Beljike" -> "Beldjike".
11317
11318 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11319
11320 [BZ #23272]
11321 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11322 cases of non-finite arguments.
11323 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11324
11325 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11326
11327 [BZ #23174]
11328 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11329
11330 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11331
11332 [BZ #23264]
11333 * include/unistd.h (__execvpex): New prototype.
11334 * posix/Makefile (tests): Add tst-spawn4.
11335 (tests-internal): Add tst-spawn4-compat.
11336 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11337 * posix/tst-spawn4-compat.c: New file.
11338 * posix/tst-spawn4.c: Likewise.
11339 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11340 binaries as shell scripts.
11341 * sysdeps/posix/spawni.c (__spawni): Likewise.
11342
11343 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11344
11345 [BZ #23145]
11346 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11347 ($(all-built-dso:=.dynsym): New target.
11348 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11349 ($(objpfx)check-initfini.out): New target.
11350 (generated): Add check-initfini.out.
11351 * scripts/check-initfini.awk: New file.
11352 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11353 (_fini): Likewise.
11354 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11355 (_fini): Likewise.
11356 * sysdeps/arm/crti.S (_init): Mark as hidden.
11357 (_fini): Likewise.
11358 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11359 (_fini): Likewise.
11360 * sysdeps/i386/crti.S (_init): Mark as hidden.
11361 (_fini): Likewise.
11362 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11363 (_fini): Likewise.
11364 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11365 (_fini): Likewise.
11366 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11367 (_fini): Likewise.
11368 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11369 (_fini): Likewise.
11370 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11371 (_fini): Likewise.
11372 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11373 (_fini): Likewise.
11374 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11375 (_fini): Likewise.
11376 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11377 (_fini): Likewise.
11378 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11379 (_fini): Likewise.
11380 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11381 (_fini): Likewise.
11382 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11383 (_fini): Likewise.
11384 * sysdeps/sh/crti.S (_init): Mark as hidden.
11385 (_fini): Likewise.
11386 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11387 (_fini): Likewise.
11388 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11389 (_fini): Likewise.
11390
11391 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11392
11393 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11394 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11395 and TF redirection to KFtype and KF only when the default
11396 long double type is not the IEEE 128-bit floating point type.
11397
11398 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11399
11400 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11401 macro.
11402 (HWCAP_USCAT): Likewise.
11403 (HWCAP_ILRCPC): Likewise.
11404 (HWCAP_FLAGM): Likewise.
11405 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11406 Increase to 28.
11407 (_dl_aarch64_cap_flags): Add new flag names.
11408
11409 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11410 (MAP_FIXED_NOREPLACE): New macro.
11411 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11412 (MAP_FIXED_NOREPLACE): Likewise.
11413 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11414 (MAP_FIXED_NOREPLACE): Likewise.
11415 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11416 (MAP_FIXED_NOREPLACE): Likewise.
11417 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11418 (MAP_FIXED_NOREPLACE): Likewise.
11419 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11420 (MAP_FIXED_NOREPLACE): Likewise.
11421 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11422 (MAP_FIXED_NOREPLACE): Likewise.
11423 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11424 (MAP_FIXED_NOREPLACE): Likewise.
11425 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11426 (MAP_FIXED_NOREPLACE): Likewise.
11427 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11428 (MAP_FIXED_NOREPLACE): Likewise.
11429 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11430 (MAP_FIXED_NOREPLACE): Likewise.
11431 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11432 (MAP_FIXED_NOREPLACE): Likewise.
11433 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11434 (MAP_FIXED_NOREPLACE): Likewise.
11435 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11436 (MAP_FIXED_NOREPLACE): Likewise.
11437 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11438 (MAP_FIXED_NOREPLACE): Likewise.
11439
11440 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11441 version to 4.17.
11442
11443 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11444
11445 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11446 version to 4.17
11447
11448 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11449
11450 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11451 int.
11452 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11453
11454 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11455
11456 * benchtests/scripts/compare_string.py: (process_results) Catch
11457 exception in non-existent base_func and catch exception in
11458 non-existent attribute.
11459 (parse_file) Catch exception if input file does not exist.
11460
11461 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11462
11463 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11464 options to avoid diff calculation and omit header, respectively.
11465 (main): process --no-diff and --no-header
11466
11467 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11468 H.J. Lu <hongjiu.lu@intel.com>
11469
11470 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11471 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11472 wcsncmp-sse2.
11473 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11474 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11475 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11476 and __wcsncmp_sse2.
11477 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11478 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11479 AVX unaligned load is fast and vzeroupper is preferred.
11480 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11481 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11482 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11483 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11484 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11485 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11486 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11487 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11488 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11489 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11490 is undefined.
11491
11492 2018-06-01 Florian Weimer <fweimer@redhat.com>
11493
11494 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11495 configuring with --disable-multi-arch, building with
11496 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11497 Haswell-era CPU.
11498
11499 2018-06-01 Florian Weimer <fweimer@redhat.com>
11500
11501 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11502 results from building with “-march=x86-64 -mtune=generic
11503 -mfpmath=sse” and running on a Haswell-era CPU.
11504
11505 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11506
11507 [BZ #18473]
11508 * soft-fp/sqrttf2.c: Remove file.
11509 * soft-fp/sqrtdf2.c: Move to ....
11510 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11511 <shlib-compat.h>.
11512 (__sqrtdf2): Make conditional on
11513 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11514 symbol.
11515 * soft-fp/sqrtsf2.c: Move to ....
11516 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11517 <shlib-compat.h>.
11518 (__sqrtsf2): Make conditional on
11519 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11520 symbol.
11521 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11522 (gcc-double-routines): Remove sqrtdf2.
11523 (gcc-quad-routines): Remove sqrttf2.
11524 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11525 Do not filter out sqrtsf2 and sqrtdf2.
11526 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11527 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11528
11529 2018-06-01 Florian Weimer <fweimer@redhat.com>
11530
11531 * sysdeps/generic/libcidn.abilist: Remove file.
11532
11533 2018-06-01 Florian Weimer <fweimer@redhat.com>
11534
11535 [BZ #23236]
11536 * libio/strfile.h (struct _IO_str_fields): Rename members to
11537 discourage their use and add comment.
11538 (_IO_STR_DYNAMIC): Remove unused macro.
11539 * libio/strops.c (_IO_str_init_static_internal): Do not use
11540 callback pointers. Call malloc and free.
11541 (_IO_str_overflow): Do not use callback pointers. Call malloc
11542 and free.
11543 (enlarge_userbuf): Likewise.
11544 (_IO_str_finish): Call free.
11545 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11546 _allocate_buffer_unused.
11547 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11548 and free.
11549 (enlarge_userbuf): Likewise.
11550 (_IO_wstr_finish): Call free.
11551 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11552 _allocate_buffer_unused, _free_buffer_unused.
11553 * libio/memstream.c (__open_memstream): Likewise.
11554 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11555 * libio/wmemstream.c (open_wmemstream): Likewise.
11556
11557 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11558
11559 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11560 AMD Ryzen 7 1800X.
11561
11562 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11563
11564 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11565 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11566 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11567 New file.
11568 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11569 Likewise.
11570 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11571
11572 2018-05-29 Florian Weimer <fweimer@redhat.com>
11573
11574 * support/Makefile (libsupport-routines): Add
11575 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11576 xpthread_barrierattr_setpshared.
11577 * support/xpthread_barrierattr_destroy.c: New file.
11578 * support/xpthread_barrierattr_init.c: Likewise.
11579 * support/xpthread_barrierattr_setpshared.c: Likewise.
11580
11581 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11582
11583 [BZ #23206]
11584 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11585 _r_debug and update DT_DEBUG for debugger.
11586
11587 2018-05-29 Florian Weimer <fweimer@redhat.com>
11588
11589 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11590 (tst-strtod5i.out): Likewise.
11591
11592 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11593
11594 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11595 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11596 (sparc64-quad-routines): New variable. Moved from ....
11597 [$(subdir) = soft-fp] (sysdep_routines): Add
11598 $(sparc64-quad-routines). Moved from ....
11599 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11600 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11601 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11602 moved from ....
11603 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11604 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11605 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11606 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11607 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11608 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11609 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11610 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11611 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11612 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11613 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11614 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11615 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11616 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11617 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11618 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11619 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11620 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11621 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11622 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11623 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11624 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11625 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11626 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11627 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11628 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11629 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11630 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11631 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11632 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11633 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11634 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11635 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11636 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11637 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11638 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11639 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11640 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11641 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11642 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11643 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11644 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11645 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11646 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11647 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11648 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11649 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11650 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11651 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11652 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11653 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11654 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11655 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11656 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11657 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11658 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11659 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11660 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11661
11662 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11663 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11664 (sparc32-quad-routines): New variable. Moved from ....
11665 [$(subdir) = soft-fp] (sysdep_routines): Add
11666 $(sparc32-quad-routines). Moved from ....
11667 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11668 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11669 moved from ....
11670 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11671 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11672 * sysdeps/sparc/sparc32/q_add.c: ... here.
11673 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11674 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11675 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11676 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11677 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11678 * sysdeps/sparc/sparc32/q_div.c: ... here.
11679 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11680 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11681 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11682 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11683 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11684 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11685 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11686 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11687 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11688 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11689 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11690 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11691 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11692 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11693 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11694 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11695 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11696 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11697 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11698 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11699 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11700 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11701 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11702 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11703 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11704 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11705 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11706 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11707 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11708 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11709 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11710 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11711 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11712 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11713 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11714 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11715 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11716 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11717 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11718 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11719 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11720 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11721 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11722 * sysdeps/sparc/sparc32/q_util.c: ... here.
11723 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11724 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11725 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11726 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11727
11728 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11729 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11730
11731 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11732 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11733 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11734 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11735
11736 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11737
11738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11739 powerpc/soft-fp.
11740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11741 Likewise.
11742 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11743 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11744
11745 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11746
11747 [BZ #23171]
11748 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11749 double version.
11750
11751 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11752
11753 * sysdeps/sh/Implies: Remove sh/soft-fp.
11754 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11755 * sysdeps/sh/sfp-machine.h: ... here.
11756
11757 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11758
11759 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11760 (__mempcpy_erms): Skip zero length.
11761 (__memmove_erms): Likewise.
11762 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11763 (__memset_erms): Likewise.
11764
11765 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11766
11767 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11768 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11769 Add functions moved from ....
11770 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11771 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11772 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11773 from ....
11774 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11775 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11776 * sysdeps/alpha/e_sqrtl.c: ... here.
11777 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11778 * sysdeps/alpha/local-soft-fp.h: ... here.
11779 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11780 * sysdeps/alpha/ots_add.c: ... here.
11781 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11782 * sysdeps/alpha/ots_cmp.c: ... here.
11783 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11784 * sysdeps/alpha/ots_cmpe.c: ... here.
11785 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11786 * sysdeps/alpha/ots_cvtqux.c: ... here.
11787 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11788 * sysdeps/alpha/ots_cvtqx.c: ... here.
11789 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11790 * sysdeps/alpha/ots_cvttx.c: ... here.
11791 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11792 * sysdeps/alpha/ots_cvtxq.c: ... here.
11793 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11794 * sysdeps/alpha/ots_cvtxt.c: ... here.
11795 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11796 * sysdeps/alpha/ots_div.c: ... here.
11797 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11798 * sysdeps/alpha/ots_mul.c: ... here.
11799 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11800 * sysdeps/alpha/ots_nintxq.c: ... here.
11801 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11802 * sysdeps/alpha/ots_sub.c: ... here.
11803 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11804 * sysdeps/alpha/sfp-machine.h: ... here.
11805
11806 2018-05-23 Florian Weimer <fweimer@redhat.com>
11807
11808 [BZ #19728]
11809 [BZ #19729]
11810 [BZ #22247]
11811 CVE-2016-6261
11812 CVE-2016-6263
11813 CVE-2017-14062
11814 Switch to extern IDNA implementation (libidn2).
11815 * libidn: Remove subdirectory.
11816 * LICENSES: Do not mention licensing conditions for the removed
11817 libidn code.
11818 * config.h.in (HAVE_LIBIDN): Remove.
11819 * include/dlfcn.h (__libc_dlopen): Update comment.
11820 * include/idna.h: Remove file.
11821 * inet/Makefile (routines): Add idna.
11822 (tests-static, tests-internal): Add tst-idna_name_classify.
11823 (LOCALES): Generate locales for tests.
11824 (tst-idna_name_classify.out): Depend on generated locales.
11825 * inet/idna_name_classify.c: New file.
11826 * inet/tst-idna_name_classify.c: Likewise.
11827 * inet/net-internal.h (__idna_to_dns_encoding)
11828 (__idna_from_dns_encoding): Declare.
11829 * inet/net-internal.h (enum idna_name_classification): Define.
11830 (__idna_name_classify): Declare.
11831 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11832 __idna_from_dns_encoding.
11833 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11834 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11835 name as a fallback in case of encoding errors.
11836 (getnameinfo): Use DEPRECATED_NI_IDN.
11837 * inet/idna.c: New file.
11838 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11839 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11840 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11841 (modules-names): Add tst-no-libidn2.
11842 (extra-test-objs): Add tst-no-libidn2.os.
11843 (LDFLAGS-tst-no-libidn2.so): Set soname.
11844 (LOCALES): Set, and generate locales.
11845 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11846 (tst-resolv-ai_idn-latin1): Likewise.
11847 (tst-resolv-ai_idn-nolibidn2): Likewise.
11848 (tst-resolv-ai_idn.out): Depend on locales.
11849 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11850 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11851 tst-no-libidn2.so.
11852 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11853 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11854 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11855 * resolv/tst-resolv-ai_idn.c: New file.
11856 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11857 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11858 * resolv/tst-no-libidn2.c: Likewise.
11859 * support/support_format_addrinfo.c (format_ai_flags): Do not
11860 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11861 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11862 (gaih_inet): Call __idna_to_dns_encoding and
11863 __idna_from_dns_encoding, and use the original (punycode) name if
11864 __idna_from_dns_encoding fails due to an encoding error.
11865 (getaddrinfo): Use DEPRECATED_AI_IDN.
11866 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11867 * sysdeps/unix/inet/configure: Remove file.
11868 * sysdeps/unix/inet/configure.ac: Likewise.
11869
11870 2018-05-23 Florian Weimer <fweimer@redhat.com>
11871
11872 Implement allocate_once.
11873 * include/allocate_once.h: New file.
11874 * misc/allocate_once.c: Likewise.
11875 * misc/tst-allocate_once.c: Likewise.
11876 * misc/Makefile (routines): Add allocate_once.
11877 (tests-internal): Add tst-allocate_once.
11878 (generated): Add tst-allocate_once.mtrace,
11879 tst-allocate_once-mem.out.
11880 (tests-special): Add tst-allocate_once-mem.out.
11881 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11882 (tst-allocate_once-mem.out): Call mtrace.
11883 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11884
11885 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11886
11887 [BZ #23196]
11888 * string/test-memcpy.c (do_test1): New function.
11889 (test_main): Call it.
11890
11891 2018-05-23 Andreas Schwab <schwab@suse.de>
11892
11893 [BZ #23196]
11894 CVE-2018-11237
11895 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11896 (L(preloop_large)): Save initial destination pointer in %r11 and
11897 use it instead of %rax after the loop.
11898 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11899
11900 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11901
11902 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11903 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11904 -I../soft-fp. Moved from ....
11905 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11906 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11907 * sysdeps/aarch64/e_sqrtl.c: ... here.
11908 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11909 * sysdeps/aarch64/sfp-machine.h: ... here.
11910
11911 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11912 -Wmaybe-uninitialized around access to fq[0].
11913 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11914 Likewise.
11915
11916 [BZ #18471]
11917 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11918 aliases for non-libc case of versioned symbols.
11919 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11920 (llseek): Define as compat symbol if
11921 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11922 with link warning.
11923 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11924 Make into a compat symbol, disabled for minimum symbol version
11925 GLIBC_2.28 and later.
11926 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11927
11928 2018-05-22 Florian Weimer <fweimer@redhat.com>
11929
11930 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11931 not add -mpreferred-stack-boundary=4.
11932 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11933 (stack-align-test-flags): Likewise.
11934 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11935 Likewise.
11936 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11937 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11938 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11939 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11940 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11941 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11942 (CFLAGS-tst-align2.c): Likewise.
11943
11944 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11945
11946 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11947 (index_arch_Prefer_FSRM): Likewise.
11948 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11949 Also check Prefer_FSRM.
11950 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11951 Also return OPTIMIZE (erms) for Prefer_FSRM.
11952
11953 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11954
11955 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11956 (index_cpu_FSRM): Likewise.
11957 (reg_FSRM): Likewise.
11958
11959 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11960
11961 * math/gen-tgmath-tests.py: Import sys.
11962 (Tests.__init__): Initialize macros_seen.
11963 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11964 if requested to do so for this macro.
11965 (Tests.add_all_tests): Take argument for macro for which to
11966 generate tests.
11967 (Tests.check_macro_list): New function.
11968 (main): Handle check-list argument and argument specifying macro
11969 for which to generate tests.
11970 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11971 [PYTHON] (tgmath3-macro-tests): Likewise.
11972 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11973 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11974 not test-tgmath3.c.
11975 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11976 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11977 to CFLAGS.
11978 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11979 [PYTHON] ($(foreach
11980 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11981 rule.
11982 [PYTHON] (tests-special): Add
11983 $(objpfx)test-tgmath3-macro-list.out.
11984 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11985
11986 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11987 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11988 later.
11989
11990 [BZ #22639]
11991 * time/tzset.c (SECSPERDAY): Cast to time_t.
11992 * time/tst-y2039.c: New file.
11993 * time/Makefile (tests): Add tst-y2039.
11994
11995 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11996
11997 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11998 (PREFETCH_ONE_SET): Remove duplicate line.
11999
12000 2018-05-17 Florian Weimer <fweimer@redhat.com>
12001
12002 * sysdeps/generic/math-type-macros-double.h: Include
12003 <math-nan-payload-double.h> after <libm-alias-double.h>.
12004 * sysdeps/generic/math-type-macros-float.h: Include
12005 <math-nan-payload-float.h> after <libm-alias-float.h>.
12006 * sysdeps/generic/math-type-macros-float128.h: Include
12007 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12008 * sysdeps/generic/math-type-macros-ldouble.h: Include
12009 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12010
12011 2018-05-17 Andreas Schwab <schwab@suse.de>
12012
12013 * resolv/res_send.c (__res_context_send): Don't set errno when
12014 returing error after malloc failure.
12015
12016 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
12017
12018 * nptl/allocatestack.c (allocate_stack): Remove the
12019 !__ASSUME_PRIVATE_FUTEX paths.
12020 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12021 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12022 Likewise.
12023 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12024 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12025 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12026 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12027 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12028 !__ASSUME_PRIVATE_FUTEX path.
12029 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12030 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12031 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12032 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12033 !__ASSUME_PRIVATE_FUTEX macros.
12034 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12035 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12036 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12037 * sysdeps/unix/sysv/linux/kernel-features.h
12038 (__ASSUME_PRIVATE_FUTEX): Removed.
12039
12040 2018-05-17 Joseph Myers <joseph@codesourcery.com>
12041
12042 * math/Makefile (libm-narrow-fns): Add div.
12043 (libm-test-funcs-narrow): Likewise.
12044 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12045 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12046 * math/gen-auto-libm-tests.c (test_functions): Add div.
12047 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12048 (NARROW_DIV_ROUND_TO_ODD): Likewise.
12049 (NARROW_DIV_TRIVIAL): Likewise.
12050 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12051 macro.
12052 (__ddivl): Likewise.
12053 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12054 ddiv.
12055 (CFLAGS-nldbl-ddiv.c): New variable.
12056 (CFLAGS-nldbl-fdiv.c): Likewise.
12057 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12058 __nldbl_ddivl.
12059 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12060 prototype.
12061 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12062 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12063 * math/auto-libm-test-in: Add tests of div.
12064 * math/auto-libm-test-out-narrow-div: New generated file.
12065 * math/libm-test-narrow-div.inc: New file.
12066 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12067 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12068 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12069 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12070 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12071 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12072 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12073 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12074 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12075 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12076 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12077 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12078 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12079 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12080 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12081 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12082 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12083 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12084 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12085 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12088 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12089 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12094 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12095 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12096 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12102 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12103 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12104 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12109 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12110
12111 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12112
12113 [BZ #23178]
12114 * nscd/nscd-client.h (sendfileall): Remove prototype.
12115 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12116 (handle_request): Use writeall instead of sendfileall.
12117 * nscd/aicache.c (addhstaiX): Likewise.
12118 * nscd/grpcache.c (cache_addgr): Likewise.
12119 * nscd/hstcache.c (cache_addhst): Likewise.
12120 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12121 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12122 * nscd/pwdcache.c (cache_addpw): Likewise.
12123 * nscd/servicescache.c (cache_addserv): Likewise.
12124 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12125 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12126 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12127 Remove define.
12128
12129 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
12130
12131 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12132 Include <string/strncat.c>.
12133 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12134 alias.
12135 (__GI___strncat): New hidden alias.
12136
12137 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12138
12139 * sysdeps/mips/mips32/libm-test-ulps: Update.
12140 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12141
12142 2018-05-16 Florian Weimer <fweimer@redhat.com>
12143
12144 * support/Makefile (libsupport-routines): Add support_quote_blob,
12145 support_test_compare_blob.
12146 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12147 * support/check.h (TEST_COMPARE_BLOB): Define.
12148 (support_test_compare_blob): Declare.
12149 * support/support.h (support_quote_blob): Declare.
12150 * support/support_quote_blob.c: New file.
12151 * support/support_test_compare_blob.c: Likewise.
12152 * support/tst-support_quote_blob.c: Likewise.
12153 * support/tst-test_compare_blob.c: Likewise.
12154
12155 2018-05-16 Florian Weimer <fweimer@redhat.com>
12156
12157 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12158 of <strtod_nan_double.h>.
12159 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12160 instead of SET_MANTISSA.
12161 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12162 of include <strtod_nan_float.h>.
12163 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12164 instead of <strtod_nan_ldouble.h>.
12165 * stdlib/strtod_nan_double.h: Move to ...
12166 * sysdeps/generic/math-nan-payload-double.h: ... here.
12167 (FLOAT): Remove definition.
12168 (SET_MANTISSA): Rename to ...
12169 (SET_NAN_PAYLOAD): ... this.
12170 * stdlib/strtod_nan_float.h: Move to ...
12171 * sysdeps/generic/math-nan-payload-float.h: ... here.
12172 (FLOAT): Remove definition.
12173 (SET_MANTISSA): Rename to ...
12174 (SET_NAN_PAYLOAD): ... this.
12175 * sysdeps/generic/math-type-macros-double.h: Include
12176 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12177 instead of <math-svid-compat.h>.
12178 * sysdeps/generic/math-type-macros-float.h: Include
12179 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12180 instead of <math-svid-compat.h>.
12181 * sysdeps/generic/math-type-macros-float128.h: Include
12182 <math-nan-payload-float128.h>.
12183 * sysdeps/generic/math-type-macros-ldouble.h: Include
12184 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12185 instead of <math-svid-compat.h>.
12186 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12187 check for definition.
12188 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12189 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12190 Include <ieee754_float128.h>.
12191 (FLOAT): Remove definition.
12192 (SET_MANTISSA): Rename to ...
12193 (SET_NAN_PAYLOAD): ... this.
12194 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12195 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12196 Do not include <float128_private.h>.
12197 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12198 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12199 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12200 (FLOAT): Remove definition.
12201 (SET_MANTISSA): Rename to ...
12202 (SET_NAN_PAYLOAD): ... this.
12203 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12204 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12205 (FLOAT): Remove definition.
12206 (SET_MANTISSA): Rename to ...
12207 (SET_NAN_PAYLOAD): ... this.
12208 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12209 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12210 (FLOAT): Remove definition.
12211 (SET_MANTISSA): Rename to ...
12212 (SET_NAN_PAYLOAD): ... this.
12213 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12214 of "../stdlib/strtod_nan_double.h".
12215 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12216 of "../stdlib/strtod_nan_float.h".
12217 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12218 instead of "../stdlib/strtod_nan_ldouble.h".
12219 * manual/arith.texi (Parsing of Floats): Adjust comment.
12220
12221 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12222
12223 * math/Makefile (libm-narrow-fns): Add mul.
12224 (libm-test-funcs-narrow): Likewise.
12225 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12226 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12227 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12228 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12229 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12230 (NARROW_MUL_TRIVIAL): Likewise.
12231 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12232 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12233 macro.
12234 (__dmull): Likewise.
12235 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12236 dmul.
12237 (CFLAGS-nldbl-dmul.c): New variable.
12238 (CFLAGS-nldbl-fmul.c): Likewise.
12239 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12240 __nldbl_dmull.
12241 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12242 prototype.
12243 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12244 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12245 * math/auto-libm-test-in: Add tests of mul.
12246 * math/auto-libm-test-out-narrow-mul: New generated file.
12247 * math/libm-test-narrow-mul.inc: New file.
12248 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12249 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12250 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12251 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12252 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12253 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12254 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12255 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12256 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12257 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12258 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12259 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12260 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12261 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12262 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12263 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12264 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12265 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12266 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12267 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12292
12293 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12294
12295 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12296 with *%eax in call.
12297
12298 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12299
12300 * sysdeps/i386/ldsodefs.h: Removed.
12301 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12302 * sysdeps/x86/ldsodefs.h: This.
12303 (La_i86_regs): New.
12304 (La_i86_retval): Likewise.
12305 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12306 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12307
12308 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12309
12310 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12311 unnecessary testl.
12312
12313 2018-05-13 Alan Modra <amodra@gmail.com>
12314
12315 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12316 R_PARISC_TLS_DTPOFF32 reloc addend.
12317
12318 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12319
12320 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12321 * math/math.h: Restrict the prototype definition for the functions
12322 issignaling(_Float128) and iszero(_Float128); and template
12323 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12324 __HAVE_FLOAT128_UNLIKE_LDBL.
12325 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12326 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12327 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12328 __f128() constants; define the type _Float128 as long double;
12329 and reuse long double in __CFLOAT128.
12330
12331 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12332
12333 * sysdeps/generic/math_private.h: Do not include
12334 <math-barriers.h>.
12335 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12336 <math_private.h>.
12337 * math/fromfp.h: Include <math-barriers.h>.
12338 * math/math-narrow.h: Likewise.
12339 * math/s_nextafter.c: Likewise.
12340 * math/s_nexttowardf.c: Likewise.
12341 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12342 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12343 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12344 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12345 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12346 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12347 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12348 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12349 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12350 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12351 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12352 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12353 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12354 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12355 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12356 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12357 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12358 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12359 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12360 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12361 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12362 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12363 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12364 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12365 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12366 * sysdeps/ieee754/k_standardl.c: Likewise.
12367 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12368 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12369 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12370 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12371 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12372 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12373 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12374 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12375 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12376 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12377 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12378 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12379 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12380 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12381 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12382 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12383 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12384 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12385 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12386 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12387 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12388 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12389
12390 2018-05-11 Florian Weimer <fweimer@redhat.com>
12391
12392 Use 64-bit epoch values in the time zone file parser.
12393 * include/time.h (internal_time_t): Define.
12394 (__tzfile_compute): Use it.
12395 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12396 member.
12397 (transitions): Switch to internal_time_t.
12398 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12399 types.
12400 (__tzfile_compute): Use internal_time_t for timer argument. Check
12401 for truncation before calling __offtime.
12402
12403 2018-05-11 Florian Weimer <fweimer@redhat.com>
12404
12405 [BZ #23166]
12406 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12407 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12408 Likewise.
12409 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12410 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12411 export without --enable-obsolete-rpc.
12412 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12413 symbol. This should not have been exported, ever.
12414
12415 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12416
12417 [BZ #23152]
12418 * localedata/locales/gd_GB (abmon): Fix typo in May:
12419 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12420
12421 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12422
12423 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12424 Use multiple registers to copy data in loop tail.
12425
12426 * sysdeps/aarch64/multiarch/memmove_falkor.S
12427 (__memmove_falkor): Use multiple registers to move data in
12428 loop tail.
12429
12430 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12431
12432 * math/math-underflow.h: New file.
12433 * sysdeps/generic/math_private.h: Do not include <float.h>.
12434 (fabs_tg): Remove macro. Moved to math-underflow.h.
12435 (min_of_type_f): Likewise.
12436 (min_of_type_): Likewise.
12437 (min_of_type_l): Likewise.
12438 (min_of_type_f128): Likewise.
12439 (min_of_type): Likewise.
12440 (math_check_force_underflow): Likewise.
12441 (math_check_force_underflow_nonneg): Likewise.
12442 (math_check_force_underflow_complex): Likewise.
12443 * math/e_exp2_template.c: Include <math-underflow.h>.
12444 * math/k_casinh_template.c: Likewise.
12445 * math/s_catan_template.c: Likewise.
12446 * math/s_catanh_template.c: Likewise.
12447 * math/s_ccosh_template.c: Likewise.
12448 * math/s_cexp_template.c: Likewise.
12449 * math/s_clog10_template.c: Likewise.
12450 * math/s_clog_template.c: Likewise.
12451 * math/s_csin_template.c: Likewise.
12452 * math/s_csinh_template.c: Likewise.
12453 * math/s_csqrt_template.c: Likewise.
12454 * math/s_ctan_template.c: Likewise.
12455 * math/s_ctanh_template.c: Likewise.
12456 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12457 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12458 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12459 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12460 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12461 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12462 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12463 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12464 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12465 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12466 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12467 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12468 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12469 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12470 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12471 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12472 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12473 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12474 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12475 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12476 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12477 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12478 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12479 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12480 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12481 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12482 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12483 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12484 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12485 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12486 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12487 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12488 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12489 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12490 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12491 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12492 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12493 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12494 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12495 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12496 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12497 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12498 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12499 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12500 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12501 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12502 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12503 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12504 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12505 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12506 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12507 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12508 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12509 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12510 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12511 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12512 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12513 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12514 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12515 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12516 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12517 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12518 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12519 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12520 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12521 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12522 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12523 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12524 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12525 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12526 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12527 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12528 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12529 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12530 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12531 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12532 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12533 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12534 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12535 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12536 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12537 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12538 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12539 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12540
12541 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12542
12543 * sysdeps/generic/math-barriers.h: New file.
12544 * sysdeps/generic/math_private.h [!math_opt_barrier]
12545 (math_opt_barrier): Move to math-barriers.h.
12546 [!math_opt_barrier] (math_force_eval): Likewise.
12547 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12548 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12549 math-barriers.h.
12550 (math_force_eval): Likewise.
12551 * sysdeps/alpha/fpu/math-barriers.h: New file.
12552 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12553 math-barriers.h.
12554 (math_force_eval): Likewise.
12555 * sysdeps/x86/fpu/math-barriers.h: New file.
12556 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12557 math-barriers.h.
12558 (math_force_eval): Likewise.
12559 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12560 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12561 multiple-include guard for rename.
12562 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12563 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12564 math-barriers.h.
12565 (math_force_eval): Likewise.
12566
12567 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12568
12569 [BZ #22786]
12570 CVE-2018-11236
12571 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12572 computation.
12573 * stdlib/Makefile (test-bz22786): New test.
12574 * stdlib/test-bz22786.c: New test.
12575
12576 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12577
12578 * include/math-narrow-eval.h: New file. Contents moved from ....
12579 * sysdeps/generic/math_private.h: ... here.
12580 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12581 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12582 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12583 * stdlib/strtod_l.c: Likewise.
12584 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12585 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12586 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12587 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12588 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12589 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12590 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12591 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12592 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12593 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12594 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12595 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12596 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12597 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12598 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12599 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12600 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12601 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12602 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12603 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12604 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12605 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12606 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12607 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12608 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12609 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12610 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12611 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12612 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12613
12614 2018-05-08 Andreas Schwab <schwab@suse.de>
12615
12616 * sysdeps/nptl/internaltypes.h: Fix comment.
12617
12618 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12619
12620 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12621 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12622 hidden.
12623
12624 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12625
12626 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12627 of I into loop header.
12628 * benchtests/bench-memmove-walk.c
12629 (test_main): Likewise.
12630
12631 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12632
12633 Revert:
12634 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12635 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12636
12637 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12638
12639 [BZ #20419]
12640 * elf/dl-load.c (open_verify): Fix stack overflow.
12641 * elf/Makefile (tst-big-note): New test.
12642 * elf/tst-big-note-lib.S: New.
12643 * elf/tst-big-note.c: New.
12644
12645 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12646
12647 * scripts/abilist.awk: Ignore absolute symbols.
12648 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12649 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12650 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12651 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12652 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12653 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12654 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12655 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12656 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12657 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12658 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12659 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12660 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12661 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12662 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12663 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12665 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12666 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12668 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12669 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12670 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12671 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12674 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12675 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12676 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12677 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12678 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12683 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12690 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12691 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12697 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12698 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12699 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12700 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12704 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12705 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12706 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12707 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12726 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12727 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12740 Likewise.
12741 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12747 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12748 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12754 Likewise.
12755 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12762 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12765 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12774 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12775 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12779 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12782 Likewise.
12783 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12795 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12803 Likewise.
12804 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12822 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12823 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12826 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12827 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12828 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12829 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12836 Likewise.
12837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12842 Likewise.
12843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12844 Likewise.
12845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12847 Likewise.
12848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12849 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12850 Likewise.
12851 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12852 Likewise.
12853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12856 Likewise.
12857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12858 Likewise.
12859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12860 Likewise.
12861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12864 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12865 Likewise.
12866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12872 Likewise.
12873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12875 Likewise.
12876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12877 Likewise.
12878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12879 Likewise.
12880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12881 Likewise.
12882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12885 Likewise.
12886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12887 Likewise.
12888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12889 Likewise.
12890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12891 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12892 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12893 Likewise.
12894 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12895 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12896 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12897 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12898 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12899 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12900 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12901 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12902 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12903 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12904 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12905 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12906 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12907 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12908 Likewise.
12909 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12910 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12911 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12912 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12913 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12914 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12915 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12916 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12917 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12918 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12919 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12920 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12921 Likewise.
12922 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12923 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12924 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12925 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12926 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12927 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12928 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12929 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12930 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12931 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12932 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12933 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12934 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12935 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12936 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12937 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12938 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12939 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12940 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12941 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12942 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12943 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12944 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12945 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12946 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12947 Likewise.
12948 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12949 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12950 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12951 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12952 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12953 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12954 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12955 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12956 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12957 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12958 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12959 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12960 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12961 Likewise.
12962 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12963 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12964 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12965 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12966 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12967 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12968 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12969 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12970 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12971 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12972 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12973 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12974 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12975 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12976 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12977 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12978 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12979 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12980 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12981 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12982 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12983 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12984 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12985 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12986 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12987 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12988 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12989 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12990 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12991 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12992 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12993 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12994 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12995 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12996 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12997 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12998 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12999 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
13000
13001 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
13002
13003 [BZ #23137]
13004 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
13005 Use atomic_load_acquire to load __tid.
13006
13007 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13008
13009 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13010 Restore the pointer into %rdx, after syscall and use %rdx,
13011 instead of %rsi, to restore context.
13012
13013 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13014
13015 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13016 Pop the pointer into %rdx after syscall and use %rdx, instead
13017 of %rsi, to restore context.
13018
13019 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13020
13021 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13022 handlers after setjmp.
13023 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13024 defined.
13025 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13026 <libc-pointer-arith.h>.
13027 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13028 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13029 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13030 _JUMP_BUF_SIGSET_BITS_PER_WORD.
13031 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13032 * sysdeps/x86/__longjmp_cancel.S: New file.
13033 * sysdeps/x86/longjmp.c: Likewise.
13034 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13035
13036 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13037
13038 * NEWS: Add ustat.h deprecation entry.
13039 * bits/ustat.h: Remove file.
13040 * misc/sys/ustat.h: Likewise.
13041 * misc/ustat.h: Likewise.
13042 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13043 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13044 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13045 compatibility mode.
13046 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13047 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13048 generic Linux implementation.
13049
13050 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13051
13052 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13053 * math/w_expl_compat.c: Likewise.
13054 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
13055
13056 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13057
13058 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13059
13060 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13061
13062 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13063 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13064 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13065 Remove.
13066 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13067 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13068 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13069 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13070 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13071 and SYSCALL_LL64.
13072
13073 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13074
13075 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13076
13077 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13078 * math/w_asin_template.c: Likewise.
13079 * math/w_atanh_template.c: Likewise.
13080
13081 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13082
13083 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13084 to powerpc/powerpc64/be for big-endian.
13085 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13086 little-endian.
13087
13088 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13089 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13090 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13091 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13092 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13093 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13094 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13095 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13096 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13097 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13098 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13099 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13100 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13101 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13102 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13103 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13104 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13105 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13106 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13107 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13108 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13109 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13110 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13111 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13112 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13113 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13114 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13115 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13116 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13117 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13118 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13119 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13120
13121 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13122 adjusted to imply powerpc64 and older processors on powerpc64/be.
13123 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13124 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13125 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13126 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13127 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13128 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13129 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13130 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13131 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13132 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13133 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13134 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13135 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13136 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13137 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13138 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13139 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13140 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13141 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13142 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13143 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13144 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13145 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13146 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13147 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13148 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13149 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13150 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13151 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13152 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13153 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13154
13155 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13156 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13157 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13158 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13159
13160 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13161 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13162 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13163 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13164
13165 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13166 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13167 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13168 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13169 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13170 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13171 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13172 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13173 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13174 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13175 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13176
13177 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13178 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13179 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13180 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13181 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13182 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13183 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13184 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13185 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13186 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13187 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13188
13189 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13190 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13191 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13192 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13193 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13194 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13195 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13196 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13197 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13198 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13199 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13200 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13201
13202 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13203 and adjusted to imply olders processors.
13204 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13205 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13206 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13207 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13208 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13209 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13210 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13211 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13212 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13213 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13214 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13215
13216 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13217 powerpc64/le.
13218 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13219 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13220
13221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13222 powerpc64le.
13223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13225
13226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13227 powerpc64/be.
13228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13231
13232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13233 powerpc64 and adjusted.
13234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13237 Likewise.
13238
13239 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13240
13241 * sysdeps/tile: Remove.
13242 * sysdeps/unix/sysv/linux/tile: Likewise.
13243 * README (tilegx-*-linux-gnu): Remove from list of supported
13244 configurations.
13245 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13246 contribution of support for generic Linux kernel syscall
13247 interface.
13248 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13249 tilegx configurations.
13250 (Config.install_linux_headers): Do not handle tile.
13251 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13252 in comment.
13253 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13254 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13255 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13256 conditional undefine and redefine.
13257 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13258 in comment.
13259 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13260 conditional undefine and redefine.
13261
13262 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13263
13264 * signal/tst-sigaction.c: New file to test BZ #23069.
13265 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13266
13267 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13268
13269 [BZ #22766]
13270 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13271 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13272 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13273 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13274
13275 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13276
13277 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13278 _DIRENT_MATCHES_DIRENT64 is not defined.
13279 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13280 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13281 is defined.
13282 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13283 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13284
13285 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13286
13287 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13288 version to GCC 8 branch.
13289
13290 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13291
13292 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13293 (check_no_hidden): Use type of original function when declaring
13294 alias.
13295
13296 * sysdeps/unix/sysv/linux/sys/ptrace.h
13297 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13298 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13299 (struct __ptrace_seccomp_metadata): New type.
13300 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13301 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13302 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13303 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13304 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13305 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13306 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13307 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13308 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13309 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13310 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13311 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13312 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13313 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13314 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13315 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13316
13317 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13318
13319 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13320 defined.
13321 * dirent/versionsort.c (versionsort): Likewise.
13322 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13323 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13324 * dirent/versionsort64.c (versionsort64): Likewise.
13325 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13326 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13327 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13328 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13329 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13330 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13331 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13332 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13333 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13334 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13337 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13338 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13339
13340 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13341
13342 * elf/elf.h (NT_PPC_PKEY): New macro.
13343
13344 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13345
13346 [BZ #23094]
13347 * localedata/locales/hr_HR: fix thousands_sep and
13348 mon_thousands_sep
13349
13350 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13351
13352 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13353 (XTABS): Define to TAB3.
13354
13355 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13356
13357 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13358
13359 * dirent/scandir-tail-common.c: New file.
13360 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13361 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13362 * dirent/scandir.c: Use scandir-tail-common.c.
13363 * dirent/scandirat.c: Likewise.
13364 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13365 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13366 if _DIRENT_MATCHES_DIRENT64 is defined.
13367 * dirent/scandirat64.c (scandirat64): Likewise.
13368 * include/dirent.h (__scandir_tail): Only define iff
13369 _DIRENT_MATCHES_DIRENT64 is not defined.
13370 (__scandir64_tail): Define regardless.
13371 (__scandirat, scandirat64): Remove libc_hidden_proto.
13372 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13373 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13375 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13376 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13377 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13378 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13379
13380 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13381
13382 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13383 New macro.
13384 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13385 Increase to 24.
13386 (_dl_aarch64_cap_flags): Add asimdfhm.
13387
13388 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13389
13390 * sysdeps/nios2/libm-test-ulps: Update.
13391
13392 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13393
13394 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13395 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13396
13397 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13398 requirements.
13399 (_DIRENT_MATCHES_DIRENT64): Undef
13400 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13401 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13402 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13403 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13404 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13405 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13406 use getdents64 syscalls as base.
13407 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13408 symbol if required.
13409 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13410 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13411 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13412 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13413 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13414 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13415 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13416 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13417 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13418 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13419 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13420
13421 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13422
13423 * scripts/test_printers_common.py (init_test): Disable lock elision.
13424
13425 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13426
13427 * math/test-tgmath.c (count_double, count_float,
13428 count_ldouble, count_cdouble, count_cfloat,
13429 count_cldouble): Use volatile int.
13430
13431 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13432
13433 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13434 (conformtest-xfail-conds): Add i386-gnu.
13435 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13436 i386-gnu.
13437 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13438 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13439 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13440 msqid_ds.msg_lrpid): Likewise.
13441 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13442 Likewise.
13443 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13444 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13445 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13446 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13447 unsigned int.
13448 (struct statvfs64): Likewise.
13449 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13450 Likewise.
13451 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13452 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13453 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13454 instead of wait_queue.
13455 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13456 instead of vm_area_struct.
13457 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13458 struct sched_param definition to it.
13459 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13460 * bits/types/struct_sched_param.h: New file.
13461 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13462 <bits/types/struct_sched_param.h> instead of <sched.h>.
13463 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13464 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13465 generic version but include <bits/pthreadtypes.h> to make struct
13466 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13467 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13468 non-compliant.
13469 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13470 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13471 [__USE_XOPEN] (OFDEL): New macro.
13472 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13473 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13474 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13475 prototypes.
13476 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13477 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13478 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13479 non-compliant.
13480 * sysdeps/i386/sys/ucontext.h: Likewise.
13481 * sysdeps/m68k/sys/ucontext.h: Likewise.
13482 * sysdeps/mips/sys/ucontext.h: Likewise.
13483 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13484 * sysdeps/mach/hurd/i386/Makefile
13485 (test-xfail-POSIX/fcntl.h/conform): Add.
13486 (test-xfail-POSIX/signal.h/conform): Add.
13487 (test-xfail-POSIX/semaphore.h/conform): Add.
13488 (test-xfail-POSIX/regex.h/conform): Add.
13489 (test-xfail-POSIX/aio.h/conform): Add.
13490 (test-xfail-POSIX/mqueue.h/conform): Add.
13491 (test-xfail-POSIX/sys/types.h/conform): Add.
13492 (test-xfail-UNIX98/fcntl.h/conform): Add.
13493 (test-xfail-UNIX98/netdb.h/conform): Add.
13494 (test-xfail-UNIX98/signal.h/conform): Add.
13495 (test-xfail-UNIX98/semaphore.h/conform): Add.
13496 (test-xfail-UNIX98/regex.h/conform): Add.
13497 (test-xfail-UNIX98/aio.h/conform): Add.
13498 (test-xfail-UNIX98/ftw.h/conform): Add.
13499 (test-xfail-UNIX98/mqueue.h/conform): Add.
13500 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13501 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13502 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13503 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13504 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13505 (test-xfail-UNIX98/sys/types.h/conform): Add.
13506 (test-xfail-UNIX98/stdlib.h/conform): Add.
13507 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13508 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13509 (test-xfail-POSIX2008/netdb.h/conform): Add.
13510 (test-xfail-POSIX2008/signal.h/conform): Add.
13511 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13512 (test-xfail-POSIX2008/regex.h/conform): Add.
13513 (test-xfail-POSIX2008/aio.h/conform): Add.
13514 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13515 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13516 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13517 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13518 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13519 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13520 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13521 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13522 (test-xfail-XOPEN2K/signal.h/conform): Add.
13523 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13524 (test-xfail-XOPEN2K/regex.h/conform): Add.
13525 (test-xfail-XOPEN2K/aio.h/conform): Add.
13526 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13527 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13528 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13529 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13530 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13531 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13532 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13533 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13534 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13535 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13536 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13537 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13538 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13539 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13540 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13541 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13542 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13543 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13544 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13545 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13546 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13547 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13548 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13549 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13550 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13551 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13552 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13553 i386-gnu.
13554 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13555 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13556
13557 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13558
13559 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13560 --enable-obsolete for powerpc-linux-gnuspe.
13561
13562 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13563
13564 * conform/data/sys/un.h-data: Allow sun_ prefix.
13565 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13566 prototypes.
13567 * sysdeps/mach/include/mach.h: Likewise.
13568 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13569 * sysdeps/mach/include/mach_error.h: Likewise.
13570
13571 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13572
13573 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13574 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13575 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13576 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13577
13578 2018-04-16 Andreas Schwab <schwab@suse.de>
13579
13580 [BZ #19527]
13581 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13582
13583 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13584
13585 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13586 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13587
13588 2018-04-12 DJ Delorie <dj@redhat.com>
13589
13590 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13591 version to 4.16.
13592
13593 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13594
13595 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13596 (struct kernel_sigaction): Use the same definition on 31bit as is used
13597 on 64bit.
13598
13599 2018-04-09 Florian Weimer <fweimer@redhat.com>
13600
13601 [BZ #23037]
13602 * resolv/res_send.c (send_dg): Use designated initializers instead
13603 of assignment to zero-initialize other fields of struct mmsghdr.
13604
13605 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13606
13607 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13608 __READDIR_ALIAS): Undefine after usage.
13609 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13610 __READDIR_R_ALIAS): Likewise.
13611 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13612 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13613 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13614 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13615 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13616 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13617 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13618 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13619 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13620 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13621 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13622 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13623 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13624 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13625 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13626 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13627 * sysdeps/unix/sysv/linux/readdir.c: New file.
13628 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13629 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13630 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13631
13632 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13633
13634 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13635
13636 * manual/charset.texi (Converting a Character): Fix typo.
13637
13638 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13639
13640 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13641
13642 * sysdeps/arm/libm-test-ulps: Update.
13643
13644 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13645 as base implementation.
13646 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13647 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13648 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13649 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13650 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13651 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13652 remove unrequired definitions and update comments.
13653 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13654 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13655 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13656 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13657 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13658 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13659 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13660 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13661 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13662 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13663 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13664 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13665 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13666 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13667 and RESET_SA_RESTORER hooks.
13668
13669 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13670
13671 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13672
13673 2018-04-05 Florian Weimer <fweimer@redhat.com>
13674
13675 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13676 integer overflow, memory leak on error, and indeterminate errno
13677 value. Add a null wide character to terminate the result string.
13678 * manual/charset.texi (Converting a Character): Mention embedded
13679 null bytes in the mbrtowc input string. Explain what happens in
13680 the -2 result case. Do not claim that mbrtowc is simple or
13681 obvious to use. Adjust the description of the code example. Use
13682 @code, not @var, for concrete variables.
13683
13684 2018-04-05 Florian Weimer <fweimer@redhat.com>
13685
13686 * manual/examples/mbstouwcs.c: New file.
13687 * manual/charset.texi (Converting a Character): Include it.
13688
13689 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13690
13691 * include/dirent.h (dirfd): Add hidden proto.
13692 * dirent/dirfd.c (dirfd): Add hidden def.
13693 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13694 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13695
13696 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13697
13698 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13699 sin, cos and sincos to 1 ULP.
13700
13701 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13702
13703 [BZ #19818]
13704 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13705 symbols.
13706 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13707 * elf/tst-absolute-sym.c: New file.
13708 * elf/tst-absolute-sym-lib.c: New file.
13709 * elf/tst-absolute-sym-lib.lds: New file.
13710 * elf/Makefile (tests): Add `tst-absolute-sym'.
13711 (modules-names): Add `tst-absolute-sym-lib'.
13712 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13713 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13714 ($(objpfx)tst-absolute-sym): New dependency.
13715
13716 [BZ #19818]
13717 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13718 parameter.
13719 (SYMBOL_ADDRESS): New macro.
13720 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13721 SYMBOL_ADDRESS for symbol address calculation.
13722 * elf/dl-runtime.c (_dl_fixup): Likewise.
13723 (_dl_profile_fixup): Likewise.
13724 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13725 * elf/rtld.c (dl_main): Likewise.
13726 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13727 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13728 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13729 (elf_machine_rela): Likewise.
13730 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13731 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13732 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13733 (elf_machine_rela): Likewise.
13734 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13735 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13736 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13737 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13738 Likewise.
13739 (elf_machine_reloc): Likewise.
13740 (elf_machine_got_rel): Likewise.
13741 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13742 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13743 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13744 Likewise.
13745 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13746 Likewise.
13747 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13748 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13749 Likewise.
13750 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13751 Likewise.
13752 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13753 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13754 Likewise.
13755 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13756 Likewise.
13757 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13758 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13759
13760 2018-04-04 Zack Weinberg <zackw@panix.com>
13761
13762 * sysdeps/generic/internal-signals.h: Include signal.h,
13763 sigsetops.h, and stdbool.h.
13764 (__libc_signal_block_all): Actually block all signals.
13765 (__libc_signal_block_app): Likewise.
13766 (__libc_signal_restore_set): Actually restore the signal mask.
13767
13768 2018-04-04 Florian Weimer <fweimer@redhat.com>
13769
13770 inet: Actually build and run tst-deadline.
13771 * inet/Makefile (tests-internal): Add tst-deadline and do not
13772 overwrite the variable.
13773 (tests-static-internal): Remove variable.
13774
13775 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13776
13777 [BZ #22947]
13778 * bits/uio-ext.h (RWF_APPEND): New.
13779 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13780 * manual/llio.texi: Document RWF_APPEND.
13781 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13782 (RWF_SUPPORTED): Add RWF_APPEND.
13783
13784 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13785
13786 [BZ #22391]
13787 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13788 check for internal nptl signals.
13789 * nptl/sigaction.c (__sigaction): Likewise.
13790 * signal/sigaddset.c (sigaddset): Likewise.
13791 * signal/sigdelset.c (sigdelset): Likewise.
13792 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13793 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13794 value.
13795 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13796 to filter out internal nptl signals.
13797 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13798 also check realtime signals using standard macros.
13799 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13800 __is_internal_signal, __libc_signal_block_all,
13801 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13802 * sysdeps/nptl/sigfillset.c: Remove file.
13803 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13804 Change return to bool.
13805 (__clear_internal_signals): Remove SIGTIMER clean since it is
13806 equal to SIGCANEL on Linux.
13807 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13808 signal set was constructed using standard functions.
13809
13810 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13811
13812 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13813 ifname is too long.
13814 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13815 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13816 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13817 hidden def.
13818 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13819 * signal/sigaddset.c: Include <sigsetopts.h>.
13820 * signal/sigdelset.c: Likewise.
13821
13822 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13823
13824 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13825 (__cos): Likewise.
13826 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13827 logic as sin and cos.
13828
13829 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13830
13831 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13832 inputs. Return correct sign.
13833 (do_sincos): Remove small input check before do_sin, let do_sin set
13834 the sign.
13835 (__sin): Likewise.
13836 (__cos): Likewise.
13837
13838 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13839
13840 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13841 (do_cos_slow): Likewise.
13842 (do_sin_slow): Likewise.
13843 (reduce_and_compute): Likewise.
13844 (slow): Likewise.
13845 (slow1): Likewise.
13846 (slow2): Likewise.
13847 (sloww): Likewise.
13848 (sloww1): Likewise.
13849 (sloww2): Likewise.
13850 (bslow): Likewise.
13851 (bslow1): Likewise.
13852 (bslow2): Likewise.
13853 (cslow2): Likewise.
13854
13855 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13856
13857 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13858 (do_cos): Remove corp parameter and calculations.
13859 (do_sin): Likewise.
13860 (do_sincos): Remove cor variable.
13861 (__sin): Use do_sincos for huge inputs.
13862 (__cos): Likewise.
13863 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13864 (reduce_and_compute_sincos): Remove unused function.
13865
13866 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13867
13868 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13869 reduce_sincos, improve accuracy to 136 bits.
13870 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13871 (__sin): Use improved reduction and simplified do_sincos calculation.
13872 (__cos): Likewise.
13873 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13874
13875 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13876
13877 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13878 (do_sincos_2): Likewise.
13879 (__sin): Remove middle range reduction case.
13880 (__cos): Likewise.
13881 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13882 reduction case.
13883
13884 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13885
13886 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13887 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13888 inputs.
13889 (__cos): Likewise.
13890 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13891
13892 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13893
13894 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13895 version to 4.16
13896
13897 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13898
13899 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13900 Remove definitions.
13901 (opendir_oflags): Use O_DIRECTORY regardless.
13902 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13903 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13904
13905 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13906
13907 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13908 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13909 macros.
13910 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13911 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13912 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13913 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13914 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13915 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13916
13917 * htl/Makefile: Bump licence to LGPL 2.1+.
13918 * htl/alloca_cutoff.c: Likewise.
13919 * htl/cthreads-compat.c: Likewise.
13920 * htl/lockfile.c: Likewise.
13921 * htl/pt-alloc.c: Likewise.
13922 * htl/pt-cancel.c: Likewise.
13923 * htl/pt-cleanup.c: Likewise.
13924 * htl/pt-create.c: Likewise.
13925 * htl/pt-dealloc.c: Likewise.
13926 * htl/pt-detach.c: Likewise.
13927 * htl/pt-exit.c: Likewise.
13928 * htl/pt-getattr.c: Likewise.
13929 * htl/pt-initialize.c: Likewise.
13930 * htl/pt-internal.h: Likewise.
13931 * htl/pt-join.c: Likewise.
13932 * htl/pt-self.c: Likewise.
13933 * htl/pt-setcancelstate.c: Likewise.
13934 * htl/pt-setcanceltype.c: Likewise.
13935 * htl/pt-sigmask.c: Likewise.
13936 * htl/pt-spin-inlines.c: Likewise.
13937 * htl/pt-testcancel.c: Likewise.
13938 * htl/pt-yield.c: Likewise.
13939 * htl/tests/test-1.c: Likewise.
13940 * htl/tests/test-10.c: Likewise.
13941 * htl/tests/test-11.c: Likewise.
13942 * htl/tests/test-12.c: Likewise.
13943 * htl/tests/test-13.c: Likewise.
13944 * htl/tests/test-14.c: Likewise.
13945 * htl/tests/test-15.c: Likewise.
13946 * htl/tests/test-16.c: Likewise.
13947 * htl/tests/test-17.c: Likewise.
13948 * htl/tests/test-2.c: Likewise.
13949 * htl/tests/test-3.c: Likewise.
13950 * htl/tests/test-4.c: Likewise.
13951 * htl/tests/test-5.c: Likewise.
13952 * htl/tests/test-6.c: Likewise.
13953 * htl/tests/test-7.c: Likewise.
13954 * htl/tests/test-8.c: Likewise.
13955 * htl/tests/test-9.c: Likewise.
13956 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13957 * sysdeps/htl/bits/cancelation.h: Likewise.
13958 * sysdeps/htl/bits/pthread-np.h: Likewise.
13959 * sysdeps/htl/bits/pthread.h: Likewise.
13960 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13961 * sysdeps/htl/bits/semaphore.h: Likewise.
13962 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13963 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13964 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13965 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13966 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13967 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13968 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13969 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13970 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13971 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13972 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13973 * sysdeps/htl/old_pt-atfork.c: Likewise.
13974 * sysdeps/htl/pt-atfork.c: Likewise.
13975 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13976 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13977 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13978 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13979 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13980 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13981 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13982 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13983 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13984 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13985 * sysdeps/htl/pt-attr-init.c: Likewise.
13986 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13987 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13988 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13989 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13990 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13991 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13992 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13993 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13994 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13995 * sysdeps/htl/pt-attr.c: Likewise.
13996 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13997 * sysdeps/htl/pt-barrier-init.c: Likewise.
13998 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13999 * sysdeps/htl/pt-barrier.c: Likewise.
14000 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
14001 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
14002 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
14003 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
14004 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
14005 * sysdeps/htl/pt-cond-destroy.c: Likewise.
14006 * sysdeps/htl/pt-cond-init.c: Likewise.
14007 * sysdeps/htl/pt-cond-signal.c: Likewise.
14008 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14009 * sysdeps/htl/pt-cond-wait.c: Likewise.
14010 * sysdeps/htl/pt-cond.c: Likewise.
14011 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14012 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14013 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14014 * sysdeps/htl/pt-condattr-init.c: Likewise.
14015 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14016 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14017 * sysdeps/htl/pt-destroy-specific.c: Likewise.
14018 * sysdeps/htl/pt-equal.c: Likewise.
14019 * sysdeps/htl/pt-getconcurrency.c: Likewise.
14020 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14021 * sysdeps/htl/pt-getschedparam.c: Likewise.
14022 * sysdeps/htl/pt-getspecific.c: Likewise.
14023 * sysdeps/htl/pt-init-specific.c: Likewise.
14024 * sysdeps/htl/pt-key-create.c: Likewise.
14025 * sysdeps/htl/pt-key-delete.c: Likewise.
14026 * sysdeps/htl/pt-key.h: Likewise.
14027 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14028 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14029 * sysdeps/htl/pt-mutex-init.c: Likewise.
14030 * sysdeps/htl/pt-mutex-lock.c: Likewise.
14031 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14032 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14033 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14034 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14035 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14036 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14037 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14038 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14039 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14040 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14041 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14042 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14043 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14044 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14045 * sysdeps/htl/pt-mutexattr.c: Likewise.
14046 * sysdeps/htl/pt-once.c: Likewise.
14047 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14048 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14049 * sysdeps/htl/pt-rwlock-init.c: Likewise.
14050 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14051 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14052 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14053 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14054 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14055 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14056 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14057 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14058 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14059 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14060 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14061 * sysdeps/htl/pt-setconcurrency.c: Likewise.
14062 * sysdeps/htl/pt-setschedparam.c: Likewise.
14063 * sysdeps/htl/pt-setschedprio.c: Likewise.
14064 * sysdeps/htl/pt-setspecific.c: Likewise.
14065 * sysdeps/htl/pt-spin.c: Likewise.
14066 * sysdeps/htl/pt-startup.c: Likewise.
14067 * sysdeps/htl/pthread.h: Likewise.
14068 * sysdeps/htl/sem-close.c: Likewise.
14069 * sysdeps/htl/sem-destroy.c: Likewise.
14070 * sysdeps/htl/sem-getvalue.c: Likewise.
14071 * sysdeps/htl/sem-init.c: Likewise.
14072 * sysdeps/htl/sem-open.c: Likewise.
14073 * sysdeps/htl/sem-post.c: Likewise.
14074 * sysdeps/htl/sem-timedwait.c: Likewise.
14075 * sysdeps/htl/sem-trywait.c: Likewise.
14076 * sysdeps/htl/sem-unlink.c: Likewise.
14077 * sysdeps/htl/sem-wait.c: Likewise.
14078 * sysdeps/hurd/htl/pt-kill.c: Likewise.
14079 * sysdeps/i386/htl/pt-machdep.h: Likewise.
14080 * sysdeps/mach/htl/pt-block.c: Likewise.
14081 * sysdeps/mach/htl/pt-spin.c: Likewise.
14082 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14083 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14084 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14085 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14086 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14087 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14088 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14089 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14090 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14091 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14092 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14093 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14094 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14095 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14096 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14097 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14098 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14099 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14100 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14101 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14102 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14103 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14104 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14105 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14106 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14107 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14108 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14109 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14110 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14111 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14112 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14113 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14114 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14115 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14116 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14117 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14118 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14119 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14120 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14121 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14122 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14123 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14124 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14125
14126 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14127 * README: Remove the mention of out-of-tree patches needed for
14128 GNU/Hurd.
14129
14130 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14131 (UTIME_NOW, UTIME_OMIT): Define macros.
14132
14133 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14134 instead of pthread_detach.
14135 (__cthread_fork): Call __pthread_create instead of pthread_create.
14136 (__cthread_keycreate): Call __pthread_key_create instead of
14137 pthread_key_create.
14138 (__cthread_getspecific): Call __pthread_getspecific instead of
14139 pthread_getspecific.
14140 (__cthread_setspecific): Call __pthread_setspecific instead of
14141 pthread_setspecific.
14142 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14143 __pthread_mutex_unlock instead of pthread_mutex_lock and
14144 pthread_mutex_unlock.
14145 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14146 ___pthread_get_cleanup_stack.
14147 (__pthread_get_cleanup_stack): New strong alias.
14148 * htl/pt-create.c: Include <pthreadP.h>.
14149 (entry_point): Call __pthread_exit instead of pthread_exit.
14150 (pthread_create): Rename to __pthread_create.
14151 (pthread_create): New strong alias.
14152 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14153 (pthread_detach): New strong alias.
14154 (__pthread_detach): Call __pthread_cond_broadcast instead of
14155 pthread_cond_broadcast.
14156 * htl/pt-exit.c: Include <pthreadP.h>.
14157 (__pthread_exit): Call __pthread_setcancelstate and
14158 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14159 __pthread_get_cleanup_stack.
14160 * htl/pt-testcancel.c: Include <pthreadP.h>.
14161 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14162 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14163 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14164 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14165 pthread_attr_getstacksize.
14166 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14167 Rename to __pthread_attr_getstackaddr.
14168 (pthread_attr_getstackaddr): New strong alias.
14169 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14170 Rename to __pthread_attr_getstacksize.
14171 (pthread_attr_getstacksize): New strong alias.
14172 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14173 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14174 (pthread_attr_setstack): New strong alias.
14175 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14176 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14177 pthread_attr_getstacksize, pthread_attr_setstacksize and
14178 pthread_attr_setstackaddr.
14179 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14180 Rename to __pthread_attr_setstackaddr.
14181 (pthread_attr_setstackaddr): New strong alias.
14182 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14183 Rename to __pthread_attr_setstacksize.
14184 (pthread_attr_setstacksize): New strong alias.
14185 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14186 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14187 pthread_exit.
14188 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14189 (__pthread_key_create): New hidden def.
14190 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14191 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14192 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14193 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14194 __pthread_setspecific, __pthread_setcancelstate,
14195 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14196 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14197 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14198 declarations.
14199 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14200 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14201 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14202 (pthread_attr_setstackaddr): New strong alias.
14203 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14204 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14205 (pthread_attr_setstacksize): New strong alias.
14206 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14207 (call_exit): Call __pthread_exit instead of pthread_exit.
14208 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14209 (_pthread_mutex_init): New hidden definition.
14210 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14211 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14212 instead of pthread_attr_init and pthread_attr_setstack.
14213
14214 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14215 __vm_deallocate instead of vm_allocate and vm_deallocate.
14216 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14217 setenv.
14218 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14219 of geteuid.
14220 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14221 strdup.
14222 * hurd/siginfo.c: Include <libioP.h>.
14223 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14224 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14225 munmap.
14226 * mach/devstream.c: Include <libioP.h>.
14227 (dealloc_ref): Call __mach_port_deallocate instead of
14228 mach_port_deallocate.
14229 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14230 Call __mach_port_deallocate instead of mach_port_deallocate.
14231 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14232 pathconf.
14233 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14234 munmap.
14235 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14236 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14237 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14238 of munmap.
14239 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14240 of close.
14241 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14242 instead of sysconf.
14243 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14244 __clock_gettime instead of clock_gettime.
14245 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14246 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14247 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14248 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14249 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14250 tcgetattr.
14251 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14252 __clock_gettime and __nanosleep instead of clock_gettime and
14253 nanosleep.
14254 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14255 __hurd_catch_signal.
14256 (hurd_catch_signal): New strong alias.
14257 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14258 __hurd_catch_signal instead of hurd_catch_signal.
14259 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14260 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14261 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14262 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14263 (_hurd_thread_sigstate): Add hidden def.
14264 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14265 mutex_unlock.
14266 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14267 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14268 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14269 __hurd_file_name_path_lookup.
14270 (hurd_file_name_path_lookup): New strong alias.
14271 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14272 hurd_file_name_path_lookup.
14273 * mach/errstring.c (mach_error_type): Add hidden def.
14274 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14275 * mach/mutex-init.c (__mutex_init): Add hidden def.
14276 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14277 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14278 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14279 * sysdeps/mach/hurd/getcwd.c
14280 (_hurd_canonicalize_directory_name_internal): Rename to
14281 __hurd_canonicalize_directory_name_internal.
14282 (_hurd_canonicalize_directory_name_internal): New strong alias.
14283 (__canonicalize_directory_name_internal, __getcwd): Call
14284 __hurd_canonicalize_directory_name_internal instead of
14285 _hurd_canonicalize_directory_name_internal.
14286 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14287 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14288 hidden defs.
14289 * sysdeps/hurd/include/hurd.h: New file.
14290 * sysdeps/hurd/include/hurd/fd.h: New file.
14291 * sysdeps/hurd/include/hurd/signal.h: New file.
14292 * sysdeps/mach/include/lock-intern.h: New file.
14293 * sysdeps/mach/include/mach.h: New file.
14294 * sysdeps/mach/include/mach/mig_support.h: New file.
14295 * sysdeps/mach/include/mach_error.h: New file.
14296 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14297 prototype.
14298 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14299 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14300 _HEADER_H_HIDDEN_DEF macro.
14301 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14302 _hurd_fd_error_signal): Add hidden prototype.
14303 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14304 hidden def.
14305 * libio/iolibio.h (_IO_puts): New hidden prototype.
14306 * libio/ioputs.c (_IO_puts): New hidden def.
14307 * sysdeps/mach/hurd/localplt.data: New file.
14308
14309 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14310 Amos Jeffries <squid3@treenet.co.nz>
14311 David Michael <fedora.dm0@gmail.com>
14312 Marco Gerards <marco@gnu.org>
14313 Marcus Brinkmann <marcus@gnu.org>
14314 Neal H. Walfield <neal@gnu.org>
14315 Pino Toscano <toscano.pino@tiscali.it>
14316 Richard Braun <rbraun@sceen.net>
14317 Roland McGrath <roland@gnu.org>
14318 Samuel Thibault <samuel.thibault@ens-lyon.org>
14319 Thomas DiModica <ricinwich@yahoo.com>
14320 Thomas Schwinge <tschwinge@gnu.org>
14321
14322 * htl: New directory.
14323 * sysdeps/htl: New directory.
14324 * sysdeps/hurd/htl: New directory.
14325 * sysdeps/i386/htl: New directory.
14326 * sysdeps/mach/htl: New directory.
14327 * sysdeps/mach/hurd/htl: New directory.
14328 * sysdeps/mach/hurd/i386/htl: New directory.
14329 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14330 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14331 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14332
14333 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14334
14335 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14336 signals in thread created for runing timers.
14337
14338 2018-04-01 Florian Weimer <fweimer@redhat.com>
14339
14340 * support/support_format_addrinfo.c (support_format_addrinfo):
14341 Include unknown error number in formatted result.
14342
14343 2018-03-29 Florian Weimer <fweimer@redhat.com>
14344
14345 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14346 capture SIGBUS.
14347
14348 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14349
14350 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14351 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14352 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14353 (__ASSUME_CLONE_BACKWARDS): Define.
14354
14355 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14356
14357 [BZ #23024]
14358 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14359 early when linux sentinel value is set.
14360
14361 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14362
14363 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14364
14365 2018-03-27 Andreas Schwab <schwab@suse.de>
14366
14367 [BZ #23005]
14368 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14369 allocation of private copy of nsaddr_list fails.
14370
14371 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14372
14373 [BZ #16552]
14374 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14375 * sysdeps/unix/sysv/linux/umount.c: ... here.
14376 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14377 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14378 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14379 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14381 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14382 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14383
14384 2018-03-26 Andreas Schwab <schwab@suse.de>
14385
14386 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14387 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14388 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14389 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14390 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14391 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14392 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14393 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14394 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14395 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14396 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14397 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14398 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14399 (R_RISCV_NUM): Define.
14400
14401 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14402
14403 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14404 TLS declaration of errno.
14405 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14406 __libc_setup_tls.
14407 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14408 (ARCH_SETUP_TLS): Likewise.
14409 * sysdeps/mach/hurd/libc-start.h: New file copied from
14410 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14411 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14412 instead of __libc_setup_tls.
14413 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14414 __libc_setup_tls before initializing libpthread and running _hurd_init
14415 which starts the signal thread.
14416 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14417 Declare function.
14418 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14419
14420 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14421
14422 [BZ #22998]
14423 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14424 after it is defined.
14425
14426 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14427 Max Horn <max@quendi.de>
14428
14429 [BZ #22644]
14430 CVE-2017-18269
14431 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14432 branch conditions.
14433 * string/test-memmove.c (do_test2): New testcase.
14434
14435 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14436
14437 * sysdeps/generic/frame.h: Remove file.
14438 * sysdeps/arm/frame.h: Likewise.
14439 * sysdeps/hppa/frame.h: Likewise.
14440 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14441 macro.
14442 (GET_FRAME): Likewise.
14443 (GET_STACK): Likewise.
14444 (CALL_SIGHANDLER): Likewise.
14445 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14446 Likewise.
14447 (GET_FRAME): Likewise.
14448 (GET_STACK): Likewise.
14449 (CALL_SIGHANDLER): Likewise.
14450 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14451 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14452 (GET_FRAME): Likewise.
14453 (GET_STACK): Likewise.
14454 (CALL_SIGHANDLER): Likewise.
14455 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14456 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14457 (GET_FRAME): Likewise.
14458 (GET_STACK): Likewise.
14459 (ADVANCE_STACK_FRAME): Likewise.
14460 (CALL_SIGHANDLER): Likewise.
14461 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14462 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14463 (GET_FRAME): Likewise.
14464 (GET_STACK): Likewise.
14465 (CALL_SIGHANDLER): Likewise.
14466 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14467 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14468 (GET_FRAME): Likewise.
14469 (GET_STACK): Likewise.
14470 (CALL_SIGHANDLER): Likewise.
14471 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14472 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14473 (GET_FRAME): Likewise.
14474 (GET_STACK): Likewise.
14475 (CALL_SIGHANDLER): Likewise.
14476 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14477 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14478 (GET_FRAME): Likewise.
14479 (GET_STACK): Likewise.
14480 (CALL_SIGHANDLER): Likewise.
14481 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14482 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14483 (GET_FRAME): Likewise.
14484 (GET_STACK): Likewise.
14485 (CALL_SIGHANDLER): Likewise.
14486 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14487 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14488 (GET_FRAME): Likewise.
14489 (GET_STACK): Likewise.
14490 (CALL_SIGHANDLER): Likewise.
14491 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14492 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14493 (GET_FRAME): Likewise.
14494 (GET_STACK): Likewise.
14495 (CALL_SIGHANDLER): Likewise.
14496 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14497 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14498 (GET_FRAME): Likewise.
14499 (GET_STACK): Likewise.
14500 (CALL_SIGHANDLER): Likewise.
14501 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14502 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14503 (GET_FRAME): Likewise.
14504 (GET_STACK): Likewise.
14505 (CALL_SIGHANDLER): Likewise.
14506 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14507 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14508 (FIRST_FRAME_POINTER): Likewise.
14509 (ADVANCE_STACK_FRAME): Likewise.
14510 (GET_STACK): Likewise.
14511 (GET_FRAME): Likewise.
14512 (CALL_SIGHANDLER): Likewise.
14513 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14514 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14515 (ADVANCE_STACK_FRAME): Likewise.
14516 (GET_STACK): Likewise.
14517 (GET_FRAME): Likewise.
14518 (CALL_SIGHANDLER): Likewise.
14519 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14520 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14521 (GET_FRAME): Likewise.
14522 (GET_STACK): Likewise.
14523 (CALL_SIGHANDLER): Likewise.
14524 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14525 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14526 (GET_FRAME): Likewise.
14527 (GET_STACK): Likewise.
14528 (CALL_SIGHANDLER): Likewise.
14529
14530 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14531
14532 * sysdeps/x86_64/backtrace.c: Move to ....
14533 * debug/backtrace.c: ... here.
14534 * sysdeps/aarch64/backtrace.c: Remove file.
14535 * sysdeps/alpha/backtrace.c: Likewise.
14536 * sysdeps/hppa/backtrace.c: Likewise.
14537 * sysdeps/ia64/backtrace.c: Likewise.
14538 * sysdeps/mips/backtrace.c: Likewise.
14539 * sysdeps/nios2/backtrace.c: Likewise.
14540 * sysdeps/riscv/backtrace.c: Likewise.
14541 * sysdeps/sh/backtrace.c: Likewise.
14542 * sysdeps/tile/backtrace.c: Likewise.
14543
14544 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14545
14546 [BZ #22987]
14547 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14548 function.
14549 (fdimf): Likewise.
14550 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14551
14552 [BZ #17343]
14553 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14554 possibly overflowing computations.
14555
14556 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14557
14558 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14559 values from Linux-specific section now that it is in the GNU section.
14560 * sysdeps/gnu/errlist.c: Regenerate.
14561
14562 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14563
14564 * math/Makefile (libm-narrow-fns): Add sub.
14565 (libm-test-funcs-narrow): Likewise.
14566 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14567 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14568 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14569 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14570 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14571 (NARROW_SUB_TRIVIAL): Likewise.
14572 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14573 macro.
14574 (__dsubl): Likewise.
14575 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14576 dsub.
14577 (CFLAGS-nldbl-dsub.c): New variable.
14578 (CFLAGS-nldbl-fsub.c): Likewise.
14579 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14580 __nldbl_dsubl.
14581 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14582 prototype.
14583 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14584 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14585 * math/auto-libm-test-in: Add tests of sub.
14586 * math/auto-libm-test-out-narrow-sub: New generated file.
14587 * math/libm-test-narrow-sub.inc: New file.
14588 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14589 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14590 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14591 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14592 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14593 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14594 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14595 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14596 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14597 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14598 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14599 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14600 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14601 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14602 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14603 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14604 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14605 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14606 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14607 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14610 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14611 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14614 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14615 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14617 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14618 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14620 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14624 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14625 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14626 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14631 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14632 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14633 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14634
14635 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14636
14637 [BZ #20079]
14638 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14639
14640 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14641
14642 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14643
14644 2018-03-18 Richard Braun <rbraun@sceen.net>
14645
14646 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14647 thread reference.
14648
14649 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14650
14651 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14652 (__libc_cleanup_fct): Define function.
14653 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14654 __libc_cleanup_end): Rewrite implementation using
14655 __attribute__ ((__cleanup__)).
14656 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14657 * hurd/Makefile (routines): Add hurdlock.
14658 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14659 interface.
14660 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14661 * hurd/hurdpid.c: Include <lowlevellock.h>
14662 (_S_msg_proc_newids): Use lll_wait to synchronize.
14663 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14664 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14665 * mach/Makefile (lock-headers): Remove machine-lock.h.
14666 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14667 <machine-lock.h>.
14668 (__spin_lock_t): New type.
14669 (__SPIN_LOCK_INITIALIZER): New macro.
14670 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14671 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14672 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14673 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14674 (__mutex_init): Initialize with lll.
14675 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14676 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14677 needing lll.
14678 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14679 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14680 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14681 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14682 (__setpgid): Use lll for synchronization.
14683 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14684 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14685 instead of <cthreads.h>.
14686 (_IO_lock_inexpensive): New macro
14687 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14688 (__libc_lock_self0): New declaration.
14689 (__libc_lock_owner_self): New macro.
14690 (__libc_key_t): Remove type.
14691 (_LIBC_LOCK_INITIALIZER): New macro.
14692 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14693 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14694 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14695 __libc_lock_define_initialized_recursive,
14696 __rtld_lock_define_initialized_recursive,
14697 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14698 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14699 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14700 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14701 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14702 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14703 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14704 New macros.
14705 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14706 * hurd/hurdlock.c: New file.
14707 * hurd/hurdlock.h: New file.
14708 * mach/lowlevellock.h: New file
14709
14710 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14711
14712 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14713 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14714 when opening a symlink with O_NOFOLLOW.
14715 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14716 path when flags contains O_NOFOLLOW.
14717 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14718 if flags contains O_DIRECTORY and the result is a directory.
14719 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14720 oneself when the pointer given in D is nul (as set by ext2fs).
14721 * sysdeps/mach/hurd/mlockall.c: New file.
14722 * sysdeps/mach/hurd/munlockall.c: New file.
14723
14724 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14725
14726 * hurd/hurdsig.c: Include <pthread.h>.
14727 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14728 get the signal thread stack layout.
14729 * hurd/Makefile (headers): Remove threadvar.h.
14730 (inline-headers): Remove threadvar.h.
14731 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14732 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14733 __hurd_threadvar_max, __hurd_errno_location.
14734 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14735 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14736 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14737 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14738 unless TLS is not initialized yet, in which case we do not need a
14739 critical section yet anyway.
14740 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14741 <machine-sp.h>.
14742 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14743 declarations.
14744 (__hurd_threadvar_index): Remove enum.
14745 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14746 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14747 inlines.
14748 (__hurd_reply_port0): New variable declaration.
14749 (__hurd_local_reply_port): New macro.
14750 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14751 (interrupted_reply_port_location): Add thread_t parameter. Use it
14752 with THREAD_TCB to access thread-local variables.
14753 (_hurdsig_abort_rpcs): Pass ss->thread to
14754 interrupted_reply_port_location.
14755 (_hurd_internal_post_signal): Likewise.
14756 (_hurdsig_init): Use presence of cthread_fork instead of
14757 __hurd_threadvar_stack_mask to start signal thread by hand.
14758 Remove signal thread threadvar initialization.
14759 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14760 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14761 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14762 of threadvar.
14763 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14764 __libc_lock_self0.
14765 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14766 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14767 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14768 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14769 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14770 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14771 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14772 define variables.
14773 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14774 <hurd/threadvar.h>.
14775 [IS_IN(rtld)] (rtld_errno): New variable.
14776 [IS_IN(rtld)] (__errno_location): New weak function.
14777 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14778 * sysdeps/mach/hurd/errno.c: Remove file.
14779 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14780 (__fork): Remove THREADVAR_SPACE macro and its use.
14781 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14782 variable.
14783 (init): Do not initialize threadvar.
14784 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14785 symbol.
14786 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14787 __hurd_local_reply_port instead of threadvar.
14788 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14789 _hurd_sigstate fields.
14790 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14791 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14792 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14793 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14794 instead of threadvar.
14795 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14796 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14797 (use_threadvar, global_reply_port): Remove variables.
14798 (__hurd_reply_port0): New variable.
14799 (__mig_get_reply_port): Use __hurd_local_reply_port and
14800 __hurd_reply_port0 instead of threadvar.
14801 (__mig_dealloc_reply_port): Likewise.
14802 (__mig_init): Do not initialize threadvar.
14803 * sysdeps/mach/hurd/profil.c: Fix comment.
14804 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14805 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14806 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14807 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14808 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14809 __cthread_setspecific.
14810 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14811 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14812 __cthread_t instead of cthread_fork, cthread_detach,
14813 pthread_getattr_np, pthread_attr_getstack.
14814 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14815 __cthread_keycreate.
14816 (cthread_getspecific): Rename to __cthread_getspecific.
14817 (cthread_setspecific): Rename to __cthread_setspecific.
14818 (__libc_getspecific): Use __cthread_getspecific instead of
14819 cthread_getspecific.
14820 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14821 __cthread_keycreate instead of cthread_keycreate.
14822 (__libc_setspecific): Use __cthread_setspecific instead of
14823 cthread_setspecific.
14824 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14825 Likewise.
14826 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14827 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14828 testing whether it is defined.
14829
14830 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14831
14832 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14833 Define macro.
14834 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14835 * sysdeps/mach/i386/thread_state.h
14836 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14837 i386_THREAD_STATE.
14838 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14839 i386_THREAD_STATE.
14840 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14841
14842 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14843 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14844
14845 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14846 macros.
14847 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14848 descriptor instead of creating a new one.
14849 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14850
14851 * mach/setup-thread.c: Include <ldsodefs.h>.
14852 (__mach_setup_thread): Call _dl_allocate_tls, pass
14853 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14854 MACHINE_THREAD_STATE_FLAVOR, before getting
14855 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14856 MACHINE_THREAD_STATE_FLAVOR with the result.
14857 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14858 MACHINE_THREAD_STATE_FIX_NEW.
14859 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14860 too. Add original thread parameter.
14861
14862 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14863
14864 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14865 Remove inline function.
14866
14867 * sysdeps/i386/fpu/libm-test-ulps: Update.
14868 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14869
14870 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14871
14872 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14873 commit.
14874
14875 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14876
14877 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14878 (__sincos_code): Remove define and undefine.
14879 [__FAST_MATH__] (__sincos): Remove inline function.
14880 [__FAST_MATH__] (__sincosf): Remove inline function.
14881 [__FAST_MATH__] (__sincosl): Remove inline function.
14882 (__atan2l): Remove inline functions.
14883 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14884 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14885 function.
14886 (floor): Remove inline function.
14887 (ceil): Likewise.
14888 [__FAST_MATH__] (__ldexp_code): Remove macro.
14889 [__FAST_MATH__] (ldexp): Remove inline function.
14890 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14891 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14892 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14893 [__USE_ISOC99] (__lrint_code): Remove macro.
14894 [__USE_ISOC99] (__llrint_code): Likewise.
14895 [__USE_ISOC99] (lrintf): Remove inline function.
14896 [__USE_ISOC99] (lrint): Likewise.
14897 [__USE_ISOC99] (lrintl): Likewise.
14898 [__USE_ISOC99] (llrint): Likewise.
14899 [__USE_ISOC99] (llrintf): Likewise.
14900 [__USE_ISOC99] (llrintl): Likewise.
14901
14902 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14903
14904 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14905 (__ieee754_sqrtf): Remove.
14906 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14907 (__ieee754_sqrtf): Remove.
14908 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14909 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14910 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14911 (__ieee754_sqrtf): Remove.
14912 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14913 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14914 (sqrtf): Remove.
14915 (sqrtl): Remove.
14916 (__ieee754_sqrt): Remove.
14917 (__ieee754_sqrtf): Remove.
14918 (__ieee754_sqrtl): Remove.
14919 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14920 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14921 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14922 (__ieee754_sqrtf): Remove.
14923 (__ieee754_sqrtl): Remove.
14924
14925 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14926
14927 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14928 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14929 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14930 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14931 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14932 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14933 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14934 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14935 Likewise.
14936 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14937 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14938 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14939 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14940 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14941 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14942 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14943 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14944 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14945 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14946 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14947 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14948 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14949 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14950 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14951 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14952 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14953 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14954 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14955 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14956 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14957 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14958 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14959 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14960 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14961 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14962 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14963 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14964 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14965 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14966 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14967 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14968 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14969 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14970 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14971 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14972 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14973 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14974 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14975 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14976
14977 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14978
14979 * include/math.h (sqrt): Declare with asm redirect.
14980 (sqrtf): Likewise.
14981 (sqrtl): Likewise.
14982 (sqrtf128): Likewise.
14983 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14984 nonlib and libnldbl with -fmath-errno.
14985 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14986 * math/w_sqrt_template.c: Likewise.
14987 * math/w_sqrtf_compat.c: Likewise.
14988 * math/w_sqrtl_compat.c: Likewise.
14989 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14990 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14991 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14992 complex.h.
14993
14994 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14995
14996 * benchtests/Makefile: Define _ISOMAC.
14997 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14998 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14999 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
15000 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
15001 * benchtests/bench-timing.h: Define attribute_hidden.
15002
15003 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
15004
15005 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
15006 mov + lsr.
15007
15008 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15009
15010 [BZ #22963]
15011 * localedata/locales/cs_CZ (mon): Rename to...
15012 (alt_mon): This.
15013 (mon): Import from CLDR (genitive case).
15014
15015 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15016
15017 [BZ #22937]
15018 * localedata/locales/el_CY (abmon): Rename to...
15019 (ab_alt_mon): This.
15020 (abmon): Import from CLDR (abbreviated genitive case).
15021 * localedata/locales/el_GR (abmon): Rename to...
15022 (ab_alt_mon): This.
15023 (abmon): Import from CLDR (abbreviated genitive case).
15024
15025 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15026
15027 [BZ #22932]
15028 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15029
15030 2018-03-15 Robert Buj <robert.buj@gmail.com>
15031
15032 [BZ #22848]
15033 * localedata/locales/ca_ES (abmon): Rename to...
15034 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15035 (mon): Rename to...
15036 (alt_mon): This.
15037 (abmon): Import from CLDR (genitive case, month names preceded by
15038 "de" or "d’").
15039 (mon): Likewise.
15040 (abday): Synchronize with CLDR.
15041 (d_t_fmt): Likewise.
15042 (d_fmt): Likewise.
15043 (am_pm): Likewise.
15044
15045 (LC_TIME): Improve indentation.
15046 (LC_TELEPHONE): Likewise.
15047 (LC_NAME): Likewise.
15048 (LC_ADDRESS): Likewise.
15049
15050 2018-03-14 Joseph Myers <joseph@codesourcery.com>
15051
15052 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15053 (lrintf): Remove definitions used only with old GCC.
15054 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15055 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15056 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15057 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15058 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15059 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15060 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15061 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15062 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15063 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15064 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15065 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15066 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15067 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15068 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15069 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15070 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15071 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15072 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15073 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15074 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15075 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15076 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15077 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15078 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15079 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15080 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15081 [__FAST_MATH__] (__M_SQRT2): Remove macro.
15082
15083 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15084
15085 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15086 instruction to unbreak builds with binutils 2.26 and older.
15087
15088 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15089
15090 * sysdeps/aarch64/strncmp.S (count): New macro.
15091 (strncmp): Store misaligned length in SRC1 in COUNT.
15092 (mutual_align): Adjust.
15093 (misaligned8): Load dword at a time when it is safe.
15094
15095 2018-03-12 Zack Weinberg <zackw@panix.com>
15096
15097 [BZ #1190]
15098 [BZ #19476]
15099 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15100 if the _IO_EOF_SEEN bit is already set; update commentary.
15101 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15102 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15103
15104 * support/support_openpty.c, support/tty.h: New files.
15105 * support/Makefile (libsupport-routines): Add support_openpty.
15106
15107 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15108 New test cases.
15109 * libio/Makefile (tests): Add tst-fgetc-after-eof.
15110 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15111
15112 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
15113
15114 * po/pt_BR.po: Update translations.
15115
15116 2018-03-12 David Michael <fedora.dm0@gmail.com>
15117
15118 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15119 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15120 get a port to the startup server.
15121
15122 2018-03-11 Zack Weinberg <zackw@panix.com>
15123
15124 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15125 before nldbl-compat.h.
15126
15127 2018-03-10 Zack Weinberg <zackw@panix.com>
15128
15129 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15130 math.h or math_private.h.
15131
15132 * sysdeps/alpha/fpu/s_isnan.c
15133 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15134 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15135 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15136 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15137 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15138 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15139 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15140 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15141 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15142 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15143 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15144 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15145 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15146 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15147 Include math_private.h.
15148
15149 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15150 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15151 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15152 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15153 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15154 * sysdeps/powerpc/power7/fpu/s_logb.c:
15155 Include math.h and math_private.h.
15156
15157 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15158 uses of $at in .set noat / .set at.
15159
15160 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15161
15162 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15163 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15164 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15165 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15166 Likewise.
15167
15168 2018-03-09 Florian Weimer <fweimer@redhat.com>
15169
15170 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15171 in comment.
15172
15173 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15174
15175 [BZ #22919]
15176 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15177 Add nop before __startcontext, add explaining comments.
15178
15179 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15180
15181 [BZ #22926]
15182 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15183 empty for __SPE__.
15184 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15185 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15186 Do not build hardware transactional code for __SPE__.
15187 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15188 (__lll_trylock_elision): Likewise.
15189 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15190 (__lll_unlock_elision): Likewise.
15191
15192 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15193 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15194 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15195 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15196 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15197 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15198 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15199 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15200 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15201 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15202 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15203 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15204 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15205 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15206 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15207 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15208 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15209 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15210 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15211 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15212 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15213 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15214 (__ASSUME_CLONE_BACKWARDS): Define.
15215 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15216 __clone2 if __NR_clone2 is defined.
15217 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15218 (__ASSUME_CLONE_BACKWARDS): Likewise.
15219 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15220 (__ASSUME_CLONE_BACKWARDS): Likewise.
15221 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15222 (__ASSUME_CLONE2): Likewise.
15223 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15224 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15225 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15226 variants and the define architecture can use.
15227 (__ASSUME_CLONE_DEFAULT): Define as default.
15228 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15229 (__ASSUME_CLONE_BACKWARDS): Likewise.
15230 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15231 (__ASSUME_CLONE_BACKWARDS): Likewise.
15232 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15233 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15234
15235 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15236
15237 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15238
15239 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15240 time.
15241
15242 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15243 (do_test_limit): Likewise.
15244
15245 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15246 for every implementation.
15247 (do_test): Likewise.
15248
15249 * benchtests/bench-strncmp.c: Convert output to json.
15250
15251 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15252
15253 * io/futimens.c: Add missing start-of-file descriptive comment.
15254 * io/utime.c: Likewise.
15255 * misc/futimesat.c: Likewise.
15256 * misc/utimes.c: Likewise.
15257 * sysdeps/mach/hurd/futimesat.c: Likewise.
15258 * sysdeps/mach/hurd/utimes.c: Likewise.
15259 * sysdeps/posix/utime.c: Likewise.
15260 * sysdeps/posix/utimes.c: Likewise.
15261 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15262 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15263 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15264 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15265
15266 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15267
15268 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15269 hurd_futimes.
15270 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15271 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15272 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15273 (__futimens): Move implementation to...
15274 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15275 utime_tvalue_from_tspec): ... new helper functions.
15276 (hurd_futimens): New function.
15277 * sysdeps/mach/hurd/futimesat.c: New file.
15278 * sysdeps/mach/hurd/utimensat.c: New file.
15279
15280 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15281
15282 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15283 UTIME_OMIT): New macros.
15284 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15285 before reverting to converting time spec to time value and calling
15286 __file_utimes.
15287 * sysdeps/mach/hurd/utime-helper.c: New file.
15288 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15289 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15290 reverting to utime_tvalue_from_tval and __file_utimes.
15291 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15292 (__lutimes): Just call hurd_futimens after lookup.
15293 * sysdeps/mach/hurd/utimes.c: Likewise.
15294
15295 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15296
15297 * bits/sigaction.h: Add include guard.
15298 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15299 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15300 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15301 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15302 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15303 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15304 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15305 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15306 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15307
15308 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15309
15310 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15311 -Wmaybe-uninitialized for -Os.
15312 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15313 this disabling.
15314
15315 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15316
15317 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15318 __INO_T_MATCHES_INO64_T is defined.
15319 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15320 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15321 of definition.
15322 * dirent/alphasort64.c: Likewise.
15323 * dirent/scandir.c: Likewise.
15324 * dirent/scandir64-tail.c: Likewise.
15325 * dirent/scandir64.c: Likewise.
15326 * dirent/scandirat.c: Likewise.
15327 * dirent/scandirat64.c: Likewise.
15328 * dirent/versionsort.c: Likewise.
15329 * dirent/versionsort64.c: Likewise.
15330 * include/dirent.h: Likewise.
15331
15332 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15333 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15334 for socketpair endpoint.
15335 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15336 WRITE_BUFFER_SIZE as buffer size for sending socket.
15337 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15338 issue on system where send is implemented with sendto syscall.
15339 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15340 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15341 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15342 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15343
15344 [BZ #21269]
15345 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15346 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15347 sa_restorer for vDSO case.
15348 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15349
15350 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15351
15352 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15353 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15354 * hurd/hurd/ioctl.h: Include <mach/port.h>
15355 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15356 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15357 <mach/mach_types.h> and <mach/message.h>.
15358 (headers): Move mach/param.h to bits/mach/param.h.
15359 * sysdeps/mach/i386/mach/param.h: Move file to ...
15360 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15361 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15362 of <mach/param.h>.
15363 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15364 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15365 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15366 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15367 trivial, for C++ conformity.
15368 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15369 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15370 Process mig output through $(migheadersed).
15371 * hurd/Makefile (migheadersed): Define variable.
15372 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15373 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15374 headers.
15375 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15376 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15377 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15378 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15379 <bits/types/sigset_t.h>.
15380 [!defined __USE_GNU]: Do not #error out.
15381 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15382 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15383 Include <stddef.h> and <bits/types/sigset_t.h>
15384 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15385 instead of sighandler_t.
15386 * stdlib/errno.h (error_t): Move definition to...
15387 * bits/types/error_t.h: ... new header.
15388 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15389 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15390 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15391 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15392 * hurd/hurd.h: Include <bits/types/error_t.h>
15393 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15394 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15395 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15396 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15397 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15398 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15399 * sysdeps/mach/hurd/futimens.c: New file.
15400
15401 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15402
15403 [BZ #22918]
15404 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15405 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15406 * nscd/gai.c (__nss_hosts_database): Readd definition.
15407 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15408 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15409 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15410
15411 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15412
15413 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15414 (ifunc_one): Likewise.
15415
15416 2018-03-01 DJ Delorie <dj@delorie.com>
15417
15418 [BZ #22342]
15419 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15420 key value.
15421
15422 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15423
15424 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15425 `match_pid' parameter.
15426 (td_ta_thr_iter): Update accordingly.
15427
15428 2018-03-01 Florian Weimer <fweimer@redhat.com>
15429
15430 * nptl/Makefile (install-lib-ldscripts): Remove.
15431 (install): Remove rule.
15432 ($(inst_libdir)/libpthread.so): Likewise.
15433
15434 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15435
15436 [BZ #22896]
15437 * localedata/locales/an_ES: update month and day names,
15438 improve d_fmt, improve postal_fmt, add country_post,
15439 add country_isbn
15440
15441 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15442
15443 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15444 Ukrainian instead of Bulgarian.
15445
15446 2018-03-01 Florian Weimer <fweimer@redhat.com>
15447
15448 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15449 reference.
15450
15451 2018-03-01 Florian Weimer <fweimer@redhat.com>
15452
15453 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15454 * nptl/Makefile (routines): Add pthread_atfork.
15455 (static-only-routines): Set to pthread_atfork.
15456 (libpthread-routines): Remove pthread_atfork.
15457 (libpthread-static-only-routines): Remove.
15458 (install): Update comment.
15459 (libpthread.so): Do not install libpthread_nonshared.a.
15460 (tests): Do not link with libpthread_nonshared.a.
15461 (generated): Remove libpthread_nonshared.a.
15462 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15463 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15464 with libpthread_nonshared.a.
15465
15466 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15467
15468 [BZ #22902]
15469 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15470 (libc_feholdexcept_setroundf128): New macro.
15471 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15472
15473 [BZ #15105]
15474 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15475 libc_hidden_def.
15476 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15477 * include/inttypes.h: New file.
15478
15479 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15480
15481 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15482 -Os in two more places.
15483
15484 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15485
15486 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15487 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15488 be sorted correctly at the moment because of a bug.
15489
15490 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15491
15492 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15493 treat ñ as a primary different character, sync the collation
15494 for Spanish with CLDR.
15495 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15496 * localedata/Makefile: Add new test files.
15497 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15498 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15499 collation order.
15500 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15501 * localedata/am_ET.UTF-8.in: New test file.
15502 * localedata/az_AZ.UTF-8.in: Likewise.
15503 * localedata/be_BY.UTF-8.in: Likewise.
15504 * localedata/ber_DZ.UTF-8.in: Likewise.
15505 * localedata/ber_MA.UTF-8.in: Likewise.
15506 * localedata/bg_BG.UTF-8.in: Likewise.
15507 * localedata/br_FR.UTF-8.in: Likewise.
15508 * localedata/cmn_TW.UTF-8.in: Likewise.
15509 * localedata/crh_UA.UTF-8.in: Likewise.
15510 * localedata/csb_PL.UTF-8.in: Likewise.
15511 * localedata/cv_RU.UTF-8.in: Likewise.
15512 * localedata/cy_GB.UTF-8.in: Likewise.
15513 * localedata/dz_BT.UTF-8.in: Likewise.
15514 * localedata/eo.UTF-8.in: Likewise.
15515 * localedata/es_ES.UTF-8.in: Likewise.
15516 * localedata/fa_IR.UTF-8.in: Likewise.
15517 * localedata/fi_FI.UTF-8.in: Likewise.
15518 * localedata/fil_PH.UTF-8.in: Likewise.
15519 * localedata/fur_IT.UTF-8.in: Likewise.
15520 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15521 * localedata/ha_NG.UTF-8.in: Likewise.
15522 * localedata/ig_NG.UTF-8.in: Likewise.
15523 * localedata/ik_CA.UTF-8.in: Likewise.
15524 * localedata/kk_KZ.UTF-8.in: Likewise.
15525 * localedata/ku_TR.UTF-8.in: Likewise.
15526 * localedata/ky_KG.UTF-8.in: Likewise.
15527 * localedata/ln_CD.UTF-8.in: Likewise.
15528 * localedata/mi_NZ.UTF-8.in: Likewise.
15529 * localedata/ml_IN.UTF-8.in: Likewise.
15530 * localedata/mn_MN.UTF-8.in: Likewise.
15531 * localedata/mr_IN.UTF-8.in: Likewise.
15532 * localedata/mt_MT.UTF-8.in: Likewise.
15533 * localedata/nb_NO.UTF-8.in: Likewise.
15534 * localedata/om_KE.UTF-8.in: Likewise.
15535 * localedata/os_RU.UTF-8.in: Likewise.
15536 * localedata/ps_AF.UTF-8.in: Likewise.
15537 * localedata/ro_RO.UTF-8.in: Likewise.
15538 * localedata/ru_RU.UTF-8.in: Likewise.
15539 * localedata/sc_IT.UTF-8.in: Likewise.
15540 * localedata/se_NO.UTF-8.in: Likewise.
15541 * localedata/sq_AL.UTF-8.in: Likewise.
15542 * localedata/sv_SE.UTF-8.in: Likewise.
15543 * localedata/szl_PL.UTF-8.in: Likewise.
15544 * localedata/tg_TJ.UTF-8.in: Likewise.
15545 * localedata/tk_TM.UTF-8.in: Likewise.
15546 * localedata/tt_RU.UTF-8.in: Likewise.
15547 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15548 * localedata/ug_CN.UTF-8.in: Likewise.
15549 * localedata/uz_UZ.UTF-8.in: Likewise.
15550 * localedata/vi_VN.UTF-8.in: Likewise.
15551 * localedata/yi_US.UTF-8.in: Likewise.
15552 * localedata/yo_NG.UTF-8.in: Likewise.
15553 * localedata/zh_CN.UTF-8.in: Likewise.
15554 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15555 file and fix bugs in the collation.
15556 * localedata/locales/az_AZ: Likewise.
15557 * localedata/locales/be_BY: Likewise.
15558 * localedata/locales/ber_DZ: Likewise.
15559 * localedata/locales/ber_MA: Likewise.
15560 * localedata/locales/bg_BG: Likewise.
15561 * localedata/locales/br_FR: Likewise.
15562 * localedata/locales/br_FR@euro: Likewise.
15563 * localedata/locales/ca_ES: Likewise.
15564 * localedata/locales/cns11643_stroke: Likewise.
15565 * localedata/locales/crh_UA: Likewise.
15566 * localedata/locales/cs_CZ: Likewise.
15567 * localedata/locales/csb_PL: Likewise.
15568 * localedata/locales/cv_RU: Likewise.
15569 * localedata/locales/cy_GB: Likewise.
15570 * localedata/locales/da_DK: Likewise.
15571 * localedata/locales/dz_BT: Likewise.
15572 * localedata/locales/en_CA: Likewise.
15573 * localedata/locales/eo: Likewise.
15574 * localedata/locales/es_CU: Likewise.
15575 * localedata/locales/es_EC: Likewise.
15576 * localedata/locales/es_ES: Likewise.
15577 * localedata/locales/es_US: Likewise.
15578 * localedata/locales/et_EE: Likewise.
15579 * localedata/locales/fa_IR: Likewise.
15580 * localedata/locales/fi_FI: Likewise.
15581 * localedata/locales/fil_PH: Likewise.
15582 * localedata/locales/fur_IT: Likewise.
15583 * localedata/locales/gez_ER@abegede: Likewise.
15584 * localedata/locales/ha_NG: Likewise.
15585 * localedata/locales/hr_HR: Likewise.
15586 * localedata/locales/hsb_DE: Likewise.
15587 * localedata/locales/hu_HU: Likewise.
15588 * localedata/locales/ig_NG: Likewise.
15589 * localedata/locales/ik_CA: Likewise.
15590 * localedata/locales/is_IS: Likewise.
15591 * localedata/locales/iso14651_t1_pinyin: Likewise.
15592 * localedata/locales/kk_KZ: Likewise.
15593 * localedata/locales/ku_TR: Likewise.
15594 * localedata/locales/ky_KG: Likewise.
15595 * localedata/locales/ln_CD: Likewise.
15596 * localedata/locales/lt_LT: Likewise.
15597 * localedata/locales/lv_LV: Likewise.
15598 * localedata/locales/mi_NZ: Likewise.
15599 * localedata/locales/ml_IN: Likewise.
15600 * localedata/locales/mn_MN: Likewise.
15601 * localedata/locales/mr_IN: Likewise.
15602 * localedata/locales/mt_MT: Likewise.
15603 * localedata/locales/nb_NO: Likewise.
15604 * localedata/locales/om_KE: Likewise.
15605 * localedata/locales/os_RU: Likewise.
15606 * localedata/locales/pl_PL: Likewise.
15607 * localedata/locales/ps_AF: Likewise.
15608 * localedata/locales/ro_RO: Likewise.
15609 * localedata/locales/ru_RU: Likewise.
15610 * localedata/locales/ru_UA: Likewise.
15611 * localedata/locales/sc_IT: Likewise.
15612 * localedata/locales/se_NO: Likewise.
15613 * localedata/locales/si_LK: Likewise.
15614 * localedata/locales/sq_AL: Likewise.
15615 * localedata/locales/sv_FI: Likewise.
15616 * localedata/locales/sv_FI@euro: Likewise.
15617 * localedata/locales/sv_SE: Likewise.
15618 * localedata/locales/szl_PL: Likewise.
15619 * localedata/locales/tg_TJ: Likewise.
15620 * localedata/locales/ti_ER: Likewise.
15621 * localedata/locales/tk_TM: Likewise.
15622 * localedata/locales/tl_PH: Likewise.
15623 * localedata/locales/tr_TR: Likewise.
15624 * localedata/locales/tt_RU: Likewise.
15625 * localedata/locales/tt_RU@iqtelif: Likewise.
15626 * localedata/locales/ug_CN: Likewise.
15627 * localedata/locales/uk_UA: Likewise.
15628 * localedata/locales/uz_UZ: Likewise.
15629 * localedata/locales/uz_UZ@cyrillic: Likewise.
15630 * localedata/locales/vi_VN: Likewise.
15631 * localedata/locales/yi_US: Likewise.
15632 * localedata/locales/yo_NG: Likewise.
15633
15634 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15635
15636 * gen-locales.mk: Make test files which contain @ modifiers in their
15637 name work.
15638 * localedata/gen-locale.sh: Likewise.
15639
15640 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15641
15642 * posix/tst-fnmatch.input: Fix results for range expressions
15643 for non C locales.
15644 * posix/tst-regexloc.c: Do not use a range expression for
15645 de_DE.ISO-8859-1 locale.
15646
15647 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15648
15649 * posix/bug-regex5.c: Fix test case because with the new
15650 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15651 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15652 file.
15653
15654 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15655
15656 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15657 downloaded from ISO, the collation order of @-. and space has changed.
15658 Therefore, this test file needed to be adapted.
15659 * localedata/fr_CA.UTF-8.in: Likewise.
15660 * localedata/fr_FR.UTF-8.in: Likewise.
15661 * localedata/uk_UA.UTF-8.in: Likewise.
15662
15663 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15664
15665 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15666 order of ȥ in the new iso14651_t1_common file.
15667 * localedata/pl_PL.UTF-8.in: Likewise.
15668
15669 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15670
15671 * localedata/locales/iso14651_t1_common: Add sections for various
15672 scripts to the iso14651_t1_common file.
15673
15674 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15675
15676 * localedata/locales/iso14651_t1_common: Use the code point of a
15677 character in the fourth collation level instead of IGNORE for all
15678 entries which have IGNORE on all 4 levels.
15679
15680 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15681
15682 * localedata/locales/iso14651_t1_common: Add some convenient collation
15683 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15684 rules similar to those in CLDR.
15685
15686 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15687
15688 * localedata/locales/iso14651_t1_common: The new version of this
15689 file downloaded from ISO contained several syntax errors which
15690 are fixed by this patch.
15691
15692 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15693
15694 * localedata/locales/iso14651_t1_common: replace all <U.....>
15695 with <U000.....> because glibc understands only 4 digit or 8 digit
15696
15697 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15698
15699 * localedata/locales/iso14651_t1_common: Necessary changes
15700 to make the file downloaded from ISO usable by glibc.
15701
15702 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15703
15704 [BZ #14095]
15705 * localedata/locales/iso14651_t1_common: Update file to
15706 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15707
15708 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15709
15710 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15711 of <nptl/pthreadP.h>
15712 (thread_attr_compare): Move function to...
15713 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15714 * sysdeps/nptl/timer_routines.h: ... new header.
15715 * sysdeps/mach/hurd/gai_misc.h: New file.
15716
15717 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15718
15719 * string/strcoll_l.c: Include <libc-diag.h>.
15720 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15721 declarations of seq1 and seq2.
15722
15723 [BZ #15105]
15724 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15725 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15726
15727 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15728
15729 [BZ #22433]
15730 [BZ #22807]
15731 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15732 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15733 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15734 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15735 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15736 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15737
15738 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15739
15740 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15741 macros used in __ptrace_request.
15742
15743 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15744
15745 [BZ #22792]
15746 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15747 to $(CC).
15748 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15749 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15750 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15751 <tcb-offsets.h>.
15752
15753 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15754
15755 [BZ #15105]
15756 * ctype/ctype.c (tolower): Use libc_hidden_def.
15757 (toupper): Likewise.
15758 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15759 [!_ISOMAC] (toupper): Likewise.
15760
15761 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15762
15763 * localedata/Makefile: Remove --quiet argument when
15764 installing locales
15765
15766 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15767
15768 [BZ #17438]
15769 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15770 in d_fmt.
15771 * localedata/locales/pt_PT (LC_TIME): likewise
15772
15773 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15774
15775 [BZ #22646]
15776 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15777 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15778 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15779
15780 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15781
15782 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15783
15784 * nptl/Makefile (routines): Remove unregister-atfork.
15785 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15786 (fork_handler_alloc): Remove function.
15787 (fork_handlers, fork_handler_init): New variables.
15788 (__fork_lock): Rename to atfork_lock.
15789 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15790 to use a dynamic array to add/remove atfork handlers.
15791 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15792 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15793 Remove declaration.
15794 (fork_handler): Remove next, refcntr, and need_signal member.
15795 (__run_fork_handler_type): New enum.
15796 (__run_fork_handlers): New prototype.
15797 * nptl/register-atfork.c: Remove file.
15798 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15799
15800 * sysdeps/nptl/nptl-signals.h: Move to ...
15801 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15802 comments.
15803 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15804 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15805 unnecessary check for SIGTIMER.
15806 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15807 remove unnecessary removal of SIGTIMER.
15808 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15809 include-signals.h rename.
15810 * nptl/pthreadP.h: Likewise.
15811 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15812 __is_internal_signal instead of __nptl_is_internal_signal.
15813
15814 2018-02-22 Andrew Waterman <andrew@sifive.com>
15815
15816 [BZ # 22884]
15817 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15818 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15819 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15820 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15821
15822 2018-02-22 DJ Delorie <dj@delorie.com>
15823
15824 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15825
15826 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15827
15828 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15829 do_misaligned, not misaligned8.
15830
15831 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15832
15833 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15834 Add memcpy_thunderx2.
15835 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15836 Increment to 4.
15837 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15838 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15839 and IS_THUNDERX2PA checks.
15840 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15841 Use macro to set name appropriately.
15842 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15843 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15844 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15845 New macro.
15846 (IS_THUNDERX2): New macro.
15847
15848 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15849
15850 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15851
15852 2018-02-21 Zack Weinberg <zackw@panix.com>
15853
15854 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15855 Define here, unconditionally.
15856 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15857 * libio/libioP.h: Remove #if 0 blocks.
15858 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15859 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15860 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15861
15862 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15863 Assume weak_alias is always defined.
15864
15865 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15866 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15867 Remove #if 0 and #ifdef TODO blocks.
15868 Assume text_set_element is always defined.
15869
15870 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15871 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15872 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15873
15874 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15875 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15876 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15877 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15878 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15879 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15880 Reformat bit flags for _flags field to make occupancy clearer.
15881 Update commentary.
15882 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15883 Keep definitions consistent with those in libio/libio.h.
15884
15885 * libio/libio.h (_IO_file_flags): Remove macro.
15886 All uses changed to _flags.
15887
15888 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15889 (__HAVE_COLUMN, _IO_BE): Don't define.
15890 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15891 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15892 * libio/libioP.h (EOF): Don't define.
15893 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15894 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15895 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15896 testing _IO_UNIFIED_JUMPTABLES.
15897
15898 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15899 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15900 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15901 (_IO_size_t): Delete; all uses changed to size_t.
15902 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15903 (_IO_off_t): Delete; all uses changed to off_t.
15904 (_IO_off64_t): Delete; all uses changed to off64_t.
15905 (_IO_pid_t): Delete; all uses changed to pid_t.
15906 (_IO_uid_t): Delete; all uses changed to uid_t.
15907 (_IO_wint_t): Delete; all uses changed to wint_t.
15908 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15909 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15910 (_IO_cookie_io_functions_t): Delete; all uses changed to
15911 cookie_io_functions_t.
15912 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15913 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15914 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15915 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15916
15917 * libio/iofopncook.c: Remove unnecessary forward declarations.
15918 * libio/iolibio.h: Correct outdated commentary.
15919 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15920 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15921 Remove unnecessary casts.
15922 * stdio-common/getline.c: Use _IO_getdelim directly.
15923 Don't redefine ssize_t.
15924 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15925 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15926 Remove outdated comments.
15927 * stdio-common/vfscanf.c: Don't redefine va_list.
15928
15929 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15930 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15931 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15932 which are always true, and __cplusplus, which is always false.
15933
15934 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15935
15936 [BZ #15105]
15937 [BZ #19463]
15938 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15939 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15940 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15941 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15942 libc_hidden_proto.
15943 [!_ISOMAC] (putc_unlocked): Likewise.
15944 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15945 define inline if [__USE_EXTERN_INLINES].
15946 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15947 putc_unlocked.
15948
15949 [BZ #15105]
15950 [BZ #19463]
15951 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15952 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15953 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15954 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15955 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15956 getc_unlocked.
15957 * time/tzfile.c (__tzfile_read): Likewise.
15958
15959 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15960
15961 [BZ #22517]
15962 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15963
15964 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15965
15966 * io/fcntl.h: Fix a typo in a comment.
15967
15968 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15969
15970 [BZ #22862]
15971 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15972 define _DEFAULT_SOURCE.
15973 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15974
15975 2018-02-21 Florian Weimer <fweimer@redhat.com>
15976
15977 [BZ #20890]
15978 * elf/cache.c (save_cache): Call fsync on temporary file before
15979 renaming it.
15980 (save_aux_cache): Call fdatasync on temporary file before renaming
15981 it.
15982
15983 2018-02-21 Florian Weimer <fweimer@redhat.com>
15984
15985 [BZ #22787]
15986 * include/caller.h: Remove file.
15987 * elf/dl-caller.c: Likewise.
15988 * elf/Makefile (dl-routines): Remove dl-caller.
15989 (shared-only-routines): Do not add dl-caller.
15990 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15991 __check_caller.
15992 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15993 member.
15994 (dl_open_worker): Do not call __check_caller.
15995 (_dl_open): Do not set caller_dl_open member.
15996 * elf/rtld.c (_rtld_global_ro): Do not initialize
15997 _dl_check_caller member.
15998 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15999 _dl_check_caller member.
16000 (_dl_check_caller): Remove declaration.
16001 * sysdeps/unix/sysv/linux/dl-execstack.c
16002 (_dl_make_stack_executable): Do not call __check_caller.
16003
16004 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
16005
16006 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
16007 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16008
16009 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16010
16011 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16012 description.
16013
16014 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16015
16016 [BZ #16335]
16017 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16018 of 199606L, 200112L, and 200809L.
16019 (_XOPEN_SOURCE): Document special values of 600 and 700.
16020 (_ISOC11_SOURCE): Document macro.
16021 (_ATFILE_SOURCE): Likewise.
16022 (_FORTIFY_SOURCE): Likewise.
16023
16024 2018-02-19 Joseph Myers <joseph@codesourcery.com>
16025
16026 [BZ #15105]
16027 [BZ #19463]
16028 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16029 and define as weak alias of __ferror_unlocked. Use
16030 libc_hidden_weak.
16031 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16032 libc_hidden_proto.
16033 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16034 function if [__USE_EXTERN_INLINES].
16035 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16036 ferror_unlocked.
16037
16038 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
16039
16040 [BZ #6889]
16041 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16042
16043 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16044
16045 [BZ #22818]
16046 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16047 the GLIBC_2.1 version.
16048
16049 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16050
16051 [BZ #21508]
16052 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16053 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16054 intl/tst-gettext-de.po from po/de.po by removing the
16055 POT-Creation-Date line.
16056 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16057 ../po/de.po.
16058 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16059 ../po/de.po.
16060
16061 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16062
16063 * mach/Makefile (headers): Add mach/param.h.
16064 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16065 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16066 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16067 (__ptsname_r): Move implementation to...
16068 (__ptsname_internal): ... new function. Add filling the STP
16069 structure.
16070
16071 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
16072
16073 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16074 idouble to 1 ULP.
16075
16076 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
16077
16078 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16079 syntax.
16080
16081 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
16082
16083 * nptl/Makefile (tst-mutex8-ENV): Delete.
16084 * nptl/tst-mutex8.c (check_type):
16085 Add runtime check if mutex will be elided.
16086
16087 2018-02-15 Joseph Myers <joseph@codesourcery.com>
16088
16089 [BZ #20980]
16090 [BZ #21234]
16091 * manual/install.texi (Configuring and compiling): Describe
16092 passing CC and CFLAGS on configure command line, not as
16093 environment variables. Use @code markup on those variables.
16094 Specify what options go in CC and what go in CFLAGS. Note the
16095 requirement to compile with optimization.
16096 * INSTALL: Regenerated.
16097
16098 [BZ #18124]
16099 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16100 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16101 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16102 __sigprocmask instead of sigprocmask.
16103 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16104 Likewise.
16105 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16106 __sigsetjmp and sigprocmask.
16107
16108 [BZ #15105]
16109 * include/argz.h (argz_next): Use libc_hidden_proto.
16110 (__argz_next): Likewise.
16111 * string-argz-next.c (__argz_next): Use libc_hidden_def.
16112 (argz_next): Use libc_hidden_weak.
16113
16114 [BZ #15105]
16115 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16116 libc_hidden_proto.
16117 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16118 libc_hidden_def.
16119
16120 [BZ #15105]
16121 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16122 libc_hidden_proto.
16123 * libio/iofputs.c (fputs): Use libc_hidden_weak.
16124
16125 [BZ #15105]
16126 [BZ #19463]
16127 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16128 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
16129 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16130 (__feof_unlocked): New declaration, and inline function if
16131 [__USE_EXTERN_INLINES].
16132 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16133 instead of feof_unlocked.
16134 * intl/localealias.c [_LIBC] (FEOF): Likewise.
16135 * nss/nsswitch.c (nss_parse_file): Likewise.
16136 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16137 Likewise.
16138 * time/getdate.c (__getdate_r): Likewise.
16139 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16140 Define as macro to call __feof_unlocked.
16141
16142 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16143
16144 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16145
16146 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16147
16148 * math/Makefile: Remove mpexp.c and mplog.c
16149 * sysdeps/i386/fpu/mpexp.c: Delete file.
16150 * sysdeps/i386/fpu/mplog.c: Likewise.
16151 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16152 * sysdeps/ia64/fpu/mplog.c: Likewise.
16153 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16154 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16155 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16156 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16157 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16158 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16159 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16160 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16161 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16162 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16163 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16164 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16165 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16166 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16167 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16168 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16169
16170 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16171
16172 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16173
16174 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16175
16176 * sysdeps/sh/libm-test-ulps: Update.
16177
16178 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16179
16180 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16181 idouble to 1 ULP.
16182
16183 2018-02-12 Zack Weinberg <zackw@panix.com>
16184
16185 [BZ #19239]
16186 * posix/sys/types.h: Don't include sys/sysmacros.h.
16187 * misc/sys/sysmacros.h: Remove the conditional deprecation
16188 warnings for the macros defined by this header.
16189
16190 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16191
16192 * manual/probes.texi: Remove slowexp probes.
16193 * math/Makefile: Remove slowexp.
16194 * sysdeps/generic/math_private.h (__slowexp): Remove.
16195 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16196 document error bounds.
16197 * sysdeps/i386/fpu/slowexp.c: Remove.
16198 * sysdeps/ia64/fpu/slowexp.c: Remove.
16199 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16200 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16201 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16202 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16203 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16204 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16205 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16206 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16207 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16208 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16209 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16210
16211 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16212
16213 [BZ #13932]
16214 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16215 * benchtests/pow-inputs: Update comment for slow path cases.
16216 * manual/probes.texi (slowpow_p10): Delete removed probe.
16217 (slowpow_p10): Likewise.
16218 * math/Makefile: Remove halfulp.c and slowpow.c.
16219 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16220 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16221 (__halfulp): Remove.
16222 (__slowpow): Remove.
16223 * sysdeps/i386/fpu/halfulp.c: Delete file.
16224 * sysdeps/i386/fpu/slowpow.c: Likewise.
16225 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16226 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16227 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16228 improve comments and add error analysis.
16229 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16230 (power1): Remove function:
16231 (log1): Remove error argument, add error analysis.
16232 (my_log2): Remove function.
16233 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16234 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16235 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16236 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16237 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16238 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16239 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16240 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16241 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16242 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16243 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16244 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16245 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16246 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16247
16248 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16249
16250 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16251 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16252
16253 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16254
16255 [BZ #22433]
16256 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16257 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16258 and PTRACE_SETHBPREGS.
16259
16260 2018-02-10 Zack Weinberg <zackw@panix.com>
16261
16262 [BZ #22830]
16263 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16264 correctly.
16265 * malloc/tst-malloc-stats-cancellation.c: New test case.
16266 * malloc/Makefile: Add new test case.
16267
16268 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16269
16270 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16271
16272 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16273
16274 * math/Makefile (libm-narrow-fns): Add add.
16275 (libm-test-funcs-narrow): Likewise.
16276 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16277 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16278 * math/gen-auto-libm-tests.c (test_functions): Add add.
16279 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16280 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16281 (NARROW_ADD_TRIVIAL): Likewise.
16282 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16283 macro.
16284 (__daddl): Likewise.
16285 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16286 dadd.
16287 (CFLAGS-nldbl-dadd.c): New variable.
16288 (CFLAGS-nldbl-fadd.c): Likewise.
16289 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16290 __nldbl_daddl.
16291 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16292 prototype.
16293 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16294 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16295 * math/auto-libm-test-in: Add tests of add.
16296 * math/auto-libm-test-out-narrow-add: New generated file.
16297 * math/libm-test-narrow-add.inc: New file.
16298 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16299 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16300 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16301 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16302 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16303 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16304 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16305 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16306 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16307 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16308 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16309 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16310 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16311 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16312 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16313 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16314 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16315 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16316 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16317 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16318 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16319 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16320 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16321 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16322 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16323 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16324 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16325 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16326 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16327 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16328 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16329 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16330 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16334 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16335 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16336 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16337 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16338 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16339 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16340 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16341 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16342 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16343 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16344
16345 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16346 (f128-pairs): New variable.
16347 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16348 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16349 to CFLAGS.
16350 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16351 Also make tests add $(f128-loader-link) to gnulib-tests.
16352
16353 2018-02-09 DJ Delorie <dj@redhat.com>
16354
16355 [BZ #22827]
16356 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16357 64-bit ELF type for 64-bit ELF objects.
16358
16359 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16360
16361 * math/libm-test-driver.c (snan_tests_arg): New variable.
16362 * math/libm-test-support.h (snan_tests_arg): New declaration.
16363 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16364
16365 * math/Makefile (test-type-pairs): New variable.
16366 (test-type-pairs-f64xf128-yes): Likewise.
16367 (tests): Add test-narrow-macros.
16368 (libm-test-funcs-narrow): New variable.
16369 (libm-test-c-narrow): Likewise.
16370 (generated): Add $(libm-test-c-narrow).
16371 (libm-tests-base-narrow): New variable.
16372 (libm-tests-narrow): Likewise.
16373 (libm-tests): Add $(libm-tests-narrow).
16374 (libm-tests-for-type): Handle $(libm-tests-narrow).
16375 (libm-test-c-narrow-obj): New variable.
16376 ($(libm-test-c-narrow-obj)): New rule.
16377 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16378 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16379 $(o-iterator) to set dependencies and CFLAGS.
16380 * math/gen-auto-libm-tests.c: Document use for narrowing
16381 functions.
16382 (output_for_one_input_case): Take argument NARROW.
16383 (generate_output): Likewise. Update call to
16384 output_for_one_input_case.
16385 (main): Take --narrow option. Update call to generate_output.
16386 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16387 (apply_lit): Update call to _apply_lit.
16388 (apply_arglit): New function.
16389 (parse_args): Handle "a" arguments.
16390 (parse_auto_input): Handle format names using ":".
16391 * math/README.libm-test: Document "a" parameter type.
16392 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16393 (ARG_TYPE_TRUE_MIN): Likewise.
16394 (ARG_TYPE_MAX): Likwise.
16395 (ARG_MIN_EXP): Likewise.
16396 (ARG_MAX_EXP): Likewise.
16397 (ARG_MANT_DIG): Likewise.
16398 (TEST_COND_arg_ibm128): Likewise.
16399 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16400 (TEST_COND_arg_fmt): New macro.
16401 (init_max_error): Update prototype.
16402 * math/libm-test-support.c (test_ibm128): New variable.
16403 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16404 instead of using [TEST_COND_ibm128] conditional.
16405 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16406 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16407 [TEST_NARROW] (TEST_MSG): New definition.
16408 (arg_plus_zero): New macro.
16409 (arg_minus_zero): Likewise.
16410 (arg_plus_infty): Likewise.
16411 (arg_minus_infty): Likewise.
16412 (arg_qnan_value_pl): Likewise.
16413 (arg_qnan_value): Likewise.
16414 (arg_snan_value_pl): Likewise.
16415 (arg_snan_value): Likewise.
16416 (arg_max_value): Likewise.
16417 (arg_min_value): Likewise.
16418 (arg_min_subnorm_value): Likewise.
16419 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16420 (RUN_TEST_LOOP_aa_f): New macro.
16421 (TEST_SUFF): New macro.
16422 (TEST_SUFF_STR): Likewise.
16423 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16424 (TEST_COND_any_ibm128): New macro.
16425 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16426 this_func. Update call to init_max_error.
16427 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16428 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16429 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16430 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16431 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16432 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16433 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16434 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16435 * math/test-math-vector.h (TEST_NARROW): Likewise.
16436 * math/test-arg-double.h: New file.
16437 * math/test-arg-float128.h: Likewise.
16438 * math/test-arg-float32x.h: Likewise.
16439 * math/test-arg-float64.h: Likewise.
16440 * math/test-arg-float64x.h: Likewise.
16441 * math/test-arg-ldouble.h: Likewise.
16442 * math/test-math-narrow.h: Likewise.
16443 * math/test-narrow-macros.c: Likewise.
16444 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16445 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16446 test-narrow-macros-ldbl-64.
16447 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16448
16449 * math/bits/mathcalls-narrow.h: New file.
16450 * include/bits/mathcalls-narrow.h: Likewise.
16451 * math/math-narrow.h: Likewise.
16452 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16453 (__MATHCALL_NARROW_ARGS_2): Likewise.
16454 (__MATHCALL_NARROW_ARGS_3): Likewise.
16455 (__MATHCALL_NARROW_NORMAL): Likewise.
16456 (__MATHCALL_NARROW_REDIR): Likewise.
16457 (__MATHCALL_NARROW): Likewise.
16458 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16459 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16460 defined.
16461 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16462 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16463 (libm-narrow-fns): New variable.
16464 (libm-narrow-types-basic): Likewise.
16465 (libm-narrow-types-ldouble-yes): Likewise.
16466 (libm-narrow-types-float128-yes): Likewise.
16467 (libm-narrow-types-float128-alias-yes): Likewise.
16468 (libm-narrow-types): Likewise.
16469 (libm-routines): Add narrowing functions.
16470 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16471 (libc_feholdexcept_setroundf128): New macro.
16472 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16473 * sysdeps/ieee754/float128/float128_private.h: Include
16474 <math/math-narrow.h>.
16475 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16476 Undefine and redefine.
16477 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16478 (libm_alias_float_ldouble): Undefine and redefine.
16479 (libm_alias_double_ldouble): Likewise.
16480
16481 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16482
16483 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16484
16485 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16486 FPCR/FPSR.
16487
16488 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16489
16490 * manual/creature.texi: Convert references to gcc.info to gcc.
16491 * manual/stdio.texi: Likewise.
16492 * manual/string.texi: Likewise.
16493
16494 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16495
16496 [BZ #17979]
16497 * posix/bits/types.h (__int_least8_t): New typedef.
16498 (__uint_least8_t): Likewise.
16499 (__int_least16_t): Likewise.
16500 (__uint_least16_t): Likewise.
16501 (__int_least32_t): Likewise.
16502 (__uint_least32_t): Likewise.
16503 (__int_least64_t): Likewise.
16504 (__uint_least64_t): Likewise.
16505 * sysdeps/generic/stdint.h (int_least8_t): Define using
16506 __int_least8_t.
16507 (int_least16_t): Define using __int_least16_t.
16508 (int_least32_t): Define using __int_least32_t.
16509 (int_least64_t): Define using __int_least64_t.
16510 (uint_least8_t): Define using __uint_least8_t.
16511 (uint_least16_t): Define using __uint_least16_t.
16512 (uint_least32_t): Define using __uint_least32_t.
16513 (uint_least64_t): Define using __uint_least64_t.
16514 * wcsmbs/uchar.h: Include <bits/types.h>.
16515 (char16_t): Define using __uint_least16_t conditional only on
16516 [!__USE_ISOCXX11].
16517 (char32_t): Define using __uint_least32_t conditional only on
16518 [!__USE_ISOCXX11].
16519 * wcsmbs/test-char-types.c: New file.
16520 * wcsmbs/Makefile (tests): Add test-char-types.
16521
16522 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16523 version to 4.0.1.
16524
16525 2018-02-07 Zack Weinberg <zackw@panix.com>
16526
16527 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16528 Delete all contents except for definitions of _G_HAVE_MMAP and
16529 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16530 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16531 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16532 change as above.
16533
16534 * libio/libio.h: Don't include bits/_G_config.h here.
16535 Include stddef.h with __need_wchar_t defined. Include
16536 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16537 Define _IO_iconv_t here, directly.
16538 Don't define _IO_HAVE_ST_BLKSIZE.
16539 * libio/libioP.h: Include _G_config.h here. Move include of
16540 shlib-compat.h up with rest of includes. Simplify conditionals
16541 controlling definition of _IO_JUMPS_OFFSET.
16542
16543 * csu/init.c: Remove always-true #if around entire file.
16544 Don't include stdio.h. Set _IO_stdin_used to hardwired
16545 constant 0x20001, and update commentary.
16546 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16547 Replace all uses of _G_va_list with __gnuc_va_list.
16548 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16549 instead of #if _IO_HAVE_ST_BLKSIZE.
16550 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16551 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16552 not #ifdef.
16553
16554 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16555 multiple-include guard to match.
16556 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16557 into this file.
16558 Remove preprocessor conditionals that are always true and/or
16559 redundant to other preprocessor conditionals in the same nest.
16560 Include shlib-compat.h unconditionally.
16561 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16562 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16563 defined after including stdio.h.
16564 Use __BEGIN_DECLS/__END_DECLS.
16565
16566 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16567 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16568 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16569
16570 2018-02-07 Zack Weinberg <zackw@panix.com>
16571
16572 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16573 New single-type headers split from _G_config.h.
16574 * libio/bits/types/cookie_io_functions_t.h
16575 * libio/bits/types/struct_FILE.h
16576 New single-type headers split from libio.h.
16577
16578 * libio/Makefile: Install the above new headers. Don't install
16579 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16580 bits/libio-ldbl.h.
16581 * libio/_G_config.h, libio/libio.h: Delete file.
16582
16583 * libio/bits/libio.h: Remove improper-inclusion guard.
16584 Include stdio.h and don't repeat anything that it does.
16585 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16586 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16587 __io_read_fn as cookie_read_function_t,
16588 __io_write_fn as cookie_write_function_t,
16589 __io_seek_fn as cookie_seek_function_t,
16590 __io_close_fn as cookie_close_function_t,
16591 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16592 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16593 here, in the "compatibility defines" section. Remove an #if 0
16594 block. Use the "body" macros from bits/types/struct_FILE.h to
16595 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16596 and _IO_ferror_unlocked.
16597 Move prototypes of __uflow and __overflow...
16598
16599 * libio/stdio.h: ...here. Don't include bits/libio.h.
16600 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16601 directly from stdarg.h. Include bits/types/__fpos_t.h,
16602 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16603 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16604 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16605 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16606 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16607 __ssize_t, not _IO_ssize_t. Unconditionally define
16608 BUFSIZ as 8192 and EOF as (-1).
16609
16610 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16611 macros from bits/types/struct_FILE.h instead of _IO_* macros
16612 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16613 instead of _IO_ssize_t.
16614 * libio/bits/stdio2.h: Similarly.
16615
16616 * libio/iolibio.h: Add multiple-include guard.
16617 Include bits/libio.h after stdio.h.
16618 * libio/libioP.h: Add multiple-include guard.
16619 Include stdio.h and bits/libio.h before iolibio.h.
16620
16621 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16622 * include/bits/types/cookie_io_functions_t.h
16623 * include/bits/types/struct_FILE.h: New wrappers.
16624
16625 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16626 Get definitions of _G_fpos_t and _G_fpos64_t from
16627 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16628 respectively. Remove improper-inclusion guards.
16629
16630 * conform/data/stdio.h-data: Update expectations of va_list.
16631 * scripts/check-installed-headers.sh: Remove special case for
16632 libio.h and _G_config.h.
16633
16634 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16635
16636 [BZ #15105]
16637 [BZ #19463]
16638 * include/sys/sysmacros.h [!_ISOMAC]
16639 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16640 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16641 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16642 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16643 libc_hidden_proto.
16644 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16645 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16646 Likewise.
16647 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16648 Undefine and redefine to add use __gnu_dev_ prefix.
16649 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16650 Likewise.
16651 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16652 and define as hidden inline function.
16653 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16654 Likewise.
16655 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16656 Likewise.
16657 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16658 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16659 (gnu_dev_minor): Likewise.
16660 (gnu_dev_makedev): Likewise.
16661 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16662 makedev.
16663 * posix/wordexp.c (exec_comm_child): Likewise.
16664 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16665 instead of minor and __gnu_dev_major instead of major.
16666 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16667 __gnu_dev_major instead of major.
16668 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16669 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16670 instead of gnu_dev_minor.
16671 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16672 (SLAVE_P): Likewise.
16673 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16674 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16675 instead of major.
16676
16677 [BZ #21313]
16678 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16679 in another place.
16680 * locale/weightwc.h (findidx): Likewise.
16681
16682 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16683
16684 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16685 (slowlog_inexact): Likewise
16686 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16687 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16688
16689 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16690
16691 [BZ #22797]
16692 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16693 missing second underscore to parameter name.
16694
16695 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16696
16697 [BZ #14508]
16698 [BZ #15512]
16699 [BZ #17082]
16700 [BZ #20530]
16701 * bits/byteswap.h: Update file comment. Do not include
16702 <bits/byteswap-16.h>.
16703 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16704 constant.
16705 (__bswap_16): Define as inline function.
16706 (__bswap_constant_32): Reformat definition.
16707 (__bswap_32): Always define as inline function, not macro, using
16708 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16709 otherwise __bswap_constant_32.
16710 (__bswap_constant_64): Reformat definition. Do not use
16711 __extension__ here.
16712 (__bswap_64): Always define as inline function, not macro. Use
16713 __extension__ on function definition. Use __builtin_bswap64 if
16714 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16715 * string/test-endian-file-scope.c: New file.
16716 * string/test-endian-sign-conversion.c: Likewise.
16717 * string/Makefile (headers): Remove bits/byteswap-16.h.
16718 (tests): Add test-endian-file-scope and
16719 test-endian-sign-conversion.
16720 (CFLAGS-test-endian-sign-conversion.c): New variable.
16721 * bits/byteswap-16.h: Remove file.
16722 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16723 * sysdeps/ia64/bits/byteswap.h: Likewise.
16724 * sysdeps/m68k/bits/byteswap.h: Likewise.
16725 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16726 * sysdeps/s390/bits/byteswap.h: Likewise.
16727 * sysdeps/tile/bits/byteswap.h: Likewise.
16728 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16729 * sysdeps/x86/bits/byteswap.h: Likewise.
16730
16731 [BZ #17721]
16732 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16733 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16734 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16735 199901L] (__restrict): Define to restrict.
16736
16737 [BZ #19667]
16738 * string/testcopy.c: Include <support/support.h>. Do not include
16739 <malloc.h>. Use <support/test-driver.c>.
16740 (main): Rename to do_test. Make static. Use xmalloc instead of
16741 malloc.
16742
16743 [BZ #13575]
16744 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16745 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16746 (SSIZE_MAX): Define to INT_MAX.
16747 * posix/test-ssize-max.c: New file.
16748 * posix/Makefile (tests): Add test-ssize-max.
16749
16750 [BZ #19668]
16751 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16752 <support/support.h>. Do not include <malloc.h>.
16753 (query_auxv): Use xmalloc instead of malloc.
16754
16755 [BZ #14553]
16756 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16757 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16758 instead of loff_t.
16759
16760 2018-02-06 Florian Weimer <fweimer@redhat.com>
16761
16762 [BZ #18023]
16763 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16764 Use scratch_buffer instead of extend_alloca.
16765
16766 2018-02-06 Zack Weinberg <zackw@panix.com>
16767
16768 * libio/stdio.h: Don't define getc or putc as macros.
16769 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16770 not _IO_getc and _IO_putc.
16771
16772 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16773 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16774
16775 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16776
16777 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16778 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16779
16780 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16781
16782 [BZ #14890]
16783 * elf/elf.h (NT_PRFPREG): New macro.
16784 (NT_S390_VXRS_LOW): Likewise.
16785 (NT_S390_VXRS_HIGH): Likewise.
16786 (NT_S390_GS_CB): Likewise.
16787 (NT_S390_GS_BC): Likewise.
16788 (NT_S390_RI_CB): Likewise.
16789
16790 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16791 (MAP_SYNC): New macro.
16792 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16793 Likewise.
16794 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16795 (MAP_SYNC): Likewise.
16796 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16797 (MAP_SYNC): Likewise.
16798 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16799 (MAP_SYNC): Likewise.
16800 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16801 (MAP_SYNC): Likewise.
16802 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16803 (MAP_SYNC): Likewise.
16804 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16805 (MAP_SYNC): Likewise.
16806 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16807 Likewise.
16808 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16809 Likewise.
16810
16811 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16812 (MAP_SHARED_VALIDATE): New macro.
16813 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16814 (MAP_SHARED_VALIDATE): Likewise.
16815
16816 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16817
16818 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16819 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16820 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16821
16822 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16823
16824 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16825 (DT_NUM): Updated to 35.
16826
16827 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16828
16829 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16830 __builtin_expect with __glibc_likely and __glibc_unlikely.
16831 (elf_machine_rela): Likewise.
16832 (elf_machine_lazy_rel): Likewise.
16833
16834 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16835
16836 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16837 __builtin_expect with __glibc_likely and __glibc_unlikely.
16838 (elf_machine_lazy_rel): Likewise.
16839
16840 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16841
16842 [BZ #22638]
16843 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16844 SHARED.
16845 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16846
16847 2018-02-05 Andreas Schwab <schwab@suse.de>
16848
16849 [BZ #22761]
16850 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16851 string.
16852
16853 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16854
16855 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16856 not check against PTHREAD_STACK_MIN.
16857
16858 2018-02-02 Sean McKean <smckean83@gmail.com>
16859
16860 [BZ #22735]
16861 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16862
16863 2018-02-02 Florian Weimer <fweimer@redhat.com>
16864
16865 [BZ #22753]
16866 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16867 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16868 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16869 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16870 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16871 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16872 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16873 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16874 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16875 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16876 * misc/tst-preadvwritev2.c (do_test): Call it.
16877 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16878
16879 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16880
16881 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16882
16883 * benchtests/bench-memcmp.c: Print json instead of plain text.
16884
16885 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16886 every test run.
16887
16888 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16889
16890 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16891 version to 4.15.
16892 (s390_sthyi): New syscall.
16893
16894 * sysdeps/generic/ldbl-classify-compat.h: New file.
16895 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16896 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16897 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16898 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16899 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16900 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16901 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16902 <ldbl-classify-compat.h>.
16903 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16904 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16905 <ldbl-classify-compat.h>.
16906 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16907 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16908 <ldbl-classify-compat.h>.
16909 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16910 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16911 <ldbl-classify-compat.h>.
16912 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16913 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16914 <ldbl-classify-compat.h>.
16915 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16916 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16917 <ldbl-classify-compat.h>.
16918 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16919 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16920 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16921 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16922 * sysdeps/microblaze/math_private.h: Likewise.
16923 * sysdeps/nios2/math_private.h: Likewise.
16924 * sysdeps/sh/math_private.h: Likewise.
16925
16926 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16927 * sysdeps/m68k/coldfire/math_private.h: ... here.
16928 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16929 * sysdeps/tile/math_private.h: Likewise.
16930 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16931 Remove macro.
16932 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16933 Likewise.
16934
16935 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16936 Remove macro.
16937 (libc_fetestexcept): Likewise.
16938 (libc_feupdateenv_test): Likewise.
16939 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16940 (libc_fetestexcept): Likewise.
16941 (libc_feupdateenv_test): Likewise.
16942 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16943 (libc_fetestexcept): Likewise.
16944 (libc_feupdateenv_test): Likewise.
16945 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16946 (libc_fetestexcept): Likewise.
16947 (libc_feupdateenv_test): Likewise.
16948
16949 * sysdeps/generic/math_private.h
16950 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16951 New inline function.
16952 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16953 Likewise.
16954
16955 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16956 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16957 * sysdeps/generic/math_private.h
16958 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16959 inline function.
16960 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16961 Likewise.
16962 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16963 Likewise.
16964 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16965 Likewise.
16966 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16967 Likewise.
16968 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16969 Likewise.
16970 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16971 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16972 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16973 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16974 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16975 (__fegetenv): Likewise.
16976 (fesetenv): Likewise.
16977 (__fesetenv): Likewise.
16978 (feupdateenv): Likewise.
16979 (__feupdateenv): Likewise.
16980 (fegetround): Likewise.
16981 (__fegetround): Likewise.
16982 (fesetround): Likewise.
16983 (__fesetround): Likewise.
16984
16985 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16986 (feraiseexcept): New macro.
16987 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16988 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16989 Remove macro.
16990 (__feraiseexcept): Likewise.
16991 (feclearexcept): Likewise.
16992 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16993 (__feraiseexcept): Likewise.
16994 (feclearexcept): Likewise.
16995 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16996 (__feraiseexcept): Likewise.
16997 (feclearexcept): Likewise.
16998 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16999 (__feraiseexcept): Likewise.
17000 (feclearexcept): Likewise.
17001 (fetestexcept): Likewise.
17002
17003 * sysdeps/m68k/coldfire/math-tests.h: New file.
17004
17005 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
17006 * sysdeps/m68k/bits/fenv.h: ... here.
17007 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17008 not define.
17009 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17010 Likewise.
17011 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17012 Likewise.
17013 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17014 Likewise.
17015 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17016 Likewise.
17017 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17018 Define to 0.
17019 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17020 (__FE_UNDEFINED): New enum constant.
17021 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17022 Do not define.
17023 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17024 Likewise.
17025 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17026 Likewise.
17027 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17028 to match generic bits/fenv.h.
17029 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17030 Do not define.
17031
17032 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17033 packed on bits.
17034 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17035 * soft-fp/half.h (union _FP_UNION_H): Likewise.
17036 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17037 * soft-fp/single.h (union _FP_UNION_S): Likewise.
17038
17039 2018-02-01 Carlos O'Donell <carlos@redhat.com>
17040 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
17041 Joseph Myers <joseph@codesourcery.com>
17042
17043 [BZ #21314]
17044 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17045 (__log1p): Disable -Wmaybe-uninitialized for -Os around
17046 computation using c.
17047 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17048 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17049 computation using c.
17050
17051 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17052
17053 * version.h (RELEASE): Set to "development".
17054 (VERSION): Set to "2.27.9000".
17055 * NEWS (2.28): New section.
17056
17057 * version.h (RELEASE): Set to "stable".
17058 (VERSION): Set to "2.27".
17059 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17060
17061 * NEWS: Add the list of bugs fixed in 2.27.
17062
17063 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17064
17065 * stdlib/test-atexit-race-common.c (do_test): Check stack size
17066 against PTHREAD_STACK_MIN.
17067
17068 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17069
17070 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17071 New entries.
17072 (Rafal Luzynski, Andreas Schwab): Update.
17073
17074 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
17075
17076 [BZ #10871]
17077 * NEWS: List the languages which actually use the alternative
17078 months feature in this release. Also explain that "alt_mon" and
17079 "ab_alt_mon" are optional.
17080
17081 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
17082
17083 [BZ #22765]
17084 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17085
17086 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
17087
17088 * manual/install.texi (Tools for Compilation): Update the newest
17089 versions of gcc, binutils, texinfo, gawk, bison, and sed.
17090 * INSTALL: Regenerated.
17091
17092 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17093
17094 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17095 instead of __builtin_expect.
17096
17097 2018-01-30 Florian Weimer <fweimer@redhat.com>
17098
17099 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17100 data.
17101 * nss/tst-nss-getpwent.c (do_test): Likewise.
17102
17103 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
17104
17105 [BZ #10871]
17106 * localedata/locales/hr_HR (mon): Rename to...
17107 (alt_mon): This.
17108 (mon): Import from CLDR (genitive case).
17109 (d_t_fmt): Update the comment.
17110
17111 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
17112
17113 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17114 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17115 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17116
17117 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17118
17119 * mach/Versions: Fix version when __mach_host_self_ was added.
17120 * hurd/Versions: Fix version when _hurd_exec_paths was added.
17121 * sysdeps/mach/hurd/i386/ld.abilist: New file.
17122 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17123 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17124 * sysdeps/mach/hurd/i386/libc.abilist: New file.
17125 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17126 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17127 * sysdeps/mach/hurd/i386/libm.abilist: New file.
17128 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17129 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17130 * sysdeps/mach/hurd/i386/librt.abilist: New file.
17131 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17132 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17133 || to respect codestyle.
17134 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17135 (do_test_bz20181): Rename accordingly.
17136 * malloc/malloc.c: Include <assert.h>.
17137 (assert): Do not define.
17138 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17139 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17140 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17141 * sysdeps/mach/hurd/hp-timing.h: New file.
17142 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17143
17144 2018-01-29 Darius Rad <darius@bluespec.com>
17145
17146 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17147
17148 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17149
17150 * sysdeps/init_array/crti.S (.section .init_array): Add
17151 PREINIT_FUNCTION when defined.
17152 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17153 * config.h.in: Regenerate.
17154 * manual/platform.texi: Add RISC-V documenation for
17155 __riscv_flush_icache.
17156 * sysdeps/riscv/__longjmp.S: New file.
17157 * sysdeps/riscv/backtrace.c: Likewise.
17158 * sysdeps/riscv/bits/endian.h: Likewise.
17159 * sysdeps/riscv/bits/setjmp.h: Likewise.
17160 * sysdeps/riscv/bits/wordsize.h: Likewise.
17161 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17162 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17163 * sysdeps/riscv/dl-trampoline.S: Likewise.
17164 * sysdeps/riscv/gccframe.h: Likewise.
17165 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17166 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17167 * sysdeps/riscv/machine-gmon.h: Likewise.
17168 * sysdeps/riscv/memusage.h: Likewise.
17169 * sysdeps/riscv/setjmp.S: Likewise.
17170 * sysdeps/riscv/sys/asm.h: Likewise.
17171 * sysdeps/riscv/tls-macros.h: Likewise.
17172 * sysdeps/riscv/dl-tls.h: New file.
17173 * sysdeps/riscv/libc-tls.c: Likewise.
17174 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17175 * sysdeps/riscv/nptl/tls.h: Likewise.
17176 * sysdeps/riscv/stackinfo.h: Likewise.
17177 * sysdeps/riscv/bits/fenv.h: New file.
17178 * sysdeps/riscv/e_sqrtl.c: Likewise.
17179 * sysdeps/riscv/fpu_control.h: Likewise.
17180 * sysdeps/riscv/math-tests.h: Likewise.
17181 * sysdeps/riscv/nofpu/Implies: Likewise.
17182 * sysdeps/riscv/sfp-machine.h: Likewise.
17183 * sysdeps/riscv/tininess.h: Likewise.
17184 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17185 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17186 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17187 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17188 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17189 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17190 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17191 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17192 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17193 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17194 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17195 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17196 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17197 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17198 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17199 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17200 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17201 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17202 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17203 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17204 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17205 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17206 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17207 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17208 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17209 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17210 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17211 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17212 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17213 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17214 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17215 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17216 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17217 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17218 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17219 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17220 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17221 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17222 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17223 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17224 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17225 * sysdeps/riscv/rvf/math_private.h: Likewise.
17226 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17227 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17228 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17229 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17230 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17231 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17232 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17233 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17234 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17235 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17236 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17237 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17238 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17239 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17240 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17241 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17242 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17243 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17244 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17245 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17246 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17247 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17248 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17249 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17250 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17251 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17252 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17253 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17254 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17255 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17256 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17257 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17258 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17259 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17260 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17261 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17262 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17263 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17264 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17265 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17266 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17267 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17268 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17269 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17270 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17271 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17272 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17273 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17274 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17275 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17276 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17277 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17278 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17279 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17280 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17281 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17282 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17283 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17284 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17285 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17286 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17287 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17288 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17289 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17290 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17291 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17292 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17293 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17294 * sysdeps/riscv/Implies: New file.
17295 * sysdeps/riscv/Makefile: Likewise.
17296 * sysdeps/riscv/configure: Likewise.
17297 * sysdeps/riscv/configure.ac: Likewise.
17298 * sysdeps/riscv/nptl/Makefile: Likewise.
17299 * sysdeps/riscv/preconfigure: Likewise.
17300 * sysdeps/riscv/rv64/Implies-after: Likewise.
17301 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17302 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17303 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17304 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17305 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17306 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17307 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17308 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17309 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17310 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17311 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17312 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17313 (Config): Likewise.
17314
17315 2018-01-29 Florian Weimer <fweimer@redhat.com>
17316
17317 [BZ #22701]
17318 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17319 libnsl_hidden_proto.
17320 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17321 libnsl_hidden_proto.
17322 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17323 * nis/Makefile (libnsl-routines): Add nss-default only for
17324 build-obsolete-nsl.
17325 * nis/nis_defaults.c (__nis_default_ttl): Add
17326 libnsl_hidden_nolink_def.
17327 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17328 declaration.
17329 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17330 * nis/ypclnt.c (yp_maplist): Likewise.
17331
17332 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17333
17334 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17335 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17336
17337 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17338
17339 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17340 clean -dxfq for git updates when replacing sources.
17341
17342 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17343 --disable-libcilkrts unconditionally, not just for the final GCC
17344 build for Hurd.
17345
17346 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17347 version to 4.15.
17348
17349 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17350
17351 [BZ #10871]
17352 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17353 case).
17354
17355 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17356
17357 [BZ #10871]
17358 * localedata/locales/be_BY (mon): Rename to...
17359 (alt_mon): This, then synchronize with CLDR (nominative case).
17360 (abmon): Rename to...
17361 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17362 (mon): Import from CLDR (genitive case).
17363 (abmon): Likewise.
17364 * localedata/locales/be_BY@latin (mon): Rename to...
17365 (alt_mon): This.
17366 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17367
17368 * localedata/locales/be_BY@latin (lang_name): Reworded to
17369 "biełaruskaja mova".
17370
17371 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17372
17373 [BZ #10871]
17374 * localedata/locales/el_CY (mon): Renamed to...
17375 (alt_mon): This.
17376 (mon): Import from CLDR (genitive case).
17377 * localedata/locales/el_GR: Likewise.
17378
17379 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17380
17381 [BZ #10871]
17382 * localedata/locales/ru_RU (mon): Rename to...
17383 (alt_mon): This.
17384 (abmon): Rename to...
17385 (ab_alt_mon): This.
17386 (mon): Import from CLDR (genitive case).
17387 (abmon): Copy from the old content except the 5th month which is
17388 now in the genitive case, even when abbreviated.
17389 * localedata/locales/ru_UA: Likewise.
17390 * time/tst-strptime.c (day_tests): Add an actual example of
17391 a difference between %b and %Ob in Russian.
17392
17393 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17394
17395 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17396 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17397 a `c' variable.
17398 * resolv/res-close.c: Include <stdlib.h>.
17399 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17400 <sys/wait.h>, <time.h>, <sys/uio.h>.
17401 (NOT_CANCEL_H): Add inclusion guard.
17402 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17403 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17404 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17405 return 0.
17406 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17407 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17408 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17409 instead of void *.
17410 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17411 timer_ptr2id to cast struct timer_node * to void *.
17412 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17413 --disable-libcilkrts to gcc configure.
17414 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17415 and make them the default for now.
17416 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17417 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17418 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17419 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17420 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17421 MACH_IPC_COMPAT.
17422 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17423 __task_terminate would ever return successfully.
17424 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17425 to global scope.
17426 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17427 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17428 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17429 critical section to make code simpler and avoid warning.
17430 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17431 critical section to make code simpler and avoid warning.
17432 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17433 const char * instead of char *.
17434 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17435 __hurd_file_name_split, hurd_file_name_split,
17436 __hurd_directory_name_split, hurd_directory_name_split,
17437 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17438 hurd_file_name_path_lookup): Make lookup function parameter take a
17439 const char *name instead of char *name.
17440 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17441 __hurd_directory_name_split): Likewise.
17442 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17443 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17444 * sysdeps/mach/hurd/check_native.c: New file.
17445 * sysdeps/mach/hurd/check_pf.c: New file.
17446 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17447 (__freeifaddrs): Define macro to freeifaddrs.
17448 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17449 * sysdeps/mach/libmachuser.abilist: New file.
17450 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17451 (do_test_bz20181): Rename accordingly.
17452 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17453 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17454 <sys/mount.h>.
17455 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17456 version only if __USE_EXTERN_INLINES is defined.
17457 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17458 __hurd_sockfail): Likewise.
17459 (_hurd_fd_get): Always declare functions, and provide inline versions
17460 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17461 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17462 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17463 _hurd_port_set): Always declare functions, and provide inline versions
17464 only if __USE_EXTERN_INLINES and _LIBC are defined and
17465 IS_IN(libc).
17466 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17467 _hurd_critical_section_unlock): Likewise.
17468 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17469 * __hurd_threadvar_location): Likewise.
17470 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17471 _hurd_userlink_clear): Likewise.
17472 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17473 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17474 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17475 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17476 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17477 __spin_lock_locked): Likewise.
17478 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17479 __spin_lock_locked): Likewise.
17480 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17481 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17482 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17483 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17484 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17485 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17486 _POSIX_NO_TRUNC): Define to 0.
17487 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17488 check size against PTHREAD_STACK_MIN.
17489 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17490 IS_IN(libpthread)]: Include <sigsetops.h>.
17491 * mach/Makefile (user-interfaces): Add mach/gnumach.
17492 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17493 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17494 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17495 instead of invalid -1.
17496 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17497 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17498 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17499 <net/ppp_defs.h>.
17500
17501 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17502
17503 * hurd/fcntl-internal.h: New file.
17504
17505 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17506
17507 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17508
17509 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17510
17511 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17512
17513 [BZ #22701]
17514 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17515 Build only shared objects.
17516
17517 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17518
17519 * README: Update for hppa.
17520
17521 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17522
17523 * sysdeps/sparc/fpu/libm-test-ulps: Update
17524 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17525
17526 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17527
17528 Revert:
17529
17530 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17531
17532 [BZ #22563]
17533 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17534 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17535 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17536 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17537 to feature_1.
17538
17539 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17540
17541 [BZ #22563]
17542 * bits/types/__cancel_jmp_buf_tag.h: New file.
17543 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17544 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17545 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17546 * nptl/Makefile (headers): Add
17547 bits/types/__cancel_jmp_buf_tag.h.
17548 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17549 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17550 * sysdeps/nptl/pthread.h: Include
17551 <bits/types/__cancel_jmp_buf_tag.h>.
17552 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17553 __cancel_jmp_buf.
17554 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17555
17556 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17557
17558 [BZ #10871]
17559 * localedata/locales/uk_UA (mon): Renamed to...
17560 (alt_mon): This.
17561 (alt_digits): "0" removed and then renamed to...
17562 (mon): This.
17563 (date_fmt): Definition changed not to use the alternative
17564 digits hack.
17565
17566 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17567
17568 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17569 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17570 * elf/elf.h (EF_RISCV_RVC): New define.
17571 (EF_RISCV_FLOAT_ABI): Likewise.
17572 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17573 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17574 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17575 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17576 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17577 define.
17578 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17579
17580 2018-01-25 Andreas Schwab <schwab@suse.de>
17581
17582 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17583 single quotes.
17584 * sysdeps/gnu/configure: Regenerate.
17585 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17586 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17588 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17589 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17590 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17591 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17592 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17593
17594 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17595
17596 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17597 URL, and run autoconf, make it the default for now.
17598
17599 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17600
17601 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17602 soft-float ColdFire configuration.
17603
17604 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17605 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17606 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17607
17608 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17609 MicroBlaze file.
17610
17611 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17612 ....
17613 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17614 ... here.
17615 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17616 New file.
17617
17618 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17619 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17620 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17621 file.
17622
17623 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17624
17625 [BZ #22742]
17626 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17627 Rename to __reserved and add comment.
17628 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17629 Rename to __reserved.
17630
17631 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17632
17633 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17634 i686-gnu configurations.
17635 (Context.run_builds): Include mig, gnumach and hurd in components
17636 considered.
17637 (Context.checkout): Add mig, gnumach and hurd to components.
17638 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17639 hurd.
17640 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17641 (Config.build): Install gnumach headers, build mig and install
17642 hurd headers for 'gnu' OS.
17643 (Config.install_gnumach_headers): New function.
17644 (Config.install_hurd_headers): Likewise.
17645 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17646 when building for 'gnu' OS.
17647
17648 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17649
17650 * manual/tunables.texi (Hardware Capability Tunables): Fix
17651 spelling.
17652
17653 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17654
17655 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17656 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17657 (ALTMON_11, ALTMON_12): Improve documentation.
17658 * manual/time.texi (strftime): Likewise.
17659
17660 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17661
17662 [BZ #10871]
17663 * localedata/locales/pl_PL: Alternative month names added,
17664 primary month names are genitive now.
17665 * time/tst-strptime.c (day_tests): Actually use a genitive case
17666 of a month name in Polish language.
17667
17668 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17669
17670 [BZ #10871]
17671 * manual/locale.texi: Document ALTMON_1..12 constants for
17672 nl_langinfo. Specify when to use ALTMON instead of MON.
17673 * manual/time.texi (strftime, strptime): Document GNU extension
17674 permitting O modifier with %B and %b. Specify when to use
17675 %OB instead of %B.
17676
17677 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17678
17679 [BZ #10871]
17680 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17681 names, define them as the same as abbreviated month names explicitly.
17682 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17683 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17684 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17685 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17686 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17687 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17688 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17689 _NL_WABALTMON_12): New enum constants.
17690 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17691 wab_alt_mon, and ab_alt_mon_defined members.
17692 (time_output): Output ab_alt_mon and wab_alt_mon members.
17693 (time_read): Read them, initialize them as copies of abmon and wabmon
17694 respectively if they are missing, initialize ab_alt_mon_defined.
17695 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17696 * locale/programs/locfile-kw.h: Regenerate.
17697 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17698 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17699 and ru_RU.UTF-8.
17700 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17701 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17702 (__strftime_internal): Handle %Ob and %Oh formats.
17703 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17704 (__strptime_internal): Handle %Ob and %Oh formats.
17705 * time/tst-strptime.c (day_tests): Add more tests to parse different
17706 forms of month names including the new %Ob format specifier.
17707
17708 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17709
17710 [BZ #10871]
17711 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17712 define them as the same as primary full month names explicitly.
17713 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17714 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17715 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17716 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17717 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17718 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17719 _NL_WALTMON_12): New enum constants.
17720 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17721 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17722 macros.
17723 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17724 walt_mon, and alt_mon_defined members.
17725 (time_output): Output alt_mon and walt_mon members.
17726 (time_read): Read them, initialize them as copies of mon and wmon
17727 respectively if they are missing, initialize alt_mon_defined.
17728 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17729 * locale/programs/locfile-kw.h: Regenerate.
17730 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17731 * localedata/tst-langinfo.c (map): Add tests for the new constants
17732 ALTMON_1 .. ALTMON_12.
17733 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17734 and pl_PL.UTF-8.
17735 * time/strftime_l.c (f_altmonth): New macro.
17736 (__strftime_internal): Handle %OB format.
17737 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17738 (__strptime_internal): Handle %OB format.
17739 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17740 of month names including the new %OB format specifier.
17741
17742 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17743
17744 [BZ #22685]
17745 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17746 from ABORT_TRANSACTION.
17747 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17748 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17749 ABORT_TRANSACTION_IMPL): Likewise.
17750 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17751 Linux code, but remove the code that aborts transactions.
17752
17753 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17754
17755 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17756
17757 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17758
17759 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17760 in date: "2004-14-09" should be "2004-09-14".
17761 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17762 "2003-15-09" should be "2003-09-15".
17763
17764 2018-01-18 Arjun Shankar <arjun@redhat.com>
17765
17766 [BZ #22343]
17767 [BZ #22774]
17768 CVE-2018-6485
17769 CVE-2018-6551
17770 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17771 after padding.
17772 (_int_memalign): check for integer overflow before calling
17773 _int_malloc.
17774 * malloc/tst-malloc-too-large.c: New test.
17775 * malloc/Makefile: Add tst-malloc-too-large.
17776
17777 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17778
17779 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17780 in date: "2017-24-07" should be "2017-07-24".
17781 * localedata/locales/mai_IN: Likewise.
17782 * localedata/locales/mai_NP: Likewise.
17783
17784 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17785
17786 * po/ru.po: Update translations.
17787
17788 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17789
17790 [BZ #22719]
17791 * sysdeps/hppa/backtrace.c: New file.
17792
17793 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17794
17795 [BZ #22715]
17796 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17797 align La_x86_64_retval to VEC_SIZE.
17798
17799 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17800
17801 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17802 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17803
17804 2018-01-16 Florian Weimer <fweimer@redhat.com>
17805
17806 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17807 Move tst-thread-exit-clobber ...
17808 [$(CXX)] (tests-unsupported): ... to here.
17809
17810 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17811
17812 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17813 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17814 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17815 (_dl_aarch64_cap_flags): Update.
17816 (_DL_HWCAP_COUNT): Update.
17817
17818 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17819
17820 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17821 (_DL_HWCAP_LAST): Remove.
17822 (_DL_HWCAP_COUNT): Move to ...
17823 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17824 (_DL_HWCAP_COUNT): ... here.
17825
17826 2018-01-16 Florian Weimer <fweimer@redhat.com>
17827
17828 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17829 mode with GNU extensions.
17830
17831 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17832
17833 * elf/elf.h (NT_ARM_SVE): Define.
17834
17835 2018-01-15 Florian Weimer <fweimer@redhat.com>
17836
17837 [BZ #22636]
17838 * nptl/tst-minstack-throw.cc: New file.
17839 * nptl/Makefile (tests): Add tst-minstack-throw.
17840 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17841 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17842
17843 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17844
17845 * scripts/build-many-glibcs.py (Context.checkout): Default
17846 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17847 version to 1.1.0.
17848
17849 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17850
17851 [BZ #22707]
17852 * elf/elf.h (DF_1_STUB): Define.
17853 (DF_1_PIE): Define.
17854
17855 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17856
17857 [BZ #22697]
17858 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17859 Do not add 0.5 to integer or out-of-range arguments.
17860
17861 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17862
17863 * po/bg.po: Update translations.
17864 * po/cs.po: Likewise.
17865 * po/de.po: Likewise.
17866 * po/ko.po: Likewise.
17867 * po/pl.po: Likewise.
17868 * po/sv.po: Likewise.
17869 * po/uk.po: Likewise.
17870 * po/vi.po: Likewise.
17871
17872 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17873
17874 * aarch64/start.S (_start): Use __wrap_main.
17875 (__wrap_main): New local symbol.
17876
17877 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17878
17879 [BZ #22679]
17880 CVE-2018-1000001
17881 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17882 generic_getcwd if the path returned by getcwd syscall is not absolute.
17883 * io/tst-getcwd-abspath.c: New test.
17884 * io/Makefile (tests): Add tst-getcwd-abspath.
17885
17886 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17887
17888 * malloc/malloc.c (malloc_consolidate): Add size check.
17889
17890 2018-01-12 Florian Weimer <fweimer@redhat.com>
17891
17892 * support/write_message.c (write_message): Preserve errno.
17893 * support/check.c (print_failure): Likewise.
17894 * support/support_test_verify_impl.c (support_test_verify_impl):
17895 Likewise.
17896 * support/support_test_compare_failure.c
17897 (support_test_compare_failure): Likewise.
17898
17899 2018-01-12 Florian Weimer <fweimer@redhat.com>
17900
17901 [BZ #22701]
17902 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17903 Prevent installation of libnsl.so.
17904 (libnsl-inhibit-o): Do not build (or install) static libraries.
17905
17906 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17907
17908 [BZ #22657]
17909 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17910 before the day number which may produce a double space.
17911 (date_fmt): Likewise.
17912
17913 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17914
17915 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17916 instead of fegetenv.
17917
17918 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17919
17920 [BZ #22702]
17921 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17922 comment to say exceptions are discarded.
17923 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17924 __fegetenv.
17925 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17926 be enabled.
17927
17928 2018-01-11 Florian Weimer <fweimer@redhat.com>
17929
17930 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17931 and error message.
17932
17933 2018-01-11 Florian Weimer <fweimer@redhat.com>
17934
17935 [BZ #22636]
17936 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17937 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17938
17939 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17940
17941 [BZ #22693]
17942 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17943 negative arguments in test for NaN or infinity argument.
17944
17945 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17946
17947 * po/libc.pot: Regenerate.
17948
17949 2018-01-10 Florian Weimer <fweimer@redhat.com>
17950
17951 [BZ #22636]
17952 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17953 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17954
17955 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17956
17957 * hurd/hurd/fd.h: Include <fcntl.h>
17958 (__hurd_at_flags): New function.
17959 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17960 with call to __hurd_at_flags.
17961 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17962 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17963 __faccessat
17964 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17965 (__access_noerrno): Use __faccessat_common instead of access_common.
17966 (__access): Likewise.
17967 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17968 with a call to __faccessat.
17969 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17970 (__faccessat_common): ... this. Move implementation of __access into it when
17971 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17972 reauthenticate_cwdir_at helper to implement AT mechanism.
17973 (__faccessat_noerrno): New function, just calls __faccessat_common.
17974 (__faccessat): New function, just calls __faccessat_common.
17975 (faccessat): Define weak alias.
17976
17977 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17978
17979 [BZ #22691]
17980 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17981 (CFLAGS-s_fmaxmagl.c): New variable.
17982 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17983
17984 [BZ #22690]
17985 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17986 long int for arguments of possibly overflowing addition or
17987 subtraction.
17988 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17989
17990 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17991
17992 [BZ #22688]
17993 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17994 (CFLAGS-e_remainderl.c): New variable.
17995
17996 [BZ #22687]
17997 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17998 variable.
17999 (CFLAGS-s_cacoshl.c): Likewise.
18000 (CFLAGS-s_casinhl.c): Likewise.
18001 (CFLAGS-s_catanl.c): Likewise.
18002 (CFLAGS-s_catanhl.c): Likewise.
18003 (CFLAGS-s_cexpl.c): Likewise.
18004 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
18005 (CFLAGS-s_csinhl.c): Likewise.
18006 (CFLAGS-s_clogl.c): Likewise.
18007 (CFLAGS-s_clog10l.c): Likewise.
18008 (CFLAGS-s_csinl.c): Likewise.
18009 (CFLAGS-s_csqrtl.c): Likewise.
18010
18011 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
18012 2017-01-09 Svante Signell <svante.signell@gmail.com>
18013
18014 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18015 (_hurd_exec_paths): New function.
18016 * hurd/hurd.h (_hurd_exec): Deprecate function.
18017 (_hurd_exec_paths): Declare function.
18018 * hurd/Versions: Export _hurd_exec_paths.
18019 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18020 (__execve): Use __getcwd to build absolute path, and use
18021 _hurd_exec_paths instead of _hurd_exec.
18022 * sysdeps/mach/hurd/spawni.c: Likewise.
18023 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18024 _hurd_exec.
18025
18026 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
18027
18028 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18029 test instead of failing in case of ENOENT returned by posix_openpt.
18030
18031 2018-01-08 Florian Weimer <fweimer@redhat.com>
18032
18033 resolv: Support binary labels in test framework.
18034 * support/resolv_test.c (struct to_be_freed): Remove.
18035 (struct compressed_name): New.
18036 (allocate_compressed_name, ascii_tolower)
18037 (compare_compressed_name): New functions.
18038 (struct resolv_response_builder): Update type of
18039 compression_offsets for use with tsearch. Rempve to_be_freed.
18040 (response_push_pointer_to_free): Remove function.
18041 (resolv_response_add_name): Rewrite using struct compressed_name
18042 and tsearch instead of hsearch_r.
18043 (response_builder_allocate): Remove initialization of
18044 compression_offsets.
18045 (response_builder_free): Update for removal of to_be_freed. Use
18046 tdestroy instead of hdestroy_r.
18047 * resolv/Makefile (tests): Add tst-resolv-binary.
18048 (tst-resolv-binary): Link with -lresolv -lpthread.
18049
18050 2018-01-08 Florian Weimer <fweimer@redhat.com>
18051
18052 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18053 time. Pass positive flag instead of negative flag to
18054 support_test_compare_failure.
18055 (support_test_compare_failure): Change negative parameter to
18056 positive.
18057 * support/support_test_compare_failure.c (report)
18058 (support_test_compare_failure): Likewise.
18059 * support/tst-test_compare.c (return_ssize_t, return_int): New.
18060 (do_test): Check int/size_t, ssize_t/size_t comparisons.
18061
18062 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18063
18064 [BZ #22637]
18065 * nptl/descr.h (stackblock, stackblock_size): Update comments.
18066 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18067 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18068 stacksize.
18069 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18070
18071 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
18072
18073 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18074 Add s_sincosf-sse2 and s_sincosf-fma.
18075 (CFLAGS-s_sincosf-fma.c): New.
18076 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18077 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18078 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18079 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18080 __sincosf is defined.
18081
18082 2018-01-08 Florian Weimer <fweimer@redhat.com>
18083
18084 * nptl/tst-thread-exit-clobber.cc: New file.
18085 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18086 C++11 mode.
18087 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18088 (tests): Add tst-thread-exit-clobber.
18089 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18090
18091 2018-01-08 Florian Weimer <fweimer@redhat.com>
18092
18093 * support/check.h (support_static_assert): Define.
18094 (TEST_COMPARE): Use it.
18095
18096 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
18097
18098 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18099 [!__RLIM_T_MATCHES_RLIM64_T]
18100 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18101 __getrlimit64. Add libc_hidden_weak.
18102
18103 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
18104
18105 * elf/elf.h (R_RISCV_NONE): New define.
18106 (R_RISCV_32): Likewise.
18107 (R_RISCV_64): Likewise.
18108 (R_RISCV_RELATIVE): Likewise.
18109 (R_RISCV_COPY): Likewise.
18110 (R_RISCV_JUMP_SLOT): Likewise.
18111 (R_RISCV_TLS_DTPMOD32): Likewise.
18112 (R_RISCV_TLS_DTPMOD64): Likewise.
18113 (R_RISCV_TLS_DTPREL32): Likewise.
18114 (R_RISCV_TLS_DTPREL64): Likewise.
18115 (R_RISCV_TLS_TPREL32): Likewise.
18116 (R_RISCV_TLS_TPREL64): Likewise.
18117 * Makerules (make-link-multidir): Make directories before linking into
18118 them.
18119 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18120 define.
18121 (VDSO_HASH_LINUX_4_15): Likewise.
18122 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18123 in subdirectories of lib.
18124 * nptl/Makefile (/librt.so): Always depend on
18125 "$(shared-thread-library)".
18126
18127 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18128
18129 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18130 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18131 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18132 (___tls_get_addr).
18133 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18134 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18135 "-O2 -march=i686".
18136 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18137 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18138 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18139 * sysdeps/gnu/glob-lstat-compat.c: New file.
18140 * sysdeps/gnu/glob64-lstat-compat.c: New file.
18141 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18142
18143 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18144
18145 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18146 Reserve 16 chars to reloc_addr before calling _itoa_word.
18147
18148 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18149
18150 [BZ #22678]
18151 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18152 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18153
18154 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18155 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18156
18157 * resource/tst-getrlimit.c: Add copyright header.
18158
18159 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18160 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18161
18162 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18163 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18164 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18165 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18166 instead.
18167 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18168 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18169 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18170 RLIM64_INFINITY): Fix values to match the kernel ones.
18171 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18172 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18173 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18174 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18175 getrlimit64@@GLIBC_2_27.
18176 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18177 and setrlimit64.
18178 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18179 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18180 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18181 setrlimit, getrlimit64 and setrlimit64.
18182
18183 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18184
18185 [BZ #22648]
18186 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18187 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18188
18189 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18190
18191 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18192 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18193 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18194
18195 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18196
18197 [BZ #15479]
18198 [BZ #22666]
18199 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18200 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18201
18202 [BZ #15479]
18203 [BZ #22665]
18204 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18205 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18206 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18207 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18208
18209 2018-01-04 Florian Weimer <fweimer@redhat.com>
18210
18211 [BZ #22667]
18212 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18213 Align the stack before calling exit.
18214 * stdlib/tst-makecontext-align.c: New file.
18215 * stdlib/Makefile (tests): Add tst-makecontext-align.
18216
18217 2018-01-04 Florian Weimer <fweimer@redhat.com>
18218
18219 Add support for calling dlvsym from libc.so.
18220 * include/dlfcn.h (__libc_dlvsym): Declare.
18221 * elf/Makefile (tests-static-internal): Add
18222 tst-libc_dlvsym-static.
18223 (tests-internal): Add tst-libc_dlvsym.
18224 (modules-names): Add tst-libc_dlvsym-dso.
18225 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18226 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18227 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18228 object tst-libc_dlvsym-dso.so needs to be built before running
18229 these tests.
18230 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18231 * elf/Versions: Export __libc_dlvsym.
18232 * elf/dl-libc.c (struct do_dlvsym_args): New.
18233 (do_dlvsym, __libc_dlvsym): New functions.
18234 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18235 (_dl_open_hook2): New variable.
18236 (__libc_register_dl_open_hook): Set it.
18237 * elf/tst-libc_dlvsym-dso.c: New file.
18238 * elf/tst-libc_dlvsym-static.c: Likewise.
18239 * elf/tst-libc_dlvsym.c: Likewise.
18240 * elf/tst-libc_dlvsym.h: Likewise.
18241
18242 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18243
18244 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18245 include <sys/mount.h>.
18246
18247 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18248
18249 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18250 Add __NO_MATH_ERRNO__ check.
18251
18252 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18253
18254 * sysdeps/mips/mips32/libm-test-ulps: Update.
18255 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18256
18257 2018-01-02 Florian Weimer <fweimer@redhat.com>
18258
18259 * misc/tst-pselect.c: Add copyright header.
18260
18261 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18262
18263 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18264 comment.
18265 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18266 comment.
18267 (settrlimit): Rename into setrlimit.
18268 (__sttrlimit): Rename into __setrlimit.
18269
18270 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18271 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18272 never defined in that case.
18273
18274 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18275
18276 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18277
18278 * sysdeps/arm/libm-test-ulps: Update.
18279
18280 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18281 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18282
18283 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18284
18285 * NEWS: Add cosf and sincosf to list of optimized functions.
18286
18287 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18288
18289 [BZ #22660]
18290 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18291 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18292 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18293 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18294
18295 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18296
18297 [BZ #22433]
18298 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18299
18300 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18301 making a copy of it.
18302
18303 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18304
18305 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18306 trailing whitespace removed.
18307 * scripts/config.guess: Update to version 2018-01-01.
18308 * scripts/config.sub: Update to version 2018-01-01.
18309 * scripts/move-if-change: Update from gnulib.
18310
18311 * NEWS: Update copyright dates.
18312 * catgets/gencat.c (print_version): Likewise.
18313 * csu/version.c (banner): Likewise.
18314 * debug/catchsegv.sh: Likewise.
18315 * debug/pcprofiledump.c (print_version): Likewise.
18316 * debug/xtrace.sh (do_version): Likewise.
18317 * elf/ldconfig.c (print_version): Likewise.
18318 * elf/ldd.bash.in: Likewise.
18319 * elf/pldd.c (print_version): Likewise.
18320 * elf/sotruss.sh: Likewise.
18321 * elf/sprof.c (print_version): Likewise.
18322 * iconv/iconv_prog.c (print_version): Likewise.
18323 * iconv/iconvconfig.c (print_version): Likewise.
18324 * locale/programs/locale.c (print_version): Likewise.
18325 * locale/programs/localedef.c (print_version): Likewise.
18326 * login/programs/pt_chown.c (print_version): Likewise.
18327 * malloc/memusage.sh (do_version): Likewise.
18328 * malloc/memusagestat.c (print_version): Likewise.
18329 * malloc/mtrace.pl: Likewise.
18330 * manual/libc.texinfo: Likewise.
18331 * nptl/version.c (banner): Likewise.
18332 * nscd/nscd.c (print_version): Likewise.
18333 * nss/getent.c (print_version): Likewise.
18334 * nss/makedb.c (print_version): Likewise.
18335 * posix/getconf.c (main): Likewise.
18336 * scripts/test-installation.pl: Likewise.
18337 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18338
18339 * All files with FSF copyright notices: Update copyright dates
18340 using scripts/update-copyrights.
18341 * locale/programs/charmap-kw.h: Regenerated.
18342 * locale/programs/locfile-kw.h: Likewise.
18343
18344 2017-12-31 Zack Weinberg <zackw@panix.com>
18345
18346 * libio/bits/libio-ldbl.h: Correct check for improper
18347 inclusion. Add own multiple include guard.
18348
18349 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18350 Dmitry V. Levin <ldv@altlinux.org>
18351
18352 [BZ #22625]
18353 CVE-2017-16997
18354 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18355 string token expansion. Check for NULL pointer or empty string possibly
18356 returned by expand_dynamic_string_token.
18357 (decompose_rpath): Check for empty path after dynamic string
18358 token expansion.
18359
18360 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18361
18362 [BZ #22433]
18363 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18364
18365 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18366 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18367 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18368 and PTRACE_SYSCALL.
18369 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18370 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18371 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18372 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18373 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18374 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18375
18376 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18377 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18378 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18379 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18380 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18381 bits/ptrace-shared.h.
18382 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18383 <bits/ptrace-shared.h>.
18384 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18385 __ptrace_peeksiginfo_flags, ptrace): Remove.
18386 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18387 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18388 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18389 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18390 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18391
18392 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18393
18394 [BZ #17804]
18395 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18396 end of the loop. Improve comments.
18397
18398 2017-12-29 Zack Weinberg <zackw@panix.com>
18399
18400 [BZ #22615]
18401 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18402 might be set on success.
18403
18404 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18405
18406 [BZ #22611]
18407 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18408 is unchanged on success.
18409
18410 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18411
18412 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18413 updated.
18414 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18415 expand_dynamic_string_token): Likewise.
18416 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18417 is_path argument.
18418
18419 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18420 contains ':'.
18421
18422 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18423 is set and name contains ':', and all code depending on these checks.
18424
18425 2017-12-24 Zack Weinberg <zackw@panix.com>
18426
18427 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18428 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18429 respectively.
18430 * libio/libio.h: Rename the original version of this file to
18431 libio/bits/libio.h. Error out if not included by stdio.h or the
18432 stub libio.h.
18433 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18434 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18435 if not included by bits/libio.h or the stub _G_config.h.
18436 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18437 sysdeps/unix/sysv/linux/bits. Error out if not included by
18438 bits/libio.h or the stub _G_config.h.
18439 * libio/stdio.h: Include bits/libio.h, not libio.h.
18440 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18441 well as libio.h and _G_config.h.
18442
18443 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18444 * libio/strfile.h, stdio-common/vfscanf.c
18445 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18446 Include stdio.h, not _G_config.h nor libio.h.
18447 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18448 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18449
18450 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18451
18452 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18453
18454 [BZ #22347]
18455 * stdlib/getrandom.c (getrandom): Fix comment.
18456 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18457
18458 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18459
18460 [BZ #21161]
18461 * manual/arith.texi (strtoul): Fix a typo.
18462
18463 [BZ #22596]
18464 * manual/arith.texi (finite): Fix the description of the return
18465 value.
18466
18467 2017-12-22 Eric Blake <ebb9@byu.net>
18468
18469 Avoid gcc warnings on cygwin
18470 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18471 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18472 Avoid unused variable.
18473
18474 2017-12-22 Florian Weimer <fweimer@redhat.com>
18475
18476 * io/Makefile (routines): Add copy_file_range.
18477 (tests): Add tst-copy_file_range.
18478 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18479 * io/Versions (GLIBC_2.27): Export copy_file_range.
18480 * io/copy_file_range-compat.c: New file.
18481 * io/copy_file_range.c: Likewise.
18482 * io/tst-copy_file_range-compat.c: Likewise.
18483 * io/tst-copy_file_range.c: Likewise.
18484 * manual/llio.texi (Copying File Data): New section.
18485 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18486 * support/Makefile (libsupport-routines): Add support-xfstat,
18487 xftruncate, xlseek.
18488 * support/support-xfstat.c: New file.
18489 * support/xftruncate.c: Likewise.
18490 * support/xlseek.c: Likewise.
18491 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18492 * sysdeps/unix/sysv/linux/**.abilist: Update.
18493 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18494
18495 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18496
18497 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18498 disable-multi-arch variant to aarch64-linux-gnu.
18499
18500 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18501
18502 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18503 trailing whitespace removed.
18504 * scripts/config.guess: Update to version 2017-12-17.
18505 * scripts/config.sub: Update to version 2017-11-23.
18506 * scripts/install-sh: Update to version 2017-09-23.17.
18507 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18508
18509 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18510
18511 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18512 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18513 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18514 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18515 * sysdeps/tile/crtn.S: Likewise.
18516 * sysdeps/tile/dl-start.S (_start): Likewise.
18517 * sysdeps/tile/dl-trampoline.S: Likewise.
18518 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18519 * sysdeps/tile/start.S (_start): Likewise.
18520 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18521 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18522 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18523 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18524 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18525 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18526 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18527
18528 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18529 comment.
18530 * sysdeps/tile/preconfigure: Remove tilegx folder.
18531 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18532 * sysdeps/tile/Implies: ... here.
18533 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18534 * sysdeps/tile/Makefile: ... here.
18535 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18536 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18537 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18538 * sysdeps/tile/bits/wordsize.h: ... here.
18539 * sysdeps/tile/tilegx/*: Move to ...
18540 * sysdeps/tile/*: ... here.
18541 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18542 * sysdeps/tile/tilegx32/Implies: ... here.
18543 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18544 * sysdeps/tile/tilegx64/Implies: ... here.
18545 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18546 to ...
18547 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18548 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18549 * sysdeps/unix/sysv/linux/tile/*: ... here.
18550 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18551 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18552 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18553 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18554
18555 * README: Remove tilepro-*-linux-gnu from supported architecture.
18556 * scripts/build-many-glibcs.py: Likewise.
18557 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18558 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18559 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18560 elf_machine_matches_host, elf_machine_dynamic,
18561 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18562 howto, elf_machine_rela): Likewise.
18563 * sysdeps/tile/dl-start.S (_start): Likewise.
18564 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18565 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18566 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18567 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18568 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18569 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18570 Likewise.
18571 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18572 * sysdeps/tile/preconfigure: Likewise.
18573 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18574 POINTER_CHK_GUARD): Likewise.
18575 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18576 * sysdeps/tile/start.S (_start): Likewise.
18577 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18578 Likewise.
18579 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18580 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18581 CMOVNEZ): Remove.
18582 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18583 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18584 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18585 Likewise.
18586 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18587 * sysdeps/tile/tilepro/Implies: Remove file.
18588 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18589 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18590 * sysdeps/tile/tilepro/memchr.c: Likewise.
18591 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18592 * sysdeps/tile/tilepro/memset.c: Likewise.
18593 * sysdeps/tile/tilepro/memusage.h: Likewise.
18594 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18595 * sysdeps/tile/tilepro/strchr.c: Likewise.
18596 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18597 * sysdeps/tile/tilepro/strlen.c: Likewise.
18598 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18599 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18600 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18601 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18602 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18603 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18604 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18605 Likewise.
18606 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18607 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18608 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18609 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18610 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18611 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18612 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18613 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18614 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18615 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18616 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18617 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18618 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18619 tilepro mention in comment.
18620
18621 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18622 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18623 * nptl/pthread_join_common.c: New file: common function used on
18624 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18625 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18626 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18627 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18628 (cleanup): Move definition to pthread_join_common.c.
18629 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18630 Remove superflous checks.
18631 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18632 Likewise.
18633
18634 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18635
18636 * sysdeps/aarch64/libm-test-ulps: Update.
18637
18638 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18639
18640 * sysdeps/aarch64/memset.S (MEMSET): Define.
18641
18642 2017-12-20 Florian Weimer <fweimer@redhat.com>
18643
18644 [BZ #22635]
18645 nptl: Provide full implementation of pthread_self in libc.so.
18646 * nptl/Makefile (routines): Add pthread_self.
18647 (libpthread-routines): Replace pthread_self with
18648 compat-pthread_self.
18649 * nptl/forward.c (pthread_self): Remove.
18650 * nptl/nptl-init.c (pthread_functions): Do not initialize
18651 ptr_pthread_self.
18652 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18653 * nptl/compat-pthread_self.c: New file.
18654 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18655 Remove ptr_pthread_self.
18656
18657 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18658
18659 * posix/regcomp.c: Fix spelling in comments.
18660 * posix/regex.h: Likewise.
18661 * posix/regex_internal.c: Likewise.
18662 * posix/regexec.c: Likewise.
18663
18664 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18665
18666 [BZ #22377]
18667 * math/Makefile [C++] (tests): Add test for iseqsig.
18668 * math/math.h [C++] (iseqsig): New implementation, which does
18669 not rely on __MATH_TG/__builtin_types_compatible_p.
18670 * math/test-math-iseqsig.cc: New file.
18671 * sysdeps/powerpc/powerpc64le/Makefile
18672 (CFLAGS-test-math-iseqsig.cc): New variable.
18673
18674 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18675
18676 * elf/dl-load.c (is_trusted_path): Remove.
18677 (fillin_rpath): Remove check_trusted argument and its use,
18678 all callers changed.
18679
18680 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18681
18682 [BZ #22630]
18683 * Makeconfig (link-pie-before-libc): Replace -pie with
18684 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18685 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18686 (tst-dlopen-aout-no-pie): New.
18687 (LDFLAGS-tst-prelink): Removed.
18688 (tst-prelink-no-pie): New.
18689 (LDFLAGS-tst-main1): Removed.
18690 (tst-main1-no-pie): New.
18691 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18692 (tst-gmon-no-pie): New.
18693
18694 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18695
18696 * manual/install.texi: Document that --enable-static-pie
18697 implies PIE.
18698 * INSTALL: Regenerated.
18699
18700 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18701
18702 [BZ #21309]
18703 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18704 unsigned.
18705
18706 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18707
18708 Revert:
18709
18710 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18711
18712 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18713
18714 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18715
18716 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18717 <errno.h>. Include "eexp.tbl".
18718 (half): New constant.
18719 (one): Likewise.
18720 (__ieee754_exp): Rewrite.
18721 (__slowexp): Remove prototype.
18722 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18723 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18724 * sysdeps/i386/fpu/slowexp.c: Likewise.
18725 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18726 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18727 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18728 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18729 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18730 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18731 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18732 comment.
18733 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18734 (CPPFLAGS-slowexp.c): Remove variable.
18735 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18736 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18737 (CFLAGS-slowexp-fma.c): Remove variable.
18738 (CFLAGS-slowexp-fma4.c): Likewise.
18739 (CFLAGS-slowexp-avx.c): Likewise.
18740 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18741 define as macro.
18742 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18743 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18744 * math/Makefile (type-double-routines): Remove slowexp.
18745 * manual/probes.texi (slowexp_p6): Remove.
18746 (slowexp_p32): Likewise.
18747
18748 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18749
18750 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18751 arithmetic.
18752
18753 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18754
18755 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18756
18757 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18758
18759 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18760
18761 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18762 <errno.h>. Include "eexp.tbl".
18763 (half): New constant.
18764 (one): Likewise.
18765 (__ieee754_exp): Rewrite.
18766 (__slowexp): Remove prototype.
18767 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18768 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18769 * sysdeps/i386/fpu/slowexp.c: Likewise.
18770 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18771 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18772 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18773 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18774 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18775 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18776 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18777 comment.
18778 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18779 (CPPFLAGS-slowexp.c): Remove variable.
18780 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18781 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18782 (CFLAGS-slowexp-fma.c): Remove variable.
18783 (CFLAGS-slowexp-fma4.c): Likewise.
18784 (CFLAGS-slowexp-avx.c): Likewise.
18785 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18786 define as macro.
18787 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18788 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18789 * math/Makefile (type-double-routines): Remove slowexp.
18790 * manual/probes.texi (slowexp_p6): Remove.
18791 (slowexp_p32): Likewise.
18792
18793 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18794 James Clarke <jrtc27@jrtc27.com>
18795
18796 [BZ #22603]
18797 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18798 addition.
18799
18800 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18801
18802 [BZ #22605]
18803 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18804 code.
18805
18806 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18807
18808 [BZ #22563]
18809 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18810 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18811 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18812 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18813 to feature_1.
18814
18815 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18816
18817 [BZ #22563]
18818 * bits/types/__cancel_jmp_buf_tag.h: New file.
18819 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18820 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18821 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18822 * nptl/Makefile (headers): Add
18823 bits/types/__cancel_jmp_buf_tag.h.
18824 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18825 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18826 * sysdeps/nptl/pthread.h: Include
18827 <bits/types/__cancel_jmp_buf_tag.h>.
18828 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18829 __cancel_jmp_buf.
18830 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18831
18832 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18833
18834 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18835 --enable-static-pie variants to x86_64, x32 and i686.
18836
18837 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18838
18839 [BZ #22631]
18840 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18841 argument for attrubutes. All callers changed.
18842 (__inline_mathop1): Likewise. All callers changed.
18843 (__inline_mathop): Likewise. All callers changed.
18844 [__USE_MISC] (scalbn): Use __inline_forward instead of
18845 __inline_forward_c.
18846 [__USE_ISOC99] (scalbln): Likewise.
18847 [__USE_ISOC99] (nearbyint): Likewise.
18848 [__USE_ISOC99] (lrint): Likewise.
18849 [__USE_MISC] (scalbnf): Likewise.
18850 [__USE_ISOC99] (scalblnf): Likewise.
18851 [__USE_ISOC99] (nearbyintf): Likewise.
18852 [__USE_ISOC99] (lrintf): Likewise.
18853 [__USE_MISC] (scalbnl): Likewise.
18854 [__USE_ISOC99] (scalblnl): Likewise.
18855 [__USE_ISOC99] (nearbyintl): Likewise.
18856 [__USE_ISOC99] (lrintl): Likewise.
18857 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18858 __inline_mathop and __m81_defun changed.
18859
18860 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18861 CPU or FPU for ARM hard-float configurations.
18862
18863 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18864
18865 * nptl/tst-attr3.c: Include <libc-diag.h>.
18866 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18867
18868 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18869
18870 * string/tester.c (test_strncat): Also disable -Warray-bounds
18871 warnings for two tests.
18872
18873 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18874
18875 [BZ #22614]
18876 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18877 $(cc-pie-default) == yes.
18878 * config.make.in (cc-pie-default): New.
18879 * configure.ac (libc_cv_pie_default): Renamed to ...
18880 (libc_cv_cc_pie_default): This.
18881 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18882 * configure: Regenerated.
18883
18884 2017-12-18 Florian Weimer <fweimer@redhat.com>
18885
18886 [BZ #20204]
18887 ld.so: Harden dl-libc/libdl hooks.
18888 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18889 (rtld_active): New function.
18890 * dlfcn/dladdr.c (__dladdr): Call it.
18891 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18892 * dlfcn/dlclose.c (__dlcose): Likewise.
18893 * dlfcn/dlerror.c (__dlerror): Likewise.
18894 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18895 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18896 * dlfcn/dlopen.c (__dlopen): Likewise.
18897 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18898 * dlfcn/dlsym.c (__dlsym): Likewise.
18899 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18900 * libio/vtables.c (_IO_vtable_check): Likewise.
18901 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18902 (__libc_dlclose): Likewise.
18903 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18904 assignment.
18905
18906 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18907
18908 [BZ #22446]
18909 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18910 buffers for readlink input and output.
18911
18912 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18913
18914 [BZ #22624]
18915 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18916 inhibit_stack_protector.
18917
18918 [BZ #22624]
18919 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18920 inhibit_stack_protector.
18921
18922 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18923
18924 [BZ #22627]
18925 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18926 code and invocation.
18927
18928 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18929
18930 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18931
18932 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18933
18934 [BZ #22505]
18935 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18936
18937 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18938
18939 * sysdeps/s390/fpu/libm-test-ulps: Update.
18940
18941 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18942
18943 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18944
18945 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18946
18947 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18948 constants to s_sincosf.h file.
18949 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18950 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18951 implementation.
18952 * sysdeps/ieee754/flt-32/s_sincosf.h:
18953 New file.
18954
18955 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18956
18957 [BZ #14681]
18958 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18959 before mtrace.
18960
18961 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18962
18963 [BZ #19574]
18964 * INSTALL: Regenerated.
18965 * Makeconfig (real-static-start-installed-name): New.
18966 (pic-default): Updated for --enable-static-pie.
18967 (pie-default): New for --enable-static-pie.
18968 (default-pie-ldflag): Likewise.
18969 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18970 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18971 Replace $(static-start-installed-name) with
18972 $(real-static-start-installed-name).
18973 (+prectorT): Updated for --enable-static-pie.
18974 (+postctorT): Likewise.
18975 (CFLAGS-.o): Add $(pie-default).
18976 (CFLAGS-.op): Likewise.
18977 * NEWS: Mention --enable-static-pie.
18978 * config.h.in (ENABLE_STATIC_PIE): New.
18979 * configure.ac (--enable-static-pie): New configure option.
18980 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18981 (have-static-pie): Likewise.
18982 Enable static PIE if linker supports --no-dynamic-linker.
18983 (ENABLE_STATIC_PIE): New AC_DEFINE.
18984 (enable-static-pie): New LIBC_CONFIG_VAR.
18985 * configure: Regenerated.
18986 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18987 gr$(start-installed-name) for --enable-static-pie.
18988 (extra-objs): Likewise.
18989 (install-lib): Likewise.
18990 (extra-objs): Add static-reloc.o and static-reloc.os
18991 ($(objpfx)$(start-installed-name)): Also depend on
18992 $(objpfx)static-reloc.o.
18993 ($(objpfx)r$(start-installed-name)): New.
18994 ($(objpfx)g$(start-installed-name)): Also depend on
18995 $(objpfx)static-reloc.os.
18996 ($(objpfx)gr$(start-installed-name)): New.
18997 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18998 in libc.a.
18999 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
19000 initimage.
19001 * csu/static-reloc.c: New file.
19002 * elf/Makefile (routines): Add dl-reloc-static-pie.
19003 (elide-routines.os): Likewise.
19004 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
19005 (tst-tls1-static-non-pie-no-pie): New.
19006 * elf/dl-reloc-static-pie.c: New file.
19007 * elf/dl-support.c (_dl_get_dl_main_map): New function.
19008 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19009 STATIC_PIE_BOOTSTRAP.
19010 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19011 * gmon/Makefile (tests): Add tst-gmon-static-pie.
19012 (tests-static): Likewise.
19013 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19014 (tst-gmon-static-no-pie): New.
19015 (CFLAGS-tst-gmon-static-pie.c): Likewise.
19016 (CRT-tst-gmon-static-pie): Likewise.
19017 (tst-gmon-static-pie-ENV): Likewise.
19018 (tests-special): Likewise.
19019 ($(objpfx)tst-gmon-static-pie.out): Likewise.
19020 (clean-tst-gmon-static-pie-data): Likewise.
19021 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19022 * gmon/tst-gmon-static-pie.c: New file.
19023 * manual/install.texi: Document --enable-static-pie.
19024 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19025 (_dl_get_dl_main_map): Likewise.
19026 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19027 * sysdeps/x86_64/configure.ac: Likewise.
19028 * sysdeps/i386/configure: Regenerated.
19029 * sysdeps/x86_64/configure: Likewise.
19030 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19031 (ASFLAGS-.op): Likewise.
19032
19033 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19034
19035 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19036 * posix/tst-mmap-offset.c (fname): Use /tmp.
19037 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19038
19039 2017-12-15 Steve Ellcey <sellcey@cavium.com>
19040
19041 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19042
19043 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
19044
19045 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19046 errno.
19047
19048 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19049
19050 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19051 --with-float=hard for arm-linux-gnueabihf configurations.
19052
19053 [BZ #14121]
19054 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19055 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
19056 ($(mo-installed)): Use $(objpfx)%.mo.
19057 (realclean): Remove rule.
19058
19059 * po/Makefile (linguas): Remove rule and dependencies.
19060 (linguas.mo): Likewise.
19061 (.PHONY): Do not depend on linguas and linguas.mo.
19062 (podir): Remove variable.
19063 (pofiles): Likewise.
19064 [$(pofiles)] (%.po): Remove rule.
19065
19066 * sysdeps/sparc/sparc32/Makefile
19067 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19068 start-of-line whitespace in argument of echo.
19069 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19070 with whitespace. Generate __wrap_.udiv alias.
19071 * sysdeps/sparc/sparc32/rem.S: Regenerated.
19072 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19073 * sysdeps/sparc/sparc32/udiv.S: Likewise.
19074 * sysdeps/sparc/sparc32/urem.S: Likewise.
19075
19076 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19077
19078 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19079 for aligned inputs.
19080
19081 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19082
19083 * benchtests/bench-strcmp.c: Print output in JSON format.
19084
19085 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19086
19087 2017-12-14 Florian Weimer <fweimer@redhat.com>
19088
19089 [BZ #22607]
19090 CVE-2017-1000409
19091 * elf/dl-load.c (_dl_init_paths): Compute number of components in
19092 the expanded path string.
19093
19094 2017-12-14 Florian Weimer <fweimer@redhat.com>
19095
19096 [BZ #22606]
19097 CVE-2017-1000408
19098 * elf/dl-load.c (system_dirs): Update comment.
19099 (nsystem_dirs_len): Use array_length.
19100 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19101
19102 2017-12-14 Florian Weimer <fweimer@redhat.com>
19103
19104 Simplify compiling most of support/ outside of glibc.
19105 * support/check_addrinfo.c: Include <string.h>.
19106 * support/check_dns_packet.c: Likewise.
19107 * support/check_hostent.c: Likewise.
19108 * support/support_can_chroot.c: Include <support/xunistd.h>.
19109 * support/support_format_addrinfo.c: Include <stdlib.h>
19110 * support/support_format_dns_packet.c: Include <stdbool.h>.
19111 * support/support_format_hostent.c: Include <stdlib.h>.
19112 * support/support_format_netent.c: Likewise.
19113 * support/support_write_string.c: Include <support/xunistd.h>.
19114 * support/xdlfcn.c: Include <stddef.h>.
19115
19116 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
19117
19118 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19119
19120 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19121 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19122
19123 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19124 (sysdeps_routines): Add memset-niagara7.
19125 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19126 Likewise.
19127 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19128 file.
19129 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19130 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19131 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19132 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19133 Add niagara7 option.
19134 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19135 memset.
19136
19137 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19138 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19139 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19140 Likewise.
19141 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19142 New file.
19143 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19144 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19145 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19146 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19147 and __memmove_niagara7.
19148 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19149 Add niagara7 option.
19150 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19151 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19152 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19153 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19154 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19155
19156 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19157
19158 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19159 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19160 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19161 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19162
19163 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19164 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19165 _dl_sparc_cap_flags array.
19166 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19167
19168 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19169
19170 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19171 time whenever possible.
19172
19173 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19174
19175 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19176 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19177
19178 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19179
19180 * soft-fp/fmadf4.c: Move to ....
19181 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19182 * soft-fp/fmasf4.c: Move to ....
19183 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19184 * soft-fp/fmatf4.c: Move to ....
19185 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19186 * sysdeps/ieee754/soft-fp/Makefile: New file.
19187 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19188 * sysdeps/arm/preconfigure: Regenerated.
19189 * sysdeps/arm/nofpu/Implies: New file.
19190 * sysdeps/arm/s_fma.c: Remove file.
19191 * sysdeps/arm/s_fmaf.c: Likewise.
19192 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19193 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19194 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19195 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19196 * sysdeps/microblaze/s_fma.c: Remove file.
19197 * sysdeps/microblaze/s_fmaf.c: Likewise.
19198 * sysdeps/mips/mips32/nofpu/Implies: New file.
19199 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19200 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19201 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19202 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19203 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19204 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19205 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19206 implementation.
19207 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19208 * sysdeps/nios2/s_fma.c: Remove file.
19209 * sysdeps/nios2/s_fmaf.c: Likewise.
19210 * sysdeps/sh/nofpu/Implies: New file.
19211 * sysdeps/sh/s_fma.c: Remove file.
19212 * sysdeps/sh/s_fmaf.c: Likewise.
19213 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19214 * sysdeps/tile/s_fma.c: Remove file.
19215 * sysdeps/tile/s_fmaf.c: Likewise.
19216
19217 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19218
19219 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19220 Add s_cosf-sse2 and s_cosf-fma.
19221 (CFLAGS-s_cosf-fma.c): New.
19222 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19223 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19224 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19225
19226 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19227
19228 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19229
19230 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19231
19232 * libio/Makefile (tests): Add tst-bz22415.
19233 (tst-bz22415-ENV): New rule.
19234 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19235 (tests-special): Add tst-bz22415-mem.out.
19236 ($(objpfx)tst-bz22415-mem.out): New rule.
19237 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19238 in case of a successful seek operation.
19239 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19240 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19241 buffer is required.
19242 * libio/tst-bz22415.c: New test.
19243
19244 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19245
19246 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19247
19248 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19249 __IPC_64 to 0 to avoid IPC_64 being set.
19250
19251 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19252
19253 [BZ #22593]
19254 * math/bits/mathcalls.h (nextafter): Remove const.
19255 (nexttoward): Likewise.
19256
19257 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19258
19259 * configure.ac (--with-fp): Remove configure option.
19260 (with_fp_cond): New variable.
19261 (libc_cv_with_fp): New configure test. Use this variable instead
19262 of with_fp.
19263 * configure: Regenerated.
19264 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19265 * manual/install.texi (Configuring and compiling): Remove
19266 --without-fp.
19267 * INSTALL: Regenerated.
19268 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19269 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19270 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19271 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19272 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19273 use --without-fp to configure glibc.
19274
19275 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19276
19277 * manual/locale.texi (nl_langinfo): Fix a typo.
19278
19279 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19280
19281 [BZ #22588]
19282 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19283
19284 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19285
19286 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19287 (CFLAGS-argp-parse.c): Likewise.
19288 (CFLAGS-argp-fmtstream.c): Likewise.
19289 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19290 (CPPFLAGS-sha512-crypt.c): Likewise.
19291 (CPPFLAGS-md5-crypt.c): Likewise.
19292 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19293 (CFLAGS-stack_chk_fail_local.c): Likewise.
19294 (CFLAGS-backtrace.c): Likewise.
19295 (CFLAGS-sprintf_chk.c): Likewise.
19296 (CFLAGS-snprintf_chk.c): Likewise.
19297 (CFLAGS-vsprintf_chk.c): Likewise.
19298 (CFLAGS-vsnprintf_chk.c): Likewise.
19299 (CFLAGS-asprintf_chk.c): Likewise.
19300 (CFLAGS-vasprintf_chk.c): Likewise.
19301 (CFLAGS-obprintf_chk.c): Likewise.
19302 (CFLAGS-dprintf_chk.c): Likewise.
19303 (CFLAGS-vdprintf_chk.c): Likewise.
19304 (CFLAGS-printf_chk.c): Likewise.
19305 (CFLAGS-fprintf_chk.c): Likewise.
19306 (CFLAGS-vprintf_chk.c): Likewise.
19307 (CFLAGS-vfprintf_chk.c): Likewise.
19308 (CFLAGS-gets_chk.c): Likewise.
19309 (CFLAGS-fgets_chk.c): Likewise.
19310 (CFLAGS-fgets_u_chk.c): Likewise.
19311 (CFLAGS-fread_chk.c): Likewise.
19312 (CFLAGS-fread_u_chk.c): Likewise.
19313 (CFLAGS-swprintf_chk.c): Likewise.
19314 (CFLAGS-vswprintf_chk.c): Likewise.
19315 (CFLAGS-wprintf_chk.c): Likewise.
19316 (CFLAGS-fwprintf_chk.c): Likewise.
19317 (CFLAGS-vwprintf_chk.c): Likewise.
19318 (CFLAGS-vfwprintf_chk.c): Likewise.
19319 (CFLAGS-fgetws_chk.c): Likewise.
19320 (CFLAGS-fgetws_u_chk.c): Likewise.
19321 (CFLAGS-read_chk.c): Likewise.
19322 (CFLAGS-pread_chk.c): Likewise.
19323 (CFLAGS-pread64_chk.c): Likewise.
19324 (CFLAGS-recv_chk.c): Likewise.
19325 (CFLAGS-recvfrom_chk.c): Likewise.
19326 (CFLAGS-tst-longjmp_chk.c): Likewise.
19327 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19328 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19329 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19330 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19331 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19332 (CFLAGS-tst-chk1.c): Likewise.
19333 (CFLAGS-tst-chk2.c): Likewise.
19334 (CFLAGS-tst-chk3.c): Likewise.
19335 (CFLAGS-tst-chk4.cc): Likewise.
19336 (CFLAGS-tst-chk5.cc): Likewise.
19337 (CFLAGS-tst-chk6.cc): Likewise.
19338 (CFLAGS-tst-lfschk1.c): Likewise.
19339 (CFLAGS-tst-lfschk2.c): Likewise.
19340 (CFLAGS-tst-lfschk3.c): Likewise.
19341 (CFLAGS-tst-lfschk4.cc): Likewise.
19342 (CFLAGS-tst-lfschk5.cc): Likewise.
19343 (CFLAGS-tst-lfschk6.cc): Likewise.
19344 (CFLAGS-tst-ssp-1.c): Likewise.
19345 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19346 (CFLAGS-scandir64.c): Likewise.
19347 (CFLAGS-scandir-tail.c): Likewise.
19348 (CFLAGS-scandir64-tail.c): Likewise.
19349 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19350 (CFLAGS-dl-tunables.c): Likewise.
19351 (CFLAGS-dl-runtime.c): Likewise.
19352 (CFLAGS-dl-lookup.c): Likewise.
19353 (CFLAGS-dl-iterate-phdr.c): Likewise.
19354 (CFLAGS-vismain.c): Likewise.
19355 (CFLAGS-tst-linkall-static.c): Likewise.
19356 (CFLAGS-tst-linkall-static.c): Likewise.
19357 (CPPFLAGS-dl-load.c): Likewise.
19358 (CFLAGS-ldconfig.c): Likewise.
19359 (CFLAGS-dl-cache.c): Likewise.
19360 (CFLAGS-cache.c): Likewise.
19361 (CFLAGS-rtld.c): Likewise.
19362 (CFLAGS-multiload.c): Likewise.
19363 (CFLAGS-filtmod1.c): Likewise.
19364 (CFLAGS-tst-align.c): Likewise.
19365 (CFLAGS-tst-align2.c): Likewise.
19366 (CFLAGS-tst-alignmod.c): Likewise.
19367 (CFLAGS-tst-alignmod2.c): Likewise.
19368 (CPPFLAGS-tst-execstack.c): Likewise.
19369 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19370 (CFLAGS-tst-latepthreadmod.c): Likewise.
19371 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19372 (CFLAGS-getgrnam_r.c): Likewise.
19373 (CFLAGS-getgrent_r.c): Likewise.
19374 (CFLAGS-getgrent.c): Likewise.
19375 (CFLAGS-fgetgrent.c): Likewise.
19376 (CFLAGS-fgetgrent_r.c): Likewise.
19377 (CFLAGS-putgrent.c): Likewise.
19378 (CFLAGS-initgroups.c): Likewise.
19379 (CFLAGS-getgrgid.c): Likewise.
19380 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19381 (CFLAGS-getsgent.c): Likewise.
19382 (CFLAGS-fgetsgent.c): Likewise.
19383 (CFLAGS-fgetsgent_r.c): Likewise.
19384 (CFLAGS-putsgent.c): Likewise.
19385 (CFLAGS-getsgnam.c): Likewise.
19386 (CFLAGS-getsgnam_r.c): Likewise.
19387 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19388 (CFLAGS-iconv_charmap.c): Likewise.
19389 (CFLAGS-dummy-repertoire.c): Likewise.
19390 (CFLAGS-charmap.c): Likewise.
19391 (CFLAGS-linereader.c): Likewise.
19392 (CFLAGS-simple-hash.c): Likewise.
19393 (CFLAGS-gconv_conf.c): Likewise.
19394 (CFLAGS-iconvconfig.c): Likewise.
19395 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19396 (CFLAGS-gethstbyad.c): Likewise.
19397 (CFLAGS-gethstbynm_r.c): Likewise.
19398 (CFLAGS-gethstbynm.c): Likewise.
19399 (CFLAGS-gethstbynm2_r.c): Likewise.
19400 (CFLAGS-gethstbynm2.c): Likewise.
19401 (CFLAGS-gethstent_r.c): Likewise.
19402 (CFLAGS-gethstent.c): Likewise.
19403 (CFLAGS-rcmd.c): Likewise.
19404 (CFLAGS-getnetbynm_r.c): Likewise.
19405 (CFLAGS-getnetbynm.c): Likewise.
19406 (CFLAGS-getnetbyad_r.c): Likewise.
19407 (CFLAGS-getnetbyad.c): Likewise.
19408 (CFLAGS-getnetent_r.c): Likewise.
19409 (CFLAGS-getnetent.c): Likewise.
19410 (CFLAGS-getaliasent_r.c): Likewise.
19411 (CFLAGS-getaliasent.c): Likewise.
19412 (CFLAGS-getrpcent_r.c): Likewise.
19413 (CFLAGS-getrpcent.c): Likewise.
19414 (CFLAGS-getservent_r.c): Likewise.
19415 (CFLAGS-getservent.c): Likewise.
19416 (CFLAGS-getprtent_r.c): Likewise.
19417 (CFLAGS-getprtent.c): Likewise.
19418 (CFLAGS-either_ntoh.c): Likewise.
19419 (CFLAGS-either_hton.c): Likewise.
19420 (CFLAGS-getnetgrent.c): Likewise.
19421 (CFLAGS-getnetgrent_r.c): Likewise.
19422 (CFLAGS-tst-checks-posix.c): Likewise.
19423 (CFLAGS-tst-sockaddr.c): Likewise.
19424 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19425 (CFLAGS-tst-translit.c): Likewise.
19426 (CFLAGS-tst-gettext2.c): Likewise.
19427 (CFLAGS-tst-codeset.c): Likewise.
19428 (CFLAGS-tst-gettext3.c): Likewise.
19429 (CFLAGS-tst-gettext4.c): Likewise.
19430 (CFLAGS-tst-gettext5.c): Likewise.
19431 (CFLAGS-tst-gettext6.c): Likewise.
19432 * io/Makefile (CFLAGS-open.c): Likewise.
19433 (CFLAGS-open64.c): Likewise.
19434 (CFLAGS-creat.c): Likewise.
19435 (CFLAGS-creat64.c): Likewise.
19436 (CFLAGS-fcntl.c): Likewise.
19437 (CFLAGS-poll.c): Likewise.
19438 (CFLAGS-ppoll.c): Likewise.
19439 (CFLAGS-lockf.c): Likewise.
19440 (CFLAGS-statfs.c): Likewise.
19441 (CFLAGS-fstatfs.c): Likewise.
19442 (CFLAGS-statvfs.c): Likewise.
19443 (CFLAGS-fstatvfs.c): Likewise.
19444 (CFLAGS-fts.c): Likewise.
19445 (CFLAGS-fts64.c): Likewise.
19446 (CFLAGS-ftw.c): Likewise.
19447 (CFLAGS-ftw64.c): Likewise.
19448 (CFLAGS-lockf.c): Likewise.
19449 (CFLAGS-posix_fallocate.c): Likewise.
19450 (CFLAGS-posix_fallocate64.c): Likewise.
19451 (CFLAGS-fallocate.c): Likewise.
19452 (CFLAGS-fallocate64.c): Likewise.
19453 (CFLAGS-read.c): Likewise.
19454 (CFLAGS-write.c): Likewise.
19455 (CFLAGS-test-stat.c): Likewise.
19456 (CFLAGS-test-lfs.c): Likewise.
19457 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19458 (CFLAGS-fputc.c): Likewise.
19459 (CFLAGS-fputwc.c): Likewise.
19460 (CFLAGS-freopen64.c): Likewise.
19461 (CFLAGS-freopen.c): Likewise.
19462 (CFLAGS-fseek.c): Likewise.
19463 (CFLAGS-fseeko64.c): Likewise.
19464 (CFLAGS-fseeko.c): Likewise.
19465 (CFLAGS-ftello64.c): Likewise.
19466 (CFLAGS-ftello.c): Likewise.
19467 (CFLAGS-fwide.c): Likewise.
19468 (CFLAGS-genops.c): Likewise.
19469 (CFLAGS-getc.c): Likewise.
19470 (CFLAGS-getchar.c): Likewise.
19471 (CFLAGS-getwc.c): Likewise.
19472 (CFLAGS-getwchar.c): Likewise.
19473 (CFLAGS-iofclose.c): Likewise.
19474 (CFLAGS-iofflush.c): Likewise.
19475 (CFLAGS-iofgetpos64.c): Likewise.
19476 (CFLAGS-iofgetpos.c): Likewise.
19477 (CFLAGS-iofgets.c): Likewise.
19478 (CFLAGS-iofgetws.c): Likewise.
19479 (CFLAGS-iofputs.c): Likewise.
19480 (CFLAGS-iofputws.c): Likewise.
19481 (CFLAGS-iofread.c): Likewise.
19482 (CFLAGS-iofsetpos64.c): Likewise.
19483 (CFLAGS-iofsetpos.c): Likewise.
19484 (CFLAGS-ioftell.c): Likewise.
19485 (CFLAGS-iofwrite.c): Likewise.
19486 (CFLAGS-iogetdelim.c): Likewise.
19487 (CFLAGS-iogetline.c): Likewise.
19488 (CFLAGS-iogets.c): Likewise.
19489 (CFLAGS-iogetwline.c): Likewise.
19490 (CFLAGS-ioputs.c): Likewise.
19491 (CFLAGS-ioseekoff.c): Likewise.
19492 (CFLAGS-ioseekpos.c): Likewise.
19493 (CFLAGS-iosetbuffer.c): Likewise.
19494 (CFLAGS-iosetvbuf.c): Likewise.
19495 (CFLAGS-ioungetc.c): Likewise.
19496 (CFLAGS-ioungetwc.c): Likewise.
19497 (CFLAGS-oldfileops.c): Likewise.
19498 (CFLAGS-oldiofclose.c): Likewise.
19499 (CFLAGS-oldiofgetpos64.c): Likewise.
19500 (CFLAGS-oldiofgetpos.c): Likewise.
19501 (CFLAGS-oldiofsetpos64.c): Likewise.
19502 (CFLAGS-oldiofsetpos.c): Likewise.
19503 (CFLAGS-peekc.c): Likewise.
19504 (CFLAGS-putc.c): Likewise.
19505 (CFLAGS-putchar.c): Likewise.
19506 (CFLAGS-putwc.c): Likewise.
19507 (CFLAGS-putwchar.c): Likewise.
19508 (CFLAGS-rewind.c): Likewise.
19509 (CFLAGS-wfileops.c): Likewise.
19510 (CFLAGS-wgenops.c): Likewise.
19511 (CFLAGS-oldiofopen.c): Likewise.
19512 (CFLAGS-iofopen.c): Likewise.
19513 (CFLAGS-iofopen64.c): Likewise.
19514 (CFLAGS-oldtmpfile.c): Likewise.
19515 (CFLAGS-tst_putwc.c): Likewise.
19516 * locale/Makefile (CFLAGS-md5.c): Likewise.
19517 (CFLAGS-charmap.c): Likewise.
19518 (CFLAGS-locfile.c): Likewise.
19519 (CFLAGS-charmap-dir.c): Likewise.
19520 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19521 (CFLAGS-getpt.c): Likewise.
19522 (CFLAGS-pt_chown.c): Likewise.
19523 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19524 (CFLAGS-obstack.c): Likewise.
19525 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19526 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19527 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19528 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19529 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19530 (CFLAGS-test-tgmath.c): Likewise.
19531 (CFLAGS-test-tgmath2.c): Likewise.
19532 (CFLAGS-test-tgmath-ret.c): Likewise.
19533 (CFLAGS-test-powl.c): Likewise.
19534 (CFLAGS-test-snan.c): Likewise.
19535 (CFLAGS-test-signgam-finite.c): Likewise.
19536 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19537 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19538 (CFLAGS-test-signgam-uchar.c): Likewise.
19539 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19540 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19541 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19542 (CFLAGS-test-signgam-uint.c): Likewise.
19543 (CFLAGS-test-signgam-uint-init.c): Likewise.
19544 (CFLAGS-test-signgam-uint-static.c): Likewise.
19545 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19546 (CFLAGS-test-signgam-ullong.c): Likewise.
19547 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19548 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19549 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19550 (CFLAGS-test-math-cxx11.cc): Likewise.
19551 (CFLAGS-test-math-isinff.cc): Likewise.
19552 (CFLAGS-test-math-iszero.cc): Likewise.
19553 (CFLAGS-test-math-issignaling.cc): Likewise.
19554 (CFLAGS-test-math-iscanonical.cc): Likewise.
19555 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19556 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19557 (CFLAGS-test-flt-eval-method.c): Likewise.
19558 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19559 (CFLAGS-test-finite-macros.c): Likewise.
19560 * misc/Makefile (CFLAGS-select.c): Likewise.
19561 (CFLAGS-tsearch.c): Likewise.
19562 (CFLAGS-lsearch.c): Likewise.
19563 (CFLAGS-pselect.c): Likewise.
19564 (CFLAGS-readv.c): Likewise.
19565 (CFLAGS-writev.c): Likewise.
19566 (CFLAGS-preadv.c): Likewise.
19567 (CFLAGS-preadv64.c): Likewise.
19568 (CFLAGS-pwritev.c): Likewise.
19569 (CFLAGS-pwritev64.c): Likewise.
19570 (CFLAGS-preadv2.c): Likewise.
19571 (CFLAGS-preadv64v2.c): Likewise.
19572 (CFLAGS-pwritev2.c): Likewise.
19573 (CFLAGS-pwritev64v2.c): Likewise.
19574 (CFLAGS-usleep.c): Likewise.
19575 (CFLAGS-syslog.c): Likewise.
19576 (CFLAGS-error.c): Likewise.
19577 (CFLAGS-getpass.c): Likewise.
19578 (CFLAGS-mkstemp.c): Likewise.
19579 (CFLAGS-mkstemp64.c): Likewise.
19580 (CFLAGS-getsysstats.c): Likewise.
19581 (CFLAGS-getusershell.c): Likewise.
19582 (CFLAGS-err.c): Likewise.
19583 (CFLAGS-tst-tsearch.c): Likewise.
19584 (CFLAGS-msync.c): Likewise.
19585 (CFLAGS-fdatasync.c): Likewise.
19586 (CFLAGS-fsync.c): Likewise.
19587 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19588 (CFLAGS-unwind.c): Likewise.
19589 (CFLAGS-unwind-forcedunwind.c): Likewise.
19590 (CFLAGS-pthread_cancel.c): Likewise.
19591 (CFLAGS-pthread_setcancelstate.c): Likewise.
19592 (CFLAGS-pthread_setcanceltype.c): Likewise.
19593 (CFLAGS-cancellation.c): Likewise.
19594 (CFLAGS-libc-cancellation.c): Likewise.
19595 (CFLAGS-pthread_exit.c): Likewise.
19596 (CFLAGS-forward.c): Likewise.
19597 (CFLAGS-pthread_testcancel.c): Likewise.
19598 (CFLAGS-pthread_join.c): Likewise.
19599 (CFLAGS-pthread_timedjoin.c): Likewise.
19600 (CFLAGS-pthread_once.c): Likewise.
19601 (CFLAGS-pthread_cond_wait.c): Likewise.
19602 (CFLAGS-sem_wait.c): Likewise.
19603 (CFLAGS-sem_timedwait.c): Likewise.
19604 (CFLAGS-fcntl.c): Likewise.
19605 (CFLAGS-lockf.c): Likewise.
19606 (CFLAGS-pread.c): Likewise.
19607 (CFLAGS-pread64.c): Likewise.
19608 (CFLAGS-pwrite.c): Likewise.
19609 (CFLAGS-pwrite64.c): Likewise.
19610 (CFLAGS-wait.c): Likewise.
19611 (CFLAGS-waitpid.c): Likewise.
19612 (CFLAGS-sigwait.c): Likewise.
19613 (CFLAGS-msgrcv.c): Likewise.
19614 (CFLAGS-msgsnd.c): Likewise.
19615 (CFLAGS-tcdrain.c): Likewise.
19616 (CFLAGS-open.c): Likewise.
19617 (CFLAGS-open64.c): Likewise.
19618 (CFLAGS-pause.c): Likewise.
19619 (CFLAGS-recv.c): Likewise.
19620 (CFLAGS-send.c): Likewise.
19621 (CFLAGS-accept.c): Likewise.
19622 (CFLAGS-sendto.c): Likewise.
19623 (CFLAGS-connect.c): Likewise.
19624 (CFLAGS-recvfrom.c): Likewise.
19625 (CFLAGS-recvmsg.c): Likewise.
19626 (CFLAGS-sendmsg.c): Likewise.
19627 (CFLAGS-close.c): Likewise.
19628 (CFLAGS-read.c): Likewise.
19629 (CFLAGS-write.c): Likewise.
19630 (CFLAGS-nanosleep.c): Likewise.
19631 (CFLAGS-sigsuspend.c): Likewise.
19632 (CFLAGS-msync.c): Likewise.
19633 (CFLAGS-fdatasync.c): Likewise.
19634 (CFLAGS-fsync.c): Likewise.
19635 (CFLAGS-pt-system.c): Likewise.
19636 (CFLAGS-tst-cleanup2.c): Likewise.
19637 (CFLAGS-tst-cleanupx2.c): Likewise.
19638 (CFLAGS-flockfile.c): Likewise.
19639 (CFLAGS-ftrylockfile.c): Likewise.
19640 (CFLAGS-funlockfile.c): Likewise.
19641 (CFLAGS-tst-initializers1.c): Likewise.
19642 (CFLAGS-tst-initializers1-c89.c): Likewise.
19643 (CFLAGS-tst-initializers1-c99.c): Likewise.
19644 (CFLAGS-tst-initializers1-c11.c): Likewise.
19645 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19646 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19647 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19648 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19649 (CFLAGS-nscd_getgr_r.c): Likewise.
19650 (CFLAGS-nscd_gethst_r.c): Likewise.
19651 (CFLAGS-nscd_getai.c): Likewise.
19652 (CFLAGS-nscd_initgroups.c): Likewise.
19653 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19654 (CFLAGS-pause.c): Likewise.
19655 (CFLAGS-pread.c): Likewise.
19656 (CFLAGS-pread64.c): Likewise.
19657 (CFLAGS-pwrite.c): Likewise.
19658 (CFLAGS-pwrite64.c): Likewise.
19659 (CFLAGS-sleep.c): Likewise.
19660 (CFLAGS-wait.c): Likewise.
19661 (CFLAGS-waitid.c): Likewise.
19662 (CFLAGS-waitpid.c): Likewise.
19663 (CFLAGS-getopt.c): Likewise.
19664 (CFLAGS-wordexp.c): Likewise.
19665 (CFLAGS-sysconf.c): Likewise.
19666 (CFLAGS-pathconf.c): Likewise.
19667 (CFLAGS-fpathconf.c): Likewise.
19668 (CFLAGS-spawn.c): Likewise.
19669 (CFLAGS-spawnp.c): Likewise.
19670 (CFLAGS-spawni.c): Likewise.
19671 (CFLAGS-glob.c): Likewise.
19672 (CFLAGS-glob64.c): Likewise.
19673 (CFLAGS-getconf.c): Likewise.
19674 (CFLAGS-nanosleep.c): Likewise.
19675 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19676 (CFLAGS-getpwent.c): Likewise.
19677 (CFLAGS-getpw.c): Likewise.
19678 (CFLAGS-fgetpwent_r.c): Likewise.
19679 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19680 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19681 (CFLAGS-mq_timedreceive.c): Likewise.
19682 (CFLAGS-mq_timedsend.c): Likewise.
19683 (CFLAGS-clock_nanosleep.c): Likewise.
19684 (CFLAGS-librt-cancellation.c): Likewise.
19685 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19686 (CFLAGS-getspent.c): Likewise.
19687 (CFLAGS-fgetspent.c): Likewise.
19688 (CFLAGS-fgetspent_r.c): Likewise.
19689 (CFLAGS-putspent.c): Likewise.
19690 (CFLAGS-getspnam.c): Likewise.
19691 (CFLAGS-getspnam_r.c): Likewise.
19692 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19693 (CFLAGS-sigsuspend.c): Likewise.
19694 (CFLAGS-sigtimedwait.c): Likewise.
19695 (CFLAGS-sigwait.c): Likewise.
19696 (CFLAGS-sigwaitinfo.c): Likewise.
19697 (CFLAGS-sigreturn.c): Likewise.
19698 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19699 (CFLAGS-vfwprintf.c): Likewise.
19700 (CFLAGS-tmpfile.c): Likewise.
19701 (CFLAGS-tmpfile64.c): Likewise.
19702 (CFLAGS-tempname.c): Likewise.
19703 (CFLAGS-psignal.c): Likewise.
19704 (CFLAGS-vprintf.c): Likewise.
19705 (CFLAGS-cuserid.c): Likewise.
19706 (CFLAGS-errlist.c): Likewise.
19707 (CFLAGS-siglist.c): Likewise.
19708 (CFLAGS-scanf15.c): Likewise.
19709 (CFLAGS-scanf17.c): Likewise.
19710 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19711 (CFLAGS-msort.c): Likewise.
19712 (CFLAGS-qsort.c): Likewise.
19713 (CFLAGS-system.c): Likewise.
19714 (CFLAGS-fmtmsg.c): Likewise.
19715 (CFLAGS-strfmon.c): Likewise.
19716 (CFLAGS-strfmon_l.c): Likewise.
19717 (CFLAGS-strfromd.c): Likewise.
19718 (CFLAGS-strfromf.c): Likewise.
19719 (CFLAGS-strfroml.c): Likewise.
19720 (CFLAGS-tst-bsearch.c): Likewise.
19721 (CFLAGS-tst-qsort.c): Likewise.
19722 (CFLAGS-tst-makecontext2.c): Likewise.
19723 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19724 (CFLAGS-xnlm_prot.c): Likewise.
19725 (CFLAGS-xrstat.c): Likewise.
19726 (CFLAGS-xyppasswd.c): Likewise.
19727 (CFLAGS-xklm_prot.c): Likewise.
19728 (CFLAGS-xrex.c): Likewise.
19729 (CFLAGS-xsm_inter.c): Likewise.
19730 (CFLAGS-xmount.c): Likewise.
19731 (CFLAGS-xrusers.c): Likewise.
19732 (CFLAGS-xspray.c): Likewise.
19733 (CFLAGS-xnfs_prot.c): Likewise.
19734 (CFLAGS-xrquota.c): Likewise.
19735 (CFLAGS-xkey_prot.c): Likewise.
19736 (CFLAGS-auth_unix.c): Likewise.
19737 (CFLAGS-key_call.c): Likewise.
19738 (CFLAGS-pmap_rmt.c): Likewise.
19739 (CFLAGS-clnt_perr.c): Likewise.
19740 (CFLAGS-openchild.c): Likewise.
19741 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19742 (CFLAGS-msgsnd.c): Likewise.
19743 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19744 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19745 (CFLAGS-tzset.c): Likewise.
19746 (CFLAGS-getdate.c): Likewise.
19747 (CFLAGS-test_time.c): Likewise.
19748 (CPPFLAGS-tst-tzname.c): Likewise.
19749 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19750 (CFLAGS-zic.c): Likewise.
19751 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19752 (CFLAGS-wcswidth.c): Likewise.
19753 (CFLAGS-wcstol.c): Likewise.
19754 (CFLAGS-wcstoul.c): Likewise.
19755 (CFLAGS-wcstoll.c): Likewise.
19756 (CFLAGS-wcstoull.c): Likewise.
19757 (CFLAGS-wcstod.c): Likewise.
19758 (CFLAGS-wcstold.c): Likewise.
19759 (CFLAGS-wcstof128.c): Likewise.
19760 (CFLAGS-wcstof.c): Likewise.
19761 (CFLAGS-wcstol_l.c): Likewise.
19762 (CFLAGS-wcstoul_l.c): Likewise.
19763 (CFLAGS-wcstoll_l.c): Likewise.
19764 (CFLAGS-wcstoull_l.c): Likewise.
19765 (CFLAGS-wcstod_l.c): Likewise.
19766 (CFLAGS-wcstold_l.c): Likewise.
19767 (CFLAGS-wcstof128_l.c): Likewise.
19768 (CFLAGS-wcstof_l.c): Likewise.
19769 (CPPFLAGS-tst-wchar-h.c): Likewise.
19770 (CPPFLAGS-wcstold_l.c): Likewise.
19771
19772 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19773
19774 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19775
19776 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19777 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19778
19779 * manual/tunables.texi (Hardware Capability Tunables): Document
19780 glibc.tune.cached_memopt.
19781 * sysdeps/powerpc/cpu-features.c: New file.
19782 * sysdeps/powerpc/cpu-features.h: New file.
19783 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19784 _dl_powerpc_cpu_features.
19785 * sysdeps/powerpc/dl-tunables.list: New file.
19786 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19787 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19788 (INIT_ARCH): Initialize use_aligned_memopt.
19789 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19790 IS_IN(rtld))]: Restrict dl_platform_init availability and
19791 initialize CPU features used by tunables.
19792 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19793 Add memcpy-power8-cached.
19794 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19795 __memcpy_power8_cached.
19796 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19797 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19798 New file.
19799
19800 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19801
19802 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19803 (CFLAGS-noinl-tester.c): Likewise.
19804 (CFLAGS-tst-strlen.c): Likewise.
19805 (CFLAGS-stratcliff.c): Likewise.
19806 (CFLAGS-test-ffs.c): Likewise.
19807 (CFLAGS-tst-inlcall.c): Likewise.
19808 (CFLAGS-tst-xbzero-opt.c): Likewise.
19809 (CFLAGS-memcpy.c): Likewise.
19810 (CFLAGS-wordcopy.c): Likewise.
19811
19812 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19813
19814 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19815 Store r15 on stack and add cfi rule.
19816 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19817 Likewise.
19818
19819 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19820
19821 [BZ #22577]
19822 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19823 call.
19824
19825 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19826
19827 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19828 Add s_sinf-sse2 and s_sinf-fma.
19829 (CFLAGS-s_sinf-fma.c): New.
19830 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19831 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19832 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19833
19834 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19835
19836 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19837
19838 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19839
19840 [BZ #22568]
19841 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19842 part of result to imaginary part of argument if it is zero and the
19843 real part of the argument is not finite.
19844 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19845 of result to real part of argument if it is zero and the imaginary
19846 part of the argument is not finite.
19847
19848 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19849
19850 [BZ #22524]
19851 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19852 and to the list of locales to be built for testing.
19853 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19854 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19855 and build the collation rules upon that.
19856
19857 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19858
19859 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19860 * manual/math.texi (Mathematics): Document support for _Float32.
19861 * math/Makefile (test-types): Add float32.
19862 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19863 * stdlib/Versions (GLIBC_2.27): Likewise.
19864 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19865 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19866 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19867 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19868 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19869 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19870 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19871 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19872 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19873 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19874 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19875 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19876 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19877 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19878 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19879 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19880 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19881 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19882 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19883 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19884 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19885 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19886 Likewise.
19887 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19888 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19889 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19890 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19891 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19893 Likewise.
19894 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19895 Likewise.
19896 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19897 Likewise.
19898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19899 Likewise.
19900
19901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19902 Likewise.
19903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19904 Likewise.
19905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19906 Likewise.
19907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19908 Likewise.
19909 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19910 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19911 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19912 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19913 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19914 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19915 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19916 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19917 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19918 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19919 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19920 Likewise.
19921 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19922 Likewise.
19923 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19924 Likewise.
19925 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19926 Likewise.
19927 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19928 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19929 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19930 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19931 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19932 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19933 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19934 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19935
19936 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19937
19938 * stdlib/strtof.c: Include <bits/floatn.h>
19939 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19940 and later undefine as macro. Define as weak alias if
19941 [!USE_WIDE_CHAR].
19942 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19943 and later undefine as macro. Define as weak alias if
19944 [USE_WIDE_CHAR].
19945 * stdlib/strtof_l.c: Include <bits/floatn.h>
19946 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19947 and later undefine as macro. Define as weak alias if
19948 [!USE_WIDE_CHAR].
19949 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19950 and later undefine as macro. Define as weak alias if
19951 [USE_WIDE_CHAR].
19952
19953 * stdlib/strfromf.c: Include <bits/floatn.h>.
19954 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19955 and later undefine as macro and define as weak alias.
19956
19957 * math/test-float32.h: New file.
19958
19959 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19960 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19961 (libm_alias_float_other_r): Create f32 alias.
19962 (libm_alias_float_r): Use semicolon before call to
19963 libm_alias_float_other_r.
19964
19965 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19966 second argument to libm_alias_float_other.
19967 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19968 second argument to libm_alias_float_other.
19969 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19970 argument to libm_alias_float_other.
19971
19972 [BZ #22561]
19973 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19974 real part of result for argument 0 + i * NaN.
19975 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19976 results for tests of 0 + i * NaN.
19977
19978 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19979
19980 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19981
19982 2017-12-06 David S. Miller <davem@davemloft.net>
19983
19984 * sysdeps/sparc/fpu/libm-test-ulps: Update
19985 exp_{downward,towardzero,upward} ulps.
19986
19987 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19988
19989 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19990 variables static.
19991
19992 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19993 (Y0_2D): Likewise.
19994 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19995 (Y0_2D): Likewise.
19996 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19997 (Y0_2D): Likewise.
19998 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19999 (Y0_2D): Likewise.
20000
20001 2017-12-06 Mike FABIAN <mfabian@redhat.com>
20002
20003 [BZ #22515]
20004 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
20005 and to the list of locales to be built for testing.
20006 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
20007 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20008 and build the collation rules upon that.
20009
20010 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20011
20012 * NEWS: Add sinf to list of optimized functions.
20013
20014 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20015
20016 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20017 (__HAVE_FLOAT32X): Likewise.
20018 * manual/math.texi (Mathematics): Document support for _Float64
20019 and _Float32x.
20020 * math/Makefile (test-types): Add float64 and float32x.
20021 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20022 functions.
20023 * stdlib/Versions (GLIBC_2.27): Likewise.
20024 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20025 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20026 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20027 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20028 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20029 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20030 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20031 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20032 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20033 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20034 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20035 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20036 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20037 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20038 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20039 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20040 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20041 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20042 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20043 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20044 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20045 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20046 Likewise.
20047 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20048 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20049 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20050 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20051 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20052 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20053 Likewise.
20054 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20055 Likewise.
20056 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20057 Likewise.
20058 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20059 Likewise.
20060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20061 Likewise.
20062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20063 Likewise.
20064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20065 Likewise.
20066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20067 Likewise.
20068 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20069 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20070 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20071 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20072 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20073 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20074 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20075 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20076 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20077 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20078 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20079 Likewise.
20080 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20081 Likewise.
20082 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20083 Likewise.
20084 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20085 Likewise.
20086 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20087 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20088 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20089 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20090 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20091 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20092 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20093 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20094
20095 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20096
20097 * bits/floatn-common.h: Include <bits/long-double.h>.
20098 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20099 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20100 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20101 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20102 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20103 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20104 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20105 (__builtin_huge_valf64): Use __builtin_huge_vall.
20106 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20107 (__builtin_inff64): Use __builtin_infl.
20108 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20109 (__builtin_nanf64): Use __builtin_nanl.
20110 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20111 (__builtin_nansf64): Use __builtin_nansl.
20112
20113 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
20114 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
20115 Carlos O'Donnell <carlos@redhat.com>
20116
20117 * elf/dl-tunables.list: Add elision parameters.
20118 * manual/tunables.texi: Add entries about elision tunable.
20119 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20120 Add callback functions to dynamically enable/disable elision.
20121 Add multiple callbacks functions to set elision parameters.
20122 Deleted __libc_enable_secure check.
20123 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20124 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20125 * configure: Regenerated.
20126 * configure.ac: Option enable_lock_elision was deleted.
20127 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20128 * config.make.in: Remove references to enable_lock_elision.
20129 * manual/install.texi: Elision configure option was removed.
20130 * INSTALL: Regenerated to remove enable_lock_elision.
20131 * nptl/Makefile:
20132 Disable elision so it can verify error case for destroying a mutex.
20133 * sysdeps/powerpc/nptl/elide.h:
20134 Cleanup ENABLE_LOCK_ELISION check.
20135 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20136 * sysdeps/s390/configure: Regenerated.
20137 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20138 * nptl/tst-mutex8.c:
20139 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20140 * sysdeps/powerpc/powerpc32/sysdep.h:
20141 Deleted all ENABLE_LOCK_ELISION checks.
20142 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20143 * sysdeps/powerpc/sysdep.h: Likewise.
20144 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20145 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20146 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20147 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20148 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20149 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20150 enable-lock-elision.
20151
20152 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20153
20154 * stdlib/strtod.c: Include <bits/floatn.h>.
20155 (BUILD_DOUBLE): New macro.
20156 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20157 (strtof64): Define and later undefine as macro. Define as weak
20158 alias if [!USE_WIDE_CHAR].
20159 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20160 (wcstof64): Define and later undefine as macro. Define as weak
20161 alias if [USE_WIDE_CHAR].
20162 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20163 (strtof32x): Define and later undefine as macro. Define as weak
20164 alias if [!USE_WIDE_CHAR].
20165 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20166 (wcstof32x): Define and later undefine as macro. Define as weak
20167 alias if [USE_WIDE_CHAR].
20168 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20169 (BUILD_DOUBLE): New macro.
20170 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20171 (strtof64_l): Define and later undefine as macro. Define as weak
20172 alias if [!USE_WIDE_CHAR].
20173 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20174 (wcstof64_l): Define and later undefine as macro. Define as weak
20175 alias if [USE_WIDE_CHAR].
20176 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20177 (strtof32x_l): Define and later undefine as macro. Define as weak
20178 alias if [!USE_WIDE_CHAR].
20179 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20180 (wcstof32x_l): Define and later undefine as macro. Define as weak
20181 alias if [USE_WIDE_CHAR].
20182
20183 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20184
20185 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20186 (reduced): Use ones as double instead of integer.
20187
20188 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20189
20190 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20191
20192 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20193
20194 * stdlib/strfromd.c: Include <bits/floatn.h>.
20195 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20196 and later undefine as macro and define as weak alias.
20197 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20198 Likewise.
20199
20200 * math/test-float32x.h: New file.
20201 * math/test-float64.h: Likewise.
20202
20203 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20204 (libm_alias_double_other_r_f64): New macro.
20205 (libm_alias_double_other_r_f32x): Likewise.
20206 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20207 libm_alias_double_other_r_f32x.
20208 (libm_alias_double_r): Use semicolon before call to
20209 libm_alias_double_other_r.
20210 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20211 <bits/floatn.h>.
20212 (libm_alias_double_other_r_f64): New macro.
20213 (libm_alias_double_other_r_f32x): Likewise.
20214 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20215 libm_alias_double_other_r_f32x.
20216
20217 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20218
20219 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20220 int.
20221 (SINF_FUNC): Likewise. Replace floor with simple casts.
20222
20223 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20224
20225 [BZ #22517]
20226 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20227 and to the list of locales to be built for testing.
20228 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20229 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20230 and build the collation rules upon that.
20231
20232 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20233
20234 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20235 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20236 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20237 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20238 instead of __insn__xxx.
20239 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20240 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20241 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20242 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20243 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20244 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20245
20246 2017-12-05 Florian Weimer <fweimer@redhat.com>
20247
20248 Linux: Implement interfaces for memory protection keys
20249 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20250 xsignal, xsysconf.
20251 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20252 * support/xunistd.h (xsysconf): Declare.
20253 * support/xraise.c: New file.
20254 * support/xsigaction.c: Likewise.
20255 * support/xsignal.c: Likewise.
20256 * support/xsysconf.c: Likewise.
20257 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20258 pkey_set, pkey_get, pkey_mprotect.
20259 [misc] (tests): Add tst-pkey.
20260 (tst-pkey): Link with -lpthread.
20261 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20262 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20263 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20264 (PKEY_DISABLE_WRITE): Define.
20265 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20266 Declare.
20267 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20268 (SEGV_PKUERR): Add.
20269 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20270 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20271 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20272 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20273 Add.
20274 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20275 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20276 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20277 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20278 * sysdeps/unix/sysv/linux/**.abilist: Update.
20279
20280 2017-12-05 Florian Weimer <fweimer@redhat.com>
20281
20282 * support/tst-test_compare.c (subprocess): Use long long instead
20283 of long argument for consistent type width across 32-bit and
20284 64-bit architectures.
20285 (do_test): Adjust expected output.
20286
20287 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20288
20289 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20290 (cosf): Define using libm_alias_float.
20291 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20292 (fabsf): Define using libm_alias_float.
20293 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20294 (fmaf): Define using libm_alias_float.
20295 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20296 (rintf): Define using libm_alias_float.
20297 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20298 (sinf): Define using libm_alias_float.
20299 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20300 <libm-alias-float.h>.
20301 (modff): Define using libm_alias_float.
20302 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20303 <libm-alias-float.h>.
20304 (logbf): Define using libm_alias_float.
20305 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20306 <libm-alias-float.h>.
20307 (ceilf): Define using libm_alias_float.
20308 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20309 <libm-alias-float.h>.
20310 (copysignf): Define using libm_alias_float.
20311 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20312 <libm-alias-float.h>.
20313 (floorf): Define using libm_alias_float.
20314 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20315 <libm-alias-float.h>.
20316 (llrintf): Define using libm_alias_float.
20317 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20318 <libm-alias-float.h>.
20319 (llroundf): Define using libm_alias_float.
20320 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20321 <libm-alias-float.h>.
20322 (lrintf): Define using libm_alias_float.
20323 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20324 <libm-alias-float.h>.
20325 (lroundf): Define using libm_alias_float.
20326 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20327 <libm-alias-float.h>.
20328 (nearbyintf): Define using libm_alias_float.
20329 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20330 <libm-alias-float.h>.
20331 (rintf): Define using libm_alias_float.
20332 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20333 <libm-alias-float.h>.
20334 (roundf): Define using libm_alias_float.
20335 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20336 <libm-alias-float.h>.
20337 (truncf): Define using libm_alias_float.
20338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20339 Include <libm-alias-float.h>.
20340 (ceilf): Define using libm_alias_float.
20341 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20342 Include <libm-alias-float.h>.
20343 (copysignf): Define using libm_alias_float.
20344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20345 Include <libm-alias-float.h>.
20346 (floorf): Define using libm_alias_float.
20347 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20348 Include <libm-alias-float.h>.
20349 (llrintf): Define using libm_alias_float.
20350 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20351 Include <libm-alias-float.h>.
20352 (llroundf): Define using libm_alias_float.
20353 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20354 Include <libm-alias-float.h>.
20355 (logbf): Define using libm_alias_float.
20356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20357 Include <libm-alias-float.h>.
20358 (lrintf): Define using libm_alias_float.
20359 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20360 Include <libm-alias-float.h>.
20361 (lroundf): Define using libm_alias_float.
20362 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20363 Include <libm-alias-float.h>.
20364 (modff): Define using libm_alias_float.
20365 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20366 Include <libm-alias-float.h>.
20367 (roundf): Define using libm_alias_float.
20368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20369 Include <libm-alias-float.h>.
20370 (truncf): Define using libm_alias_float.
20371 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20372 <libm-alias-float.h>.
20373 (llrintf): Define using libm_alias_float.
20374 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20375 <libm-alias-float.h>.
20376 (llroundf): Define using libm_alias_float.
20377 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20378 <libm-alias-float.h>.
20379 (ceilf): Define using libm_alias_float.
20380 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20381 <libm-alias-float.h>.
20382 (floorf): Define using libm_alias_float.
20383 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20384 <libm-alias-float.h>.
20385 (llroundf): Define using libm_alias_float.
20386 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20387 <libm-alias-float.h>.
20388 (lroundf): Define using libm_alias_float.
20389 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20390 <libm-alias-float.h>.
20391 (roundf): Define using libm_alias_float.
20392 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20393 <libm-alias-float.h>.
20394 (truncf): Define using libm_alias_float.
20395 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20396 <libm-alias-float.h>.
20397 (copysignf): Define using libm_alias_float.
20398 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20399 <libm-alias-float.h>.
20400 (llrintf): Define using libm_alias_float.
20401 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20402 <libm-alias-float.h>.
20403 (llroundf): Define using libm_alias_float.
20404 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20405 <libm-alias-float.h>.
20406 (lrintf): Define using libm_alias_float.
20407 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20408 <libm-alias-float.h>.
20409 (lroundf): Define using libm_alias_float.
20410 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20411 <libm-alias-float.h>.
20412 (ceilf): Define using libm_alias_float.
20413 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20414 <libm-alias-float.h>.
20415 (copysignf): Define using libm_alias_float.
20416 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20417 <libm-alias-float.h>.
20418 (cosf): Define using libm_alias_float.
20419 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20420 <libm-alias-float.h>.
20421 (floorf): Define using libm_alias_float.
20422 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20423 <libm-alias-float.h>.
20424 (llrintf): Define using libm_alias_float.
20425 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20426 <libm-alias-float.h>.
20427 (llroundf): Define using libm_alias_float.
20428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20429 <libm-alias-float.h>.
20430 (logbf): Define using libm_alias_float.
20431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20432 <libm-alias-float.h>.
20433 (modff): Define using libm_alias_float.
20434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20435 <libm-alias-float.h>.
20436 (roundf): Define using libm_alias_float.
20437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20438 <libm-alias-float.h>.
20439 (sinf): Define using libm_alias_float.
20440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20441 <libm-alias-float.h>.
20442 (truncf): Define using libm_alias_float.
20443 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20444 <libm-alias-float.h>.
20445 (ceilf): Define using libm_alias_float.
20446 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20447 <libm-alias-float.h>.
20448 (copysignf): Define using libm_alias_float.
20449 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20450 <libm-alias-float.h>.
20451 (floorf): Define using libm_alias_float.
20452 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20453 <libm-alias-float.h>.
20454 (llrintf): Define using libm_alias_float.
20455 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20456 <libm-alias-float.h>.
20457 (llroundf): Define using libm_alias_float.
20458 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20459 <libm-alias-float.h>.
20460 (nearbyintf): Define using libm_alias_float.
20461 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20462 <libm-alias-float.h>.
20463 (rintf): Define using libm_alias_float.
20464 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20465 <libm-alias-float.h>.
20466 (roundf): Define using libm_alias_float.
20467 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20468 <libm-alias-float.h>.
20469 (truncf): Define using libm_alias_float.
20470 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20471 <libm-alias-float.h>.
20472 (ceilf): Define using libm_alias_float.
20473 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20474 <libm-alias-float.h>.
20475 (floorf): Define using libm_alias_float.
20476 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20477 <libm-alias-float.h>.
20478 (llroundf): Define using libm_alias_float.
20479 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20480 <libm-alias-float.h>.
20481 (roundf): Define using libm_alias_float.
20482 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20483 <libm-alias-float.h>.
20484 (truncf): Define using libm_alias_float.
20485 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20486 <libm-alias-float.h>.
20487 (copysignf): Define using libm_alias_float.
20488 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20489 <libm-alias-float.h>.
20490 (llrintf): Define using libm_alias_float.
20491 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20492 <libm-alias-float.h>.
20493 (llroundf): Define using libm_alias_float.
20494 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20495 <libm-alias-float.h>.
20496 (cosf): Define using libm_alias_float.
20497 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20498 <libm-alias-float.h>.
20499 (llrintf): Define using libm_alias_float.
20500 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20501 <libm-alias-float.h>.
20502 (llroundf): Define using libm_alias_float.
20503 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20504 <libm-alias-float.h>.
20505 (sinf): Define using libm_alias_float.
20506
20507 2017-12-04 Florian Weimer <fweimer@redhat.com>
20508
20509 * support/check.h (TEST_COMPARE): Define.
20510 (support_test_compare_failure): Declare.
20511 * support/Makefile (libsupport-routines): Add
20512 support_test_compare_failure.
20513 (tests): Add tst-test_compare.
20514 * support /support_test_compare_failure.c: New file.
20515 * support/tst-test_compare.c: Likewise.
20516
20517 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20518
20519 [BZ #22527]
20520 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20521 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20522 available, this rewrite of the collation rules does reproduce
20523 the test file in the same order.
20524
20525 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20526
20527 [BZ #10580]
20528 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20529 digraphs in the month and day names. Using single code points for
20530 digraphs is deprecated. While there are dedicated Unicode
20531 codepoints, for the digraphs, these are included for backwards
20532 compatibility and modern texts use a sequence of Basic Latin
20533 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20534 This makes the month and day names agree exactly with CLDR now,
20535 CLDR does not use the single code points for the digraphs either.
20536
20537 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20538
20539 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20540
20541 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20542
20543 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20544 of floor.
20545
20546 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20547
20548 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20549 Define only for libc.so.
20550
20551 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20552
20553 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20554 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20555 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20556 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20557 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20558
20559 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20560
20561 [BZ #5997]
20562 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20563
20564 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20565
20566 [BZ libc/19170]
20567 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20568 PREINIT_FUNCTION_WEAK is nonzero.
20569 (gmon_initializer): New function. Put procedure label for it in
20570 .init_array section.
20571 (_init): Don't call PREINIT_FUNCTION.
20572 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20573 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20574 value when map argument is null.
20575
20576 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20577 depi instruction from PIC pc-relative sequence.
20578 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20579 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20580 (elf_machine_load_address): Likewise.
20581 (elf_machine_runtime_setup): Likewise.
20582
20583 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20584
20585 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20586 <libm-alias-double.h>.
20587 (logb): Define using libm_alias_double.
20588 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20589 <libm-alias-double.h>.
20590 (copysign): Define using libm_alias_double.
20591 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20592 <libm-alias-double.h>.
20593 (llrint): Define using libm_alias_double.
20594 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20595 <libm-alias-double.h>.
20596 (llround): Define using libm_alias_double.
20597 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20598 <libm-alias-double.h>.
20599 (lrint): Define using libm_alias_double.
20600 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20601 <libm-alias-double.h>.
20602 (lround): Define using libm_alias_double.
20603 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20604 Include <libm-alias-double.h>.
20605 (copysign): Define using libm_alias_double.
20606 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20607 Include <libm-alias-double.h>.
20608 (llrint): Define using libm_alias_double.
20609 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20610 Include <libm-alias-double.h>.
20611 (llround): Define using libm_alias_double.
20612 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20613 <libm-alias-double.h>.
20614 (logb): Define using libm_alias_double.
20615 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20616 Include <libm-alias-double.h>.
20617 (lrint): Define using libm_alias_double.
20618 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20619 Include <libm-alias-double.h>.
20620 (lround): Define using libm_alias_double.
20621 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20622 <libm-alias-double.h>.
20623 (llrint): Define using libm_alias_double.
20624 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20625 <libm-alias-double.h>.
20626 (llround): Define using libm_alias_double.
20627 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20628 <libm-alias-double.h>.
20629 (llround): Define using libm_alias_double.
20630 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20631 <libm-alias-double.h>.
20632 (lround): Define using libm_alias_double.
20633 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20634 <libm-alias-double.h>.
20635 (copysign): Define using libm_alias_double.
20636 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20637 <libm-alias-double.h>.
20638 (llrint): Define using libm_alias_double.
20639 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20640 <libm-alias-double.h>.
20641 (llround): Define using libm_alias_double.
20642 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20643 <libm-alias-double.h>.
20644 (lrint): Define using libm_alias_double.
20645 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20646 <libm-alias-double.h>.
20647 (lround): Define using libm_alias_double.
20648 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20649 <libm-alias-double.h>.
20650 (copysign): Define using libm_alias_double.
20651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20652 <libm-alias-double.h>.
20653 (llrint): Define using libm_alias_double.
20654 (lrint): Likewise.
20655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20656 <libm-alias-double.h>.
20657 (llround): Define using libm_alias_double.
20658 (lround): Likewise.
20659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20660 <libm-alias-double.h>.
20661 (logb): Define using libm_alias_double.
20662 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20663 <libm-alias-double.h>.
20664 (copysign): Define using libm_alias_double.
20665 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20666 <libm-alias-double.h>.
20667 (llrint): Define using libm_alias_double.
20668 (lrint): Likewise.
20669 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20670 <libm-alias-double.h>.
20671 (llround): Define using libm_alias_double.
20672 (lround): Likewise.
20673 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20674 <libm-alias-double.h>.
20675 (llround): Define using libm_alias_double.
20676 (lround): Likewise.
20677 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20678 <libm-alias-double.h>.
20679 (copysign): Define using libm_alias_double.
20680 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20681 <libm-alias-double.h>.
20682 (llrint): Define using libm_alias_double.
20683 (lrint): Likewise.
20684 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20685 <libm-alias-double.h>.
20686 (llround): Define using libm_alias_double.
20687 (lround): Likewise.
20688 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20689 <libm-alias-double.h>.
20690 (llrint): Define using libm_alias_double.
20691 (lrint): Likewise.
20692 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20693 <libm-alias-double.h>.
20694 (llround): Define using libm_alias_double.
20695 (lround): Likewise.
20696
20697 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20698
20699 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20700 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20701 compat symbol based on llround.
20702
20703 * sysdeps/powerpc/power7/fpu/s_logb.c
20704 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20705 symbol based on __logb, not on logb.
20706 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20707 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20708 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20709 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20710
20711 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20712 (rint): Define using libm_alias_double.
20713 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20714 <libm-alias-double.h>.
20715 (modf): Define using libm_alias_double.
20716 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20717 <libm-alias-double.h>.
20718 (ceil): Define using libm_alias_double.
20719 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20720 <libm-alias-double.h>.
20721 (floor): Define using libm_alias_double.
20722 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20723 <libm-alias-double.h>.
20724 (nearbyint): Define using libm_alias_double.
20725 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20726 <libm-alias-double.h>.
20727 (rint): Define using libm_alias_double.
20728 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20729 <libm-alias-double.h>.
20730 (round): Define using libm_alias_double.
20731 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20732 <libm-alias-double.h>.
20733 (trunc): Define using libm_alias_double.
20734 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20735 <libm-alias-double.h>.
20736 (ceil): Define using libm_alias_double.
20737 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20738 Include <libm-alias-double.h>.
20739 (floor): Define using libm_alias_double.
20740 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20741 <libm-alias-double.h>.
20742 (modf): Define using libm_alias_double.
20743 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20744 Include <libm-alias-double.h>.
20745 (round): Define using libm_alias_double.
20746 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20747 Include <libm-alias-double.h>.
20748 (trunc): Define using libm_alias_double.
20749 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20750 <libm-alias-double.h>.
20751 (ceil): Define using libm_alias_double.
20752 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20753 <libm-alias-double.h>.
20754 (floor): Define using libm_alias_double.
20755 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20756 <libm-alias-double.h>.
20757 (round): Define using libm_alias_double.
20758 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20759 <libm-alias-double.h>.
20760 (trunc): Define using libm_alias_double.
20761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20762 <libm-alias-double.h>.
20763 (ceil): Define using libm_alias_double.
20764 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20765 <libm-alias-double.h>.
20766 (floor): Define using libm_alias_double.
20767 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20768 <libm-alias-double.h>.
20769 (modf): Define using libm_alias_double.
20770 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20771 <libm-alias-double.h>.
20772 (round): Define using libm_alias_double.
20773 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20774 <libm-alias-double.h>.
20775 (trunc): Define using libm_alias_double.
20776 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20777 <libm-alias-double.h>.
20778 (ceil): Define using libm_alias_double.
20779 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20780 <libm-alias-double.h>.
20781 (floor): Define using libm_alias_double.
20782 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20783 <libm-alias-double.h>.
20784 (nearbyint): Define using libm_alias_double.
20785 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20786 <libm-alias-double.h>.
20787 (rint): Define using libm_alias_double.
20788 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20789 <libm-alias-double.h>.
20790 (round): Define using libm_alias_double.
20791 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20792 <libm-alias-double.h>.
20793 (trunc): Define using libm_alias_double.
20794 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20795 <libm-alias-double.h>.
20796 (ceil): Define using libm_alias_double.
20797 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20798 <libm-alias-double.h>.
20799 (floor): Define using libm_alias_double.
20800 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20801 <libm-alias-double.h>.
20802 (round): Define using libm_alias_double.
20803 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20804 <libm-alias-double.h>.
20805 (trunc): Define using libm_alias_double.
20806
20807 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20808 (fabs): Define using libm_alias_double.
20809 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20810 (fma): Define using libm_alias_double.
20811 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20812 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20813 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20814 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20815
20816 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20817
20818 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20819
20820 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20821 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20822 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20823
20824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20825 due redirect macro.
20826
20827 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20828
20829 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20830
20831 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20832
20833 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20834 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20835 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20836 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20837
20838 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20839 (libm-sysdep_routines): Add s_nearbyintf-generic and
20840 s_nearbyint-generic.
20841 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20842 New file.
20843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20844 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20845 Likewise.
20846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20847 Likewise.
20848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20849 file.
20850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20851 Likewise.
20852
20853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20854 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20855 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20856 file.
20857 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20859 Likewise.
20860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20863
20864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20865 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20866 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20867 file.
20868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20870 Likewise.
20871 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20874
20875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20876 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20878 file.
20879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20881 Likewise.
20882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20883 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20884 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20885
20886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20887 (sysdep_calls): New rule.
20888 (sysdep_routines): Use sysdep_calls as base.
20889 (libm-sysdep_routines): Add generic rule for symbols shared with
20890 libc. Add s_copysign-generic and s_copysign-generic objects.
20891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20892 New file.
20893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20894 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20895 Likewise.
20896 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20898 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20899
20900 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20901
20902 [BZ #22519]
20903 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20904 the list of locales to be built for testing.
20905 * localedata/is_IS.UTF-8.in: New file.
20906 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20907 on iso14651_t1.
20908
20909 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20910
20911 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20912 <libm-alias-float.h>.
20913 (fabsf): Define using libm_alias_float.
20914
20915 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20916
20917 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20918
20919 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20920
20921 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20922 <libm-alias-float.h>.
20923 (fabsf): Define using libm_alias_float.
20924 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20925 <libm-alias-float.h>.
20926 (lrintf): Define using libm_alias_float.
20927 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20928 <libm-alias-float.h>.
20929 (rintf): Define using libm_alias_float.
20930
20931 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20932 <libm-alias-double.h>.
20933 (fabs): Define using libm_alias_double.
20934 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20935 <libm-alias-double.h>.
20936 (lrint): Define using libm_alias_double.
20937 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20938 <libm-alias-double.h>.
20939 (rint): Define using libm_alias_double.
20940
20941 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20942 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20943 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20944 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20945 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20946 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20947 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20948 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20949 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20950 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20951 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20952 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20953 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20954 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20955 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20956 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20957 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20958 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20959 s_atan_template.c.
20960 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20961 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20962 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20963 s_ceil_template.c.
20964 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20965 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20966 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20967 s_cos_template.c.
20968 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20969 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20970 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20971 s_expm1_template.c.
20972 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20973 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20974 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20975 s_fabs_template.c.
20976 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20977 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20978 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20979 s_floor_template.c.
20980 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20981 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20982 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20983 s_frexp_template.c.
20984 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20985 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20986 s_lrint_template.c.
20987 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20988 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20989 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20990 s_modf_template.c.
20991 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20992 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20993 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20994 s_nearbyint_template.c.
20995 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20996 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20997 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20998 s_remquo_template.c.
20999 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
21000 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
21001 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
21002 s_rint_template.c.
21003 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
21004 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
21005 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
21006 s_sin_template.c.
21007 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21008 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21009 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21010 s_sincos_template.c.
21011 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21012 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21013 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21014 s_tan_template.c.
21015 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21016 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21017 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21018 s_tanh_template.c.
21019 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21020 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21021 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21022 s_trunc_template.c.
21023 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21024 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21025 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21026 s_atan.c instead of including s_atan.c.
21027 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21028 s_atanf.c instead of including s_atanf.c.
21029 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21030 s_atanl.c instead of including s_atanl.c.
21031 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21032 instead of s_atan.c.
21033 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21034 instead of s_atanf.c.
21035 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21036 instead of s_atanl.c.
21037
21038 * scripts/update-copyrights: Do not handle intl/plural.c
21039 specially.
21040
21041 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
21042
21043 [BZ #22432]
21044 * configure.ac (BISON): Require to be present.
21045 * configure: Regenerated.
21046 * intl/Makefile (generated): Add plural.c.
21047 [$(BISON) != no]: Make code unconditional.
21048 (plural.c): Change rule to $(objpfx)plural.c.
21049 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21050 * intl/plural.c: Remove.
21051 * manual/install.texi (Tools for Compilation): Document bison as
21052 required.
21053 * INSTALL: Regenerated.
21054
21055 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21056
21057 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21058 <libm-alias-double.h>.
21059 (llrint): Define using libm_alias_double.
21060 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21061 <libm-alias-float.h>.
21062 (llrintf): Define using libm_alias_float.
21063 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21064 <libm-alias-ldouble.h>.
21065 (llrintl): Define using libm_alias_ldouble.
21066
21067 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21068 declare_mgen_alias instead of weak_alias.
21069 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21070 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21071 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21072
21073 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21074
21075 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21076 Add add_n-generic.
21077 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21078 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21079 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21080
21081 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21082 Add submul_1-generic.
21083 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21084 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21085 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21086
21087 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21088 Add addmul_1-generic.
21089 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21090 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21091 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21092
21093 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21094 Add sub_n-generic.
21095 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21096 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21097 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21098
21099 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21100 Add mul_1-generic.
21101 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21102 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21103 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21104
21105 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21106
21107 According to CLDR, collation rules for Serbian and Bosnian
21108 should be the same as for Croatian.
21109
21110 [BZ #22534]
21111 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21112 and to the list of locales to be built for testing.
21113 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21114 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21115 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21116 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21117
21118 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21119
21120 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21121 to make test case pass.
21122 * localedata/hr_HR.UTF-8.in: Add more test strings.
21123
21124 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21125
21126 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21127
21128 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21129
21130 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21131 the list of locales to built for testing.
21132 * localedata/hr_HR.UTF-8.in: New file.
21133
21134 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21135
21136 [BZ #10580]
21137 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21138 iso14651_t1.
21139 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21140 CLDR (except use ligatures for the digraphs, CLDR does not use
21141 the ligatures), add first_workday, some fixes in the date and time
21142 formats.
21143 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21144 for Đ and đ.
21145 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21146 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21147 Add int_p_cs_precedes and int_n_cs_precedes.
21148 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21149 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21150 LC_MONETARY now).
21151 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21152 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21153 name_miss.
21154 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21155 and lang_lib. Change postal_fmt.
21156
21157 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21158
21159 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21160 <setjmp.h>.
21161 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21162 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21163 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21164 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21165 * sysdeps/generic/setjmpP.h: New file.
21166 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21167 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21168 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21169 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21170 Add jmp_buf-ssp.sym.
21171 (tests): Add tst-saved_mask-1.
21172
21173 2017-11-30 Arjun Shankar <arjun@redhat.com>
21174
21175 [BZ #22375]
21176 CVE-2017-17426
21177 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21178 instead of request2size.
21179
21180 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21181
21182 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21183 (__lllrint): Remove alias.
21184 (lllrint): Likewise.
21185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21186 (__lllrintf): Likewise.
21187 (lllrintf): Likewise.
21188
21189 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21190 <libm-alias-float.h>.
21191 (copysignf): Define using libm_alias_float.
21192 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21193 <libm-alias-float.h>.
21194 (fabsf): Define using libm_alias_float.
21195 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21196 Include <libm-alias-float.h>.
21197 (copysignf): Define using libm_alias_float.
21198 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21199 <libm-alias-float.h>.
21200 (fabsf): Define using libm_alias_float.
21201 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21202 <libm-alias-float.h>.
21203 (fdimf): Define using libm_alias_float.
21204 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21205 <libm-alias-float.h>.
21206 (fmaf): Define using libm_alias_float.
21207 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21208 <libm-alias-float.h>.
21209 (llrintf): Define using libm_alias_float.
21210 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21211 Include <libm-alias-float.h>.
21212 (nearbyintf): Define using libm_alias_float.
21213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21214 <libm-alias-float.h>.
21215 (rintf): Define using libm_alias_float.
21216 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21217 <libm-alias-float.h>.
21218 (llrintf): Define using libm_alias_float.
21219 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21220 <libm-alias-float.h>.
21221 (lrintf): Define using libm_alias_float.
21222 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21223 <libm-alias-float.h>.
21224 (nearbyintf): Define using libm_alias_float.
21225 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21226 <libm-alias-float.h>.
21227 (rintf): Define using libm_alias_float.
21228 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21229 <libm-alias-float.h>.
21230 (ceilf): Define using libm_alias_float.
21231 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21232 <libm-alias-float.h>.
21233 (floorf): Define using libm_alias_float.
21234 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21235 <libm-alias-float.h>.
21236 (fmaf): Define using libm_alias_float.
21237 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21238 <libm-alias-float.h>.
21239 (lrintf): Define using libm_alias_float.
21240 (llrintf): Likewise.
21241 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21242 <libm-alias-float.h>.
21243 (nearbyintf): Define using libm_alias_float.
21244 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21245 <libm-alias-float.h>.
21246 (rintf): Define using libm_alias_float.
21247 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21248 <libm-alias-float.h>.
21249 (truncf): Define using libm_alias_float.
21250 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21251 <libm-alias-float.h>.
21252 (copysignf): Define using libm_alias_float.
21253 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21254 <libm-alias-float.h>.
21255 (fabsf): Define using libm_alias_float.
21256 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21257 <libm-alias-float.h>.
21258 (lrintf): Define using libm_alias_float.
21259 (llrintf): Likewise.
21260 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21261 <libm-alias-float.h>.
21262 (nearbyintf): Define using libm_alias_float.
21263 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21264 <libm-alias-float.h>.
21265 (rintf): Define using libm_alias_float.
21266
21267 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21268
21269 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21270 <libm-alias-double.h>.
21271 (copysign): Define using libm_alias_double.
21272 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21273 <libm-alias-double.h>.
21274 (fabs): Define using libm_alias_double.
21275 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21276 Include <libm-alias-double.h>.
21277 (copysign): Define using libm_alias_double.
21278 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21279 <libm-alias-double.h>.
21280 (fabs): Define using libm_alias_double.
21281 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21282 <libm-alias-double.h>.
21283 (fdim): Define using libm_alias_double.
21284 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21285 <libm-alias-double.h>.
21286 (fma): Define using libm_alias_double.
21287 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21288 <libm-alias-double.h>.
21289 (llrint): Define using libm_alias_double.
21290 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21291 Include <libm-alias-double.h>.
21292 (nearbyint): Define using libm_alias_double.
21293 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21294 <libm-alias-double.h>.
21295 (rint): Define using libm_alias_double.
21296 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21297 <libm-alias-double.h>.
21298 (fabs): Define using libm_alias_double.
21299 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21300 <libm-alias-double.h>.
21301 (llrint): Define using libm_alias_double.
21302 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21303 <libm-alias-double.h>.
21304 (nearbyint): Define using libm_alias_double.
21305 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21306 <libm-alias-double.h>.
21307 (rint): Define using libm_alias_double.
21308 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21309 <libm-alias-double.h>.
21310 (ceil): Define using libm_alias_double.
21311 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21312 <libm-alias-double.h>.
21313 (floor): Define using libm_alias_double.
21314 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21315 <libm-alias-double.h>.
21316 (fma): Define using libm_alias_double.
21317 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21318 <libm-alias-double.h>.
21319 (lrint): Define using libm_alias_double.
21320 (llrint): Likewise.
21321 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21322 <libm-alias-double.h>.
21323 (nearbyint): Define using libm_alias_double.
21324 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21325 <libm-alias-double.h>.
21326 (rint): Define using libm_alias_double.
21327 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21328 <libm-alias-double.h>.
21329 (trunc): Define using libm_alias_double.
21330 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21331 <libm-alias-double.h>.
21332 (copysign): Define using libm_alias_double.
21333 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21334 <libm-alias-double.h>.
21335 (fabs): Define using libm_alias_double.
21336 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21337 <libm-alias-double.h>.
21338 (lrint): Define using libm_alias_double.
21339 (llrint): Likewise.
21340 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21341 <libm-alias-double.h>.
21342 (nearbyint): Define using libm_alias_double.
21343 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21344 <libm-alias-double.h>.
21345 (rint): Define using libm_alias_double.
21346
21347 [BZ #22229]
21348 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21349 <math_ldbl_opt.h>.
21350 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21351
21352 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21353 SPARC --disable-multi-arch glibc variants.
21354
21355 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21356 <libm-alias-float.h>.
21357 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21358 if [SHARED].
21359 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21360 <libm-alias-float.h>.
21361 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21362 if [SHARED].
21363 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21364 <libm-alias-float.h>.
21365 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21366 if [SHARED].
21367 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21368 <libm-alias-float.h>.
21369 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21370 if [SHARED].
21371 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21372 <libm-alias-float.h>.
21373 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21374 if [SHARED].
21375 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21376 <libm-alias-float.h>.
21377 (ceilf): Define using libm_alias_float.
21378 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21379 <libm-alias-float.h>.
21380 (floorf): Define using libm_alias_float.
21381 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21382 <libm-alias-float.h>.
21383 (fmaf): Define using libm_alias_float.
21384 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21385 <libm-alias-float.h>.
21386 (nearbyintf): Define using libm_alias_float.
21387 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21388 <libm-alias-float.h>.
21389 (rintf): Define using libm_alias_float.
21390 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21391 <libm-alias-float.h>.
21392 (truncf): Define using libm_alias_float.
21393 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21394 (copysignf): Define using libm_alias_float.
21395 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21396 (cosf): Define using libm_alias_float.
21397 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21398 (fabsf): Define using libm_alias_float.
21399 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21400 (fmaxf): Define using libm_alias_float.
21401 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21402 (fminf): Define using libm_alias_float.
21403 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21404 (llrintf): Define using libm_alias_float.
21405 [!__ILP32__] (lrintf): Likewise.
21406 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21407 (sincosf): Define using libm_alias_float.
21408 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21409 (sinf): Define using libm_alias_float.
21410 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21411 (lrintf): Define using libm_alias_float.
21412
21413 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21414 <libm-alias-double.h>.
21415 (atan): Define using libm_alias_double.
21416 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21417 <libm-alias-double.h>.
21418 (ceil): Define using libm_alias_double.
21419 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21420 <libm-alias-double.h>.
21421 (floor): Define using libm_alias_double.
21422 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21423 <libm-alias-double.h>.
21424 (fma): Define using libm_alias_double.
21425 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21426 <libm-alias-double.h>.
21427 (nearbyint): Define using libm_alias_double.
21428 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21429 <libm-alias-double.h>.
21430 (rint): Define using libm_alias_double.
21431 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21432 <libm-alias-double.h>.
21433 (sin): Define using libm_alias_double.
21434 (cos): Likewise.
21435 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21436 <libm-alias-double.h>.
21437 (tan): Define using libm_alias_double.
21438 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21439 <libm-alias-double.h>.
21440 (trunc): Define using libm_alias_double.
21441 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21442 (copysign): Define using libm_alias_double.
21443 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21444 (fabs): Define using libm_alias_double.
21445 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21446 (fmax): Define using libm_alias_double.
21447 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21448 (fmin): Define using libm_alias_double.
21449 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21450 (llrint): Define using libm_alias_double.
21451 [!__ILP32__] (lrint): Likewise.
21452 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21453 (lrint): Define using libm_alias_double.
21454
21455 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21456
21457 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21458 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21459 objects.
21460 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21461 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21462 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21463 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21464 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21465 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21466
21467 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21468 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21469 objects.
21470 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21471 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21472 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21473 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21474 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21475 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21476
21477 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21478 (libm-sysdep_routines): Add s_nearbyint-generic and
21479 s_nearbyintf-generic objects.
21480 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21481 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21482 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21483 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21484 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21485 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21486
21487 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21488 Add s_finitef-generic and s_finite-generic objects.
21489 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21490 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21491 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21492 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21493 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21494 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21495
21496 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21497 Add s_isinff-generic and s_isinf-generic objects.
21498 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21499 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21500 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21501 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21502 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21503 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21504
21505 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21506 Add s_isnanf-generic and s_isnan-generic objects.
21507 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21508 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21509 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21510 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21511 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21512 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21513
21514 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21515 macro.
21516 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21517 rule.
21518 (sysdep_routines): Use sysdep_calls as base.
21519 (libm-sysdep_routines): Add generic rule for symbols shared with
21520 libc. Add s_signbit-generic and s_signbitf-generic objects.
21521 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21522 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21523 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21524 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21525 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21526 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21527
21528 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21529
21530 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21531 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21532 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21533 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21534 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21535 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21536 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21537 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21538 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21539 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21540 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21541 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21542 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21543 libm_alias_float_r.
21544 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21545 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21546 (logf): Likewise.
21547 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21548 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21549 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21550 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21551 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21552 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21553 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21554 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21555 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21556 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21557 libm_alias_float.
21558 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21559 (cosf): Likewise.
21560 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21561 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21562 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21563 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21564 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21565 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21566 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21567 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21568 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21569 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21570 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21571 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21572 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21573 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21574 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21575 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21576 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21577 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21578 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21579 libm_alias_float.
21580 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21581 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21582 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21583 * sysdeps/ia64/fpu/w_lgammaf_main.c
21584 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21585 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21586
21587 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21588 Alexandre Oliva <aoliva@redhat.com>
21589
21590 [BZ #17750]
21591 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21592 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21593 accents sorting.
21594 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21595 sorting.
21596 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21597 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21598 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21599 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21600 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21601 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21602 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21603 instead of “ifdef DIACRIT_BACKWARD”.
21604
21605 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21606
21607 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21608 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21609 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21610 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21611 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21612 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21613 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21614 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21615 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21616 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21617 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21618 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21619 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21620 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21621 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21622 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21623 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21624 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21626 ($(have-as-vis3) == yes): Remove conditional.
21627 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21628 Likewise.
21629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21630 file.
21631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21632 file.
21633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21634 file.
21635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21636 file.
21637 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21638 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21639 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21640 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21641 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21642 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21643 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21644 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21645
21646 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21647
21648 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21649 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21650 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21651 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21652 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21653 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21654 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21655 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21656 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21657 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21658 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21659 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21660 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21661 libm_alias_double_r.
21662 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21663 (log): Likewise.
21664 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21665 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21666 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21667 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21668 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21669 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21670 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21671 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21672 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21673 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21674 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21675 libm_alias_double.
21676 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21677 (cos): Likewise.
21678 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21679 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21680 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21681 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21682 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21683 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21684 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21685 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21686 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21687 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21688 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21689 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21690 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21691 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21692 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21693 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21694 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21695 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21696 libm_alias_double.
21697 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21698 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21699 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21700 * sysdeps/ia64/fpu/w_lgamma_main.c
21701 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21702 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21703
21704 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21705
21706 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21707 address of $global$ into %dp register earlier. Use pc-relative
21708 instruction sequence for PIC case.
21709
21710 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21711
21712 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21713 (asinhf): Define using libm_alias_float.
21714 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21715 (atanf): Define using libm_alias_float.
21716 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21717 (cbrtf): Define using libm_alias_float.
21718 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21719 (ceilf): Define using libm_alias_float.
21720 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21721 (copysignf): Define using libm_alias_float.
21722 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21723 (expm1f): Define using libm_alias_float.
21724 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21725 (fabsf): Define using libm_alias_float.
21726 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21727 (floorf): Define using libm_alias_float.
21728 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21729 (fmaxf): Define using libm_alias_float.
21730 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21731 (fminf): Define using libm_alias_float.
21732 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21733 (frexpf): Define using libm_alias_float.
21734 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21735 (llrintf): Define using libm_alias_float.
21736 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21737 (logbf): Define using libm_alias_float.
21738 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21739 (lrintf): Define using libm_alias_float.
21740 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21741 (nearbyintf): Define using libm_alias_float.
21742 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21743 (remquof): Define using libm_alias_float.
21744 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21745 (rintf): Define using libm_alias_float.
21746 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21747 (truncf): Define using libm_alias_float.
21748 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21749 <libm-alias-float.h>.
21750 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21751 if [SHARED].
21752 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21753 <libm-alias-float.h>.
21754 (expf): Define using libm_alias_float, or libm_alias_float_other
21755 if [SHARED].
21756 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21757 <libm-alias-float.h>.
21758 (log2f): Define using libm_alias_float, or libm_alias_float_other
21759 if [SHARED].
21760 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21761 <libm-alias-float.h>.
21762 (logf): Define using libm_alias_float, or libm_alias_float_other
21763 if [SHARED].
21764 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21765 <libm-alias-float.h>.
21766 (powf): Define using libm_alias_float, or libm_alias_float_other
21767 if [SHARED].
21768 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21769 <libm-alias-float.h>.
21770 (cosf): Define using libm_alias_float.
21771 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21772 <libm-alias-float.h>.
21773 (sincosf): Define using libm_alias_float.
21774 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21775 <libm-alias-float.h>.
21776 (sinf): Define using libm_alias_float.
21777 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21778 (fmaxf): Define using libm_alias_float.
21779 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21780 (fminf): Define using libm_alias_float.
21781 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21782 <libm-alias-float.h>.
21783 (fmaf): Define using libm_alias_float.
21784
21785 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21786 (asinh): Define using libm_alias_double.
21787 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21788 (atan): Define using libm_alias_double.
21789 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21790 (cbrt): Define using libm_alias_double.
21791 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21792 (ceil): Define using libm_alias_double.
21793 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21794 (copysign): Define using libm_alias_double.
21795 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21796 (expm1): Define using libm_alias_double.
21797 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21798 (fabs): Define using libm_alias_double.
21799 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21800 (fdim): Define using libm_alias_double.
21801 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21802 (floor): Define using libm_alias_double.
21803 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21804 (fmax): Define using libm_alias_double.
21805 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21806 (fmin): Define using libm_alias_double.
21807 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21808 (frexp): Define using libm_alias_double.
21809 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21810 (llrint): Define using libm_alias_double.
21811 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21812 (logb): Define using libm_alias_double.
21813 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21814 (lrint): Define using libm_alias_double.
21815 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21816 (nearbyint): Define using libm_alias_double.
21817 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21818 (remquo): Define using libm_alias_double.
21819 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21820 (rint): Define using libm_alias_double.
21821 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21822 (trunc): Define using libm_alias_double.
21823 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21824 (fmax): Define using libm_alias_double.
21825 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21826 (fmin): Define using libm_alias_double.
21827 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21828 (fma): Define using libm_alias_double.
21829
21830 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21831
21832 [BZ #22370]
21833 * elf/dl-hwcaps.c (ROUND): Removed.
21834 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21835 and ELF_NOTE_NEXT_OFFSET.
21836 * elf/dl-load.c (ROUND): Removed.
21837 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21838 * elf/readelflib.c (ROUND): Removed.
21839 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21840 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21841 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21842 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21843
21844 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21845
21846 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21847 [!__fmaf] (fmaf): Define using libm_alias_float.
21848
21849 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21850 [!__fma] (fma): Define using libm_alias_double.
21851 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21852
21853 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21854
21855 [BZ #22336]
21856 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21857 and implement the collation rules for cs from CLDR on top of that.
21858 * Makefile: Add cs_CZ.UTF-8 to test-input.
21859 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21860
21861 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21862
21863 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21864
21865 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21866 Icarus Sparry <icarus.w.sparry@intel.com>
21867
21868 * benchtests/Makefile:Add BENCHSET to allow subsets of
21869 benchmarks to be run.
21870 * benchtests/README: Add documentation for: Running subsets of
21871 benchmarks.
21872
21873 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21874
21875 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21876 range of tests names.
21877
21878 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21879 result from property and remove "max", min" and "mean" from
21880 required properties based on benchtests/bench-skeleton.c.
21881
21882 2017-11-28 Florian Weimer <fweimer@redhat.com>
21883
21884 [BZ #20826]
21885 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21886 due to Internet requirement.
21887 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21888 tst-getaddrinfo5.
21889 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21890
21891 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21892
21893 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21894 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21895 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21896 (sysdep_routines): Add memset-ultra1.
21897 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21898 file.
21899 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21900 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21901 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21902 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21903 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21904 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21905 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21906 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21907
21908 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21909 file.
21910 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21911 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21912 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21913 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21914 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21915 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21916 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21917 macro.
21918 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21919 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21920 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21921 (sysdep_routines): Add memcpy-ultra1.
21922 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21923 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21924
21925 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21926
21927 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21928 (cfloat_versions): Take function argument without trailing 'f'.
21929 Call libm_alias_float_other.
21930 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21931 * sysdeps/alpha/fpu/cargf.c: Likewise.
21932 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21933 * sysdeps/alpha/fpu/conjf.c: Likewise.
21934 * sysdeps/alpha/fpu/crealf.c: Likewise.
21935 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21936 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21937 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21938 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21939 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21940 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21941 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21942 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21943 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21944 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21945 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21946 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21947 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21948 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21949 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21950 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21951 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21952 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21953 (clog10f): Use libm_alias_float_other.
21954 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21955 (ceilf): Define using libm_alias_float.
21956 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21957 (copysignf): Define using libm_alias_float.
21958 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21959 (fabsf): Define using libm_alias_float.
21960 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21961 (floorf): Define using libm_alias_float.
21962 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21963 (fmaxf): Define using libm_alias_float.
21964 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21965 (fminf): Define using libm_alias_float.
21966 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21967 (lrintf): Define using libm_alias_float.
21968 (llrintf): Likewise.
21969 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21970 (lroundf): Define using libm_alias_float.
21971 (llroundf): Likewise.
21972 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21973 (rintf): Define using libm_alias_float.
21974 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21975 (truncf): Define using libm_alias_float.
21976
21977 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21978 (ceilf): Define using libm_alias_float.
21979 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21980 (floorf): Define using libm_alias_float.
21981 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21982 (fmaf): Define using libm_alias_float.
21983 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21984 (fmaxf): Define using libm_alias_float.
21985 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21986 (fminf): Define using libm_alias_float.
21987 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21988 (llrintf): Define using libm_alias_float.
21989 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21990 (llroundf): Define using libm_alias_float.
21991 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21992 (lrintf): Define using libm_alias_float.
21993 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21994 (lroundf): Define using libm_alias_float.
21995 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21996 <libm-alias-float.h>.
21997 (nearbyintf): Define using libm_alias_float.
21998 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21999 (rintf): Define using libm_alias_float.
22000 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
22001 (roundf): Define using libm_alias_float.
22002 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
22003 (truncf): Define using libm_alias_float.
22004
22005 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
22006 (ceil): Define using libm_alias_double.
22007 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22008 (copysign): Define using libm_alias_double.
22009 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22010 (fabs): Define using libm_alias_double.
22011 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22012 (floor): Define using libm_alias_double.
22013 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22014 (fmax): Define using libm_alias_double.
22015 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22016 (fmin): Define using libm_alias_double.
22017 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22018 (lrint): Define using libm_alias_double.
22019 (llrint): Likewise.
22020 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22021 (lround): Define using libm_alias_double.
22022 (llround): Likewise.
22023 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22024 (rint): Define using libm_alias_double.
22025 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22026 (trunc): Define using libm_alias_double.
22027
22028 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22029 (libm_alias_double_r): Add semicolon after weak_alias call.
22030
22031 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22032
22033 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22034 (ceil): Define using libm_alias_double.
22035 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22036 (floor): Define using libm_alias_double.
22037 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22038 (fma): Define using libm_alias_double.
22039 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22040 (fmax): Define using libm_alias_double.
22041 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22042 (fmin): Define using libm_alias_double.
22043 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22044 (llrint): Define using libm_alias_double.
22045 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22046 (llround): Define using libm_alias_double.
22047 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22048 (lrint): Define using libm_alias_double.
22049 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22050 (lround): Define using libm_alias_double.
22051 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22052 (nearbyint): Define using libm_alias_double.
22053 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22054 (rint): Define using libm_alias_double.
22055 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22056 (round): Define using libm_alias_double.
22057 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22058 (trunc): Define using libm_alias_double.
22059
22060 2017-11-27 Florian Weimer <fweimer@redhat.com>
22061
22062 * sysdeps/unix/sysv/linux/mlock2.c: New file.
22063 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22064 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22065 (tests): Add tst-mlock2.
22066 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22067 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22068 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22069 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22070 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22071 for mlock. Document mlock2.
22072
22073 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22074
22075 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22076 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22077 Likewise.
22078 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22079 Likewise.
22080 * sysdeps/x86/Makeconfig: New file.
22081 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22082 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22083 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22084 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22085 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22086 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22087 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22088 Likewise.
22089 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22090 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22091 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22092 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22093 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22094 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22095 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22096 * manual/math.texi (Mathematics): Document support for _Float64x.
22097 * math/Versions (GLIBC_2.27): Add _Float64x functions.
22098 * stdlib/Versions (GLIBC_2.27): Likewise.
22099 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22100 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22101 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22102 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22103 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22104 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22105 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22106 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22107 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22108 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22109 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22110 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22112 Likewise.
22113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22114 Likewise.
22115 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22116 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22117 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22118 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22119 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22120 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22121 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22122 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22123 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22124 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22125 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22126 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22127 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22128 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22129
22130 2017-11-27 Andreas Schwab <schwab@suse.de>
22131
22132 * elf/Makefile (dl-routines): Add dl-sort-maps.
22133 * elf/dl-sort-maps.c: New file.
22134 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22135 (_dl_sort_maps): Declare.
22136 * elf/dl-fini.c (_dl_sort_fini): Remove.
22137 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22138 * elf/dl-close.c (_dl_close_worker): Likewise.
22139 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22140 open-coding it.
22141 * elf/dl-open.c (dl_open_worker): Likewise.
22142
22143 2017-11-24 Joseph Myers <joseph@codesourcery.com>
22144
22145 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22146 using libm_alias_float128.
22147 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22148 Likewise.
22149 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22150 Likewise.
22151 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22152 (setpayloadsigf128): Likewise.
22153 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22154 Likewise.
22155 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22156 Likewise.
22157
22158 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22159 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22160 -mfloat128 to CFLAGS.
22161 ($(foreach
22162 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22163 Likewise.
22164 (CFLAGS-libm-test-support-float64x.c): New variable.
22165 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22166 $(f128-loader-link) to gnulib-tests.
22167
22168 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22169 (libm_alias_float128_other_r): If
22170 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22171 alias.
22172 (libm_alias_float128_r): Add semicolon after weak_alias call.
22173 * sysdeps/generic/libm-alias-ldouble.h
22174 (libm_alias_ldouble_other_r_f128): New macro.
22175 (libm_alias_ldouble_other_r_f64x): Likewise.
22176 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22177 and libm_alias_ldouble_other_r_f64x.
22178 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22179 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22180 (libm_alias_ldouble_other_r_f128): New macro.
22181 (libm_alias_ldouble_other_r_f64x): Likewise.
22182 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22183 and libm_alias_ldouble_other_r_f64x.
22184
22185 * stdlib/strfroml.c: Always include <stdlib.h>.
22186 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22187 undefine as macro and define as weak alias.
22188 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22189 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22190 <stdlib.h>.
22191 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22192 Define and later undefine as macro and define as weak alias.
22193
22194 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22195 Define and later undefine as macro. Define as weak alias if
22196 [!USE_WIDE_CHAR].
22197 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22198 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22199 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22200 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22201 Define and later undefine as macro. Define as weak alias if
22202 [!USE_WIDE_CHAR].
22203 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22204 Define and later undefine as macro. Define as weak alias if
22205 [USE_WIDE_CHAR].
22206 * sysdeps/ieee754/float128/strtof128_l.c
22207 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22208 Define and later undefine as macro. Define as weak alias if
22209 [!USE_WIDE_CHAR].
22210 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22211 Define and later undefine as macro. Define as weak alias if
22212 [USE_WIDE_CHAR].
22213 * sysdeps/ieee754/ldbl-128/strtold_l.c
22214 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22215 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22216 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22217 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22218 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22219 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22220 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22221 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22222 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22223 * sysdeps/ieee754/ldbl-96/strtold_l.c
22224 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22225 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22226 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22227 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22228
22229 * math/test-float64x.h: New file.
22230 * math/Makefile (type-float64x-yes): New variable.
22231 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22232
22233 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22234 function-like macro.
22235 (min_of_type_): Likewise.
22236 (min_of_type_l): Likewise.
22237 (min_of_type_f128): Likewise.
22238 (min_of_type): Pass () as last argument of __MATH_TG.
22239
22240 * stdlib/tst-strtod-round-skeleton.c
22241 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22242 headers.
22243
22244 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22245 for combinations of long double with _Float64 and _Float64x.
22246
22247 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22248 (__DECL_SIMD_cosf32): Likewise.
22249 (__DECL_SIMD_cosf64): Likewise.
22250 (__DECL_SIMD_cosf32x): Likewise.
22251 (__DECL_SIMD_cosf64x): Likewise.
22252 (__DECL_SIMD_cosf128x): Likewise.
22253 (__DECL_SIMD_sinf16): Likewise.
22254 (__DECL_SIMD_sinf32): Likewise.
22255 (__DECL_SIMD_sinf64): Likewise.
22256 (__DECL_SIMD_sinf32x): Likewise.
22257 (__DECL_SIMD_sinf64x): Likewise.
22258 (__DECL_SIMD_sinf128x): Likewise.
22259 (__DECL_SIMD_sincosf16): Likewise.
22260 (__DECL_SIMD_sincosf32): Likewise.
22261 (__DECL_SIMD_sincosf64): Likewise.
22262 (__DECL_SIMD_sincosf32x): Likewise.
22263 (__DECL_SIMD_sincosf64x): Likewise.
22264 (__DECL_SIMD_sincosf128x): Likewise.
22265 (__DECL_SIMD_logf16): Likewise.
22266 (__DECL_SIMD_logf32): Likewise.
22267 (__DECL_SIMD_logf64): Likewise.
22268 (__DECL_SIMD_logf32x): Likewise.
22269 (__DECL_SIMD_logf64x): Likewise.
22270 (__DECL_SIMD_logf128x): Likewise.
22271 (__DECL_SIMD_expf16): Likewise.
22272 (__DECL_SIMD_expf32): Likewise.
22273 (__DECL_SIMD_expf64): Likewise.
22274 (__DECL_SIMD_expf32x): Likewise.
22275 (__DECL_SIMD_expf64x): Likewise.
22276 (__DECL_SIMD_expf128x): Likewise.
22277 (__DECL_SIMD_powf16): Likewise.
22278 (__DECL_SIMD_powf32): Likewise.
22279 (__DECL_SIMD_powf64): Likewise.
22280 (__DECL_SIMD_powf32x): Likewise.
22281 (__DECL_SIMD_powf64x): Likewise.
22282 (__DECL_SIMD_powf128x): Likewise.
22283
22284 * stdlib/Versions (libc): Move entries for wcstof128 and
22285 wcstof128_l to ....
22286 * wcsmbs/Versions (libc): ... here.
22287 Include <float128-abi.h>.
22288
22289 2017-11-24 Florian Weimer <fweimer@redhat.com>
22290
22291 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22292 bits/mman-shared.h.
22293 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22294 <bits/mman-shared.h>.
22295 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22296 to ...
22297 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22298 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22299 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22300 <bits/mman-shared.h>.
22301
22302 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22303
22304 [BZ #22457]
22305 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22306 posix_memalign/free.
22307 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22308
22309 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22310
22311 [BZ #22469]
22312 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22313 and implement the collation rules for pl from CLDR on top of that.
22314 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22315 of locales to be built for testing.
22316 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22317
22318 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22319
22320 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22321 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22322 libm_alias_ldouble_other.
22323 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22324 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22325 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22326 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22327 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22328 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22329 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22330 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22331 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22332 libm_alias_ldouble_r.
22333 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22334 libm_alias_ldouble_other.
22335 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22336 (log10l): Likewise.
22337 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22338 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22339 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22340 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22341 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22342 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22343 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22344 (atan2l): Likewise.
22345 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22346 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22347 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22348 libm_alias_ldouble.
22349 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22350 (cosl): Likewise.
22351 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22352 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22353 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22354 (expl): Likewise.
22355 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22356 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22357 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22358 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22359 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22360 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22361 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22362 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22363 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22364 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22365 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22366 libm_alias_ldouble.
22367 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22368 libm_alias_ldouble_other.
22369 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22370 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22371 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22372 libm_alias_ldouble.
22373 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22374 libm_alias_ldouble_other.
22375 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22376 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22377 * sysdeps/ia64/fpu/w_lgammal_main.c
22378 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22379 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22380
22381 2017-11-23 Florian Weimer <fweimer@redhat.com>
22382
22383 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22384 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22385 alike. Remove freeres marker.
22386 * malloc/arena.c (arena_thread_freeres): Call
22387 tcache_thread_shutdown.
22388
22389 2017-11-23 Florian Weimer <fweimer@redhat.com>
22390
22391 [BZ #22459]
22392 Export nscd hash function as __nss_hash.
22393 * include/nss.h (__nss_hash): Declare.
22394 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22395 symbol.
22396 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22397 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22398 of __nscd_hash.
22399 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22400 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22401 * nss/Makefiles (routines): Add nss_hash.
22402 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22403 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22404 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22405 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22406
22407 2017-11-23 Florian Weimer <fweimer@redhat.com>
22408
22409 [BZ #22478]
22410 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22411 Return error code, not -1.
22412 * signal/tst-sigwait-eintr.c: New file.
22413 * signal/Makefile (tests): Add tst-sigwait-eintr.
22414
22415 2017-11-23 Florian Weimer <fweimer@redhat.com>
22416
22417 Linux: Add memfd_create system call wrapper
22418 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22419 tst-memfd_create.
22420 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22421 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22422 [__USE_GNU] (memfd_create): Declare.
22423 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22424 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22425 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22426 * sysdeps/unix/sysv/linux/**.abilist: Update.
22427 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22428
22429 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22430
22431 * localedata/gen-locale.sh: Fix typo in variable name.
22432
22433 * resolv/res_debug.c (p_secstodate): Condition definition on
22434 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22435 directly as __p_secstodate, and as a compat symbol. Do not use
22436 libresolv_hidden_def.
22437 * resolv/resolv.h (p_secstodate): Remove macro and function
22438 declaration.
22439 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22440 using p_secstodate.
22441 * include/resolv.h (__p_secstodate): Do not use
22442 libresolv_hidden_proto.
22443 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22444 (tests-internal): ... here.
22445 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22446 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22447 and declare and use __p_secstodate and use compat_symbol_reference
22448 in that case.
22449 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22450 implementation returning 77.
22451
22452 [BZ #22463]
22453 * resolv/res_debug.c: Include <libc-diag.h>.
22454 (p_secstodate): Assert time_t at least as wide as u_long. On
22455 overflow, use integer seconds since the epoch as output, or use
22456 "<overflow>" as output and set errno to EOVERFLOW if integer
22457 seconds since the epoch would be 14 or more characters.
22458 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22459 for sprintf call.
22460 * resolv/tst-p_secstodate.c: New file.
22461 * resolv/Makefile (tests): Add tst-p_secstodate.
22462 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22463
22464 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22465 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22466 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22467
22468 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22469
22470 * posix/regcomp.c (init_word_char): Add comments.
22471
22472 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22473
22474 [BZ #22447]
22475 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22476 strlen to compute length of ut_user and set trailing NUL byte of
22477 result explicitly.
22478
22479 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22480
22481 [BZ #15537]
22482 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22483 using “copy "iso14651_t1"” and then implementing the
22484 collation rules for lv from CLDR on top of that.
22485 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22486 of locales to be built for testing.
22487 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22488 sorting.
22489
22490 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22491
22492 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22493 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22494 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22495 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22496 [__USE_MISC] (MADV_HWPOISON): New macro.
22497 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22498
22499 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22500
22501 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22502 -Wmissing-braces on GCC 4.9.
22503
22504 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22505
22506 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22507 * sysdeps/s390/s390-32/start.S (_start): Likewise
22508 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22509 (thread_start): Likewise.
22510 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22511 (thread_start): Likewise.
22512 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22513 (__makecontext_ret): Likewise.
22514 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22515 (__makecontext_ret): Likewise.
22516
22517 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22518
22519 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22520 __wcschrnul): Remove attribute_hidden.
22521
22522 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22523
22524 regex: don't assume uint64_t or uint32_t
22525 This avoids -Werror=overflow errors for 32-bit systems in
22526 the 64-bit case. Problem reported by Joseph Myers in:
22527 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22528 Also, when this code is used in Gnulib it ports to platforms
22529 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22530 them, and on some 32-bit compilers there is no uint64_t.
22531 Problem reported by Gianluigi Tiesi in:
22532 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22533 * posix/regcomp.c (init_word_char): Don't assume that the types
22534 uint64_t and uint32_t exist. Adapted from Gnulib patch
22535 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22536 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22537
22538 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22539
22540 * sysdeps/aarch64/memset-reg.h: New file.
22541 * sysdeps/aarch64/memset.S: Use it.
22542 (__memset): Rename to MEMSET macro.
22543 [ZVA_MACRO]: Use zva_macro.
22544 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22545 Add memset_generic and memset_falkor.
22546 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22547 (__libc_ifunc_impl_list): Add memset ifuncs.
22548 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22549 local variable zva_size.
22550 * sysdeps/aarch64/multiarch/memset.c: New file.
22551 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22552 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22553 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22554 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22555 (DCZID_DZP_MASK): New macro.
22556 (DCZID_BS_MASK): Likewise.
22557 (init_cpu_features): Read and set zva_size.
22558 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22559 (struct cpu_features): New member zva_size.
22560
22561 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22562 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22563 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22564
22565 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22566 backwards. Fix timing computation.
22567 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22568 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22569 on memset by N at a time. Fix timing computation.
22570
22571 2017-11-20 Florian Weimer <fweimer@redhat.com>
22572
22573 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22574 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22575
22576 2017-11-19 Florian Weimer <fweimer@redhat.com>
22577
22578 manual: Document mprotect
22579 * manual/memory.texi (Memory Protection): New section.
22580 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22581 documentation of PROT_* flags and reference the Memory Protection
22582 section instead.
22583
22584 2017-11-19 Florian Weimer <fweimer@redhat.com>
22585
22586 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22587 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22588 (Scatter-Gather): ... to here. Remove misleading comment.
22589
22590 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22591
22592 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22593 style.
22594
22595 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22596 when /proc/<pid>/setgroups does not exist.
22597
22598 2017-11-18 Florian Weimer <fweimer@redhat.com>
22599
22600 * sysdeps/unix/sysv/linux/tst-ttyname.c
22601 (become_root_in_mount_ns): Remove.
22602 (do_in_chroot_1): Call support_enter_mount_namespace.
22603 (do_in_chroot_2): Likewise.
22604 (do_test): Call support_become_root early.
22605
22606 2017-11-18 Florian Weimer <fweimer@redhat.com>
22607
22608 * support/namespace.h (support_enter_mount_namespace): Declare.
22609 * support/support_enter_mount_namespace.c: New file.
22610 * support/Makefile (libsupport-routines): Add
22611 support_enter_mount_namespace.
22612
22613 2017-11-18 Florian Weimer <fweimer@redhat.com>
22614
22615 * support/temp_file.c (support_create_temp_directory): Use
22616 test_dir and do not rely on the presence of the XXXXXX suffix.
22617 * support/temp_file.h (support_create_temp_directory): Update
22618 comment.
22619 * support/tst-xreadlink.c (do_test): Adjust.
22620 * support/support_chroot.c (support_chroot_create): Likewise.
22621
22622 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22623
22624 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22625 macro.
22626 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22627 htm-no-suspend.
22628
22629 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22630
22631 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22632 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22633 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22634 (ceill): Define using libm_alias_ldouble.
22635 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22636 <libm-alias-ldouble.h>.
22637 (copysignl): Define using libm_alias_ldouble.
22638 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22639 (fabsl): Define using libm_alias_ldouble.
22640 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22641 (floorl): Define using libm_alias_ldouble.
22642 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22643 (fmaxl): Define using libm_alias_ldouble.
22644 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22645 (fminl): Define using libm_alias_ldouble.
22646 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22647 (llrintl): Define using libm_alias_ldouble.
22648 (lrintl): Likewise.
22649 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22650 <libm-alias-ldouble.h>.
22651 (nearbyintl): Define using libm_alias_ldouble.
22652 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22653 (truncl): Define using libm_alias_ldouble.
22654 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22655 <libm-alias-ldouble.h>.
22656 (lrintl): Define using libm_alias_ldouble.
22657
22658 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22659 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22660 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22661 (asinhl): Define using libm_alias_ldouble.
22662 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22663 (atanl): Define using libm_alias_ldouble.
22664 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22665 (cbrtl): Define using libm_alias_ldouble.
22666 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22667 (ceill): Define using libm_alias_ldouble.
22668 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22669 (copysignl): Define using libm_alias_ldouble.
22670 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22671 (fabsl): Define using libm_alias_ldouble.
22672 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22673 (floorl): Define using libm_alias_ldouble.
22674 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22675 (fmaxl): Define using libm_alias_ldouble.
22676 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22677 (fminl): Define using libm_alias_ldouble.
22678 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22679 (frexpl): Define using libm_alias_ldouble.
22680 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22681 (llrintl): Define using libm_alias_ldouble.
22682 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22683 (logbl): Define using libm_alias_ldouble.
22684 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22685 (lrintl): Define using libm_alias_ldouble.
22686 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22687 (nearbyintl): Define using libm_alias_ldouble.
22688 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22689 (nextafterl): Define using libm_alias_ldouble.
22690 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22691 (remquol): Define using libm_alias_ldouble.
22692 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22693 (rintl): Define using libm_alias_ldouble.
22694 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22695 (truncl): Define using libm_alias_ldouble.
22696 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22697 (fmaxl): Define using libm_alias_ldouble.
22698 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22699 (fminl): Define using libm_alias_ldouble.
22700
22701 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22702 to C syntax instead of availability and properties of types.
22703 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22704 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22705 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22706 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22707 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22708 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22709
22710 2017-11-17 Florian Weimer <fweimer@redhat.com>
22711
22712 support_become_root: Enable file creation in namespaces.
22713 * support/support_become_root.c (setup_mapping): New function.
22714 (support_become_root): Call it.
22715
22716 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22717
22718 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22719 macro.
22720
22721 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22722
22723 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22724 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22725
22726 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22727
22728 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22729
22730 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22731 version to 4.14.
22732
22733 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22734
22735 * INSTALL: Fix botched up regeneration.
22736
22737 * NEWS: Update sourceare link to https.
22738 * configure.ac: Likewise.
22739 * crypt/md5test-giant.c: Likewise.
22740 * dlfcn/bug-atexit1.c: Likewise.
22741 * dlfcn/bug-atexit2.c: Likewise.
22742 * localedata/README: Likewise.
22743 * malloc/tst-mallocfork.c: Likewise.
22744 * manual/install.texi: Likewise.
22745 * nptl/tst-pthread-getattr.c: Likewise.
22746 * stdio-common/tst-fgets.c: Likewise.
22747 * stdio-common/tst-fwrite.c: Likewise.
22748 * sunrpc/Makefile: Likewise.
22749 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22750 * wcsmbs/tst-mbrtowc2.c: Likewise.
22751 * configure: Regenerate.
22752 * INSTALL: Regenerate.
22753
22754 2017-11-15 Martin Sebor <msebor@redhat.com>
22755
22756 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22757 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22758 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22759
22760 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22761
22762 [BZ #22145]
22763 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22764 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22765
22766 [BZ #22145]
22767 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22768 Defer is_pty check until end of the function.
22769 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22770
22771 [BZ #22145]
22772 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22773 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22774 (ttyname): Likewise.
22775 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22776 (__ttyname_r): Likewise.
22777
22778 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22779 int to bool.
22780
22781 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22782
22783 * manual/terminal.texi (Is It a Terminal):
22784 Mention ENODEV for ttyname and ttyname_r.
22785
22786 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22787
22788 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22789 constant and macro.
22790
22791 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22792 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22793 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22794 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22795 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22796 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22797
22798 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22799
22800 * signal/sigrelse.c (sigrelse): Optimize implementation.
22801
22802 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22803 (__sigpause): Rely on __sigsuspend to implement single thread
22804 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22805
22806 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22807
22808 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22809 kernel version to 4.14.
22810
22811 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22812
22813 [BZ #22442]
22814 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22815 Check if ifname is too long.
22816
22817 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22818
22819 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22820
22821 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22822
22823 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22824 was accidentally lost.
22825
22826 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22827
22828 * localedata/locales/az_IR: Add standard copyright header.
22829
22830 2017-11-15 Florian Weimer <fweimer@redhat.com>
22831
22832 [BZ #22439]
22833 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22834 not just the top one. Output a new "subheaps" statistic.
22835
22836 2017-11-15 Florian Weimer <fweimer@redhat.com>
22837
22838 [BZ #22408]
22839 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22840 under the per-arena lock.
22841 * malloc/Makefile (tests): Add tst-malloc_info.
22842 (tst-malloc_info): Link with libpthread.
22843 * malloc/tst-malloc_info.c: New file.
22844
22845 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22846
22847 [BZ #21660]
22848 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22849 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22850 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22851 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22852 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22853 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22854 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22855 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22856 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22857 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22858 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22859 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22860 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22861 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22862 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22863 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22864 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22865 (__floating_type): Likewise.
22866 (__real_integer_type): Likewise.
22867 (__complex_integer_type): Likewise.
22868 (__expr_is_real): Likewise.
22869 (__tgmath_real_type_sub): Likewise.
22870 (__tgmath_real_type): Likewise.
22871 (__tgmath_complex_type_sub): Likewise.
22872 (__tgmath_complex_type): Likewise.
22873 (__TGMATH_F128): Likewise.
22874 (__TGMATH_CF128): Likewise.
22875 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22876 new macros.
22877 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22878 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22879 Likewise.
22880 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22881 Likewise.
22882 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22883 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22884 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22885 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22886 Likewise.
22887 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22888 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22889 Likewise.
22890 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22891 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22892 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22893 Likewise.
22894 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22895 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22896 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22897 (cimag): Likewise.
22898 (creal): Likewise.
22899
22900 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22901
22902 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22903 for stpncpy calls for GCC 8.
22904 (test_strncat): Disable -Wstringop-truncation warning for strncat
22905 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22906 strncat call for GCC 7.
22907 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22908 calls for GCC 8.
22909 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22910 trailing NUL.
22911
22912 * string/bug-strncat1.c: Include <libc-diag.h>.
22913 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22914
22915 2017-11-13 Claude Paroz <claude@2xlibre.net>
22916
22917 [BZ #22387]
22918 * localedata/locales/aa_DJ: Improved readibility by replacing
22919 <Uxxxx> sequences in the ASCII printable range by their ASCII
22920 character equivalents.
22921 * localedata/locales/aa_ER: Likewise.
22922 * localedata/locales/aa_ER@saaho: Likewise.
22923 * localedata/locales/aa_ET: Likewise.
22924 * localedata/locales/af_ZA: Likewise.
22925 * localedata/locales/agr_PE: Likewise.
22926 * localedata/locales/ak_GH: Likewise.
22927 * localedata/locales/am_ET: Likewise.
22928 * localedata/locales/anp_IN: Likewise.
22929 * localedata/locales/ar_AE: Likewise.
22930 * localedata/locales/ar_BH: Likewise.
22931 * localedata/locales/ar_DZ: Likewise.
22932 * localedata/locales/ar_EG: Likewise.
22933 * localedata/locales/ar_IN: Likewise.
22934 * localedata/locales/ar_IQ: Likewise.
22935 * localedata/locales/ar_JO: Likewise.
22936 * localedata/locales/ar_KW: Likewise.
22937 * localedata/locales/ar_LB: Likewise.
22938 * localedata/locales/ar_LY: Likewise.
22939 * localedata/locales/ar_MA: Likewise.
22940 * localedata/locales/ar_OM: Likewise.
22941 * localedata/locales/ar_QA: Likewise.
22942 * localedata/locales/ar_SA: Likewise.
22943 * localedata/locales/ar_SD: Likewise.
22944 * localedata/locales/ar_SS: Likewise.
22945 * localedata/locales/ar_SY: Likewise.
22946 * localedata/locales/ar_TN: Likewise.
22947 * localedata/locales/ar_YE: Likewise.
22948 * localedata/locales/as_IN: Likewise.
22949 * localedata/locales/ast_ES: Likewise.
22950 * localedata/locales/ayc_PE: Likewise.
22951 * localedata/locales/az_AZ: Likewise.
22952 * localedata/locales/az_IR: Likewise.
22953 * localedata/locales/be_BY: Likewise.
22954 * localedata/locales/be_BY@latin: Likewise.
22955 * localedata/locales/bem_ZM: Likewise.
22956 * localedata/locales/ber_DZ: Likewise.
22957 * localedata/locales/ber_MA: Likewise.
22958 * localedata/locales/bg_BG: Likewise.
22959 * localedata/locales/bhb_IN: Likewise.
22960 * localedata/locales/bho_IN: Likewise.
22961 * localedata/locales/bi_VU: Likewise.
22962 * localedata/locales/bn_BD: Likewise.
22963 * localedata/locales/bn_IN: Likewise.
22964 * localedata/locales/bo_CN: Likewise.
22965 * localedata/locales/bo_IN: Likewise.
22966 * localedata/locales/br_FR: Likewise.
22967 * localedata/locales/brx_IN: Likewise.
22968 * localedata/locales/bs_BA: Likewise.
22969 * localedata/locales/byn_ER: Likewise.
22970 * localedata/locales/ca_AD: Likewise.
22971 * localedata/locales/ca_ES: Likewise.
22972 * localedata/locales/ca_FR: Likewise.
22973 * localedata/locales/ca_IT: Likewise.
22974 * localedata/locales/ce_RU: Likewise.
22975 * localedata/locales/chr_US: Likewise.
22976 * localedata/locales/cmn_TW: Likewise.
22977 * localedata/locales/crh_UA: Likewise.
22978 * localedata/locales/cs_CZ: Likewise.
22979 * localedata/locales/csb_PL: Likewise.
22980 * localedata/locales/cv_RU: Likewise.
22981 * localedata/locales/cy_GB: Likewise.
22982 * localedata/locales/da_DK: Likewise.
22983 * localedata/locales/de_AT: Likewise.
22984 * localedata/locales/de_BE: Likewise.
22985 * localedata/locales/de_CH: Likewise.
22986 * localedata/locales/de_DE: Likewise.
22987 * localedata/locales/de_IT: Likewise.
22988 * localedata/locales/de_LI: Likewise.
22989 * localedata/locales/de_LU: Likewise.
22990 * localedata/locales/doi_IN: Likewise.
22991 * localedata/locales/dv_MV: Likewise.
22992 * localedata/locales/dz_BT: Likewise.
22993 * localedata/locales/el_CY: Likewise.
22994 * localedata/locales/el_GR: Likewise.
22995 * localedata/locales/en_AG: Likewise.
22996 * localedata/locales/en_AU: Likewise.
22997 * localedata/locales/en_BW: Likewise.
22998 * localedata/locales/en_CA: Likewise.
22999 * localedata/locales/en_DK: Likewise.
23000 * localedata/locales/en_GB: Likewise.
23001 * localedata/locales/en_HK: Likewise.
23002 * localedata/locales/en_IE: Likewise.
23003 * localedata/locales/en_IL: Likewise.
23004 * localedata/locales/en_IN: Likewise.
23005 * localedata/locales/en_NG: Likewise.
23006 * localedata/locales/en_NZ: Likewise.
23007 * localedata/locales/en_PH: Likewise.
23008 * localedata/locales/en_SG: Likewise.
23009 * localedata/locales/en_US: Likewise.
23010 * localedata/locales/en_ZA: Likewise.
23011 * localedata/locales/en_ZM: Likewise.
23012 * localedata/locales/en_ZW: Likewise.
23013 * localedata/locales/eo: Likewise.
23014 * localedata/locales/es_AR: Likewise.
23015 * localedata/locales/es_BO: Likewise.
23016 * localedata/locales/es_CL: Likewise.
23017 * localedata/locales/es_CO: Likewise.
23018 * localedata/locales/es_CR: Likewise.
23019 * localedata/locales/es_CU: Likewise.
23020 * localedata/locales/es_DO: Likewise.
23021 * localedata/locales/es_EC: Likewise.
23022 * localedata/locales/es_ES: Likewise.
23023 * localedata/locales/es_GT: Likewise.
23024 * localedata/locales/es_HN: Likewise.
23025 * localedata/locales/es_MX: Likewise.
23026 * localedata/locales/es_NI: Likewise.
23027 * localedata/locales/es_PA: Likewise.
23028 * localedata/locales/es_PE: Likewise.
23029 * localedata/locales/es_PR: Likewise.
23030 * localedata/locales/es_PY: Likewise.
23031 * localedata/locales/es_SV: Likewise.
23032 * localedata/locales/es_US: Likewise.
23033 * localedata/locales/es_UY: Likewise.
23034 * localedata/locales/es_VE: Likewise.
23035 * localedata/locales/et_EE: Likewise.
23036 * localedata/locales/eu_ES: Likewise.
23037 * localedata/locales/eu_ES@euro: Likewise.
23038 * localedata/locales/fa_IR: Likewise.
23039 * localedata/locales/ff_SN: Likewise.
23040 * localedata/locales/fi_FI: Likewise.
23041 * localedata/locales/fil_PH: Likewise.
23042 * localedata/locales/fo_FO: Likewise.
23043 * localedata/locales/fr_BE: Likewise.
23044 * localedata/locales/fr_CA: Likewise.
23045 * localedata/locales/fr_CH: Likewise.
23046 * localedata/locales/fr_FR: Likewise.
23047 * localedata/locales/fr_LU: Likewise.
23048 * localedata/locales/fur_IT: Likewise.
23049 * localedata/locales/fy_DE: Likewise.
23050 * localedata/locales/fy_NL: Likewise.
23051 * localedata/locales/ga_IE: Likewise.
23052 * localedata/locales/gd_GB: Likewise.
23053 * localedata/locales/gez_ER: Likewise.
23054 * localedata/locales/gez_ET: Likewise.
23055 * localedata/locales/gl_ES: Likewise.
23056 * localedata/locales/gu_IN: Likewise.
23057 * localedata/locales/gv_GB: Likewise.
23058 * localedata/locales/ha_NG: Likewise.
23059 * localedata/locales/hak_TW: Likewise.
23060 * localedata/locales/he_IL: Likewise.
23061 * localedata/locales/hi_IN: Likewise.
23062 * localedata/locales/hif_FJ: Likewise.
23063 * localedata/locales/hne_IN: Likewise.
23064 * localedata/locales/hr_HR: Likewise.
23065 * localedata/locales/hsb_DE: Likewise.
23066 * localedata/locales/ht_HT: Likewise.
23067 * localedata/locales/hu_HU: Likewise.
23068 * localedata/locales/hy_AM: Likewise.
23069 * localedata/locales/i18n: Likewise.
23070 * localedata/locales/ia_FR: Likewise.
23071 * localedata/locales/id_ID: Likewise.
23072 * localedata/locales/ig_NG: Likewise.
23073 * localedata/locales/ik_CA: Likewise.
23074 * localedata/locales/is_IS: Likewise.
23075 * localedata/locales/it_CH: Likewise.
23076 * localedata/locales/it_IT: Likewise.
23077 * localedata/locales/iu_CA: Likewise.
23078 * localedata/locales/ja_JP: Likewise.
23079 * localedata/locales/ka_GE: Likewise.
23080 * localedata/locales/kk_KZ: Likewise.
23081 * localedata/locales/kl_GL: Likewise.
23082 * localedata/locales/kn_IN: Likewise.
23083 * localedata/locales/ko_KR: Likewise.
23084 * localedata/locales/kok_IN: Likewise.
23085 * localedata/locales/ks_IN: Likewise.
23086 * localedata/locales/ks_IN@devanagari: Likewise.
23087 * localedata/locales/ku_TR: Likewise.
23088 * localedata/locales/kw_GB: Likewise.
23089 * localedata/locales/ky_KG: Likewise.
23090 * localedata/locales/lb_LU: Likewise.
23091 * localedata/locales/lg_UG: Likewise.
23092 * localedata/locales/li_BE: Likewise.
23093 * localedata/locales/li_NL: Likewise.
23094 * localedata/locales/lij_IT: Likewise.
23095 * localedata/locales/ln_CD: Likewise.
23096 * localedata/locales/lo_LA: Likewise.
23097 * localedata/locales/lt_LT: Likewise.
23098 * localedata/locales/lv_LV: Likewise.
23099 * localedata/locales/lzh_TW: Likewise.
23100 * localedata/locales/mag_IN: Likewise.
23101 * localedata/locales/mai_IN: Likewise.
23102 * localedata/locales/mg_MG: Likewise.
23103 * localedata/locales/mhr_RU: Likewise.
23104 * localedata/locales/mi_NZ: Likewise.
23105 * localedata/locales/mk_MK: Likewise.
23106 * localedata/locales/ml_IN: Likewise.
23107 * localedata/locales/mn_MN: Likewise.
23108 * localedata/locales/mni_IN: Likewise.
23109 * localedata/locales/mr_IN: Likewise.
23110 * localedata/locales/ms_MY: Likewise.
23111 * localedata/locales/mt_MT: Likewise.
23112 * localedata/locales/my_MM: Likewise.
23113 * localedata/locales/nan_TW: Likewise.
23114 * localedata/locales/nan_TW@latin: Likewise.
23115 * localedata/locales/nb_NO: Likewise.
23116 * localedata/locales/nds_DE: Likewise.
23117 * localedata/locales/nds_NL: Likewise.
23118 * localedata/locales/ne_NP: Likewise.
23119 * localedata/locales/nhn_MX: Likewise.
23120 * localedata/locales/niu_NU: Likewise.
23121 * localedata/locales/niu_NZ: Likewise.
23122 * localedata/locales/nl_AW: Likewise.
23123 * localedata/locales/nl_BE: Likewise.
23124 * localedata/locales/nl_NL: Likewise.
23125 * localedata/locales/nn_NO: Likewise.
23126 * localedata/locales/nr_ZA: Likewise.
23127 * localedata/locales/nso_ZA: Likewise.
23128 * localedata/locales/oc_FR: Likewise.
23129 * localedata/locales/om_ET: Likewise.
23130 * localedata/locales/om_KE: Likewise.
23131 * localedata/locales/or_IN: Likewise.
23132 * localedata/locales/os_RU: Likewise.
23133 * localedata/locales/pa_IN: Likewise.
23134 * localedata/locales/pa_PK: Likewise.
23135 * localedata/locales/pap_AW: Likewise.
23136 * localedata/locales/pap_CW: Likewise.
23137 * localedata/locales/pl_PL: Likewise.
23138 * localedata/locales/ps_AF: Likewise.
23139 * localedata/locales/pt_BR: Likewise.
23140 * localedata/locales/pt_PT: Likewise.
23141 * localedata/locales/quz_PE: Likewise.
23142 * localedata/locales/raj_IN: Likewise.
23143 * localedata/locales/ro_RO: Likewise.
23144 * localedata/locales/ru_RU: Likewise.
23145 * localedata/locales/ru_UA: Likewise.
23146 * localedata/locales/rw_RW: Likewise.
23147 * localedata/locales/sa_IN: Likewise.
23148 * localedata/locales/sat_IN: Likewise.
23149 * localedata/locales/sc_IT: Likewise.
23150 * localedata/locales/sd_IN: Likewise.
23151 * localedata/locales/sd_IN@devanagari: Likewise.
23152 * localedata/locales/se_NO: Likewise.
23153 * localedata/locales/sgs_LT: Likewise.
23154 * localedata/locales/shs_CA: Likewise.
23155 * localedata/locales/si_LK: Likewise.
23156 * localedata/locales/sid_ET: Likewise.
23157 * localedata/locales/sk_SK: Likewise.
23158 * localedata/locales/sl_SI: Likewise.
23159 * localedata/locales/sm_WS: Likewise.
23160 * localedata/locales/so_DJ: Likewise.
23161 * localedata/locales/so_ET: Likewise.
23162 * localedata/locales/so_KE: Likewise.
23163 * localedata/locales/so_SO: Likewise.
23164 * localedata/locales/sq_AL: Likewise.
23165 * localedata/locales/sq_MK: Likewise.
23166 * localedata/locales/sr_ME: Likewise.
23167 * localedata/locales/sr_RS: Likewise.
23168 * localedata/locales/sr_RS@latin: Likewise.
23169 * localedata/locales/ss_ZA: Likewise.
23170 * localedata/locales/st_ZA: Likewise.
23171 * localedata/locales/sv_FI: Likewise.
23172 * localedata/locales/sv_SE: Likewise.
23173 * localedata/locales/sw_KE: Likewise.
23174 * localedata/locales/sw_TZ: Likewise.
23175 * localedata/locales/szl_PL: Likewise.
23176 * localedata/locales/ta_IN: Likewise.
23177 * localedata/locales/ta_LK: Likewise.
23178 * localedata/locales/tcy_IN: Likewise.
23179 * localedata/locales/te_IN: Likewise.
23180 * localedata/locales/tg_TJ: Likewise.
23181 * localedata/locales/th_TH: Likewise.
23182 * localedata/locales/the_NP: Likewise.
23183 * localedata/locales/ti_ER: Likewise.
23184 * localedata/locales/ti_ET: Likewise.
23185 * localedata/locales/tig_ER: Likewise.
23186 * localedata/locales/tk_TM: Likewise.
23187 * localedata/locales/tl_PH: Likewise.
23188 * localedata/locales/tn_ZA: Likewise.
23189 * localedata/locales/to_TO: Likewise.
23190 * localedata/locales/tpi_PG: Likewise.
23191 * localedata/locales/tr_CY: Likewise.
23192 * localedata/locales/tr_TR: Likewise.
23193 * localedata/locales/ts_ZA: Likewise.
23194 * localedata/locales/tt_RU: Likewise.
23195 * localedata/locales/tt_RU@iqtelif: Likewise.
23196 * localedata/locales/ug_CN: Likewise.
23197 * localedata/locales/uk_UA: Likewise.
23198 * localedata/locales/unm_US: Likewise.
23199 * localedata/locales/ur_IN: Likewise.
23200 * localedata/locales/ur_PK: Likewise.
23201 * localedata/locales/uz_UZ: Likewise.
23202 * localedata/locales/uz_UZ@cyrillic: Likewise.
23203 * localedata/locales/ve_ZA: Likewise.
23204 * localedata/locales/vi_VN: Likewise.
23205 * localedata/locales/wa_BE: Likewise.
23206 * localedata/locales/wae_CH: Likewise.
23207 * localedata/locales/wal_ET: Likewise.
23208 * localedata/locales/wo_SN: Likewise.
23209 * localedata/locales/xh_ZA: Likewise.
23210 * localedata/locales/yi_US: Likewise.
23211 * localedata/locales/yo_NG: Likewise.
23212 * localedata/locales/yue_HK: Likewise.
23213 * localedata/locales/yuw_PG: Likewise.
23214 * localedata/locales/zh_CN: Likewise.
23215 * localedata/locales/zh_HK: Likewise.
23216 * localedata/locales/zh_SG: Likewise.
23217 * localedata/locales/zh_TW: Likewise.
23218 * localedata/locales/zu_ZA: Likewise.
23219
23220 2017-11-13 Florian Weimer <fweimer@redhat.com>
23221
23222 * support/next_to_fault.h, support/next_to_fault.c: New files.
23223 * support/Makefile (libsupport-routines): Add next_to_fault.
23224 * resolv/tst-inet_pton.c (struct next_to_fault)
23225 (next_to_fault_allocate, next_to_fault_free): Remove.
23226 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23227
23228 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23229
23230 * elf/dl-support.c: Include <dl-procruntime.c>.
23231 * include/link.h: Include <link_map.h>.
23232 * sysdeps/generic/dl-procruntime.c: New file.
23233 * sysdeps/generic/link_map.h: Likewise.
23234 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23235 the writable ld.so namespace.
23236
23237 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23238
23239 timezone: pacify GCC -Wstringop-truncation
23240 Problem reported by Martin Sebor in:
23241 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23242 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23243
23244 2017-11-12 Florian Weimer <fweimer@redhat.com>
23245
23246 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23247 tst-xreadlink.
23248 (tests): Add tst-xreadlink.
23249 * support/support.h (xstrndup): Declare.
23250 * support/xunistd.h (xunlink, xreadlink): Declare.
23251 * support/temp_file.h (support_create_temp_directory): Declare.
23252 * support/temp_file.c (support_create_temp_directory): New function.
23253 * support/support_chroot.c (support_chroot_create): Use it.
23254 * support/xreadlink.c: New file.
23255 * support/xstrndup.c: Likewise.
23256 * support/xunlink.c: Likewise.
23257 * support/tst-xreadlink.c: Likewise.
23258
23259 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23260
23261 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23262
23263 2017-11-11 Florian Weimer <fweimer@redhat.com>
23264
23265 [BZ #22409]
23266 [BZ #22412]
23267 * resolv/res_comp.c (printable_string, binary_hnok)
23268 (binary_leading_dash): New functions.
23269 (res_hnok): Reimplement using these functions and ns_name_pton.
23270 (res_ownok): Likewise.
23271 (res_mailok): Reimplement using printable_string, ns_name_pton and
23272 binary_hnok.
23273 (res_dnok): Reimplement using printable_string and ns_name_pton.
23274 * resolv/tst-res_hnok.c (tests): Add additional tests.
23275 (LETTERDIGITS, PRINTABLE): Define.
23276 (do_test): Adjust one_char results.
23277
23278 2017-11-11 Florian Weimer <fweimer@redhat.com>
23279
23280 [BZ #22413]
23281 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23282 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23283
23284 2017-11-11 Florian Weimer <fweimer@redhat.com>
23285
23286 * resolv/tst-ns_name_pton.c: New file.
23287 * resolv/Makefile (tests): Add tst-ns_name_pton.
23288 (tst-ns_name_pton): Link against libresolv.
23289
23290 2017-11-11 Florian Weimer <fweimer@redhat.com>
23291
23292 * resolv/tst-res_hnok.c: New file.
23293 * resolv/Makefile (tests): Add tst-res_hnok.
23294 (tst-res_hnok): Link against libresolv.
23295
23296 2017-11-11 Florian Weimer <fweimer@redhat.com>
23297
23298 * resolv/tst-resolv-network.c: Use test framework instead explicit
23299 main function.
23300
23301 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23302
23303 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23304 <jmp_buf-macros.h>.
23305 [!_ISOMAC] (STR_HELPER): New.
23306 [!_ISOMAC] (STR): Likewise.
23307 [!_ISOMAC] (TEST_SIZE): Likewise.
23308 [!_ISOMAC] (TEST_ALIGN): Likewise.
23309 [!_ISOMAC] (TEST_OFFSET): Likewise.
23310 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23311 field offsets of jmp_buf as well as sigjmp_buf.
23312 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23313 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23314 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23315 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23316 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23317 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23318 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23319 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23320 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23321 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23322 Likewise.
23323 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23324 Likewise.
23325 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23327 Likewise.
23328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23329 Likewise.
23330 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23331 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23332 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23333 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23334 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23335 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23336 Likewise.
23337 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23338 Likewise.
23339 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23340 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23341 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23342
23343 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23344
23345 * include/float.h
23346 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23347 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23348 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23349 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23350 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23351 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23352 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23353 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23354 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23355 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23356 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23357 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23358 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23359 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23360 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23361 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23362 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23363 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23364 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23365 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23366 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23367 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23368 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23369 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23370 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23371 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23372 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23373 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23374 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23375 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23376 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23377 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23378 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23379 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23380 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23381 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23382 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23383 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23384 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23385 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23386 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23387 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23389 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23391 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23393 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23395 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23397 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23398 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23399 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23400 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23401 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23402 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23403 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23404 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23405 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23406 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23407 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23409 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23411 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23413 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23415 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23417 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23419 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23421 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23423 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23425 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23427 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23429 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23430 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23431 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23432 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23433 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23434
23435 * stdlib/tst-strtod.h (F16): New macro.
23436 (F32): Likewise.
23437 (F64): Likewise.
23438 (F32X): Likewise.
23439 (F64X): Likewise.
23440 (F128X): Likewise.
23441 (IF_FLOAT16): Likewise.
23442 (IF_FLOAT32): Likewise.
23443 (IF_FLOAT64): Likewise.
23444 (IF_FLOAT32X): Likewise.
23445 (IF_FLOAT64X): Likewise.
23446 (IF_FLOAT128X): Likewise.
23447 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23448 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23449 (STRTOD_TEST_FOREACH): Likewise.
23450 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23451 (CHOOSE_f64): Likewise.
23452 (CHOOSE_f32x): Likewise.
23453 (CHOOSE_f64x): Likewise.
23454
23455 2017-11-07 Andreas Schwab <schwab@suse.de>
23456
23457 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23458
23459 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23460
23461 [BZ #22403]
23462 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23463 to be escaped.
23464 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23465 to be escaped.
23466
23467 2017-11-07 Claude Paroz <claude@2xlibre.net>
23468
23469 [BZ #22403]
23470 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23471 to be escaped.
23472 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23473 to be escaped.
23474 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23475 to be escaped.
23476
23477 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23478
23479 [BZ #22298]
23480 * nptl/allocatestack.c (allocate_stack): Check if
23481 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23482 __PTHREAD_MUTEX_HAVE_PREV is defined.
23483 * nptl/descr.h (pthread): Likewise.
23484 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23485 Likewise.
23486 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23487 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23488 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23489 * sysdeps/nptl/bits/thread-shared-types.h
23490 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23491 defines.
23492 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23493 of __WORDSIZE for internal layout.
23494 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23495 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23496 instead of __WORDSIZE whether to use an union for __spins and __list
23497 fields.
23498 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23499 case.
23500 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23501 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23502 defines.
23503 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23504 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23505 Likewise.
23506 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23507 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23508 Likewise.
23509 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23510 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23511 Likewise.
23512 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23513 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23514 Likewise.
23515 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23516 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23517 Likewise.
23518 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23519 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23520 Likewise.
23521 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23522 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23523 Likewise.
23524 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23525 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23526 Likewise.
23527 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23528 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23529 Likewise.
23530 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23531 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23532 Likewise.
23533 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23534 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23535 Likewise.
23536 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23537 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23538 Likewise.
23539 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23540 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23541 Likewise.
23542 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23543 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23544 Likewise.
23545
23546 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23547 New macros.
23548 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23549 checks for expected input type size.
23550 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23551 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23552 Likewise.
23553 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23554 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23555 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23556 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23557 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23558 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23559 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23560 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23561 superflous runtime assert check.
23562 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23563 Likewise.
23564 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23565 Likewise.
23566 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23567 Likewise.
23568 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23569 Likewise.
23570 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23571 Likewise.
23572 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23573 Likewise.
23574 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23575 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23576 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23577 Likewise.
23578 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23579 Likewise.
23580 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23581 Likewise.
23582 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23583 Likewise.
23584 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23585 Likewise.
23586 * nptl/pthread_attr_setinheritsched.c
23587 (__pthread_attr_setinheritsched): Likewise.
23588 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23589 Likewise.
23590 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23591 Likewise.
23592 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23593 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23594 __old_pthread_attr_setstack): Likewise.
23595 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23596 Likewise.
23597 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23598 Likewise.
23599 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23600 Likewise.
23601 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23602 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23603 Likewise.
23604 * nptl/tst-typesizes.c: Remove file.
23605
23606 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23607 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23608 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23609 checks for internal pthread_mutex_t offsets.
23610 * sysdeps/aarch64/nptl/pthread-offsets.h
23611 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23612 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23613 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23614 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23615 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23616 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23617 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23618 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23619 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23620 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23621 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23622 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23623 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23624 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23625 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23626 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23627 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23628 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23629
23630 2017-11-07 Florian Weimer <fweimer@redhat.com>
23631
23632 * bits/mman-linux.h: Move ...
23633 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23634 comment.
23635 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23636 outdated comment.
23637
23638 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23639
23640 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23641 Redefine STRNLEN as __strnlen_power8.
23642
23643 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23644
23645 * signal/sighold.c (sighold): Optimize implementation.
23646
23647 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23648 __NR_rt_sigqueueinfo.
23649
23650 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23651 __sigtimedwait.
23652 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23653 assume __NR_rt_sigtimedwait.
23654 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23655 and add LIBC_CANCEL_HANDLED for cancellation marking.
23656 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23657
23658 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23659 (sysdeps_routines): Add memchr_noneon.
23660 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23661 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23662 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23663 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23664 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23665 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23666 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23667
23668 * sysdeps/arm/arm-ifunc.h: New file.
23669 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23670 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23671 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23672 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23673 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23674 (__memcpy_neon): Avoid create hidden alias.
23675 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23676 (__memcpy_vfp): Likewise.
23677 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23678 (sysdep_routines): Add memcpy_arm.
23679 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23680
23681 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23682
23683 [BZ #22362]
23684 * Makerules (make-link-multidir): New.
23685 * config.make.in (multidir): New.
23686 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23687 * configure: Regenerated.
23688 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23689 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23690 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23691 New target.
23692
23693 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23694
23695 [BZ #22402]
23696 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23697 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23698
23699 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23700
23701 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23702 to be escaped.
23703
23704 2017-11-04 Florian Weimer <fweimer@redhat.com>
23705
23706 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23707
23708 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23709
23710 * math/math.h [__HAVE_DISTINCT_FLOAT16
23711 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23712 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23713 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23714 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23715 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23716 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23717 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23718 (__MATH_TG_F32): New macro.
23719 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23720 (__MATH_TG_F64X): Likewise.
23721 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23722 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23723
23724 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23725
23726 * po/de.po: Update translations.
23727 * po/ru.po: Likewise.
23728
23729 2017-11-03 Florian Weimer <fweimer@redhat.com>
23730
23731 * manual/filesys.texi (Hard Links): Document linkat.
23732
23733 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23734
23735 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23736 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23737 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23738 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23739 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23740 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23741 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23742 the same as _Float128.
23743 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23744 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23745 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23746
23747 * stdlib/stdlib.h
23748 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23749 Declare.
23750 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23751 Likewise.
23752 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23753 Likewise.
23754 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23755 (strtof32x): Likewise.
23756 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23757 (strtof64x): Likewise.
23758 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23759 (strtof128x): Likewise.
23760 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23761 (strfromf16): Likewise.
23762 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23763 (strfromf32): Likewise.
23764 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23765 (strfromf64): Likewise.
23766 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23767 (strfromf32x): Likewise.
23768 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23769 (strfromf64x): Likewise.
23770 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23771 (strfromf128x): Likewise.
23772 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23773 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23774 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23775 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23776 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23777 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23778
23779 2017-11-03 Richard Henderson <rth@twiddle.net>
23780
23781 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23782
23783 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23784
23785 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23786
23787 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23788
23789 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23790 DT_TLSDESC_GOT initialization.
23791 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23792 (_dl_tlsdesc_resolve_hold): Likewise.
23793 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23794 (_dl_tlsdesc_resolve_hold): Likewise.
23795 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23796 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23797
23798 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23799
23800 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23801
23802 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23803
23804 [BZ #18572]
23805 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23806 non-lazily for R_ARM_TLS_DESC.
23807
23808 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23809
23810 [BZ #17078]
23811 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23812 R_ARM_TLS_DESC case.
23813 (elf_machine_lazy_rel): Remove the prelink check.
23814
23815 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23816
23817 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23818 DT_TLSDESC_GOT initialization.
23819 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23820 (_dl_tlsdesc_resolve_rela): Likewise.
23821 (_dl_tlsdesc_resolve_hold): Likewise.
23822 (_dl_tlsdesc_undefweak): Remove ldar.
23823 (_dl_tlsdesc_dynamic): Likewise.
23824 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23825 (_dl_tlsdesc_resolve_rela): Likewise.
23826 (_dl_tlsdesc_resolve_hold): Likewise.
23827 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23828 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23829 (_dl_tlsdesc_resolve_rela): Likewise.
23830 (_dl_tlsdesc_resolve_hold): Likewise.
23831
23832 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23833
23834 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23835 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23836
23837 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23838
23839 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23840 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23841
23842 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23843
23844 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23845 Declare.
23846 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23847 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23848 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23849 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23850 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23851 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23852 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23853 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23854 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23855 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23856 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23857
23858 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23859
23860 [BZ #22382]
23861 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23862 * localedata/locales/tpi_PG: Add standard header.
23863
23864 2017-11-02 Florian Weimer <fweimer@redhat.com>
23865
23866 test-errno-linux: quotactl can fail with EPERM in containers.
23867 * sysdeps/unix/sysv/linux/test-errno-linux.c
23868 (LIST, LIST_FORWARD): New macros.
23869 (check_error_in_list): New function.
23870 (test_wrp_rv): Accept list of permitted error codes.
23871 (test_wrp_rv2): Remove.
23872 (test_wrp): Call test_wrp_rv with list of error codes.
23873 (test_wrp2): Accept list of error codes.
23874 (do_test): Adjust. Allow EPERM for quotactl.
23875
23876 2017-11-02 Florian Weimer <fweimer@redhat.com>
23877
23878 * stdio-common/bug16.c (do_test): Use array_length.
23879 * stdio-common/errlist.c (_sys_nerr): Likewise.
23880 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23881 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23882 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23883 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23884 (do_test): Use array_length.
23885 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23886 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23887 * stdio-common/tst-printf-round.c (do_test): Likewise.
23888 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23889 (CHECK): Use array_length.
23890 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23891 * stdio-common/tstscanf.c (main): Likewise.
23892 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23893
23894 2017-11-02 Florian Weimer <fweimer@redhat.com>
23895
23896 Add array_length and array_end macros.
23897 * include/array_length.h: New file.
23898
23899 2017-11-02 Florian Weimer <fweimer@redhat.com>
23900
23901 [BZ #22332]
23902 * posix/tst-glob-tilde.c (do_noescape): New variable.
23903 (one_test): Process it.
23904 (do_test): Set do_noescape. Add unescaping test case.
23905
23906 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23907
23908 * math/complex.h
23909 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23910 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23911 with appropriate macros defined and undefined.
23912 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23913 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23914 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23915 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23916 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23917 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23918 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23919 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23920 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23921 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23922
23923 * math/complex.h
23924 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23925 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23926 that for long double. Do not condition define and undefine of
23927 _Mdouble_complex_ on [__CFLOAT128].
23928
23929 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23930
23931 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23932 of <sysdeps/generic/sysdep.h>.
23933 (ALIGNARG): Removed.
23934 (ASM_SIZE_DIRECTIVE): Likewise.
23935 (ENTRY): Likewise.
23936 (END): Likewise.
23937 (ENTRY_CHK): Likewise.
23938 (END_CHK): Likewise.
23939 (syscall_error): Likewise.
23940 (mcount): Likewise.
23941 (PSEUDO_END): Likewise.
23942 (L): Likewise.
23943 (atom_text_section): Likewise.
23944 * sysdeps/x86/sysdep.h: New file.
23945 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23946 of <sysdeps/generic/sysdep.h>.
23947 (ALIGNARG): Removed.
23948 (ASM_SIZE_DIRECTIVE): Likewise.
23949 (ENTRY): Likewise.
23950 (END): Likewise.
23951 (ENTRY_CHK): Likewise.
23952 (END_CHK): Likewise.
23953 (syscall_error): Likewise.
23954 (mcount): Likewise.
23955 (PSEUDO_END): Likewise.
23956 (L): Likewise.
23957 (atom_text_section): Likewise.
23958
23959 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23960
23961 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23962 category of LC_CTYPE set to "i18n:2012".
23963 * localedata/locales/i18n_ctype: Regenerate.
23964
23965 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23966
23967 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23968 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23969 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23970 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23971
23972 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23973 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23974 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23975 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23976
23977 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23978
23979 * math/complex.h
23980 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23981 New macro.
23982 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23983 Likewise.
23984 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23985 Likewise.
23986 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23987 (CMPLXF32X): Likewise.
23988 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23989 (CMPLXF64X): Likewise.
23990 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23991 (CMPLXF128X): Likewise.
23992
23993 * math/math.h
23994 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23995 (__MATH_EVAL_FMT2): Define to add 0.0f.
23996
23997 2017-10-31 Alan Modra <amodra@gmail.com>
23998
23999 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
24000 include sysdep.h.
24001 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
24002 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
24003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
24004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
24005 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
24006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
24007 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24015 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24016 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24017 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24018 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24019 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24020 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24021 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24022 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24023 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24024 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24025 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24026 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24027 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24028 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24029 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24030 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24031 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24032 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24033 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24034 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24035 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24036 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24037 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24038 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24039 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24040 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24041 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24042 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24043 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24044 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24045 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24046 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24047 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24048 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24049 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24050 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24051 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24052 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24053 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24054 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24055 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24056 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24057 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24058 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24059 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24060 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24061 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24062 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24063 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24064 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24065 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24066 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24067 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24068 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24069 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24070
24071 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24072 include sysdep.h and math_ldbl_opt.h.
24073
24074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24075 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
24076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24092 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24096 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24099 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24100
24101 2017-10-31 Alan Modra <amodra@gmail.com>
24102
24103 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24104 string/strncase_l.c, not string/strncase.c.
24105 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24106 (libc_hidden_def): Redefine.
24107
24108 2017-10-31 Alan Modra <amodra@gmail.com>
24109
24110 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24111 (__STRCMP, STRCMP, __strcasecmp_l): Define.
24112 (__strcasecmp): Don't define.
24113
24114 2017-10-31 Alan Modra <amodra@gmail.com>
24115
24116 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24117 IS_IN (libc).
24118 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24119 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24120 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24121
24122 2017-10-31 Alan Modra <amodra@gmail.com>
24123
24124 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24125 USE_AS_STPNCPY.
24126
24127 2017-10-31 Alan Modra <amodra@gmail.com>
24128
24129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24130 Redefine only when SHARED.
24131
24132 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24133
24134 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24135 Include <bits/math-finite.h> with appropriate macros defined and
24136 undefined.
24137 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24138 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24139 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24140 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24141 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24142
24143 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24144 [!_Mlong_double_] (_Mlong_double_): Likewise.
24145 [!_Mfloat16_] (_Mfloat16_): Likewise.
24146 [!_Mfloat32_] (_Mfloat32_): Likewise.
24147 [!_Mfloat64_] (_Mfloat64_): Likewise.
24148 [!_Mfloat128_] (_Mfloat128_): Likewise.
24149 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24150 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24151 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24152 (_Mdouble_): Define without indirection through those macros.
24153 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24154 [!_Mfloat128_] (_Mfloat128_): Likewise.
24155 [_Mlong_double_] (_Mlong_double_): Likewise.
24156 (_Mdouble_): Define without indirection through those macros.
24157 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24158 not add -D_Mlong_double_=double.
24159 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24160 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24161
24162 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24163
24164 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24165
24166 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24167
24168 * sysdeps/x86/libc-start.c: Reformat.
24169
24170 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24171
24172 [BZ #22353]
24173 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24174 (1): Renamed to ...
24175 (L(Src0)): This.
24176 (L(Src1)): New.
24177 (L(Src2)): Likewise.
24178 (L(1)): Renamed to ...
24179 (L(Src3)): This.
24180
24181 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24182
24183 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24184 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24185 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24186 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24187 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24188 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24189 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24190 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24191 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24192 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24193 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24194 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24195 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24196 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24197 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24198 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24199 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24200 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24201 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24202 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24203 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24204 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24205 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24206 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24207 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24208 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24209 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24210 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24211 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24212 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24213 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24214 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24215 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24216 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24217 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24218 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24219 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24220 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24221 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24222 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24223 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24224 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24225 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24226 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24227 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24228 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24229 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24230 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24231 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24232 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24233 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24234 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24235 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24236 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24237 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24238 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24239 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24240 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24241 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24242 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24243 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24244 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24245 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24246 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24247 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24248 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24249
24250 2017-10-30 Florian Weimer <fweimer@redhat.com>
24251
24252 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24253 always defined.
24254 * io/tst-mkdirat.c (do_test): Likewise.
24255 * io/tst-mkfifoat.c (do_test): Likewise.
24256 * io/tst-mknodat.c (do_test): Likewise.
24257 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24258 * locale/programs/locale.c (select_dirs): Likewise.
24259 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24260 * posix/bug-glob2.c (my_readdir): Likewise.
24261 * posix/tst-dir.c (main): Likewise.
24262 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24263 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24264
24265 2017-10-30 Florian Weimer <fweimer@redhat.com>
24266
24267 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24268 just __USE_GNU.
24269
24270 2017-10-30 Florian Weimer <fweimer@redhat.com>
24271
24272 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24273 Convert to support/test-driver.c.
24274 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24275 New macro parameters.
24276 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24277 * posix/tst-gnuglob.c: New file.
24278 * posix/tst-gnuglob64.c: Likewise.
24279 * posix/Makefile (tests): Add tst-gnuglob64.
24280
24281 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24282
24283 [BZ #19485]
24284 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24285 and use a better translation for March in “mon”.
24286 * localedata/locales/csb_PL: Use more ASCII to improve the
24287 readability of the source.
24288
24289 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24290
24291 [BZ #13953]
24292 * localedata/locales/km_KH: Use ASCII as much
24293 as possible for better readability of the source and
24294 remove useless comments.
24295 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24296 was commented out and apparently wrong anyway because it was
24297 using Lao characters. If Buddhist era should be used
24298 for km_KH, a native speaker should write the correct formaat
24299 for Khmer.
24300 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24301 (According to CLDR, the first weekday for Cambodia is Sunday).
24302 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24303 (These were using Lao characters which must be wrong. If we get
24304 the correct data from a native speaker, we could add it back, until
24305 then it is better not to have name_mr and name_mrs at all than
24306 having it wrong).
24307
24308 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24309
24310 * locale/loadlocale.c: Correct size of
24311 _nl_value_type_LC_<category> arrays.
24312
24313 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24314
24315 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24316 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24317 with appropriate macros defined and undefined.
24318 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24319 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24320 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24321 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24322 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24323
24324 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24325
24326 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24327 "-O2 -march=i586".
24328
24329 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24330
24331 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24332 with lowercase letters to make it agree with CLDR.
24333
24334 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24335
24336 [BZ #15260]
24337 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24338 first letters of yesstr and nostr in yesexpr and noexpr,
24339 not for the full words.
24340 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24341 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24342 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24343 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24344 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24345 first letters of yesstr and nostr in yesexpr and noexpr,
24346 until now only English was matched in yesexpr and noexpr.
24347 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24348 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24349 fil but not for tl. As tl and fil are very similar, using fil
24350 is probably better than using English.
24351
24352 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24353
24354 [BZ #21706]
24355 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24356 in yesstr and nostr.
24357
24358 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24359
24360 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24361 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24362 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24363 Likewise.
24364 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24365 Likewise.
24366 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24367 Likewise.
24368 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24369 Likewise.
24370 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24371 (SNANF128X): Likewise.
24372
24373 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24374 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24375 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24376 (HUGE_VAL_F32): Likewise.
24377 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24378 (HUGE_VAL_F64): Likewise.
24379 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24380 (HUGE_VAL_F32X): Likewise.
24381 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24382 (HUGE_VAL_F64X): Likewise.
24383 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24384 (HUGE_VAL_F128X): Likewise.
24385
24386 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24387
24388 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24389 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24390 for the br_FR locale.
24391
24392 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24393
24394 [BZ #21706]
24395 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24396
24397 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24398
24399 * locale/programs/record-status.h: Define globals, and function
24400 prototypes. Move function bodies...
24401 * locale/programs/record-status.c: ... to here. New file.
24402 * iconv/Makefile (iconv_prog-modules): Add record-status.
24403 * locale/Makefile (lib-modules): Likewise.
24404 * iconv/iconv_prog.c: Remove verbose.
24405 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24406 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24407 record a warning about ASCII compatibility.
24408 * locale/programs/ld-monetary.c (monetary_finish): If
24409 warn_int_curr_symbol is true then record a warning about the symbol
24410 not being in our ISO 4217 list.
24411 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24412 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24413 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24414 (OPT_NO_WARN): Define.
24415 (OPT_WARN): Define.
24416 (options): Add entry for --no-warnings, and --warnings.
24417 (set_warnings): New function to enable/disable warnings.
24418 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24419 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24420 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24421 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24422 Pass flags to generate_locale.
24423 (generate_locale): Accept new flag argument and pass it to localedef
24424 invocation.
24425 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24426 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24427
24428 * localedata/Makefile (test-input-data): Use full file name.
24429 * localedata/da_DK.in: Rename to...
24430 * localedata/da_DK.ISO-8859-1.in: ...this.
24431 * localedata/de_DE.in: Rename to...
24432 * localedata/de_DE.ISO-8859-1.in: ...this.
24433 * localedata/en_US.in: Rename to...
24434 * localedata/en_US.ISO-8859-1.in: ...this.
24435 * localedata/fr_FR.in: Rename to...
24436 * localedata/fr_FR.UTF-8.in: ... this.
24437 * localedata/hr_HR.in: Rename to...
24438 * localedata/hr_HR.ISO-8859-2.in: ...this.
24439 * localedata/hu_HU.in: Rename to...
24440 * localedata/hu_HU.UTF-8.in: ...this.
24441 * localedata/si_LK.in: Rename to...
24442 * localedata/si_LK.UTF-8.in: ...this.
24443 * localedata/sv_SE.in: Rename to...
24444 * localedata/sv_SE.ISO-8859-1.in: ...this.
24445 * localedata/tr_TR.in: Rename to...
24446 * localedata/tr_TR.UTF-8.in: ...this.
24447 * localedata/uk_UA.in: Rename to...
24448 * localedata/uk_UA.UTF-8.in: ...this.
24449 * localedata/sort-test.sh: Test file is locale name with the
24450 suffix.
24451
24452 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24453 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24454 file.
24455 * localedata/locales/i18n_ctype: Regenerate.
24456 * localedata/locales/tr_TR: Likewise.
24457 * localedata/locales/translit_circle: Likewise.
24458 * localedata/locales/translit_cjk_compat: Likewise.
24459 * localedata/locales/translit_combining: Likewise.
24460 * localedata/locales/translit_compat: Likewise.
24461 * localedata/locales/translit_font: Likewise.
24462 * localedata/locales/translit_fraction: Likewise.
24463
24464 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24465
24466 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24467 lxvd2x/stxvd2x with lvx/stvx.
24468 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24469
24470 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24471
24472 * include/alloc_buffer.h: Replace "if if " with "if " in
24473 comments.
24474 * sysdeps/mips/memcpy.S: Likkewise.
24475 * sysdeps/mips/memset.S: Likewise.
24476 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24477 Likewise.
24478 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24479 Likewise.
24480 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24481 Likewise.
24482
24483 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24484
24485 [BZ #15261]
24486 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24487 yesexpr and noexpr.
24488 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24489 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24490 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24491 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24492 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24493 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24494 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24495
24496 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24497
24498 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24499 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24500 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24501 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24502 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24503 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24504 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24505 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24506 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24507 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24508 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24509 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24510
24511 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24512
24513 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24514 as possible for better readability of the source.
24515 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24516 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24517 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24518 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24519 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24520 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24521 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24522 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24523 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24524 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24525 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24526 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24527 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24528 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24529 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24530 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24531 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24532 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24533 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24534 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24535 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24536 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24537 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24538 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24539 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24540 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24541 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24542 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24543 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24544 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24545 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24546 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24547 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24548 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24549 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24550 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24551 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24552 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24553 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24554 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24555 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24556 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24557 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24558 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24559 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24560 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24561 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24562 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24563 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24564 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24565 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24566 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24567 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24568 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24569 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24570 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24571 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24572 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24573 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24574 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24575 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24576 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24577 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24578 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24579 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24580 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24581 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24582 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24583 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24584 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24585 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24586 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24587 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24588 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24589 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24590 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24591 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24592 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24593 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24594 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24595 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24596 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24597 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24598 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24599 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24600 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24601 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24602 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24603 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24604 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24605 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24606 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24607 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24608 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24609 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24610 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24611 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24612 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24613 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24614 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24615 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24616 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24617 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24618 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24619 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24620 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24621 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24622 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24623 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24624 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24625 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24626 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24627 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24628 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24629 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24630 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24631 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24632 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24633 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24634 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24635 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24636 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24637 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24638 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24639 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24640 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24641 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24642 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24643 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24644 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24645 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24646 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24647 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24648 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24649 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24650 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24651 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24652 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24653 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24654 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24655 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24656 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24657 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24658 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24659 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24660 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24661 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24662 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24663 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24664 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24665 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24666 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24667 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24668 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24669 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24670 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24671 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24672 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24673 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24674 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24675 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24676 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24677 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24678 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24679 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24680 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24681 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24682 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24683 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24684 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24685 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24686 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24687 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24688 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24689
24690 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24691
24692 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24693 (Use first letters of yesstr and nostr correctly instead of using
24694 full words).
24695
24696 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24697
24698 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24699 (Use first letters of yesstr and nostr correctly).
24700
24701 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24702
24703 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24704 also check for the first characters of yesstr and nostr.
24705 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24706 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24707
24708 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24709
24710 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24711 also check for Chinese characters.
24712
24713 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24714
24715 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24716 match also for the contents of yesstr and nostr. As the first letter
24717 of yesstr and nostr is equal, checking only for the first letter
24718 is not enough.
24719
24720 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24721
24722 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24723 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24724
24725 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24726
24727 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24728 of main contributor.
24729
24730 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24731
24732 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24733 instead of using English.
24734
24735 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24736
24737 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24738 by including the first letters of nostr and yesexpr in the regexp.
24739 Also make it more readable by using ASCII where possible.
24740
24741 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24742
24743 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24744 the first letter of nostr in the regexp. It agrees with CLDR now.
24745 Also make it more readable by using ASCII where possible.
24746
24747 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24748
24749 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24750 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24751 these strings contain a U+17D6 (which somewhat looks like a colon)
24752 instead of a real colon to separate the full words for “yes”
24753 and “no” from the single letter responses.
24754
24755 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24756
24757 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24758 it agree with CLDR (include the first letter of yesstr).
24759 Also make it more readable by using ASCII where possible.
24760
24761 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24762
24763 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24764 and improve yesexpr and noexpr. The yesstr and nostr apparently
24765 came from CLDR. And CLDR has a bug there: these strings contain
24766 a U+0903 (which looks like a colon) instead of a real colon
24767 to separate the full words for “yes” and “no” from the single
24768 letter responses.
24769
24770 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24771
24772 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24773 letters of the full yesstr and nostr in yesexpr and noexpr.
24774
24775 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24776
24777 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24778 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24779 * localedata/locales/an_ES: Make source more readable by using ASCII
24780 where possible.
24781
24782 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24783
24784 [BZ #20952]
24785 * localedata/locales/yuw_PG: New file.
24786 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24787 * locale/iso-639.def: Add Yau (Uruwa).
24788
24789 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24790
24791 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24792
24793 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24794
24795 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24796 (__libc_realloc): Likewise.
24797 (_mid_memalign): Likewise.
24798 (__libc_calloc): Likewise.
24799
24800 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24801
24802 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24803 by adding the generic +1 and -0 as in all other locales.
24804 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24805 day names and make it more readable by using ASCII where possible.
24806
24807 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24808
24809 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24810 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24811
24812 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24813
24814 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24815 WNOHANG in waitpid call.
24816
24817 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24818
24819 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24820 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24821
24822 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24823 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24824 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24825 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24826 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24827 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24828 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24829 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24830 variables.
24831
24832 2017-10-23 Michael Collison <michael.collison@arm.com>
24833
24834 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24835 with __builtin_sqrt.
24836 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24837 with __builtin_sqrtf.
24838 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24839 with __builtin_ceil.
24840 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24841 with __builtin_ceilf.
24842 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24843 with __builtin_floor.
24844 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24845 with __builtin_floorf.
24846 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24847 with __builtin_fma.
24848 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24849 with __builtin_fmaf.
24850 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24851 with __builtin_fmax.
24852 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24853 with __builtin_fmaxf.
24854 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24855 with __builtin_fmin.
24856 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24857 with __builtin_fminf.
24858 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24859 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24860 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24861 with builtin_rint and conversion to int.
24862 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24863 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24864 with builtin_llround.
24865 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24866 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24867 with builtin_rint and conversion to long int.
24868 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24869 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24870 with builtin_lround.
24871 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24872 with builtin_lroundf.
24873 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24874 statements with __builtin_nearbyint.
24875 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24876 statements with __builtin_nearbyintf.
24877 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24878 with __builtin_rint.
24879 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24880 with __builtin_rintf.
24881 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24882 with __builtin_round.
24883 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24884 with __builtin_roundf.
24885 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24886 with __builtin_trunc.
24887 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24888 with __builtin_truncf.
24889 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24890 and s_l[l]round[f].c too.
24891
24892 2017-10-23 Alan Modra <amodra@gmail.com>
24893
24894 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24895 Adjust stack after restoring regs. Add missing LR cfi_restore.
24896
24897 2017-10-23 Alan Modra <amodra@gmail.com>
24898
24899 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24900 Move LR save and frame setup/teardown and LR restore to
24901 immediately around memset call. Provide cfi.
24902
24903 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24904
24905 * sysdeps/i386/fpu/e_powf.S: Removed.
24906 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24907 * sysdeps/i386/fpu/w_powf.c: Likewise.
24908 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24909 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24910 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24911 Add e_powf-sse2.
24912 (CFLAGS-e_powf-sse2.c): New.
24913 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24914 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24915
24916 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24917
24918 * sysdeps/i386/fpu/e_log2f.S: Removed.
24919 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24920 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24921 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24922 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24923 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24924 Add e_log2f-sse2.
24925 (CFLAGS-e_log2f-sse2.c): New.
24926 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24927 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24928
24929 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24930
24931 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24932 Add e_powf-fma.
24933 (CFLAGS-e_powf-fma.c): New.
24934 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24935 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24936
24937 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24938
24939 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24940 Add e_log2f-fma.
24941 (CFLAGS-e_log2f-fma.c): New.
24942 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24943 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24944
24945 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24946
24947 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24948 Add e_logf-fma.
24949 (CFLAGS-e_logf-fma.c): New.
24950 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24951 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24952
24953 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24954
24955 * sysdeps/i386/fpu/e_logf.S: Removed.
24956 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24957 * sysdeps/i386/fpu/w_logf.c: Likewise.
24958 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24959 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24960 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24961 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24962 Add e_logf-sse2.
24963 (CFLAGS-e_logf-sse2.c): New.
24964 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24965 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24966
24967 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24968
24969 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24970 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24971 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24972 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24973 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24974 Add e_exp2f-sse2.
24975 (CFLAGS-e_exp2f-sse2.c): New.
24976 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24977 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24978
24979 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24980
24981 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24982 Add e_exp2f-fma.
24983 (CFLAGS-e_exp2f-fma.c): New.
24984 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24985 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24986
24987 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24988
24989 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24990 * sysdeps/i386/fpu/e_expf.S: Likewise.
24991 * sysdeps/i386/fpu/math_errf.c: Likewise.
24992 * sysdeps/i386/fpu/w_expf.c: Likewise.
24993 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24994 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24995 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24996 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24997 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24998 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24999 Remove e_expf-ia32.
25000 (CFLAGS-e_expf-sse2.c): New.
25001 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
25002 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
25003
25004 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25005
25006 * sysdeps/x86_64/fpu/e_expf.S: Removed.
25007 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25008 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25009 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25010 e_expf.c.
25011 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25012 New.
25013 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25014 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25015 Renamed to ...
25016 (__redirect_expf): This.
25017 (SYMBOL_NAME): Changed to expf.
25018 (__ieee754_expf): Renamed to ...
25019 (__expf): This.
25020 (__GI___expf): This.
25021 (__ieee754_expf): Add strong_alias.
25022 (__expf_finite): Likewise.
25023 (__expf): New.
25024 Include <sysdeps/ieee754/flt-32/e_expf.c>.
25025
25026 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
25027
25028 [BZ #22332]
25029 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25030 unescaping.
25031
25032 2017-10-21 Florian Weimer <fweimer@redhat.com>
25033
25034 * posix/Makefile (tests): Add tst-glob-tilde.
25035 (tests-special): Add tst-glob-tilde-mem.out
25036 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25037 (tst-glob-tilde-mem.out): Add mtrace check.
25038 * posix/tst-glob-tilde.c: New file.
25039
25040 2017-10-20 Joseph Myers <joseph@codesourcery.com>
25041
25042 * bits/floatn-common.h: New file.
25043 * math/Makefile (headers): Add bits/floatn-common.h.
25044 * bits/floatn.h: Include <bits/floatn-common.h>.
25045 * sysdeps/ia64/bits/floatn.h: Likewise.
25046 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25047 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25048 * sysdeps/powerpc/bits/floatn.h: Likewise.
25049 * sysdeps/x86/bits/floatn.h: Likewise.
25050
25051 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25052
25053 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25054 indicates whether compiler emits an warning for alias for
25055 functions with incompatible types.
25056
25057 [BZ #22273]
25058 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25059 the auxiliary process is terminated by a signal before calling _exit
25060 or execve.
25061
25062 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25063
25064 [BZ #21265]
25065 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25066 New.
25067 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25068 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25069 and bit_arch_XSAVEC_Usable if needed.
25070 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25071 and bit_arch_Use_dl_runtime_resolve_opt.
25072 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25073 Removed.
25074 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25075 (bit_arch_Prefer_No_AVX512): Updated.
25076 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25077 (bit_arch_XSAVEC_Usable): New.
25078 (STATE_SAVE_OFFSET): Likewise.
25079 (STATE_SAVE_MASK): Likewise.
25080 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25081 (cpu_features): Add xsave_state_size and xsave_state_full_size.
25082 (index_arch_Use_dl_runtime_resolve_opt): Removed.
25083 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25084 (index_arch_XSAVEC_Usable): New.
25085 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25086 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
25087 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25088 is enabled.
25089 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25090 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25091 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25092 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25093 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25094 _dl_runtime_resolve_xsavec.
25095 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25096 Removed.
25097 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25098 instead of VEC_SIZE.
25099 (REGISTER_SAVE_BND0): Removed.
25100 (REGISTER_SAVE_BND1): Likewise.
25101 (REGISTER_SAVE_BND3): Likewise.
25102 (REGISTER_SAVE_RAX): Always defined to 0.
25103 (VMOV): Removed.
25104 (_dl_runtime_resolve_avx): Likewise.
25105 (_dl_runtime_resolve_avx_slow): Likewise.
25106 (_dl_runtime_resolve_avx_opt): Likewise.
25107 (_dl_runtime_resolve_avx512): Likewise.
25108 (_dl_runtime_resolve_avx512_opt): Likewise.
25109 (_dl_runtime_resolve_sse): Likewise.
25110 (_dl_runtime_resolve_sse_vex): Likewise.
25111 (USE_FXSAVE): New.
25112 (_dl_runtime_resolve_fxsave): Likewise.
25113 (USE_XSAVE): Likewise.
25114 (_dl_runtime_resolve_xsave): Likewise.
25115 (USE_XSAVEC): Likewise.
25116 (_dl_runtime_resolve_xsavec): Likewise.
25117 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25118 Removed.
25119 (_dl_runtime_resolve_avx512_opt): Likewise.
25120 (_dl_runtime_resolve_avx): Likewise.
25121 (_dl_runtime_resolve_avx_opt): Likewise.
25122 (_dl_runtime_resolve_sse): Likewise.
25123 (_dl_runtime_resolve_sse_vex): Likewise.
25124 (_dl_runtime_resolve_fxsave): New.
25125 (_dl_runtime_resolve_xsave): Likewise.
25126 (_dl_runtime_resolve_xsavec): Likewise.
25127
25128 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
25129
25130 [BZ #22320]
25131 CVE-2017-15670
25132 * posix/glob.c (__glob): Fix one-byte overflow.
25133
25134 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25135
25136 * malloc/malloc.c (sysdep-cancel.h): Add include.
25137
25138 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25139
25140 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25141
25142 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
25143
25144 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25145 (tests): Remove $(objpfx)ga_test depdendency.
25146 * resolv/ga_test.c: Remove file.
25147
25148 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25149
25150 [BZ #18812]
25151 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25152 * localedata/locales/kab_DZ: New file.
25153
25154 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25155
25156 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25157 _dl_relocate_static_pie instead of _dl_start to compute load
25158 address in static PIE.
25159
25160 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25161
25162 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25163
25164 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25165
25166 [BZ #13605]
25167 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25168 * localedata/locales/shn_MM: New file.
25169
25170 2017-10-20 Florian Weimer <fweimer@redhat.com>
25171
25172 [BZ #22321]
25173 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25174 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25175 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25176 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25177 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25178 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25179
25180 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25181
25182 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25183
25184 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25185
25186 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25187
25188 [BZ #22322]
25189 * sysdeps/mips/bits/long-double.h: Move to ....
25190 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25191
25192 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25193
25194 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25195
25196 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25197 H.J. Lu <hongjiu.lu@intel.com>
25198
25199 [BZ #22299]
25200 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25201 GLRO(dl_platform) to NULL.
25202 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25203 (modules-names): Add tst-platformmod-1 and
25204 x86_64/tst-platformmod-2.
25205 (CFLAGS-tst-platform-1.c): New.
25206 (CFLAGS-tst-platformmod-1.c): Likewise.
25207 (CFLAGS-tst-platformmod-2.c): Likewise.
25208 (LDFLAGS-tst-platformmod-2.so): Likewise.
25209 ($(objpfx)tst-platform-1): Likewise.
25210 ($(objpfx)tst-platform-1.out): Likewise.
25211 (tst-platform-1-ENV): Likewise.
25212 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25213 * sysdeps/x86_64/tst-platform-1.c: New file.
25214 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25215 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25216
25217 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25218
25219 [BZ #13994]
25220 * locale/iso-639.def: Add Karbi.
25221 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25222 * localedata/locales/mjw_IN: New file.
25223
25224 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25225
25226 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25227 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25228 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25229 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25230 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25231 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25232 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25233 <bits/floatn.h>.
25234 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25235 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25236 * manual/math.texi (Mathematics): Document additional architecture
25237 support for _Float128.
25238 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25239 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25240 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25241 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25242 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25243 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25244 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25245 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25246 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25247 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25248 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25249 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25250 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25251 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25252 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25253
25254 2017-10-18 Renlin Li <renlin.li@arm.com>
25255
25256 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25257 _DYNAMIC symbol to calculate load address.
25258
25259 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25260
25261 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25262 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25263 summary bits.
25264 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25265 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25266
25267 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25268
25269 [BZ #16777]
25270 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25271 and improve readability by using more ASCII.
25272 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25273 and improve readability by using more ASCII.
25274
25275 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25276
25277 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25278 not all targets support atomics on bool.
25279
25280 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25281
25282 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25283 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25284 __f128.
25285 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25286 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25287 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25288 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25289 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25290 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25291
25292 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25293
25294 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25295 defines.
25296
25297 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25298
25299 [BZ #22159]
25300 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25301 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25302 (do_check_remalloced_chunk): Fix build bug.
25303 (do_check_malloc_state): Add assert that checks arena->top.
25304 (malloc_consolidate): Remove initialization.
25305 (int_mallinfo): Remove call to malloc_consolidate.
25306 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25307
25308 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25309
25310 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25311 (have_fastchunks): Remove.
25312 (clear_fastchunks): Remove.
25313 (set_fastchunks): Remove.
25314 (malloc_state): Add have_fastchunks.
25315 (malloc_init_state): Use have_fastchunks.
25316 (do_check_malloc_state): Remove incorrect invariant checks.
25317 (_int_malloc): Use have_fastchunks.
25318 (_int_free): Likewise.
25319 (malloc_consolidate): Likewise.
25320
25321 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25322
25323 * malloc/malloc.c (tcache_put): Inline.
25324 (tcache_get): Inline.
25325
25326 2017-10-17 Jordi Mallach <jordi@gnu.org>
25327
25328 Aurelien Jarno <aurelien@aurel32.net>
25329 [BZ #2522]
25330 * localedata/locales/ca_ES@valencia: New file.
25331 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25332
25333 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25334
25335 [BZ #22296]
25336 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25337 < 6.x
25338
25339 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25340
25341 * scripts/build-many-glibcs.py (Context.add_all_configs):
25342 Add arm-linux-gnueabihf multiarch extra_glibcs.
25343
25344 * sysdeps/generic/ifunc-init.h: New file.
25345 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25346
25347 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25348
25349 [BZ #22019]
25350 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25351 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25352 * stdlib/tst-strfmon_l.c: adapt test case.
25353
25354 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25355
25356 * sysdeps/generic/float128-abi.h: New file.
25357 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25358 non-__prefixed symbols to ....
25359 * math/Versions: ... here. Include <float128-abi.h>.
25360 * stdlib/Versions ... and here. Include <float128-abi.h>
25361
25362 2017-10-16 Florian Weimer <fweimer@redhat.com>
25363
25364 * version.h (VERSION): Switch to ".9000" as the development
25365 version suffix.
25366
25367 2017-10-16 Florian Weimer <fweimer@redhat.com>
25368
25369 [BZ #22050]
25370 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25371 compat_symbol_reference to access non-default version.
25372
25373 2017-10-16 Florian Weimer <fweimer@redhat.com>
25374
25375 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25376
25377 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25378
25379 * include/shlib-compat.h (compat_symbol_reference): Update
25380 comment.
25381
25382 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25383
25384 * math/Makefile (test-types): Add
25385 $(type-float128-$(float128-alias-fcts)).
25386 * math/test-float128.h (TYPE_STR): Define conditional on
25387 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25388 (ULP_IDX): Likewise.
25389 (ULP_I_IDX): Likewise.
25390
25391 * stdlib/strtold.c: Include <bits/floatn.h>
25392 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25393 and later undefine as macro. Define as weak alias if
25394 [!USE_WIDE_CHAR].
25395 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25396 and later undefine as macro. Define as weak alias if
25397 [USE_WIDE_CHAR].
25398 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25399 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25400 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25401 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25402 Define and later undefine as macro. Define as weak alias if
25403 [USE_WIDE_CHAR].
25404 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25405 <bits/floatn.h>.
25406 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25407 Define and later undefine as macro. Define as weak alias if
25408 [!USE_WIDE_CHAR].
25409 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25410 Define and later undefine as macro. Define as weak alias if
25411 [USE_WIDE_CHAR].
25412
25413 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25414
25415 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25416 record_verbose messages.
25417
25418 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25419
25420 [BZ #22052]
25421 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25422 to silence -O3 -Wall warning with GCC 7.
25423
25424 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25425
25426 * Makeconfig (+link-static-before-libc): Use the first of
25427 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25428 * gmon/Makefile (tests): Add tst-gmon-static.
25429 (tests-static): Likewise.
25430 (CFLAGS-tst-gmon-static.c): New.
25431 (CRT-tst-gmon-static): Likewise.
25432 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25433 (tst-gmon-static-ENV): Likewise.
25434 (tests-special): Likewise.
25435 ($(objpfx)tst-gmon-static.out): Likewise.
25436 (clean-tst-gmon-static-data): Likewise.
25437 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25438 * gmon/tst-gmon-static-gprof.sh: New file.
25439 * gmon/tst-gmon-static.c: Likewise.
25440
25441 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25442
25443 [BZ #22295]
25444 * locale/programs/linereader.c (get_string): Don't warn on
25445 non-symbolic character.
25446
25447 [BZ #22294]
25448 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25449 int_curr_symbol.
25450
25451 [BZ #22292]
25452 * locale/programs/record-status.h: New file
25453 * locale/programs/locale.c: Add comment.
25454 * locale/programs/charmap-dir.c: Don't include error.h.
25455 (charmap_opendir): Use record_error.
25456 * locale/programs/charmap.c: Don't include error.h.
25457 (charmap_read): Use record_error, and record_warning.
25458 (parse_charmap): Likewise.
25459 * locale/programs/ld-address.c: Don't include error.h.
25460 (address_finish): Use record_error, and record_warning.
25461 * locale/programs/ld-collate.c: Don't include error.h.
25462 (collate_finish): Use record_error, and record_error_at_line.
25463 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25464 (ctype_class_new): Likewise.
25465 (ctype_map_new): Likewise.
25466 (set_one_default): Likewise.
25467 (set_class_defaults): Likewise.
25468 (translit_flatten): Likewise.
25469 (allocate_arrays): Use record_error, and record_verbose.
25470 * locale/programs/ld-identification.c: Don't include error.h.
25471 (indentation_finish): Use record_error and record_warning.
25472 * locale/programs/ld-measurement.c: Don't include error.h.
25473 (measurement_finish): Use record_error.
25474 * locale/programs/ld-messages.c
25475 (message_finish): Likewise.
25476 * locale/programs/ld-monetary.c
25477 (monetary_finish): Likewise.
25478 * locale/programs/ld-name.c (name_finish): Use record_error
25479 and record_warning.
25480 * locale/programs/ld-numeric.c
25481 (numeric_finish): Use record_error.
25482 * locale/programs/ld-paper.c: Don't include error.h.
25483 (paper_finish): Use record_error.
25484 * locale/programs/ld-telephone.c: Don't include error.h.
25485 (telephone_finish): Use record_error.
25486 * locale/programs/ld-time.c (time_finish): Likewise.
25487 * locale/programs/linereader.h (lr_error): Make inline func.
25488 * locale/programs/localedef.c: Define recorded_warning_count,
25489 and recorded_error_count.
25490 (main): Use record_error. Use recorded_error_count and
25491 recorded_warning_count to issue correct error returns.
25492 (add_to_readlist): Use record_error.
25493 (find_locale): Likewise.
25494 (load_locale): Likewise.
25495 * locale/programs/localedef.h: Remove be_quiet
25496 and WITH_CUR_LOCALE.
25497 * locale/programs/locarchive.c (compare_from_file): Use
25498 record_error.
25499 * locale/programs/locfile.c (write_locale_data): Use
25500 record_error.
25501 * locale/programs/repertoire.c: Dont include error.h.
25502 (repertoire_complain): Use record_error.
25503 * localedata/tst-fmon.sh: Expect failures from localedef.
25504 * localedata/tst-locale.sh: Likewise.
25505 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25506
25507 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25508 (REPORTS): Likewise.
25509 (check): Likewise.
25510 (i18n): Rename to...
25511 (i18n_ctype): ...this.
25512 (i18n-report): Rename to...
25513 (i18n_ctype-report): ...this.
25514 * localedata/locales/i18n_ctype: Regenerate.
25515 * localedata/locales/i18n: copy i18n_ctype.
25516
25517 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25518
25519 * stdlib/strfroml.c: Include <bits/floatn.h>.
25520 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25521 Define before include of <stdlib.h> and undefine afterwards, then
25522 define as weak alias.
25523
25524 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25525 Undefine and restore default definition. Use
25526 libm_alias_ldouble_other.
25527
25528 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25529
25530 [BZ #22153]
25531 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25532 in coredumps.
25533
25534 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25535
25536 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25537 Assign sym_map to be map for local symbols, as TLS relocations
25538 use sym_map to determine whether the symbol is defined and to
25539 extract the TLS information.
25540 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25541 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25542
25543 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25544
25545 [BZ #22189]
25546 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25547 (math_force_eval): Add powerpc version.
25548
25549 [BZ #22142]
25550 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25551 -DBL_MAX.
25552 (do_test): Likewise.
25553 * stdio-common/tst-printf.sh: Likewise.
25554 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25555 ifdef clause in order to set the carry bit right. Replace r0 by
25556 0 without changing the behavior.
25557
25558 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25559
25560 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25561 <libm-alias-ldouble.h>.
25562 (fabsl): Define using libm_alias_ldouble.
25563 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25564 <libm-alias-ldouble.h>.
25565 (fabsl): Define using libm_alias_ldouble.
25566
25567 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25568 Remove conditional code.
25569
25570 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25571 Rename to __clog10_internal_l.
25572 (__clog10_internal_l): Define aliases using
25573 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25574 with __clog10.
25575
25576 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25577
25578 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25579 * benchtests/sincosf-inputs: New file.
25580 * benchtests/cosf-inputs: New file.
25581 * benchtests/sinf-inputs: New file.
25582
25583 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25584
25585 * posix/tst-spawn.c (do_test): Wait for both children.
25586
25587 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25588
25589 [BZ #22284]
25590 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25591 tests-pie): Add tst-gmon-pie.
25592 (CFLAGS-tst-gmon-pie.c): New.
25593 (CRT-tst-gmon-pie): Likewise.
25594 (tst-gmon-pie-ENV): Likewise.
25595 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25596 ($(objpfx)tst-gmon-pie.out): Likewise.
25597 (clean-tst-gmon-pie-data): Likewise.
25598 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25599 * gmon/gmon.c [PIC]: Include <link.h>.
25600 [PIC] (callback): New function.
25601 (write_hist): Add an argument for load address. Subtract load
25602 address from PCs.
25603 (write_call_graph): Likewise.
25604 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25605 it to write_hist and write_call_graph.
25606 * gmon/tst-gmon-pie.c: New file.
25607
25608 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25609
25610 * math/Makefile (test-types-basic): New variable.
25611 (test-types): Likewise.
25612 (libm-test-support): Use $(test-types) instead of $(types).
25613 (libm-tests-base-normal): Likewise.
25614 (libm-tests-base-finite): Likewise.
25615 (libm-tests-base-inline): Likewise.
25616 (generated): Likewise.
25617 ($(objpfx)libm-test-support-$(t).c): Likewise.
25618 (libm-tests-for-type iterator): Likewise.
25619 (libm-test-support iterator): Likewise.
25620 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25621 (ulp_idx): Use ULP_IDX.
25622 * math/test-ldouble.h: Include <float.h>.
25623 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25624 (ULP_IDX): New macro.
25625 (ULP_I_IDX): Likewise.
25626 * math/test-double.h (ULP_IDX): Likewise.
25627 (ULP_I_IDX): Likewise.
25628 * math/test-float.h (ULP_IDX): Likewise.
25629 (ULP_I_IDX): Likewise.
25630 * math/test-float128.h (ULP_IDX): Likewise.
25631 (ULP_I_IDX): Likewise.
25632
25633 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25634
25635 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25636 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25637 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25638 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25639 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25640 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25641 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25642 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25643 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25644 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25645 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25646 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25647 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25648 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25649 (SINGLE_THREAD_BY_GLOBAL): Define.
25650 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25651 Likewise.
25652 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25653 Likewise.
25654 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25655 Likewise.
25656 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25657 Likewise.
25658 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25659 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25660 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25661 Likewise.
25662
25663 2017-10-11 Andreas Schwab <schwab@suse.de>
25664
25665 * nis/Makefile (aux): Remove.
25666 * nscd/Makefile (aux): Add nscd_hash.
25667 (nscd-modules): Likewise.
25668 ($(objpfx)nscd): Don't depend on libnsl.
25669 * nscd/nscd_hash.c: New file.
25670 * nscd/nscd_hash.h: Likewise.
25671 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25672 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25673 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25674 instead of <nis/rpcsvc/nis.h>.
25675 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25676
25677 2017-10-11 Florian Weimer <fweimer@redhat.com>
25678
25679 [BZ #22078]
25680 Avoid large NSS buffers with many addresses, aliases.
25681 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25682 using dynarrays and struct alloc_buffer.
25683 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25684 (tst-nss-files-hosts-multi): Link with -ldl.
25685 * nss/tst-nss-files-hosts-multi.c: New file.
25686
25687 2017-10-11 Florian Weimer <fweimer@redhat.com>
25688
25689 [BZ #18023]
25690 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25691 scratch_buffer. Eliminate gotos.
25692
25693 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25694
25695 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25696 libm_alias_ldouble_other.
25697 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25698 undefine and redefine.
25699 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25700 (exp10l): Do not define here.
25701 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25702 (weak_alias): Undefine and redefine.
25703 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25704 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25705 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25706 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25707
25708 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25709 [!__fma] (fma): Define using libm_alias_double.
25710 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25711 [!__fmaf] (fmaf): Define using libm_alias_float.
25712 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25713 (fmal): Define using libm_alias_ldouble.
25714
25715 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25716
25717 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25718 New macro.
25719 (libm_alias_double_other): Likewise.
25720 (libm_alias_double_r): Use libm_alias_double_other_r.
25721 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25722 New macro.
25723 (libm_alias_float_other): Likewise.
25724 (libm_alias_float_r): Use libm_alias_float_other_r.
25725 * sysdeps/generic/libm-alias-float128.h
25726 (libm_alias_float128_other_r): New macro.
25727 (libm_alias_float128_other): Likewise.
25728 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25729 * sysdeps/generic/libm-alias-ldouble.h
25730 (libm_alias_ldouble_other_r): New macro.
25731 (libm_alias_ldouble_other): Likewise.
25732 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25733 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25734 (libm_alias_double_other_r): New macro.
25735 (libm_alias_double_other): Likewise.
25736 (libm_alias_double_r): Use libm_alias_double_other_r.
25737 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25738 (libm_alias_ldouble_other_r): New macro.
25739 (libm_alias_ldouble_other): Likewise.
25740 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25741 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25742 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25743 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25744 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25745 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25746 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25747 * math/w_exp2f.c: Use libm_alias_float_other.
25748 * math/w_expf.c: Likewise.
25749 * math/w_log2f.c: Likewise.
25750 * math/w_logf.c: Likewise.
25751 * math/w_powf.c: Likewise.
25752 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25753 [!__exp2f]: Use libm_alias_float_other.
25754 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25755 [!__expf]: Use libm_alias_float_other.
25756 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25757 [!__log2f]: Use libm_alias_float_other.
25758 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25759 [!__logf]: Use libm_alias_float_other.
25760 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25761 [!__powf]: Use libm_alias_float_other.
25762
25763 2017-10-10 Florian Weimer <fweimer@redhat.com>
25764
25765 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25766 function.
25767 (_nss_files_gethostbyname3_r): Call it.
25768
25769 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25770
25771 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25772 error. Remove default definition of declare_mgen_alias.
25773 [!declare_mgen_alias_r]: Likewise.
25774 * sysdeps/generic/math-type-macros-double.h
25775 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25776 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25777 (declare_mgen_alias_r): Likewise.
25778 * sysdeps/generic/math-type-macros-float128.h
25779 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25780 * sysdeps/generic/math-type-macros-ldouble.h
25781 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25782 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25783 macro.
25784 (declare_mgen_alias_r_s): Likewise.
25785 (declare_mgen_alias_r): Likewise.
25786 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25787 (lgamma_r): Define using libm_alias_double_r.
25788 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25789 (lgammaf_r): Define using libm_alias_float_r.
25790 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25791 (lgammal_r): Define using libm_alias_ldouble_r.
25792 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25793 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25794
25795 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25796
25797 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25798 extern declaration.
25799
25800 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25801
25802 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25803
25804 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25805
25806 [BZ #21326]
25807 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25808 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25809 * math/Makefile (test-math-cxx11): New test.
25810 * math/test-math-cxx11.cc: New file.
25811
25812 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25813
25814 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25815
25816 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25817 call to allocate the slave pty file descriptor.
25818
25819 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25820
25821 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25822 [!__fma] (fma): Define using libm_alias_double.
25823 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25824 [!__fma] (fma): Define using libm_alias_double.
25825
25826 * sysdeps/ieee754/float128/float128_private.h: Include
25827 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25828 (libm_alias_ldouble_r): Undefine and redefine.
25829 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25830 <libm-alias-ldouble.h>.
25831 (asinhl): Define using libm_alias_ldouble.
25832 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25833 <libm-alias-ldouble.h>.
25834 (atanl): Define using libm_alias_ldouble.
25835 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25836 <libm-alias-ldouble.h>.
25837 (cbrtl): Define using libm_alias_ldouble.
25838 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25839 <libm-alias-ldouble.h>.
25840 (ceill): Define using libm_alias_ldouble.
25841 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25842 <libm-alias-ldouble.h>.
25843 (copysignl): Define using libm_alias_ldouble.
25844 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25845 <libm-alias-ldouble.h>.
25846 (cosl): Define using libm_alias_ldouble.
25847 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25848 <libm-alias-ldouble.h>.
25849 (erfl): Define using libm_alias_ldouble.
25850 (erfcl): Likewise.
25851 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25852 <libm-alias-ldouble.h>.
25853 (expm1l): Define using libm_alias_ldouble.
25854 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25855 <libm-alias-ldouble.h>.
25856 (fabsl): Define using libm_alias_ldouble.
25857 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25858 <libm-alias-ldouble.h>.
25859 (floorl): Define using libm_alias_ldouble.
25860 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25861 <libm-alias-ldouble.h>.
25862 (fmal): Define using libm_alias_ldouble.
25863 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25864 <libm-alias-ldouble.h>.
25865 (frexpl): Define using libm_alias_ldouble.
25866 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25867 libm_alias_ldouble.
25868 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25869 <libm-alias-ldouble.h>.
25870 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25871 libm_alias_ldouble.
25872 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25873 <libm-alias-ldouble.h>.
25874 (getpayloadl): Define using libm_alias_ldouble.
25875 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25876 <libm-alias-ldouble.h>.
25877 (llrintl): Define using libm_alias_ldouble.
25878 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25879 <libm-alias-ldouble.h>.
25880 (llroundl): Define using libm_alias_ldouble.
25881 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25882 <libm-alias-ldouble.h>.
25883 (logbl): Define using libm_alias_ldouble.
25884 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25885 <libm-alias-ldouble.h>.
25886 (lrintl): Define using libm_alias_ldouble.
25887 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25888 <libm-alias-ldouble.h>.
25889 (lroundl): Define using libm_alias_ldouble.
25890 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25891 <libm-alias-ldouble.h>.
25892 (modfl): Define using libm_alias_ldouble.
25893 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25894 <libm-alias-ldouble.h>.
25895 (nearbyintl): Define using libm_alias_ldouble.
25896 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25897 <libm-alias-ldouble.h>.
25898 (nextafterl): Define using libm_alias_ldouble.
25899 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25900 <libm-alias-ldouble.h>.
25901 (nextupl): Define using libm_alias_ldouble.
25902 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25903 <libm-alias-ldouble.h>.
25904 (remquol): Define using libm_alias_ldouble.
25905 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25906 <libm-alias-ldouble.h>.
25907 (rintl): Define using libm_alias_ldouble.
25908 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25909 <libm-alias-ldouble.h>.
25910 (roundevenl): Define using libm_alias_ldouble.
25911 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25912 <libm-alias-ldouble.h>.
25913 (roundl): Define using libm_alias_ldouble.
25914 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25915 using libm_alias_ldouble.
25916 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25917 <libm-alias-ldouble.h>.
25918 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25919 Define using libm_alias_ldouble.
25920 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25921 <libm-alias-ldouble.h>.
25922 (sincosl): Define using libm_alias_ldouble.
25923 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25924 <libm-alias-ldouble.h>.
25925 (sinl): Define using libm_alias_ldouble.
25926 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25927 <libm-alias-ldouble.h>.
25928 (tanhl): Define using libm_alias_ldouble.
25929 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25930 <libm-alias-ldouble.h>.
25931 (tanl): Define using libm_alias_ldouble.
25932 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25933 <libm-alias-ldouble.h>.
25934 (totalorderl): Define using libm_alias_ldouble.
25935 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25936 <libm-alias-ldouble.h>.
25937 (totalordermagl): Define using libm_alias_ldouble.
25938 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25939 <libm-alias-ldouble.h>.
25940 (truncl): Define using libm_alias_ldouble.
25941 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25942 libm_alias_ldouble.
25943 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25944 libm_alias_ldouble.
25945 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25946 <libm-alias-ldouble.h>.
25947 (weak_alias): Do not undefine and redefine.
25948 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25949 (copysignl): Define with long_double_symbol only if [IS_IN
25950 (libc)].
25951 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25952 <libm-alias-ldouble.h>.
25953 (weak_alias): Do not undefine and redefine.
25954 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25955 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25956 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25957 <libm-alias-ldouble.h>.
25958 (weak_alias): Do not undefine and redefine.
25959 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25960 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25961 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25962 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25963 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25964 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25965 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25966 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25967 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25968 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25969 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25970 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25971 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25972 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25973 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25974 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25975 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25976 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25977 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25978 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25979 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25980 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25981 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25982 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25983 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25984 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25985
25986 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25987
25988 [BZ #22111]
25989 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25990 (tcache_thread_freeres): Set tcache_shutting_down before
25991 freeing the tcache.
25992 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25993 * malloc/tst-malloc-tcache-leak.c: New file.
25994
25995 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25996
25997 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25998 back to powerpc32 file.
25999 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26000 (memrchr): Add __memrchr_power8 to ifunc list.
26001 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
26002 extra bytes for unaligned inputs.
26003
26004 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26005
26006 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
26007 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26008 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26009 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26010 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26011
26012 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26013
26014 * sysdeps/arm/libm-test-ulps: Update.
26015
26016 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26017 <libm-alias-ldouble.h>.
26018 (asinhl): Define using libm_alias_ldouble.
26019 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26020 <libm-alias-ldouble.h>.
26021 (cbrtl): Define using libm_alias_ldouble.
26022 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26023 <libm-alias-ldouble.h>.
26024 (copysignl): Define using libm_alias_ldouble.
26025 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26026 <libm-alias-ldouble.h>.
26027 (cosl): Define using libm_alias_ldouble.
26028 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26029 <libm-alias-ldouble.h>.
26030 (erfl): Define using libm_alias_ldouble.
26031 (erfcl): Likewise.
26032 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26033 <libm-alias-ldouble.h>.
26034 (fmal): Define using libm_alias_ldouble.
26035 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26036 <libm-alias-ldouble.h>.
26037 (frexpl): Define using libm_alias_ldouble.
26038 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26039 libm_alias_ldouble.
26040 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26041 <libm-alias-ldouble.h>.
26042 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26043 libm_alias_ldouble.
26044 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26045 <libm-alias-ldouble.h>.
26046 (getpayloadl): Define using libm_alias_ldouble.
26047 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26048 <libm-alias-ldouble.h>.
26049 (llrintl): Define using libm_alias_ldouble.
26050 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26051 <libm-alias-ldouble.h>.
26052 (llroundl): Define using libm_alias_ldouble.
26053 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26054 <libm-alias-ldouble.h>.
26055 (lrintl): Define using libm_alias_ldouble.
26056 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26057 <libm-alias-ldouble.h>.
26058 (lroundl): Define using libm_alias_ldouble.
26059 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26060 <libm-alias-ldouble.h>.
26061 (modfl): Define using libm_alias_ldouble.
26062 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26063 <libm-alias-ldouble.h>.
26064 (nextupl): Define using libm_alias_ldouble.
26065 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26066 <libm-alias-ldouble.h>.
26067 (remquol): Define using libm_alias_ldouble.
26068 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26069 <libm-alias-ldouble.h>.
26070 (roundevenl): Define using libm_alias_ldouble.
26071 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26072 <libm-alias-ldouble.h>.
26073 (roundl): Define using libm_alias_ldouble.
26074 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26075 using libm_alias_ldouble.
26076 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26077 <libm-alias-ldouble.h>.
26078 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26079 <libm-alias-ldouble.h>.
26080 (setpayloadsigl): Define using libm_alias_ldouble.
26081 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26082 <libm-alias-ldouble.h>.
26083 (sincosl): Define using libm_alias_ldouble.
26084 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26085 <libm-alias-ldouble.h>.
26086 (sinl): Define using libm_alias_ldouble.
26087 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26088 <libm-alias-ldouble.h>.
26089 (tanhl): Define using libm_alias_ldouble.
26090 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26091 <libm-alias-ldouble.h>.
26092 (tanl): Define using libm_alias_ldouble.
26093 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26094 <libm-alias-ldouble.h>.
26095 (totalorderl): Define using libm_alias_ldouble.
26096 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26097 <libm-alias-ldouble.h>.
26098 (totalordermagl): Define using libm_alias_ldouble.
26099 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26100 libm_alias_ldouble.
26101 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26102 libm_alias_ldouble.
26103
26104 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
26105
26106 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26107 memmove_falkor.
26108 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26109 (__libc_ifunc_impl_list): Likewise.
26110 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26111 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26112
26113 * benchtests/bench-memmove-walk.c: New file.
26114 * benchtests/Makefile (string-benchset): Add it.
26115
26116 * benchtests/bench-memset-walk.c: New file.
26117 * benchtests/Makefile (string-benchset): Add it.
26118
26119 * benchtests/bench-memcpy-walk.c: New file.
26120 * benchtests/Makefile (string-benchset): Add it.
26121
26122 2017-10-05 Florian Weimer <fweimer@redhat.com>
26123
26124 nscd: Eliminate compilation time dependency in the build output.
26125 * nscd/nscd_stat.c (STATDATA_VERSION)
26126 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26127 (STATDATA_VERSION_FULL): New macro definitions.
26128 (compilation): Remove.
26129 (struct statdata): Adjust version member.
26130 (send_stats): Set version from STATDATA_VERSION_FULL.
26131 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26132
26133 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26134
26135 * configure.ac (--enable-add-ons): Remove option.
26136 (machine): Do not mention add-ons in comment.
26137 (LIBC_PRECONFIGURE): Likewise.
26138 (add_ons): Remove variable and sanity checks and logic to locate
26139 add-ons.
26140 (add_ons_automatic): Remove variable.
26141 (configured_add_ons): Likewise.
26142 (add_ons_sfx): Likewise.
26143 (add_ons_pfx): Likewise.
26144 (add_on_subdirs): Likewise.
26145 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26146 consideration of add-ons in Implies handling.
26147 (sysdeps_add_ons): Likewise.
26148 * configure: Regenerated.
26149 * libidn/configure.ac: Remove.
26150 * libidn/configure: Likewise.
26151 * sysdeps/unix/inet/configure.ac: New file.
26152 * sysdeps/unix/inet/configure: New generated file.
26153 * sysdeps/unix/inet/Subdirs: Add libidn.
26154 * Makeconfig (sysdeps-srcdirs): Remove variable.
26155 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26156 ($(common-objpfx)config.status): Do not depend on add-on files.
26157 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26158 comment.
26159 (all-subdirs): Do not include $(add-on-subdirs).
26160 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26161 * config.make.in (add-ons): Remove variable.
26162 (add-on-subdirs): Likewise.
26163 (sysdeps-add-ons): Likewise.
26164 * manual/Makefile (add-chapters): Remove.
26165 ($(objpfx)texis): Do not depend on $(add-chapters).
26166 (nonexamples): Do not handle $(add-chapters).
26167 (examples): Do not handle $(add-ons).
26168 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26169 libc-texinfo.sh.
26170 * manual/install.texi (Installation): Do not mention add-ons.
26171 (--enable-add-ons): Do not document configure option.
26172 * INSTALL: Regenerated.
26173 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26174 * manual/maint.texi (Hierarchy Conventions): Do not mention
26175 add-ons.
26176 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26177 --enable-add-ons.
26178 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26179 add-ons.
26180 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26181 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26182
26183 2017-10-05 Andreas Schwab <schwab@suse.de>
26184
26185 [BZ #15142]
26186 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26187 (_IO_flush_all_lockp): Always lock list_all_lock.
26188 (_IO_flush_all_linebuffered): Likewise.
26189 (_IO_unbuffer_all): Likewise.
26190
26191 2017-10-05 Florian Weimer <fweimer@redhat.com>
26192
26193 [BZ #15436]
26194 Do not flush stdio streams on abort.
26195 * stdlib/abort.c (fflush): Remove macro definition.
26196 (abort): Remove stages related to stdio flushing.
26197
26198 2017-10-05 Florian Weimer <fweimer@redhat.com>
26199
26200 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26201
26202 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26203
26204 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26205
26206 2017-10-05 Florian Weimer <fweimer@redhat.com>
26207
26208 * support/support_format_hostent.c (support_format_hostent): Add
26209 more error information for NETDB_INTERNAL.
26210
26211 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26212
26213 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26214 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26215 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26216 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26217 AC_DEFINE if multi-arch is enabled.
26218 * sysdeps/i386/configure: Regenerated.
26219
26220 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26221
26222 * Makeconfig (+link-static-before-libc): Use
26223 $(DEFAULT-LDFLAGS-$(@F)).
26224 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26225 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26226 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26227
26228 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26229
26230 * elf/Makefile (tests): Add tst-main1.
26231 (modules-names): Add tst-main1mod.
26232 ($(objpfx)tst-main1): New.
26233 (CRT-tst-main1): Likewise.
26234 (LDFLAGS-tst-main1): Likewise.
26235 (LDLIBS-tst-main1): Likewise.
26236 (tst-main1mod.so-no-z-defs): Likewise.
26237 * elf/tst-main1.c: New file.
26238 * elf/tst-main1mod.c: Likewise.
26239
26240 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26241
26242 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26243
26244 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26245
26246 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26247 (fma): Define using libm_alias_double.
26248 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26249 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26250 <math_ldbl_opt.h>.
26251 (fmal): Do not define as compat symbol here.
26252 * sysdeps/alpha/fpu/s_fma.c: New file.
26253
26254 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26255
26256 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26257
26258 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26259
26260 [BZ #22229]
26261 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26262 <math_ldbl_opt.h>
26263 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26264 and libc.
26265 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26266 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26267 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26268 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26269 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26270 Include <math_ldbl_opt.h>
26271 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26272 and libc.
26273 (compat_symbol): Undefine and redefine.
26274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26275 <math_ldbl_opt.h>
26276 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26277 (compat_symbol): Undefine and redefine.
26278 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26279 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26280 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26281 GLIBC_2_1 for libm.
26282 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26283 GLIBC_2.0 copysignl symbol.
26284 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26285 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26286
26287 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26288
26289 2017-10-04 Florian Weimer <fweimer@redhat.com>
26290
26291 * scripts/check-local-headers.sh: Ignore nspr4 header file
26292 directory in addition to nspr.
26293
26294 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26295
26296 [BZ #17956]
26297 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26298 * configure: Regenerate.
26299 * crypt/Makefile (nss-cpp-flags): New variable.
26300 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26301 (CPPFLAGS-md5-crypt.c): Use it.
26302 * scripts/check-local-headers.sh: Ignore nspr header file
26303 directory.
26304
26305 2017-10-04 Andreas Schwab <schwab@suse.de>
26306
26307 * nis/Makefile (services): Remove compat.
26308 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26309 ($(objpfx)libnss_compat.so): Remove rule.
26310 * nis/Versions (libnss_compat): Remove.
26311 * nss/Makefile (services): Add compat.
26312 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26313 * nss/Versions (libnss_compat): Define.
26314 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26315 Don't include <rpc/types.h>. Replace bool_t by bool.
26316 * nss/nss_compat/compat-initgroups.c: Likewise.
26317 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26318 instead of <rpcsrv/ypclnt.h>.
26319 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26320 yp_get_default_domain.
26321 * nss/nss_compat/compat-pwd.c: Likewise.
26322 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26323 yp_get_default_domain.
26324 * nss/nss_compat/nisdomain.c: New file.
26325 * nss/nss_compat/nisdomain.h: Likewise.
26326
26327 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26328
26329 [BZ #22244]
26330 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26331 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26332
26333 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26334
26335 [BZ #22243]
26336 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26337 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26338
26339 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26340
26341 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26342 "movl main@GOTOFF(%ebx), %eax".
26343
26344 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26345
26346 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26347 allow undefined _DYNAMIC in PIE libc.a.
26348 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26349 Likewse.
26350
26351 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26352
26353 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26354 check _DYNAMIC.
26355
26356 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26357
26358 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26359 check _DYNAMIC.
26360
26361 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26362
26363 * math/test-math-iscanonical.cc (error): Replace bool with int.
26364
26365 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26366
26367 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26368 (modf): Define using libm_alias_double, only if [!__modf].
26369 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26370 <libm-alias-double.h>.
26371 (modf): Define using libm_alias_double, only if [!__modf].
26372 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26373 compat symbol here.
26374 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26375 (weak_alias): Do not undefine and redefine.
26376 (strong_alias): Likewise.
26377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26378 (weak_alias): Likewise.
26379 (strong_alias): Likewise.
26380
26381 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26382 (logb): Define using libm_alias_double, only if [!__logb].
26383 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26384 <libm-alias-double.h>.
26385 (logb): Define using libm_alias_double, only if [!__logb].
26386 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26387 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26388 (weak_alias): Do not undefine and redefine.
26389 (strong_alias): Likewise.
26390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26391 (weak_alias): Likewise.
26392 (strong_alias): Likewise.
26393
26394 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26395
26396 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26397 Check SHARED instead PIC.
26398
26399 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26400
26401 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26402 [!__fmaf] (fmaf): Define using libm_alias_float.
26403
26404 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26405 (frexp): Define using libm_alias_double.
26406 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26407 <libm-alias-double.h>.
26408 (frexp): Define using libm_alias_double.
26409 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26410 compat symbol here.
26411
26412 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26413
26414 [BZ #22235]
26415 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26416 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26417 (CFLAGS-test-math-iscanonical.cc): New variable.
26418 * math/test-math-iscanonical.cc: New file.
26419 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26420 Provide a C++ implementation based on function overloading,
26421 rather than using __MATH_TG, which uses C-only builtins.
26422 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26423 Likewise.
26424 * sysdeps/powerpc/powerpc64le/Makefile
26425 (CFLAGS-test-math-iscanonical.cc): New variable.
26426
26427 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26428
26429 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26430 (ceil): Define using libm_alias_double.
26431 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26432 (floor): Define using libm_alias_double.
26433 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26434 <libm-alias-double.h>.
26435 (llround): Define using libm_alias_double.
26436 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26437 <libm-alias-double.h>.
26438 (lround): Define using libm_alias_double.
26439 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26440 <libm-alias-double.h>.
26441 (nearbyint): Define using libm_alias_double.
26442 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26443 <libm-alias-double.h>.
26444 (remquo): Define using libm_alias_double.
26445 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26446 (rint): Define using libm_alias_double.
26447 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26448 (round): Define using libm_alias_double.
26449 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26450 (trunc): Define using libm_alias_double.
26451 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26452 <libm-alias-double.h>.
26453 (ceil): Define using libm_alias_double.
26454 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26455 <libm-alias-double.h>.
26456 (floor): Define using libm_alias_double.
26457 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26458 <libm-alias-double.h>.
26459 (llround): Define using libm_alias_double.
26460 [_LP64] (lround): Likewise.
26461 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26462 <libm-alias-double.h>.
26463 [!_LP64] (lround): Define using libm_alias_double.
26464 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26465 <libm-alias-double.h>.
26466 (nearbyint): Define using libm_alias_double.
26467 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26468 <libm-alias-double.h>.
26469 (remquo): Define using libm_alias_double.
26470 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26471 <libm-alias-double.h>.
26472 (rint): Define using libm_alias_double.
26473 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26474 <libm-alias-double.h>.
26475 (round): Define using libm_alias_double.
26476 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26477 <libm-alias-double.h>.
26478 (trunc): Define using libm_alias_double.
26479 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26480 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26481 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26482 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26483 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26484 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26485 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26486 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26487 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26488
26489 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26490
26491 * math/w_remainder.c: New file.
26492 * math/w_remainderf.c: New file.
26493 * math/w_remainderl.c: New file.
26494
26495 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26496
26497 * elf/rtld.c (BOOTSTRAP_MAP): New.
26498 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26499 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26500 Likewise.
26501 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26502 Likewise.
26503 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26504 Likewise.
26505
26506 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26507
26508 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26509 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26510 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26511 rtld_hidden_data_ver): Define to empty.
26512 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26513 __assert_perror_fail): Likewise.
26514 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26515 (__rewinddir): Likewise.
26516 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26517 (__profile_frequency): Likewise.
26518 * include/setjmp.h (__sigsetjmp): Likewise.
26519 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26520 __libc_sigaction): Likewise.
26521 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26522 not set hidden attribute.
26523 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26524 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26525 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26526 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26527 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26528 __fxstatat64): Likewise.
26529 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26530 (__uname): Likewise.
26531 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26532 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26533 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26534 (NO_RTLD_HIDDEN): Set.
26535 * sysdeps/mach/hurd/configure: Refresh.
26536 * config.h.in: Refresh.
26537
26538 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26539
26540 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26541 (atan): Define using libm_alias_double.
26542 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26543 (tan): Define using libm_alias_double.
26544 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26545 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26546
26547 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26548 define as weak alias of __atan. Do not define any aliases if
26549 [__atan].
26550 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26551 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26552 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26553 as weak alias of __tan. Do not define any aliases if [__tan].
26554 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26555 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26556 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26557 __atan.
26558 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26559 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26560 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26561 and define as weak alias of __atan.
26562 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26563 __atan.
26564 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26565 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26566 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26567 define as weak alias of __tan.
26568
26569 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26570
26571 * math/w_lgamma.c: New file.
26572 * math/w_lgammaf.c: New file.
26573 * math/w_lgammal.c: New file.
26574
26575 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26576
26577 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26578 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26579 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26580 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26581 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26582 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26583 * sysdeps/i386/fpu/w_log2f.c: New file.
26584 * sysdeps/i386/fpu/w_logf.c: New file.
26585 * sysdeps/i386/fpu/w_powf.c: New file.
26586 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26587 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26588 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26589
26590 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26591 H.J. Lu <hongjiu.lu@intel.com>
26592
26593 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26594 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26595 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26596 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26597 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26598 the new expf code.
26599 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26600 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26601 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26602 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26603 * sysdeps/i386/fpu/w_exp2f.c: New file.
26604 * sysdeps/i386/fpu/w_expf.c: New file.
26605 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26606 * sysdeps/x86_64/fpu/w_expf.c: New file.
26607
26608 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26609
26610 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26611 (log2f): Likewise.
26612 (powf): Likewise.
26613 * math/w_log2f.c: New file.
26614 * math/w_logf.c: New file.
26615 * math/w_powf.c: New file.
26616 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26617 * math/w_logf_compat.c (__logf_compat): Likewise.
26618 * math/w_powf_compat.c (__powf_compat): Likewise.
26619 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26620 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26621 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26622 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26623 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26624 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26625 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26626 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26627 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26628 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26629 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26630 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26631 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26632 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26633 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26635 Likewise.
26636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26637 Likewise.
26638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26639 Likewise.
26640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26641 Likewise.
26642 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26643 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26644 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26645 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26646 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26647 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26648 Likewise.
26649 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26650 Likewise.
26651 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26652 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26653 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26654
26655 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26656
26657 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26658 (sysdep_routines): Add memrchr_power8.
26659 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26660 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26661 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26662 New file.
26663 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26664 (memrchr): Add __memrchr_power8 to ifunc list.
26665 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26666
26667 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26668
26669 [BZ #18822]
26670 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26671 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26672 libc_hidden_def.
26673 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26674 (__posix_fallocate64_l64): Likewise.
26675
26676 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26677
26678 [BZ #18822]
26679 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26680 (__sched_setaffinity_new): Add libc_hidden_proto and
26681 libc_hidden_def.
26682
26683 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26684
26685 [BZ #18822]
26686 * include/glob.h (__glob64): Add libc_hidden_proto.
26687 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26688 libc_hidden_def.
26689
26690 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26691
26692 [BZ #18822]
26693 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26694 attribute_hidden.
26695
26696 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26697
26698 [BZ #18822]
26699 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26700
26701 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26702
26703 [BZ #18822]
26704 * mon/gmon.c (__moncontrol): 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 * csu/version.c (__libc_print_version): Add attribute_hidden.
26711
26712 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26713
26714 [BZ #18822]
26715 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26716
26717 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26718
26719 [BZ #18822]
26720 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26721
26722 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26723
26724 [BZ #18822]
26725 * nscd/nscd_helper.c (__nis_hash): New prototype.
26726
26727 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26728
26729 [BZ #18822]
26730 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26731 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26732 libc_hidden_def.
26733 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26734 * termios/tcgetattr.c (__tcgetattr): Likewise.
26735
26736 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26737
26738 [BZ #18822]
26739 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26740 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26741 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26742 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26743 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26744
26745 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26746
26747 [BZ #18822]
26748 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26749
26750 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26751
26752 [BZ #18822]
26753 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26754 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26755
26756 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26757
26758 [BZ #18822]
26759 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26760
26761 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26762
26763 [BZ #18822]
26764 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26765 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26766
26767 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26768
26769 [BZ #18822]
26770 * include/ifreq.h: New file.
26771 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26772 (__ifreq): Likewise.
26773 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26774 (__ifreq): Likewise.
26775
26776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26777
26778 [BZ #18822]
26779 * include/idna.h: New file.
26780 * inet/getnameinfo.c: Include <idna.h> instead of
26781 <libidn/idna.h>.
26782 (__idna_to_unicode_lzlz): Removed.
26783 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26784 <libidn/idna.h>.
26785 (__idna_to_ascii_lz): Removed.
26786 (__idna_to_unicode_lzlz): Likewise.
26787
26788 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26789
26790 [BZ #18822]
26791 * include/plural-exp.h: New file.
26792 * intl/plural-exp.c: Include <plural-exp.h> instead of
26793 "plural-exp.h".
26794
26795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 [BZ #18822]
26798 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26799 "getsourcefilter.h".
26800 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26801 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26802 "getsourcefilter.h".
26803 (__get_sol): Removed.
26804
26805 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26806
26807 [BZ #18822]
26808 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26809 to ...
26810 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26811
26812 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 [BZ #18822]
26815 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26816 attribute_hidden.
26817
26818 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26819
26820 [BZ #18822]
26821 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26822
26823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26824
26825 [BZ #18822]
26826 * include/search.h (__tdestroy): Add libc_hidden_proto.
26827 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26828
26829 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26830
26831 [BZ #18822]
26832 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26833
26834 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26835
26836 [BZ #18822]
26837 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26838 attribute_hidden.
26839
26840 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26841
26842 [BZ #18822]
26843 * include/signal.h (__kill): Add libc_hidden_proto.
26844 (__sigblock): Likewise.
26845 (__sigprocmask): Likewise.
26846 (__sigaltstack): Likewise.
26847 * signal/kill.c (__kill): Add libc_hidden_def.
26848 * signal/sigblock.c (__sigblock): Likewise.
26849 * signal/sigprocmask.c (__sigprocmask): Likewise.
26850 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26851 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26852 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26853 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26854 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26855 Likewise.
26856 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26857 Likewise.
26858 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26859 (__sigprocmask): Likewise.
26860 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26861 Likewise.
26862 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26863 (__sigprocmask): Likewise.
26864 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26865 Likewise.
26866
26867 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26868
26869 [BZ #18822]
26870 * include/string.h (__strsep): Add libc_hidden_proto.
26871 * string/strsep.c (__strsep): Add libc_hidden_def.
26872
26873 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26874
26875 [BZ #18822]
26876 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26877 attribute_hidden.
26878 (__spawni): Likewise.
26879
26880 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26881
26882 [BZ #18822]
26883 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26884 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26885 libc_hidden_def.
26886
26887 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26888
26889 [BZ #18822]
26890 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26891
26892 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26893
26894 [BZ #18822]
26895 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26896 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26897 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26898 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26899 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26900 Likewise.
26901 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26902 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26903
26904 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26905
26906 [BZ #18822]
26907 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26908 (__dcigettext): Likewise.
26909
26910 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26911
26912 [BZ #18822]
26913 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26914 libc_hidden_proto.
26915 (__get_nprocs): Likewise.
26916 (__get_phys_pages): Likewise.
26917 (__get_avphys_pages): Likewise.
26918 (__get_child_max): Add attribute_hidden.
26919 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26920 (__get_nprocs): Likewise.
26921 (__get_phys_pages): Likewise.
26922 (__get_avphys_pages): Likewise.
26923 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26924 libc_hidden_def.
26925 (__get_nprocs): Likewise.
26926 (__get_phys_pages): Likewise.
26927 (__get_avphys_pages): Likewise.
26928 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26929 libc_hidden_def.
26930 (__get_nprocs_conf): Likewise.
26931 (__get_phys_pages): Likewise.
26932 (__get_avphys_pages): Likewise.
26933
26934 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26935
26936 [BZ #18822]
26937 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26938 attribute_hidden.
26939 (__netlink_close): Likewise.
26940 (__netlink_free_handle): Likewise.
26941 (__netlink_request): Likewise.
26942
26943 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26944
26945 [BZ #18822]
26946 * include/rpc/rpc.h (__rpc_thread_variables): Add
26947 attribute_hidden.
26948 (__rpc_thread_svc_cleanup): Likewise.
26949 (__rpc_thread_clnt_cleanup): Likewise.
26950 (__rpc_thread_key_cleanup): Likewise.
26951
26952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26953
26954 [BZ #18822]
26955 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26956 (__writev): Likewise.
26957 * misc/readv.c (__readv): Add libc_hidden_def.
26958 * misc/writev.c (__writev): Likewise.
26959 * sysdeps/posix/readv.c (__readv): Likewise.
26960 * sysdeps/posix/writev.c (__writev): Likewise.
26961 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26962 (__readv): Likewise.
26963 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26964 (__writev): Likewise.
26965
26966 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26967
26968 [BZ #18822]
26969 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26970 (__regcomp): Add libc_hidden_proto.
26971 (__regexec): Likewise.
26972 (__regfree): Likewise.
26973 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26974 (__regfree): Likewise.
26975 * posix/regexec.c (__regexec): Likewise.
26976
26977 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26978
26979 [BZ #18822]
26980 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26981 (__getutent): Likewise.
26982 (__getutid): Likewise.
26983 (__getutline): Likewise.
26984 (__pututline): Likewise.
26985 (__getutent_r): Likewise.
26986 (__getutid_r): Likewise.
26987 (__getutline_r): Likewise.
26988 (__utmpname): Add attribute_hidden.
26989 (__setutent): Likewise.
26990 (__endutent): Likewise.
26991 * login/getutent.c (__getutent): Add libc_hidden_def.
26992 * login/getutent_r.c (__getutent_r): Likewise.
26993 (__pututline): Likewise.
26994 * login/getutid.c (__getutid): Likewise.
26995 * login/getutid_r.c (__getutid_r): Likewise.
26996 * login/getutline.c (__getutline): Likewise.
26997 * login/getutline_r.c (__getutline_r): Likewise.
26998 * login/updwtmp.c (__updwtmp): Likewise.
26999
27000 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27001
27002 [BZ #18822]
27003 * include/dirent.h (__opendir): Always add attribute_hidden.
27004 (__fdopendir): Likewise.
27005 (__closedir): Likewise.
27006 (__readdir): Likewise.
27007 (__readdir64): Add libc_hidden_proto.
27008 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27009 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27010 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27011 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27012 New alias.
27013
27014 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27015
27016 [BZ #18822]
27017 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27018 * include/netdb.h (__gethostbyaddr_r): Likewise.
27019 (__gethostbyname_r): Likewise.
27020 (__gethostbyname2_r): Likewise.
27021 (__getnetbyaddr_r): Likewise.
27022 (__getnetbyname_r): Likewise.
27023 (__getservbyname_r): Likewise.
27024 (__getservbyport_r): Likewise.
27025 (__getprotobyname_r): Likewise.
27026 (__getprotobynumber_r): Likewise.
27027 (__getnetgrent_r): Likewise.
27028 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27029 (__getrpcbynumber_r): Likewise.
27030 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27031
27032 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27033
27034 [BZ #18822]
27035 * include/stdio.h (__fcloseall): Add attribute_hidden.
27036 (__getline): Likewise.
27037 (__path_search): Likewise.
27038 (__gen_tempname): Likewise.
27039 (__libc_message): Likewise.
27040 (__flockfile): Likewise.
27041 (__funlockfile): Likewise.
27042 (__fxprintf): Likewise.
27043 (__fxprintf_nocancel): Likewise.
27044
27045 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27046
27047 [BZ #18822]
27048 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27049 (__sgetsgent_r): Likewise.
27050
27051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27052
27053 [BZ #18822]
27054 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27055 (__statfs64): Likewise.
27056 (__fstatfs64): Likewise.
27057 * include/sys/statvfs.h (__statvfs64): Likewise.
27058 (__fstatvfs64): Likewise.
27059 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27060 (__statfs_filesize_max): Likewise.
27061 (__statfs_symlinks): Likewise.
27062 (__statfs_chown_restricted): Likewise.
27063
27064 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27065
27066 [BZ #18822]
27067 * include/time.h (__tzstring): Add attribute_hidden.
27068 (__tzfile_read): Likewise.
27069 (__tzfile_compute): Likewise.
27070 (__tzfile_default): Likewise.
27071 (__tzset_parse_tz): Likewise.
27072 (__offtime): Likewise.
27073 (__asctime_r): Likewise.
27074 (__tzset): Likewise.
27075 (__tz_convert): Likewise.
27076 (__getdate_r): Likewise.
27077 (__getclktck): Likewise.
27078
27079 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27080
27081 [BZ #18822]
27082 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27083 (__nscd_unmap): Likewise.
27084 (__nscd_cache_search): Likewise.
27085 (__nscd_get_nl_timestamp): Likewise.
27086 (__nscd_getpwnam_r): Likewise.
27087 (__nscd_getpwuid_r): Likewise.
27088 (__nscd_getgrnam_r): Likewise.
27089 (__nscd_getgrgid_r): Likewise.
27090 (__nscd_gethostbyname_r): Likewise.
27091 (__nscd_gethostbyname2_r): Likewise.
27092 (__nscd_gethostbyaddr_r): Likewise.
27093 (__nscd_getai): Likewise.
27094 (__nscd_getgrouplist): Likewise.
27095 (__nscd_getservbyname_r): Likewise.
27096 (__nscd_getservbyport_r): Likewise.
27097 (__nscd_innetgr): Likewise.
27098 (__nscd_setnetgrent): Likewise.
27099
27100 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27101
27102 [BZ #18822]
27103 * include/gmp.h: Declare internal functions only if _ISOMAC is
27104 undefined.
27105 (__mpn_extract_double): Add attribute_hidden.
27106 (__mpn_extract_long_double): Likewise.
27107 (__mpn_extract_float128): Likewise.
27108 (__mpn_construct_float): Likewise.
27109 (__mpn_construct_double): Likewise.
27110 (__mpn_construct_long_double): Likewise.
27111 (__mpn_construct_float128): Likewise.
27112 (mpn_add_1): Likewise.
27113 (mpn_addmul_1): Likewise.
27114 (mpn_add_n): Likewise.
27115 (mpn_cmp): Likewise.
27116 (mpn_divrem): Likewise.
27117 (mpn_lshift): Likewise.
27118 (mpn_mul): Likewise.
27119 (mpn_mul_1): Likewise.
27120 (mpn_rshift): Likewise.
27121 (mpn_sub_1): Likewise.
27122 (mpn_submul_1): Likewise.
27123 (mpn_sub_n): Likewise.
27124
27125 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27126
27127 [BZ #18822]
27128 * include/wchar.h (__wcsnlen): Add attribute_hidden.
27129 (__wcscat): Likewise.
27130 (__btowc): Likewise.
27131 (__wcrtomb): Likewise.
27132 (__mbsrtowcs): Likewise.
27133 (__wcsrtombs): Likewise.
27134 (__mbsnrtowcs): Likewise.
27135 (__wcsnrtombs): Likewise.
27136 (__wcsncpy): Likewise.
27137 (__wcpncpy): Likewise.
27138 (__wmemcpy): Likewise.
27139 (__wmempcpy): Likewise.
27140 (__wmemmove): Likewise.
27141 (__wcschrnul): Likewise.
27142 (__vfwscanf): Likewise.
27143 (__vswprintf): Likewise.
27144 (__fwprintf): Likewise.
27145 (__vfwprintf): Likewise.
27146
27147 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27148
27149 [BZ #18822]
27150 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27151 (__getgrgid_r): Likewise.
27152 (__getgrnam_r): Likewise.
27153 * include/pwd.h (__getpwuid_r): Likewise.
27154 (__getpwnam_r): Likewise.
27155 (__fgetpwent_r): Likewise.
27156 * include/shadow.h (__getspnam_r): Likewise.
27157 (__sgetspent_r): Likewise.
27158 (__fgetspent_r): Likewise.
27159
27160 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27161
27162 [BZ #18822]
27163 * include/unistd.h (__access): Add attribute_hidden.
27164 (__lseek64): Likewise.
27165 (__libc_pread64): Likewise.
27166 (__pipe2): Likewise.
27167 (__sleep): Likewise.
27168 (__chdir): Likewise.
27169 (__fchdir): Likewise.
27170 (__getcwd): Likewise.
27171 (__rmdir): Likewise.
27172 (__execvpe): Likewise.
27173 (__execve): Likewise.
27174 (__setsid): Likewise.
27175 (__getuid): Likewise.
27176 (__geteuid): Likewise.
27177 (__getgid): Likewise.
27178 (__getegid): Likewise.
27179 (__getgroups): Likewise.
27180 (__group_member): Likewise.
27181 (__ttyname_r): Likewise.
27182 (__isatty): Likewise.
27183 (__readlink): Likewise.
27184 (__unlink): Likewise.
27185 (__gethostname): Likewise.
27186 (__profil): Likewise.
27187 (__getdtablesize): Likewise.
27188 (__brk): Likewise.
27189 (__ftruncate): Likewise.
27190 (__ftruncate64): Likewise.
27191
27192 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27193
27194 [BZ #18822]
27195 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27196 * argp/argp-fs-xinl.c: Likewise.
27197 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27198 * argp/argp-parse.c: Include <argp.h>.
27199 * argp/argp-xinl.c: Likewise.
27200 * include/argp-fmtstream.h: New file.
27201 * include/argp.h (__argp_error): Add attribute_hidden.
27202 (__argp_failure): Likewise.
27203 (__argp_input): Likewise.
27204 (__argp_state_help): Likewise.
27205
27206 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27207
27208 [BZ #18822]
27209 * include/wchar.h (____wcstof_l_internal): New prototype.
27210 (____wcstod_l_internal): Likewise.
27211 (____wcstold_l_internal): Likewise.
27212 (____wcstol_l_internal): Likewise.
27213 (____wcstoul_l_internal): Likewise.
27214 (____wcstoll_l_internal): Likewise.
27215 (____wcstoull_l_internal): Likewise.
27216 (____wcstof128_l_internal): Likewise.
27217 * sysdeps/ieee754/float128/wcstof128.c
27218 (____wcstof128_l_internal): Removed.
27219 * sysdeps/ieee754/float128/wcstof128_l.c
27220 (____wcstof128_l_internal): Likewise.
27221 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27222 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27223 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27224 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27225 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27226 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27227 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27228 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27229 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27230 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27231
27232 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27233
27234 [BZ #18822]
27235 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27236 instead of <sys/statvfs.h>.
27237 (__internal_statvfs): Removed.
27238 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27239 instead of <sys/statvfs.h>.
27240 (__internal_statvfs64): Removed.
27241 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27242 "internal_statvfs.h" instead of <sys/statvfs.h>.
27243 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27244 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27245 instead of <sys/statvfs.h>.
27246 (__internal_statvfs): Removed.
27247 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27248 instead of <sys/statvfs.h>.
27249 (__internal_statvfs64): Removed.
27250
27251 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27252
27253 [BZ #18822]
27254 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27255 (__gconv_close): Likewise.
27256 (__gconv): Likewise.
27257 (__gconv_find_transform): Likewise.
27258 (__gconv_lookup_cache): Likewise.
27259 (__gconv_compare_alias_cache): Likewise.
27260 (__gconv_load_cache): Likewise.
27261 (__gconv_get_path): Likewise.
27262 (__gconv_close_transform): Likewise.
27263 (__gconv_release_cache): Likewise.
27264 (__gconv_find_shlib): Likewise.
27265 (__gconv_release_shlib): Likewise.
27266 (__gconv_get_builtin_trans): Likewise.
27267 (__gconv_compare_alias): Likewise.
27268 * include/dlfcn.h (_dlerror_run): Likewise.
27269 * include/stdio.h (__fortify_fail_abort): Likewise.
27270 * include/time.h (__tz_compute): Likewise.
27271 (__strptime_internal): Likewise.
27272 * intl/gettextP.h (_nl_find_domain): Likewise.
27273 (_nl_load_domain): Likewise.
27274 (_nl_find_msg): Likewise.
27275 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27276 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27277 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27278 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27279 (__gai_find_request): Likewise.
27280 (__gai_remove_request): Likewise.
27281 (__gai_notify): Likewise.
27282 (__gai_notify_only): Likewise.
27283 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27284 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27285 (_dl_non_dynamic_init): Likewise.
27286 (_dl_aux_init): Likewise.
27287 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27288 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27289 Likewise.
27290 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27291 (__wcsmbs_clone_conv): Likewise.
27292 (__wcsmbs_named_conv): Likewise.
27293
27294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27295
27296 [BZ #18822]
27297 * include/stdlib.h (__random): Add attribute_hidden.
27298 (__random_r): Likewise.
27299 (__srandom_r): Likewise.
27300 (__initstate_r): Likewise.
27301 (__setstate_r): Likewise.
27302 (__erand48_r): Likewise.
27303 (__nrand48_r): Likewise.
27304 (__jrand48_r): Likewise.
27305 (__srand48_r): Likewise.
27306 (__seed48_r): Likewise.
27307 (__lcong48_r): Likewise.
27308 (__drand48_iterate): Likewise.
27309 (__setenv): Likewise.
27310 (__unsetenv): Likewise.
27311 (__clearenv): Likewise.
27312 (__ptsname_r): Likewise.
27313 (__posix_openpt): Likewise.
27314 (__add_to_environ): Likewise.
27315 (__realpath): Add libc_hidden_proto.
27316 (__ecvt_r): Likewise.
27317 (__fcvt_r): Likewise.
27318 (__qecvt_r): Likewise.
27319 (__qfcvt_r): Likewise.
27320 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27321 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27322
27323 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27324
27325 [BZ #18822]
27326 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27327 * include/time.h (__mktime_internal): Likewise.
27328 * libio/iolibio.h (__fopen_internal): Likewise.
27329
27330 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27331
27332 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27333 pointer in frame.
27334 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27335 Correct offset used to restore PIC register.
27336
27337 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27338
27339 [BZ libc/22165]
27340 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27341 code to load address of __getcontext_ret when generating PIC code.
27342
27343 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27344
27345 * elf/Makefile (tests-static-internal): Add
27346 tst-tls1-static-non-pie.
27347 (LDFLAGS-tst-tls1-static-non-pie): New.
27348 * elf/tst-tls1-static-non-pie.c: New file.
27349
27350 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27351
27352 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27353 (asinh): Define using libm_alias_double.
27354 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27355 (cbrt): Define using libm_alias_double.
27356 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27357 <libm-alias-double.h>.
27358 (copysign): Define using libm_alias_double.
27359 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27360 (erf): Define using libm_alias_double.
27361 (erfc): Likewise.
27362 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27363 (expm1): Define using libm_alias_double.
27364 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27365 (fabs): Define using libm_alias_double.
27366 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27367 libm_alias_double.
27368 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27369 <libm-alias-double.h>.
27370 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27371 libm_alias_double.
27372 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27373 <libm-alias-double.h>.
27374 (getpayload): Define using libm_alias_double.
27375 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27376 <libm-alias-double.h>.
27377 (llrint): Define using libm_alias_double.
27378 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27379 (lrint): Define using libm_alias_double.
27380 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27381 <libm-alias-double.h>.
27382 (nextup): Define using libm_alias_double.
27383 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27384 <libm-alias-double.h>.
27385 (roundeven): Define using libm_alias_double.
27386 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27387 libm_alias_double.
27388 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27389 <libm-alias-double.h>.
27390 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27391 using libm_alias_double.
27392 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27393 (cos): Define using libm_alias_double.
27394 (sin): Likewise.
27395 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27396 <libm-alias-double.h>.
27397 (sincos): Define using libm_alias_double.
27398 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27399 (tanh): Define using libm_alias_double.
27400 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27401 <libm-alias-double.h>.
27402 (totalorder): Define using libm_alias_double.
27403 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27404 <libm-alias-double.h>.
27405 (totalordermag): Define using libm_alias_double.
27406 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27407 libm_alias_double.
27408 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27409 libm_alias_double.
27410 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27411 <libm-alias-double.h>.
27412 (getpayload): Define using libm_alias_double.
27413 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27414 <libm-alias-double.h>.
27415 (roundeven): Define using libm_alias_double.
27416 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27417 <libm-alias-double.h>.
27418 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27419 <libm-alias-double.h>.
27420 (totalorder): Define using libm_alias_double.
27421 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27422 <libm-alias-double.h>.
27423 (totalordermag): Define using libm_alias_double.
27424 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27425 libc compat symbol here.
27426 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27427 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27428 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27429 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27430 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27431 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27432 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27433 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27434 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27435 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27436
27437 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27438
27439 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27440 _dl_relocate_static_pie instead of _dl_start to compute load
27441 address in static PIE. Return 0 if _DYNAMIC is undefined for
27442 static executable.
27443
27444 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27445
27446 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27447 _DYNAMIC is undefined for static executable.
27448
27449 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27450
27451 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27452
27453 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27454
27455 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27456
27457 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27458
27459 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27460 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27461 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27462 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27463 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27464 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27465 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27466 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27467 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27468 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27469 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27470 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27471 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27472 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27473 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27474 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27475 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27476
27477 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27478
27479 * math/bits/cmathcalls.h (cimag): Remove inline.
27480 (creal): Remove inline.
27481 (conj): Remove inline.
27482
27483 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27484
27485 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27486 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27487 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27488 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27489 (issignalingf_inline): Likewise.
27490 (POWF_LOG2_TABLE_BITS): Likewise.
27491 (POWF_LOG2_POLY_ORDER): Likewise.
27492 (POWF_SCALE_BITS): Likewise.
27493 (POWF_SCALE): Likewise.
27494 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27495 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27496 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27497
27498 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27499
27500 * math/Makefile (type-float-routines): Add e_log2f_data.
27501 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27502 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27503 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27504 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27505 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27506 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27507 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27508
27509 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27510
27511 * math/Makefile (type-float-routines): Add e_logf_data.
27512 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27513 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27514 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27515 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27516 * sysdeps/i386/fpu/e_logf_data.c: New file.
27517 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27518 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27519
27520 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27521
27522 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27523 undefined _DYNAMIC in PIE libc.a.
27524 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27525 Likewse.
27526
27527 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27528
27529 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27530 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27531 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27532 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27533 (__signbit): Remove.
27534 (__signbitl): Remove.
27535 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27536 (__signbit): Remove.
27537 (__signbitl): Remove.
27538 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27539 (__signbit): Remove.
27540 (__signbitl): Remove.
27541 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27542 (__signbit): Remove.
27543 (__signbitl): Remove.
27544 * sysdeps/tile/bits/mathinline.h: Delete file.
27545 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27546 (__signbit): Remove.
27547 (__signbitl): Remove.
27548
27549 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27550
27551 * math/math.h: Improve handling of C99 isgreater macros.
27552 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27553 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27554 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27555 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27556 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27557
27558 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27559
27560 * sysdeps/aarch64/libm-test-ulps: Update.
27561
27562 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27563
27564 [BZ #22225]
27565 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27566 math_opt_barrier on argument when doing arithmetic on it.
27567 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27568 Likewise. Use math_force_eval not math_opt_barrier after
27569 arithmetic.
27570 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27571 math_opt_barrier on argument when doing arithmetic on it.
27572 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27573 Likewise.
27574
27575 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27576
27577 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27578 libc_hidden_def.
27579 (__freeifaddrs): Likewise.
27580
27581 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27582
27583 * include/dirent.h (__dirfd): New declaration.
27584 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27585 alias.
27586 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27587 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27588 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27589 * include/unistd.h (__revoke): New declaration.
27590 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27591 alias.
27592 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27593 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27594 revoke.
27595 * include/dirent.h (__seekdir): New declaration.
27596 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27597 redefine as weak alias.
27598 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27599 of seekdir.
27600 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27601 and use libc_hidden_def on them.
27602 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27603 them.
27604 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27605 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27606 instead of getifaddrs and freeifaddrs.
27607
27608 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27609
27610 [BZ #18822]
27611 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27612 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27613 (__dso_handle): Remove declaration.
27614 * dlfcn/tstatexit.c (__dso_handle): Removed.
27615 (main): Don't check __dso_handle.
27616 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27617 (main): Don't check __dso_handle.
27618 * include/dso_handle.h: New file.
27619 * malloc/mtrace.c: Include <dso_handle.h>.
27620 (mtrace): Pass __dso_handle directly.
27621 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27622 (__dso_handle): Remove declaration.
27623 (__pthread_atfork): Pass __dso_handle directly.
27624 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27625 (__dso_handle): Removed.
27626 * posix/wordexp-test.c: Include <dso_handle.h>.
27627 (__dso_handle): Remove declaration.
27628 (__app_register_atfork): Pass __dso_handle directly.
27629 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27630 (__dso_handle): Remove declaration.
27631 (at_quick_exit): Pass __dso_handle directly.
27632 * stdlib/atexit.c: Include <dso_handle.h>.
27633 (__dso_handle): Remove declaration.
27634 (atexit): Pass __dso_handle directly.
27635 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27636 (__dso_handle): Removed.
27637
27638 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27639
27640 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27641 using VDSO.
27642
27643 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27644
27645 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27646 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27647 values to correct default value for given type.
27648
27649 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27650
27651 [BZ #22101]
27652 * elf/Makefile (tests): Add tst-debug1.
27653 ($(objpfx)tst-debug1): New.
27654 ($(objpfx)tst-debug1.out): Likewise.
27655 ($(objpfx)tst-debug1mod1.so): Likewise.
27656 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27657 with p_filesz == 0.
27658 * elf/tst-debug1.c: New file.
27659
27660 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27661
27662 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27663 Define using __ifunc.
27664
27665 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27666
27667 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27668 exp2f() values.
27669
27670 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27671
27672 [BZ #22156]
27673 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27674
27675 2017-09-26 Florian Weimer <fweimer@redhat.com>
27676
27677 * resolv/Makefile (tests-internal): Fix typo in comment.
27678
27679 2017-09-26 Florian Weimer <fweimer@redhat.com>
27680
27681 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27682
27683 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27684
27685 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27686 Use an union instead of a max_align_t array for __space,
27687 so that __space is the same size on all platforms.
27688 * malloc/scratch_buffer_grow_preserve.c
27689 (__libc_scratch_buffer_grow_preserve): Likewise.
27690
27691 [BZ #22183]
27692 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27693 version to 2.
27694 * posix/Makefile (routines): Add glob-lstat-compat and
27695 glob64-lstat-compat.
27696 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27697 * posix/glob-lstat-compat.c: New file.
27698 * posix/glob64-lstat-compat.c: Likewise.
27699 * posix/tst-glob_lstat_compat.c: Likewise.
27700 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27701 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27702 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27703 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27704 Likewise.
27705 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27706 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27707 * posix/glob.c (glob_lstat): New function.
27708 (glob): Rename to __glob and add versioned symbol to 2.27.
27709 (glob_in_dir): Use glob_lstat.
27710 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27711 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27712 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27713 2.27.
27714 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27715 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27716 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27717 gl_lstat on glob call.
27718 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27719 and glob64 symbols.
27720 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27721 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27722 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27723 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27724 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27725 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27726 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27727 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27728 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27729 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27730 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27731 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27733 Likewise.
27734 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27736 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27737 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27738 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27739 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27740 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27741 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27742 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27743 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27744 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27745 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27746
27747 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27748
27749 * configure.ac (AS): Require binutils 2.25 or later.
27750 * configure: Regenerated.
27751
27752 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27753
27754 [BZ #22207]
27755 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27756 VM size.
27757
27758 2017-09-25 DJ Delorie <dj@redhat.com>
27759
27760 [BZ #22161]
27761 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27762 resetting timeout.
27763
27764 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27765
27766 * sysdeps/ieee754/dbl-64/sincos32.h
27767 [SINCCOS32_H]: Remove define.
27768 [SINCOS32_H]: Define.
27769
27770 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27771
27772 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27773 (exp2f): Likewise.
27774 * math/w_exp2f.c: New file.
27775 * math/w_expf.c: New file.
27776 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27777 * math/w_expf_compat.c (__expf_compat): Likewise.
27778 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27779 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27780 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27781 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27782 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27783 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27784 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27785 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27786 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27787 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27788 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27789 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27790 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27791 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27793 Likewise.
27794 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27795 Likewise.
27796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27797 Likewise.
27798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27799 Likewise.
27800 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27801 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27802 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27803 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27804 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27805 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27806 Likewise.
27807 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27808 Likewise.
27809 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27810 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27811 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27812
27813 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27814
27815 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27816 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27817 (roundtoint, converttoint): Likewise.
27818 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27819 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27820 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27821 * sysdeps/ieee754/flt-32/math_config.h: New file.
27822 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27823 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27824 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27825 * sysdeps/i386/fpu/math_errf.c: New file.
27826 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27827 * sysdeps/ia64/fpu/math_errf.c: New file.
27828 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27829 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27830
27831 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27832
27833 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27834 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27835 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27836 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27837 to make sure that these symbols are defined.
27838 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27839 of <limits.h>
27840 (__need_NULL): Do not define.
27841 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27842 alignment.
27843 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27844 CMGROUP_MAX, cmsgcred): Do not define.
27845 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27846 NULL.
27847 * bits/socket.h: Likewise.
27848 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27849 __gettimeofday instead of gettimeofday.
27850 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27851 instead of settimeofday.
27852
27853 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27854
27855 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27856 (asinhf): Define using libm_alias_float.
27857 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27858 (atanf): Define using libm_alias_float.
27859 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27860 (cbrtf): Define using libm_alias_float.
27861 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27862 (ceilf): Define using libm_alias_float.
27863 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27864 <libm-alias-float.h>.
27865 (copysignf): Define using libm_alias_float.
27866 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27867 (cosf): Define using libm_alias_float.
27868 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27869 (erff): Define using libm_alias_float.
27870 (erfcf): Likewise.
27871 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27872 (expm1f): Define using libm_alias_float.
27873 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27874 (fabsf): Define using libm_alias_float.
27875 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27876 (floorf): Define using libm_alias_float.
27877 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27878 (frexpf): Define using libm_alias_float.
27879 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27880 libm_alias_float.
27881 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27882 <libm-alias-float.h>.
27883 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27884 libm_alias_float.
27885 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27886 <libm-alias-float.h>.
27887 (getpayloadf): Define using libm_alias_float.
27888 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27889 <libm-alias-float.h>.
27890 (llrintf): Define using libm_alias_float.
27891 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27892 <libm-alias-float.h>.
27893 (llroundf): Define using libm_alias_float.
27894 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27895 (logbf): Define using libm_alias_float.
27896 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27897 (lrintf): Define using libm_alias_float.
27898 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27899 (lroundf): Define using libm_alias_float.
27900 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27901 (modff): Define using libm_alias_float.
27902 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27903 <libm-alias-float.h>.
27904 (nearbyintf): Define using libm_alias_float.
27905 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27906 <libm-alias-float.h>.
27907 (nextafterf): Define using libm_alias_float.
27908 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27909 <libm-alias-float.h>.
27910 (nextupf): Define using libm_alias_float.
27911 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27912 <libm-alias-float.h>.
27913 (remquof): Define using libm_alias_float.
27914 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27915 (rintf): Define using libm_alias_float.
27916 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27917 <libm-alias-float.h>.
27918 (roundevenf): Define using libm_alias_float.
27919 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27920 (roundf): Define using libm_alias_float.
27921 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27922 using libm_alias_float.
27923 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27924 <libm-alias-float.h>.
27925 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27926 Define using libm_alias_float.
27927 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27928 <libm-alias-float.h>.
27929 (sincosf): Define using libm_alias_float.
27930 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27931 (sinf): Define using libm_alias_float.
27932 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27933 (tanf): Define using libm_alias_float.
27934 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27935 (tanhf): Define using libm_alias_float.
27936 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27937 <libm-alias-float.h>.
27938 (totalorderf): Define using libm_alias_float.
27939 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27940 <libm-alias-float.h>.
27941 (totalordermagf): Define using libm_alias_float.
27942 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27943 (truncf): Define using libm_alias_float.
27944 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27945 libm_alias_float.
27946 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27947 libm_alias_float.
27948
27949 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27950
27951 [BZ #22146]
27952 math/math.h: Let fpclassify use the builtin in C++ mode, even
27953 when optimazing for size.
27954
27955 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27956
27957 * csu/Makefile (generated): Do not add version-info.h.
27958 (before-compile): Likewise.
27959 (all-Banner-files): Remove variable.
27960 ($(objpfx)version-info.h): Remove rule.
27961 * csu/version.c (banner): Do not include "version-info.h".
27962 * libidn/Banner: Remove.
27963 * manual/contrib.texi (Simon Josefsson): New entry.
27964
27965 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27966
27967 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27968 Remove conditionals on LDBL_MANT_DIG.
27969 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27970 (__ieee754_lgammal_r): Likewise.
27971
27972 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27973
27974 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27975 _Float128 and L().
27976 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27977 _Float128 and L(). Replace _Float128 with long double and L(x)
27978 with xL, throughout the file.
27979 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27980 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27981 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27982 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27983
27984 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27985
27986 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27987 sysdeps/ieee754/ldbl-128ibm.
27988 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27989 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27990 of including it. Keep _Float128 and L() intact. These will be
27991 reviewed by a separate patch.
27992 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27993 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27994 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27995 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27996
27997 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27998
27999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
28000 (__finitef128): Define to __redirect___finitef128.
28001 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
28002 (__isinff128): Define to __redirect___isinff128.
28003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
28004 (__isnanf128): Define to __redirect___isnanf128.
28005
28006 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28007
28008 * sysdeps/powerpc/powerpc64le/Makefile
28009 (CFLAGS-tst-strtod-nan-locale.c): New variable.
28010 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28011
28012 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
28013 Carlos O'Donell <carlos@redhat.com>
28014
28015 [BZ #22180]
28016 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28017 * stdlib/test-dlclose-exit-race.c: New file.
28018 * stdlib/test-dlclose-exit-race-helper.c: New file.
28019 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28020
28021 2017-09-21 Joseph Myers <joseph@codesourcery.com>
28022
28023 * crypt/Banner: Remove file.
28024 * nptl/Banner: Likewise.
28025 * resolv/Banner: Likewise.
28026 * soft-fp/Banner: Likewise.
28027 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28028 ($(objpfx)version.d): Remove dependency on banner.h.
28029 ($(objpfx)version.os): Likewise.
28030 * nptl/version.c (banner): Do not include banner.h.
28031 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28032 Jelinek and BIND code.
28033
28034 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28035 Carlos O'Donell <carlos@redhat.com>
28036
28037 * support/xdlfcn.h: New file.
28038 * support/xdlfcn.c: New file.
28039 * support/Makefile (libsupport-routines): Add xdlfcn.
28040 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28041
28042 2017-09-20 Joseph Myers <joseph@codesourcery.com>
28043
28044 [BZ #20142]
28045 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28046 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28047 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28048 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28049 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28050 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28051 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28052 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28053
28054 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28055 Ricky Zhou <rickyz@google.com>
28056 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
28057
28058 [BZ #14333]
28059 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28060 Remove atomics.
28061 (__new_exitfn): Fail registration when we finished at_exit processing.
28062 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28063 * stdlib/on_exit.c (__on_exit): Likewise.
28064 * stdlib/exit.c (__exit_funcs_done): New variable.
28065 (__run_exit_handlers): Use __exit_funcs_lock.
28066 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28067 declarations.
28068 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28069 (test-cxa_atexit-race, test-on_exit-race): New tests.
28070 * stdlib/test-atexit-race-common.c: New file.
28071 * stdlib/test-atexit-race.c: New file.
28072 * stdlib/test-at_quick_exit-race.c: New file.
28073 * stdlib/test-cxa_atexit-race.c: New file.
28074 * stdlib/test-on_exit-race.c: New file.
28075
28076 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
28077
28078 * benchtests/Makefile: Add exp2f and log2f benchmarks.
28079 * benchtests/exp2f-inputs: Copy of expf-inputs.
28080 * benchtests/log2f-inputs: Copy of logf-inputs.
28081
28082 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28083
28084 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28085 Explicitly take address of first element of array arguments in
28086 call to INLINE_SYSCALL.
28087
28088 2017-09-19 Andreas Schwab <schwab@suse.de>
28089
28090 [BZ #22134]
28091 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28092 execveat first.
28093 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28094 unimplemented.
28095 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28096 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28097 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28098 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28099 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28100 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28101 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28102 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28103 * posix/Makefile (tests): Add tst-fexecve.
28104 * posix/tst-fexecve.c: New file.
28105
28106 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28107
28108 * benchtests/Makefile: Add logf benchmark.
28109 * benchtests/logf-inputs: Add reduced trace from wrf_r.
28110
28111 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28112
28113 * benchtests/Makefile: Add expf benchmark.
28114 * benchtests/expf-inputs: Add reduced trace from wrf_r.
28115
28116 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28117
28118 * csu/Makefile: Add -funwind-tables to libc-start.c.
28119 * debug/Makefile: Add -funwind-tables to backtrace.c.
28120 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28121 * sysdeps/arm/Makefile: Likewise.
28122 * sysdeps/i386/Makefile: Likewise.
28123 * sysdeps/m68k/Makefile: Likewise.
28124 * sysdeps/mips/Makefile: Likewise.
28125 * sysdeps/nios2/Makefile: Likewise.
28126 * sysdeps/sh/Makefile: Likewise.
28127 * sysdeps/sparc/Makefile: Likewise.
28128
28129 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28130
28131 * benchtests/Makefile (bench-math): Add trunc and truncf.
28132 (CFLAGS-bench-trunc.c): New variable.
28133 (CFLAGS-bench-truncf.c): Likewise.
28134 * benchtests/trunc-inputs: New file.
28135 * benchtests/truncf-inputs: Likewise.
28136
28137 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28138
28139 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28140
28141 2017-09-18 Joseph Myers <joseph@codesourcery.com>
28142
28143 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28144 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28145 redefine.
28146 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28147 (exp10l): Define as weak alias.
28148 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28149 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28150 and redefine.
28151 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28152 (remainderl): Define as weak alias.
28153
28154 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28155 (fmal): Define using libm_alias_ldouble.
28156 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28157 (acoshl): Define using libm_alias_ldouble.
28158 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28159 (acosl): Define using libm_alias_ldouble.
28160 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28161 (asinl): Define using libm_alias_ldouble.
28162 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28163 (atan2l): Define using libm_alias_ldouble.
28164 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28165 (atanhl): Define using libm_alias_ldouble.
28166 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28167 (coshl): Define using libm_alias_ldouble.
28168 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28169 (exp10l): Define using libm_alias_ldouble.
28170 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28171 (exp2l): Define using libm_alias_ldouble.
28172 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28173 (expl): Define using libm_alias_ldouble.
28174 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28175 (fmodl): Define using libm_alias_ldouble.
28176 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28177 (hypotl): Define using libm_alias_ldouble.
28178 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28179 (j0l): Define using libm_alias_ldouble.
28180 (y0l): Likewise.
28181 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28182 (j1l): Define using libm_alias_ldouble.
28183 (y1l): Likewise.
28184 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28185 (jnl): Define using libm_alias_ldouble.
28186 (ynl): Likewise.
28187 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28188 (log10l): Define using libm_alias_ldouble.
28189 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28190 (log2l): Define using libm_alias_ldouble.
28191 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28192 (logl): Define using libm_alias_ldouble.
28193 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28194 (powl): Define using libm_alias_ldouble.
28195 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28196 (remainderl): Define using libm_alias_ldouble.
28197 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28198 (sinhl): Define using libm_alias_ldouble.
28199 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28200 (sqrtl): Define using libm_alias_ldouble.
28201 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28202 (tgammal): Define using libm_alias_ldouble.
28203 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28204 (exp10l): Do not use long_double_symbol here.
28205 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28206 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28207 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28208 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28209 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28210 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28211 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28212 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28213 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28214 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28215 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28216 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28217 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28218 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28219 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28220 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28221 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28222 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28223 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28224 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28225 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28226 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28227
28228 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28229
28230 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28231 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28232
28233 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28234
28235 * io/read.c (read): Add libc_hidden_weak.
28236 * sysdeps/mach/hurd/read.c (read): Likewise.
28237 * io/write.c (write): Likewise.
28238 * sysdeps/mach/hurd/write.c (write): Likewise.
28239 * io/pread64.c (__pread64): Likewise.
28240 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28241 * posix/pread64.c (__pread64): Add libc_hidden_def.
28242
28243 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28244
28245 * benchtests/scripts/compare_strings.py: New option -g.
28246 (draw_graph): Print a message that a graph is being generated.
28247 (process_results): Generate graph only if -g is passed.
28248 (main): Process option -g.
28249
28250 * benchtests/scripts/compare_strings.py (process_results):
28251 Better spacing for output.
28252
28253 * benchtests/scripts/compare_strings.py: Use argparse.
28254 * benchtests/README: Document existence of compare_strings.py.
28255
28256 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28257
28258 * math/s_fma.c: Include <libm-alias-double.h>.
28259 (fma): Define using libm_alias_double.
28260 * math/s_nextafter.c: Include <libm-alias-double.h>.
28261 (nextafter): Define using libm_alias_double.
28262 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28263 (acos): Define using libm_alias_double.
28264 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28265 (aocsh): Define using libm_alias_double.
28266 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28267 (asin): Define using libm_alias_double.
28268 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28269 (atan2): Define using libm_alias_double.
28270 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28271 (atanh): Define using libm_alias_double.
28272 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28273 (cosh): Define using libm_alias_double.
28274 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28275 (exp10): Define using libm_alias_double.
28276 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28277 (exp2): Define using libm_alias_double.
28278 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28279 (exp): Define using libm_alias_double.
28280 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28281 (fmod): Define using libm_alias_double.
28282 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28283 (hypot): Define using libm_alias_double.
28284 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28285 (j0): Define using libm_alias_double.
28286 (y0): Likewise.
28287 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28288 (j1): Define using libm_alias_double.
28289 (y1): Likewise.
28290 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28291 (jn): Define using libm_alias_double.
28292 (yn): Likewise.
28293 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28294 (log10): Define using libm_alias_double.
28295 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28296 (log2): Define using libm_alias_double.
28297 * math/w_log_compat.c: Include <libm-alias-double.h>.
28298 (log): Define using libm_alias_double.
28299 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28300 (pow): Define using libm_alias_double.
28301 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28302 (remainder): Define using libm_alias_double.
28303 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28304 (sinh): Define using libm_alias_double.
28305 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28306 (sqrt): Define using libm_alias_double.
28307 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28308 (tgamma): Define using libm_alias_double.
28309 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28310 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28311 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28312 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28313 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28314 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28315 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28316 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28317 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28318 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28319 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28320 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28321 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28322 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28323 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28324 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28325 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28326 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28327 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28328 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28329 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28330 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28331 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28332 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28333 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28334
28335 * math/e_acoshl.c: Remove.
28336 * math/e_acosl.c: Likewise.
28337 * math/e_asinl.c: Likewise.
28338 * math/e_atan2l.c: Likewise.
28339 * math/e_atanhl.c: Likewise.
28340 * math/e_coshl.c: Likewise.
28341 * math/e_expl.c: Likewise.
28342 * math/e_fmodl.c: Likewise.
28343 * math/e_gammal_r.c: Likewise.
28344 * math/e_hypotl.c: Likewise.
28345 * math/e_j0l.c: Likewise.
28346 * math/e_j1l.c: Likewise.
28347 * math/e_jnl.c: Likewise.
28348 * math/e_lgammal_r.c: Likewise.
28349 * math/e_log10l.c: Likewise.
28350 * math/e_log2l.c: Likewise.
28351 * math/e_logl.c: Likewise.
28352 * math/e_powl.c: Likewise.
28353 * math/e_rem_pio2l.c: Likewise.
28354 * math/e_sinhl.c: Likewise.
28355 * math/e_sqrtf128.c: Likewise.
28356 * math/e_sqrtl.c: Likewise.
28357 * math/k_cosl.c: Likewise.
28358 * math/k_sinl.c: Likewise.
28359 * math/k_tanl.c: Likewise.
28360 * math/s_asinhl.c: Likewise.
28361 * math/s_atanl.c: Likewise.
28362 * math/s_cbrtl.c: Likewise.
28363 * math/s_erfl.c: Likewise.
28364 * math/s_expm1l.c: Likewise.
28365 * math/s_log1pl.c: Likewise.
28366 * math/s_tanhl.c: Likewise.
28367
28368 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28369
28370 [BZ #21745]
28371 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28372 [$(subdir) = math] (sysdep_calls): New variable. Has the
28373 previous contents of sysdep_routines, but re-sorted..
28374 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28375 sysdep_calls.
28376 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28377 defined in sysdep_calls and replace by the respective m_* names.
28378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28379 (compat_symbol): Undefine to avoid duplicated compat symbols in
28380 libc.
28381
28382 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28383
28384 * math/s_fmaf.c: Include <libm-alias-float.h>.
28385 (fmaf): Define using libm_alias_float.
28386 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28387 (acosf): Define using libm_alias_float.
28388 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28389 (acoshf): Define using libm_alias_float.
28390 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28391 (asinf): Define using libm_alias_float.
28392 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28393 (atan2f): Define using libm_alias_float.
28394 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28395 (atanhf): Define using libm_alias_float.
28396 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28397 (coshf): Define using libm_alias_float.
28398 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28399 (exp10f): Define using libm_alias_float.
28400 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28401 (fmodf): Define using libm_alias_float.
28402 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28403 (hypotf): Define using libm_alias_float.
28404 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28405 (j0f): Define using libm_alias_float.
28406 (y0f): Likewise.
28407 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28408 (j1f): Define using libm_alias_float.
28409 (y1f): Likewise.
28410 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28411 (jnf): Define using libm_alias_float.
28412 (ynf): Likewise.
28413 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28414 (log10f): Define using libm_alias_float.
28415 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28416 (log2f): Define using libm_alias_float.
28417 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28418 (logf): Define using libm_alias_float.
28419 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28420 (powf): Define using libm_alias_float.
28421 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28422 (remainderf): Define using libm_alias_float.
28423 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28424 (sinhf): Define using libm_alias_float.
28425 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28426 (sqrtf): Define using libm_alias_float.
28427 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28428 (tgammaf): Define using libm_alias_float.
28429
28430 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28431
28432 * include/math.h (roundeven): Change hidden_proto call to
28433 __roundeven.
28434 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28435 alias.
28436 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28437 (y0): Rename to __y0 and define as weak alias.
28438 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28439 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28440 alias.
28441 (y0f): Rename to __y0f and define as weak alias.
28442 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28443 alias.
28444 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28445 (y1): Rename to __y1 and define as weak alias.
28446 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28447 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28448 alias.
28449 (y1f): Rename to __y1f and define as weak alias.
28450 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28451 alias.
28452 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28453 (yn): Rename to __yn and define as weak alias.
28454 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28455 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28456 alias.
28457 (ynf): Rename to __ynf and define as weak alias.
28458 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28459 (fromfp): Define as weak alias.
28460 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28461 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28462 (fromfpx): Define as weak alias.
28463 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28464 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28465 __getpayload and define as weak alias.
28466 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28467 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28468 __roundeven and define as weak alias.
28469 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28470 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28471 __setpayload.
28472 (setpayload): Define as weak alias.
28473 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28474 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28475 __setpayloadsig.
28476 (setpayloadsig): Define as weak alias.
28477 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28478 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28479 __totalorder and define as weak alias.
28480 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28481 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28482 to __totalordermag and define as weak alias.
28483 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28484 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28485 (ufromfp): Define as weak alias.
28486 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28487 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28488 __ufromfpx.
28489 (ufromfpx): Define as weak alias.
28490 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28491 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28492 Rename to __getpayload and define as weak alias.
28493 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28494 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28495 Rename to __roundeven and define as weak alias.
28496 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28497 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28498 Rename to __totalorder and define as weak alias.
28499 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28500 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28501 (totalordermag): Rename to __totalordermag and define as weak
28502 alias.
28503 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28504 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28505 macro.
28506 (__roundevenl): Likewise.
28507 (__totalorderl): Likewise.
28508 (__totalordermagl): Likewise
28509 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28510 __fromfpf128.
28511 (fromfpf128): Define as weak alias.
28512 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28513 __fromfpxf128.
28514 (fromfpxf128): Define as weak alias.
28515 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28516 __setpayloadf128.
28517 (setpayloadf128): Define as weak alias.
28518 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28519 __setpayloadsigf128.
28520 (setpayloadsigf128): Define as weak alias.
28521 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28522 __ufromfpf128.
28523 (ufromfpf128): Define as weak alias.
28524 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28525 __ufromfpxf128.
28526 (ufromfpxf128): Define as weak alias.
28527 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28528 (fromfpf): Define as weak alias.
28529 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28530 __fromfpxf.
28531 (fromfpxf): Define as weak alias.
28532 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28533 __getpayloadf and define as weak alias.
28534 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28535 __roundevenf and define as weak alias.
28536 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28537 __setpayloadf.
28538 (setpayloadf): Define as weak alias.
28539 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28540 __setpayloadsigf.
28541 (setpayloadsigf): Define as weak alias.
28542 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28543 __totalorderf and define as weak alias.
28544 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28545 Rename to __totalordermagf and define as weak alias.
28546 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28547 __ufromfpf.
28548 (ufromfpf): Define as weak alias.
28549 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28550 __ufromfpxf.
28551 (ufromfpxf): Define as weak alias.
28552 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28553 __fromfpl.
28554 (fromfpl): Define as weak alias.
28555 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28556 __fromfpxl.
28557 (fromfpxl): Define as weak alias.
28558 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28559 to __getpayloadl and define as weak alias.
28560 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28561 __roundevenl and define as weak alias.
28562 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28563 __setpayloadl.
28564 (setpayloadl): Define as weak alias.
28565 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28566 __setpayloadsigl.
28567 (setpayloadsigl): Define as weak alias.
28568 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28569 to __totalorderl and define as weak alias.
28570 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28571 Rename to __totalordermagl and define as weak alias.
28572 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28573 __ufromfpl.
28574 (ufromfpl): Define as weak alias.
28575 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28576 __ufromfpxl.
28577 (ufromfpxl): Define as weak alias.
28578 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28579 __fromfpl.
28580 (fromfpl): Define as weak alias.
28581 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28582 __fromfpxl.
28583 (fromfpxl): Define as weak alias.
28584 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28585 Rename to __getpayloadl and define as weak alias.
28586 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28587 to __roundevenl and define as weak alias. Call __roundeven
28588 instead of roundeven.
28589 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28590 __setpayloadl.
28591 (setpayloadl): Define as weak alias.
28592 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28593 __setpayloadsigl.
28594 (setpayloadsigl): Define as weak alias.
28595 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28596 Rename to __totalorderl and define as weak alias.
28597 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28598 Rename to __totalordermagl and define as weak alias.
28599 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28600 __ufromfpl.
28601 (ufromfpl): Define as weak alias.
28602 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28603 __ufromfpxl.
28604 (ufromfpxl): Define as weak alias.
28605 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28606 __fromfpl.
28607 (fromfpl): Define as weak alias.
28608 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28609 __fromfpxl.
28610 (fromfpxl): Define as weak alias.
28611 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28612 __getpayloadl and define as weak alias.
28613 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28614 __roundevenl and define as weak alias.
28615 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28616 __setpayloadl.
28617 (setpayloadl): Define as weak alias.
28618 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28619 __setpayloadsigl.
28620 (setpayloadsigl): Define as weak alias.
28621 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28622 __totalorderl and define as weak alias.
28623 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28624 Rename to __totalordermagl and define as weak alias.
28625 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28626 __ufromfpl.
28627 (ufromfpl): Define as weak alias.
28628 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28629 __ufromfpxl.
28630 (ufromfpxl): Define as weak alias.
28631
28632 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28633
28634 * benchtests/bench-string.h (realloc_bufs): New function.
28635 (test_init): Call it.
28636 * benchtests/bench-memset-large.c (do_test): Likewise.
28637 * benchtests/bench-memset.c (do_test): Likewise.
28638
28639 * benchtests/bench-memset-large.c: Print output in JSON
28640 format.
28641 * benchtests/bench-memset.c: Likewise.
28642
28643 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28644
28645 [BZ #21084]
28646 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28647 * iconvdata/Makefile: Add IBM858.
28648 * iconvdata/gconv-modules: Likewise.
28649 * iconvdata/tst-tables.sh: Likewise.
28650 * iconvdata/ibm858.c: New file.
28651 * localedata/charmaps/IBM858: Likewise.
28652
28653 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28654
28655 [BZ #22023]
28656 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28657 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28658
28659 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28660
28661 [BZ #22112]
28662 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28663 and add tel_int_fmt.
28664
28665 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28666
28667 * sysdeps/generic/libm-alias-float128.h: New file.
28668 * sysdeps/generic/math-type-macros-float128.h: Include
28669 <libm-alias-float128.h>.
28670 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28671
28672 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28673
28674 * sysdeps/generic/libm-alias-ldouble.h: New file.
28675 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28676 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28677 * sysdeps/generic/math-type-macros-ldouble.h: Include
28678 <libm-alias-ldouble.h>.
28679 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28680 libm_alias_ldouble.
28681
28682 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28683
28684 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28685 * math/w_exp_compat.c: ... here.
28686 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28687 * math/w_expf_compat.c: ... here.
28688 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28689 * math/w_expl_compat.c: ... here.
28690 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28691 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28692 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28693 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28694
28695 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28696
28697 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28698 redefine.
28699 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28700 macro.
28701 (ldexpl): Only define as compat symbol for libc, not libm.
28702 (scalbnl): Define as compat symbol for libc here.
28703 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28704 define for [IS_IN (libc)].
28705 (__ldexpl_2): Remove alias.
28706 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28707 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28708 name in long_double_symbol call.
28709 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28710 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28711 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28712 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28713 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28714 Remove macro.
28715 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28716 Define as compat symbol.
28717
28718 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28719
28720 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28721 * sysdeps/unix/sysv/linux/alpha/Makefile
28722 [$(subdir) = csu] (sysdep_routines): Remove rule.
28723
28724 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28725
28726 * sysdeps/generic/libm-alias-double.h: New file.
28727 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28728 * sysdeps/generic/math-type-macros-double.h: Include
28729 <libm-alias-double.h>.
28730 [declare_mgen_alias] (declare_mgen_alias): Define to use
28731 libm_alias_double.
28732 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28733 (M_LIBM_NEED_COMPAT): Remove macro.
28734 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28735 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28736 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28737 code.
28738 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28739 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28740 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28741 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28742 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28743 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28744 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28745 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28746 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28747 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28748 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28749 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28750 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28751 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28752 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28753 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28754 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28755 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28756 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28757 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28758 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28759 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28760 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28761 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28762 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28763 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28764 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28765 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28766 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28767 macro.
28768 (declare_mgen_alias): New macro.
28769 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28770 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28771 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28772 (M_LIBM_NEED_COMPAT): Remove macro.
28773 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28774 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28775 <first-versions.h>.
28776 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28777 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28778
28779 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28780
28781 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28782 (declare_mgen_alias_2): Remove.
28783 * sysdeps/generic/math-type-macros-double.h
28784 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28785 Likewise.
28786 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28787 alias.
28788 (ldexp): Define with declare_mgen_alias.
28789 (scalbn): Likewise.
28790
28791 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28792
28793 * grp/initgroups.c: Include config.h.
28794 (DEFAULT_CONFIG): New macro.
28795 (internal_getgrouplist): Use DEFAULT_CONFIG.
28796 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28797 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28798 (DEFAULT_DEFCONFIG): New macro.
28799 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28800 * nss/grp-lookup.c: Include config.h
28801 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28802 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28803 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28804 * manual/nss.texi: Update default values section.
28805
28806 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28807
28808 [BZ #21967]
28809 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28810 New.
28811 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28812 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28813 Handle MathVec_Prefer_No_AVX512.
28814 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28815 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28816 is set.
28817
28818 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28819
28820 * posix/sched_primax.c (__sched_get_priority_max): Add
28821 libc_hidden_def.
28822 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28823 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28824 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28825 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28826 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28827 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28828 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28829 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28830 Add aliases.
28831
28832 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28833
28834 * sysdeps/generic/libm-alias-float.h: New file.
28835 * sysdeps/generic/math-type-macros-float.h: Include
28836 <libm-alias-float.h>.
28837 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28838
28839 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28840
28841 [BZ #22093]
28842 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28843 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28844 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28845 (HWCAP_IMPORTANT): Likewise.
28846 (HWCAP_X86_64): New enum.
28847 (HWCAP_X86_AVX512_1): Updated.
28848 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28849 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28850 (modules-names): Add x86_64/tst-x86_64mod-1.
28851 (LDFLAGS-tst-x86_64mod-1.so): New.
28852 ($(objpfx)tst-x86_64-1): Likewise.
28853 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28854 (tst-x86_64-1-clean): Likewise.
28855 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28856 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28857
28858 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28859
28860 * po/sv.po: Update translations.
28861 * po/fr.po: Likewise.
28862
28863 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28864
28865 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28866 seconds.
28867 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28868 seconds.
28869 * elf/rtld-Rules: Fix $(error) use.
28870
28871 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28872
28873 [BZ #14925]
28874 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28875 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28876 * localedata/locales/bn_BD: “Bengali” was still used in some
28877 comments. Change it to “Bangla”.
28878
28879 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28880
28881 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28882
28883 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28884
28885 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28886 thunderx2t99p1 to list of cpu names.
28887 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28888 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28889
28890 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28891
28892 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28893 Use strcmp instead of tunable_is_name.
28894
28895 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28896
28897 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28898 (F_GET_RW_HINT): New macro.
28899 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28900 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28901 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28902 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28903 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28904 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28905 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28906 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28907 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28908
28909 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28910 (F_ADD_SEALS): New macro.
28911 [__USE_GNU] (F_GET_SEALS): Likewise.
28912 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28913 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28914 [__USE_GNU] (F_SEAL_GROW): Likewise.
28915 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28916
28917 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28918
28919 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28920 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28921 * posix/glob_internal.h (__glob_pattern_type):
28922 * posix/glob.c (glob):
28923 * posix/glob_pattern_p.c (__glob_pattern_p):
28924 Use them.
28925
28926 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28927 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28928 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28929 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28930 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28932 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28933 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28934 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28935 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28936 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28937 * sysdeps/wordsize-64/glob.c: Likewise.
28938 * sysdeps/wordsize-64/glob64.c: Likewise.
28939 * sysdeps/wordsize-64/globfree.c: Likewise.
28940 * sysdeps/wordsize-64/globfree64.c: Likewise.
28941 * sysdeps/unix/sysv/linux/glob.c: New file.
28942 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28943 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28944 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28945 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28946 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28947 adds !GLOB_NO_OLD_VERSION as an extra condition.
28948 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28949 using relative path instead of absolute one.
28950 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28951 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28952 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28953 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28954 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28955 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28956
28957 [BZ #1062]
28958 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28959 (glob): Use the same scratch buffer for both getlogin_r and
28960 getpwnam_r. Don’t require preallocation of the login name. This
28961 simplifies storage allocation, and corrects the handling of
28962 long login names.
28963
28964 [BZ #1062]
28965 * posix/glob.c (glob): Port recent patches to platforms
28966 lacking getpwnam_r.
28967 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28968 returns an error number rather than setting errno.
28969
28970 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28971 instead of GCC extension.
28972 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28973 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28974 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28975
28976 [BZ #866]
28977 [BZ #1062]
28978 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28979 * posix/bug-glob1.c: Remove file.
28980 * posix/tst-glob_symlinks.c: New file.
28981 * posix/glob.c (__lstat64): New macro.
28982 (is_dir): New function.
28983 (glob, glob_in_dir): Match symlinks even if they are dangling.
28984 (link_stat, link_exists_p): Remove. All uses removed.
28985
28986 [BZ #1062]
28987 [BZ #19971]
28988 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28989 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28990 All uses removed.
28991
28992 [BZ #1062]
28993 CVE-2017-15671
28994 * posix/Makefile (routines): Add globfree, globfree64, and
28995 glob_pattern_p.
28996 * posix/flexmember.h: New file.
28997 * posix/glob_internal.h: Likewise.
28998 * posix/glob_pattern_p.c: Likewise.
28999 * posix/globfree.c: Likewise.
29000 * posix/globfree64.c: Likewise.
29001 * sysdeps/gnu/globfree64.c: Likewise.
29002 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
29003 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29004 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
29005 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29006 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29007 * sysdeps/wordsize-64/globfree.c: Likewise.
29008 * sysdeps/wordsize-64/globfree64.c: Likewise.
29009 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29010 [NDEBUG): Remove comments.
29011 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29012 (dirent_type): New type. Use uint_fast8_t not
29013 uint8_t, as C99 does not require uint8_t.
29014 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29015 (struct readdir_result): Use dirent_type. Do not define skip_entry
29016 unless it is needed; this saves a byte on platforms lacking d_ino.
29017 (readdir_result_type, readdir_result_skip_entry):
29018 New functions, replacing ...
29019 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29020 these functions, which were removed. This makes the callers
29021 easier to read. All callers changed.
29022 (D_INO_TO_RESULT): Now empty if there is no d_ino.
29023 (size_add_wrapv, glob_use_alloca): New static functions.
29024 (glob, glob_in_dir): Check for size_t overflow in several places,
29025 and fix some size_t checks that were not quite right.
29026 Remove old code using SHELL since Bash no longer
29027 uses this.
29028 (glob, prefix_array): Separate MS code better.
29029 (glob_in_dir): Remove old Amiga and VMS code.
29030 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29031 separate files.
29032 (glob_in_dir): Do not rely on undefined behavior in accessing
29033 struct members beyond their bounds. Use a flexible array member
29034 instead
29035 (link_stat): Rename from link_exists2_p and return -1/0 instead of
29036 0/1. Caller changed.
29037 (glob): Fix memory leaks.
29038 * posix/glob64 (globfree64): Move to separate file.
29039 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29040 (globfree64): Remove hidden alias.
29041 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29042 oldglob.
29043 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29044 separate file.
29045 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29046 define.
29047 Move compat code to separate file.
29048 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29049 separate file.
29050
29051 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
29052
29053 * resolv/tst-resolv-qtypes.c (domain): Changed to
29054 "const char domain[] =".
29055
29056 2017-09-07 Joseph Myers <joseph@codesourcery.com>
29057
29058 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29059 version to 3.1.6.
29060
29061 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29062 (TCP_MD5SIG_EXT): Likewise.
29063 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29064 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29065 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
29066
29067 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29068
29069 2017-09-07 Mike FABIAN <mfabian@redhat.com>
29070
29071 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29072
29073 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
29074
29075 [BZ #22100]
29076 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29077
29078 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29079
29080 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29081 before assuming that the file is empty. Avoid testing buffer content
29082 when nread == 0.
29083
29084 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29085
29086 [BZ #18858]
29087 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29088 Remove define.
29089 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29090 Likewise.
29091 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29092 Likewise.
29093 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29094 Likewise.
29095 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29096 Likewise.
29097 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29098 Likewise.
29099 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29100 Likewise.
29101
29102 2017-09-06 Florian Weimer <fweimer@redhat.com>
29103
29104 * malloc/dynarray_emplace_enlarge.c
29105 (__libc_dynarray_emplace_enlarge): Add missing else.
29106
29107 2017-09-06 Florian Weimer <fweimer@redhat.com>
29108
29109 [BZ #22096]
29110 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29111 case of failure to obtain the global conf object.
29112
29113 2017-09-06 Florian Weimer <fweimer@redhat.com>
29114
29115 [BZ #22095]
29116 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29117 dynarray allocation failure.
29118
29119 2017-09-06 Florian Weimer <fweimer@redhat.com>
29120
29121 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29122 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29123 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29124 New functions.
29125 (response): Call them. Add 'p', '6' flag processing.
29126 (test_reverse): New function.
29127 (test_get2_any): Call it.
29128 (test_no_inet6): Add 'p' test.
29129 (test_inet6): Likewise.
29130
29131 2017-09-06 Florian Weimer <fweimer@redhat.com>
29132
29133 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29134 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29135 the QNAME.
29136 (test_gai): Adjust query names. Add additional tests.
29137 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29138 test_get2. Adjust query names. Add additional tests.
29139 (test_no_inet6): New function, extracted from threadfunc.
29140 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29141 Add additional tests.
29142
29143 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29144
29145 [BZ #22070]
29146 * localedata/unicode-gen/utf8_gen.py: Set the width for
29147 characters with Prepended_Concatenation_Mark property to 1
29148 * localedata/charmaps/UTF-8: Updated using the improved script.
29149
29150 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29151
29152 [BZ #21750]
29153 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29154 use the range notation for all ranges of neighbouring characters
29155 with the same width.
29156
29157 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29158
29159 * sysdeps/generic/math-type-macros-double.h: Include
29160 <math-svid-compat.h>.
29161 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29162 * sysdeps/generic/math-type-macros-float.h: Include
29163 <math-svid-compat.h>.
29164 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29165 * sysdeps/generic/math-type-macros-ldouble.h: Include
29166 <math-svid-compat.h>.
29167 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29168 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29169 condition.
29170 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29171 * math/w_acosf_compat.c: Likewise.
29172 * math/w_acosh_compat.c: Likewise.
29173 * math/w_acoshf_compat.c: Likewise.
29174 * math/w_acoshl_compat.c: Likewise.
29175 * math/w_acosl_compat.c: Likewise.
29176 * math/w_asin_compat.c: Likewise.
29177 * math/w_asinf_compat.c: Likewise.
29178 * math/w_asinl_compat.c: Likewise.
29179 * math/w_atan2_compat.c: Likewise.
29180 * math/w_atan2f_compat.c: Likewise.
29181 * math/w_atan2l_compat.c: Likewise.
29182 * math/w_atanh_compat.c: Likewise.
29183 * math/w_atanhf_compat.c: Likewise.
29184 * math/w_atanhl_compat.c: Likewise.
29185 * math/w_cosh_compat.c: Likewise.
29186 * math/w_coshf_compat.c: Likewise.
29187 * math/w_coshl_compat.c: Likewise.
29188 * math/w_exp10_compat.c: Likewise.
29189 * math/w_exp10f_compat.c: Likewise.
29190 * math/w_exp10l_compat.c: Likewise.
29191 * math/w_exp2_compat.c: Likewise.
29192 * math/w_exp2f_compat.c: Likewise.
29193 * math/w_exp2l_compat.c: Likewise.
29194 * math/w_fmod_compat.c: Likewise.
29195 * math/w_fmodf_compat.c: Likewise.
29196 * math/w_fmodl_compat.c: Likewise.
29197 * math/w_hypot_compat.c: Likewise.
29198 * math/w_hypotf_compat.c: Likewise.
29199 * math/w_hypotl_compat.c: Likewise.
29200 * math/w_j0_compat.c: Likewise.
29201 * math/w_j0f_compat.c: Likewise.
29202 * math/w_j0l_compat.c: Likewise.
29203 * math/w_j1_compat.c: Likewise.
29204 * math/w_j1f_compat.c: Likewise.
29205 * math/w_j1l_compat.c: Likewise.
29206 * math/w_jn_compat.c: Likewise.
29207 * math/w_jnf_compat.c: Likewise.
29208 * math/w_jnl_compat.c: Likewise.
29209 * math/w_lgamma_r_compat.c: Likewise.
29210 * math/w_lgammaf_r_compat.c: Likewise.
29211 * math/w_lgammal_r_compat.c: Likewise.
29212 * math/w_log10_compat.c: Likewise.
29213 * math/w_log10f_compat.c: Likewise.
29214 * math/w_log10l_compat.c: Likewise.
29215 * math/w_log2_compat.c: Likewise.
29216 * math/w_log2f_compat.c: Likewise.
29217 * math/w_log2l_compat.c: Likewise.
29218 * math/w_log_compat.c: Likewise.
29219 * math/w_logf_compat.c: Likewise.
29220 * math/w_logl_compat.c: Likewise.
29221 * math/w_pow_compat.c: Likewise.
29222 * math/w_powf_compat.c: Likewise.
29223 * math/w_powl_compat.c: Likewise.
29224 * math/w_remainder_compat.c: Likewise.
29225 * math/w_remainderf_compat.c: Likewise.
29226 * math/w_remainderl_compat.c: Likewise.
29227 * math/w_sinh_compat.c: Likewise.
29228 * math/w_sinhf_compat.c: Likewise.
29229 * math/w_sinhl_compat.c: Likewise.
29230 * math/w_sqrt_compat.c: Likewise.
29231 * math/w_sqrtf_compat.c: Likewise.
29232 * math/w_sqrtl_compat.c: Likewise.
29233 * math/w_tgamma_compat.c: Likewise.
29234 * math/w_tgammaf_compat.c: Likewise.
29235 * math/w_tgammal_compat.c: Likewise.
29236 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29237 [LIBM_SVID_COMPAT].
29238 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29239 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29240 [LIBM_SVID_COMPAT].
29241 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29242 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29243 [LIBM_SVID_COMPAT].
29244 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29245 * sysdeps/i386/fpu/w_sqrt.c: New file.
29246 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29247 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29248 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29249 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29250 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29251 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29252 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29253 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29254 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29255 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29256 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29257 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29258 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29259 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29260 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29261 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29262 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29263 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29264 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29265 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29266 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29267 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29268 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29269 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29270 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29271 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29272 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29273 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29274 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29275 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29276 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29277 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29278 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29279 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29280 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29281 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29282 * sysdeps/ia64/fpu/w_log.c: Likewise.
29283 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29284 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29285 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29286 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29287 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29288 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29289 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29290 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29291 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29292 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29293 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29294 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29295 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29296 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29297 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29298 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29299 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29300 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29301 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29302 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29303 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29304 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29305 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29306 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29307 [LIBM_SVID_COMPAT].
29308 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29309 * sysdeps/ieee754/k_standard.c: Likewise.
29310 * sysdeps/ieee754/k_standardf.c: Likewise.
29311 * sysdeps/ieee754/k_standardl.c: Likewise.
29312 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29313 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29314 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29315 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29316 long_double_symbol call on [LIBM_SVID_COMPAT].
29317 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29318 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29319 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29320 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29321 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29322 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29323 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29324 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29325 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29326 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29327 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29328 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29329 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29330 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29331 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29332 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29333 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29334 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29335 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29336 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29337 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29338 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29339
29340 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29341
29342 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29343 * malloc/tst-mallocstate.c: Convert from test-skeleton
29344 to test-driver. Ifdef code using TEST_COMPAT macro.
29345 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29346 * math/test-matherr.c: Likewise.
29347
29348 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29349
29350 [BZ #22086]
29351 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29352 comparing word with byte-swapped constant.
29353
29354 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29355
29356 [BZ #20498]
29357 * locale/iso-639.def: add Miskito.
29358 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29359 * localedata/locales/miq_NI: New file.
29360
29361 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29362
29363 [BZ #18822]
29364 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29365 (__mkdir): Likewise.
29366 * io/chmod.c (__chmod): Add libc_hidden_def.
29367 * io/mkdir.c (__mkdir): Likewise.
29368 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29369 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29370 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29371 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29372
29373 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29374
29375 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29376 version to 4.13.
29377
29378 [BZ #22082]
29379 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29380 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29381
29382 2017-09-04 Florian Weimer <fweimer@redhat.com>
29383
29384 * math/math.h: Issue warning if log is defined.
29385
29386 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29387
29388 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29389 kernel version to 4.13.
29390
29391 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29392
29393 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29394 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29395 parameter.
29396 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29397 just <bits/types.h>.
29398 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29399 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29400 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29401 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29402 * misc/preadv2.c: Include <errno.h>.
29403 * misc/preadv64v2.c: Include <errno.h>.
29404 * misc/pwritev2.c: Include <errno.h>.
29405 * misc/pwritev64v2.c: Include <errno.h>.
29406 * sysdeps/posix/preadv2.c: Include <errno.h>.
29407 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29408 Fix <unistd.h> inclusion.
29409 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29410 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29411 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29412 __strtoul_internal): New functions.
29413 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29414 * sysdeps/posix/system.c: Include <sigsetops.h>.
29415 * sysdeps/mach/hurd/i386/Makefile
29416 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29417 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29418 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29419 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29420 __feraiseexcept_renamed to feraiseexcept instead of
29421 __GI_feraiseexcept.
29422 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29423 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29424 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29425 RWF_NOWAIT): Define to 0 if undefined already.
29426 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29427 boils down to 0.
29428 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29429 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29430
29431 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29432
29433 * manual/math.texi (pow10): Do not document.
29434 (pow10f): Likewise.
29435 (pow10l): Likewise.
29436 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29437 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29438 * math/libm-test-exp10.inc (pow10_test): Remove.
29439 (do_test): Do not call pow10.
29440 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29441 [NO_LONG_DOUBLE] (pow10l): Likewise.
29442 * math/w_exp10f_compat.c (pow10f): Likewise.
29443 * math/w_exp10l_compat.c (pow10l): Likewise.
29444 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29445 (pow10): Make into compat symbol.
29446 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29447 (pow10f): Make into compat symbol.
29448 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29449 (pow10l): Make into compat symbol.
29450 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29451 pow10.
29452 (CFLAGS-nldbl-pow10.c): Remove variable..
29453 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29454 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29455 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29456 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29457 Undefine and redefine.
29458 (pow10l): Make into compat symbol.
29459 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29460 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29461 * sysdeps/arm/libm-test-ulps: Likewise.
29462 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29463 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29464 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29465 * sysdeps/microblaze/libm-test-ulps: Likewise.
29466 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29467 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29468 * sysdeps/nios2/libm-test-ulps: Likewise.
29469 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29470 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29471 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29472 * sysdeps/sh/libm-test-ulps: Likewise.
29473 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29474 * sysdeps/tile/libm-test-ulps: Likewise.
29475 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29476
29477 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29478
29479 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29480
29481 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29482
29483 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29484 "../ChangeLog.old/ChangeLog.8".
29485 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29486 "../ChangeLog.old/ChangeLog.14".
29487
29488 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29489
29490 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29491 Threads Library.
29492
29493 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29494
29495 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29496
29497 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29498
29499 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29500 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29501
29502 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29503
29504 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29505 32 atexit handlers.
29506
29507 2017-09-01 Zack Weinberg <zackw@panix.com>
29508
29509 * math/math.h (HUGE_VAL): Improve commentary.
29510
29511 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29512 Andreas Schwab <schwab@suse.de>
29513
29514 [BZ #21530]
29515 * include/stdio.h (__gen_tempfd): New function.
29516 * stdio-common/Makefile (routines): Add gentempfd.
29517 * stdio-common/gentempfd.c: New file.
29518 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29519 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29520 unnamed file first.
29521
29522 2017-09-01 Florian Weimer <fweimer@redhat.com>
29523
29524 [BZ #21915]
29525 [BZ #21922]
29526 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29527 result to determine success or failure, not the errno value.
29528 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29529 (tst-nss-files-hosts-erange): Link with -ldl.
29530 * nss/tst-nss-files-hosts-erange.c: New file.
29531 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29532 (do_test): Add NO_DATA tests.
29533 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29534 (do_test): Call it.
29535
29536 2017-09-01 Florian Weimer <fweimer@redhat.com>
29537
29538 [BZ #21922]
29539 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29540 coming from gethostbyname2_r.
29541
29542 2017-09-01 Florian Weimer <fweimer@redhat.com>
29543
29544 * support/namespace.h (struct support_chroot_configuration): Add
29545 hosts, host_conf.
29546 (struct support_chroot): Add path_hosts, path_host_conf.
29547 * support/support_chroot.c (write_file): New function.
29548 (support_chroot_create): Call it to process /etc/resolv.conf,
29549 /etc/hosts, /etc/host.conf.
29550 (support_chroot_free): Update.
29551
29552 2017-09-01 Florian Weimer <fweimer@redhat.com>
29553
29554 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29555 status indicates it is set.
29556
29557 2017-09-01 Florian Weimer <fweimer@redhat.com>
29558
29559 [BZ #20532]
29560 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29561 function lookup failures more reliable.
29562
29563 2017-09-01 Florian Weimer <fweimer@redhat.com>
29564
29565 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29566 (getcanonname): Likewise.
29567 (gaih_inet): Likewise.
29568
29569 2017-09-01 Florian Weimer <fweimer@redhat.com>
29570
29571 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29572 (getcanonname): Likewise.
29573 (gaih_inet): Likewise.
29574
29575 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29576 Richard Henderson <rth@twiddle.net>
29577
29578 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29579 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29580 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29581 (IREG_SIZE, OREG_SIZE): New macros.
29582 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29583 (IREG_SIZE, OREG_SIZE): New macros.
29584 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29585 (IREG_SIZE): New macro.
29586 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29587 (IREG_SIZE): New macro.
29588 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29589 New includes.
29590 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29591 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29592 (__CONCATX): Handle exceptions correctly on large values that may
29593 set FE_INVALID.
29594 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29595 Initialize if not already set.
29596 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29597
29598 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29599
29600 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29601 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29602 Likewise.
29603 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29604 Likewise.
29605 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29606 Likewise.
29607 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29608 Likewise.
29609 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29610 Likewise.
29611 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29612 Likewise.
29613 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29614 Likewise.
29615 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29616 (NO_CANCELLATION): Likewise.
29617 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29618 Likewise.
29619 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29620 Likewise.
29621 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29622 Likewise.
29623 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29624 (NO_CANCELLATION): Likewise.
29625 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29626 (NO_CANCELLATION): Likewise.
29627 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29628 Likewise
29629 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29630 Likewise.
29631 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29632 Likewise.
29633 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29634 Likewise.
29635 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29636 hidden prototype.
29637 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29638 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29639
29640 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29641
29642 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29643 in resolver call.
29644
29645 2017-08-31 Florian Weimer <fweimer@redhat.com>
29646
29647 * include/libc-symbols.h (internal_function): Remove.
29648
29649 2017-08-31 Florian Weimer <fweimer@redhat.com>
29650
29651 * stdlib/fmtmsg.c (internal_addseverity): Remove
29652 internal_function.
29653
29654 2017-08-31 Florian Weimer <fweimer@redhat.com>
29655
29656 * stdio-common/printf_fp.c (group_number): Remove
29657 internal_function.
29658 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29659
29660 2017-08-31 Florian Weimer <fweimer@redhat.com>
29661
29662 * posix/fnmatch.c (internal_function): Remove definition.
29663 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29664 * posix/regcomp.c (peek_token, init_word_char)
29665 (duplicate_node_closure, fetch_token, peek_token)
29666 (peek_token_bracket, build_range_exp, build_collating_symbol):
29667 Likewise.
29668 * posix/regex_internal.c (re_string_construct_common)
29669 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29670 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29671 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29672 (re_string_translate_buffer, re_string_reconstruct)
29673 (re_string_peek_byte_case, re_string_fetch_byte_case)
29674 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29675 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29676 (re_node_set_add_intersect, re_node_set_init_union)
29677 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29678 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29679 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29680 (re_acquire_state_context): Likewise.
29681 * posix/regex_internal.h (internal_function): Remove definition.
29682 (re_string_realloc_buffers, build_wcs_buffer)
29683 (build_wcs_upper_buffer, build_upper_buffer)
29684 (re_string_translate_buffer, re_string_context_at)
29685 (re_string_char_size_at, re_string_wchar_at)
29686 (re_string_elem_size_at): Likewise.
29687 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29688 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29689 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29690 (re_search_internal, re_search_2_stub, re_search_stub)
29691 (re_copy_regs, prune_impossible_nodes, check_matching)
29692 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29693 (free_fail_stack_return, sift_states_iter_mb)
29694 (sift_states_backward, build_sifted_states)
29695 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29696 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29697 (check_subexp_limits, sift_states_bkref, merge_state_array)
29698 (find_recover_state, transit_state, merge_state_with_log)
29699 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29700 (transit_state_mb, transit_state_bkref, get_subexp)
29701 (get_subexp_sub, find_subexp_node, check_arrival)
29702 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29703 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29704 (check_node_accept_bytes, find_collation_sequence_value)
29705 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29706 (acquire_init_state_context, check_halt_node_context)
29707 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29708 (sub_epsilon_src_nodes): Likewise.
29709 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29710 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29711 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29712 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29713 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29714 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29715 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29716 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29717 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29718 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29719 (PREADV): Likewise.
29720 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29721 (PREADV): Likewise.
29722 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29723 (PWRITEV): Likewise.
29724 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29725 (PWRITEV): Likewise.
29726 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29727 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29728
29729 2017-08-31 Florian Weimer <fweimer@redhat.com>
29730
29731 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29732 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29733 Remove internal_function.
29734 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29735 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29736 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29737 (__deallocate_stack, __libc_pthread_init)
29738 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29739 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29740 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29741 Likewise.
29742 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29743 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29744 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29745 Likewise.
29746 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29747 (__pthread_mutex_unlock_usercnt): Likewise.
29748
29749 2017-08-31 Florian Weimer <fweimer@redhat.com>
29750
29751 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29752 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29753 (fts_safe_changedir): Remove internal_function.
29754 * io/ftw.c (internal_function): Remove definition.
29755 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29756
29757 2017-08-31 Florian Weimer <fweimer@redhat.com>
29758
29759 * inet/deadline.c (__deadline_current_time)
29760 (__deadline_from_timeval, __deadline_to_ms): Remove
29761 internal_function.
29762 * inet/getnameinfo.c (nrl_domainname): Likewise.
29763 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29764 * inet/inet6_option.c (add_pad): Likewise.
29765 * inet/net-internal.h (__deadline_current_time)
29766 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29767 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29768 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29769 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29770
29771 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29772
29773 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29774 include <bits/nan.h>.
29775 * math/Makefile (headers): Remove bits/nan.h.
29776 * bits/nan.h: Remove.
29777 * sysdeps/ieee754/bits/nan.h: Likewise.
29778 * sysdeps/mips/bits/nan.h: Likewise.
29779
29780 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29781 not include <bits/inf.h>.
29782 * math/Makefile (headers): Remove bits/inf.h.
29783 * bits/inf.h: Remove.
29784 * sysdeps/ieee754/bits/inf.h: Likewise.
29785
29786 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29787 bits/huge_vall.h or bits/huge_val_flt128.h.
29788 (HUGE_VAL): Define directly here.
29789 [__USE_ISOC99] (HUGE_VALF): Likewise.
29790 [__USE_ISOC99] (HUGE_VALL): Likewise.
29791 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29792 (HUGE_VAL_F128): Likewise.
29793 * math/Makefile (headers): Remove bits/huge_val.h,
29794 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29795 * bits/huge_val.h: Remove.
29796 * bits/huge_val_flt128.h: Likewise.
29797 * bits/huge_valf.h: Likewise.
29798 * bits/huge_vall.h: Likewise.
29799 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29800 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29801 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29802 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29803 * sysdeps/sh/bits/huge_val.h: Likewise.
29804 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29805 * sysdeps/x86/bits/huge_vall.h: Likewise.
29806
29807 2017-08-31 Florian Weimer <fweimer@redhat.com>
29808
29809 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29810 internal_function.
29811 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29812 Likewise.
29813 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29814 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29815 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29816 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29817 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29818 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29819 * elf/dl-libc.c (dlerror_run): Likewise.
29820 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29821 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29822 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29823 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29824 Likewise.
29825 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29826 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29827 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29828 * elf/dl-profile.c (_dl_start_profile): Likewise.
29829 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29830 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29831 Likewise.
29832 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29833 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29834 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29835 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29836 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29837 (_dl_allocate_tls_storage): Likewise.
29838 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29839 (_dl_check_all_versions): Likewise.
29840 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29841 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29842 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29843 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29844 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29845 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29846 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29847 internal_function from __dl_start.
29848 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29849 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29850 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29851 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29852 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29853 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29854 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29855 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29856 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29857 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29858 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29859 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29860 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29861 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29862 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29863 Likewise.
29864 (struct rtld_global_ro): Remove internal_function from the
29865 _dl_lookup_symbol_x member.
29866 (_dl_symbol_value): Remove. No longer defined anywhere.
29867 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29868 internal_function.
29869 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29870 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29871 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29872 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29873 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29874 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29875 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29876 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29877 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29878 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29879 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29880 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29881
29882 2017-08-31 Florian Weimer <fweimer@redhat.com>
29883
29884 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29885 Remove internal_function.
29886 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29887 Likewise.
29888 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29889 Likewise.
29890
29891 2017-08-31 Florian Weimer <fweimer@redhat.com>
29892
29893 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29894 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29895 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29896
29897 2017-08-31 Florian Weimer <fweimer@redhat.com>
29898
29899 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29900 (__gai_enqueue_request): Remove internal_function.
29901 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29902 (__gai_remove_request, __gai_notify, __gai_notify_only)
29903 (__gai_sigqueue): Likewise.
29904 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29905 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29906 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29907 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29908 Likewise.
29909
29910 2017-08-31 Florian Weimer <fweimer@redhat.com>
29911
29912 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29913 * include/dirent.h (__opendirat, __getdents, __getdents64)
29914 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29915 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29916 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29917 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29918 Likewise.
29919 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29920
29921 2017-08-31 Florian Weimer <fweimer@redhat.com>
29922
29923 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29924 internal_function.
29925 (GETCWD_RETURN_TYPE): Likewise.
29926
29927 2017-08-31 Florian Weimer <fweimer@redhat.com>
29928
29929 * include/time.h (__tz_compute, __strptime_internal): Remove
29930 internal_function.
29931 * time/strptime_l.c (__strptime_internal): Likewise.
29932 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29933
29934 2017-08-31 Florian Weimer <fweimer@redhat.com>
29935
29936 * iconv/gconv.c (__gconv): Remove internal_function.
29937 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29938 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29939 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29940 (__gconv_release_cache): Likewise.
29941 * iconv/gconv_close.c (__gconv_close): Likewise.
29942 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29943 (read_conf_file, __gconv_get_path): Likewise.
29944 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29945 (__gconv_release_step, gen_steps, increment_counter)
29946 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29947 (__gconv_close_transform, free_modules_db): Likewise.
29948 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29949 Likewise.
29950 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29951 (__gconv_find_transform, __gconv_lookup_cache)
29952 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29953 (__gconv_close_transform, __gconv_release_cache)
29954 (__gconv_loaded_object, __gconv_release_shlib)
29955 (__gconv_compare_alias): Likewise.
29956 * iconv/gconv_open.c (__gconv_open): Likewise.
29957 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29958 * iconv/iconvconfig.c (add_module): Likewise.
29959 * intl/dcigettext.c (plural_lookup, guess_category_value)
29960 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29961 * intl/eval-plural.h (plural_eval): Likewise.
29962 * intl/finddomain.c (_nl_find_domain): Likewise.
29963 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29964 (_nl_load_domain, _nl_find_msg): Likewise.
29965 (internal_function): Remove definition.
29966 * intl/loadinfo.h (internal_function): Likewise.
29967 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29968 internal_function.
29969 * intl/localealias.c (internal_function): Remove definition.
29970 (read_alias_file): Remove internal_function.
29971 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29972 * intl/plural-exp.h (internal_function): Remove definition.
29973 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29974 internal_function.
29975 * intl/plural.c: Regenerate.
29976 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29977 * locale/coll-lookup.c (__collidx_table_lookup)
29978 (__collseq_table_lookup): Likewise.
29979 * locale/coll-lookup.h (__collidx_table_lookup)
29980 (__collseq_table_lookup): Likewise.
29981 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29982 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29983 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29984 (_nl_unload_locale): Likewise.
29985 * locale/localeinfo.h (struct __locale_data): Remove
29986 internal_function from cleanup member.
29987 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29988 (_nl_remove_locale, _nl_load_locale_from_archive)
29989 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29990 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29991 (_nl_cleanup_time): Remove internal_function.
29992 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29993 (_nl_parse_alt_digit): Likewise.
29994 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29995 (_nl_select_era_entry): Likewise.
29996 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29997 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29998 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29999 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30000 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30001
30002 2017-08-31 Florian Weimer <fweimer@redhat.com>
30003
30004 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
30005 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30006 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
30007 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30008 Likewise.
30009 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30010 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30011 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30012 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30013 Likewise.
30014 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30015
30016 2017-08-31 Florian Weimer <fweimer@redhat.com>
30017
30018 * misc/getttyent.c (skip, value): Remove internal_function.
30019 * misc/syslog.c (openlog_internal): Likewise.
30020 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30021
30022 2017-08-31 Florian Weimer <fweimer@redhat.com>
30023
30024 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30025 (__nss_rewrite_field): Remove internal_function.
30026 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30027 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30028 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30029 * nss/nsswitch.c (nss_parse_file, nss_getline)
30030 (nss_parse_service_list, nss_new_service): Likewise.
30031 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30032 * nss/valid_field.c (__nss_valid_field): Likewise.
30033 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30034
30035 2017-08-31 Florian Weimer <fweimer@redhat.com>
30036
30037 * malloc/arena.c (__malloc_fork_lock_parent)
30038 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30039 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30040 internal_function from defintions.
30041 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30042 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30043 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30044 internal_function from declarations.
30045 * malloc/malloc.c (internal_function): Do not define.
30046 (mem2mem_check): Remove internal_function from declaration.
30047 (munmap_chunk, mremap_chunk): Remove internal_function.
30048 * malloc/mtrace.c (tr_where): Likewise.
30049
30050 2017-08-31 Florian Weimer <fweimer@redhat.com>
30051
30052 * include/rpc/pmap_clnt.h (__get_socket): Remove
30053 internal_function.
30054 * sunrpc/auth_des.c (synchronize): Likewise.
30055 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30056 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30057 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30058 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30059 (key_call): Likewise.
30060 * sunrpc/pm_getport.c (__get_socket): Likewise.
30061 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30062 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30063 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30064 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30065 (invalidate): Likewise.
30066 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30067 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30068 (set_input_fragment, get_input_bytes): Likewise.
30069
30070 2017-08-31 Florian Weimer <fweimer@redhat.com>
30071
30072 * malloc/malloc.c (_int_free): Remove locked variable and related
30073 asserts.
30074
30075 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
30076
30077 [BZ #22051]
30078 * Makerules (build-module-helper-objlist): Filter out
30079 $(elf-objpfx)sofini.os.
30080 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30081 needed.
30082
30083 2017-08-31 Florian Weimer <fweimer@redhat.com>
30084
30085 * libio/fcloseall.c: Assume weak_alias is defined.
30086 * libio/feof.c: Likewise.
30087 * libio/fileno.c: Likewise.
30088 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30089 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30090 definitions.
30091 (_IO_file_open): Call __open directly.
30092 (_IO_new_file_sync): Assume ESPIPE is defined.
30093 (_IO_file_seekoff_maybe_mmap): Call __read directly.
30094 (_IO_new_file_write): Call __write directly.
30095 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30096 * libio/ftello64.c (__ftello64): Assume EIO is defined.
30097 * libio/genops.c: Assume _LIBC is defined.
30098 (save_for_backup): Remove internal_function.
30099 * libio/getc.c: Assume weak_alias is defined.
30100 * libio/getwc.c: Likewise.
30101 * libio/iofclose.c: Assume _LIBC is defined.
30102 * libio/iofdopen.c: Likewise.
30103 (_IO_fcntl): Remove macro definition.
30104 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30105 Call __fcntl directly.
30106 * libio/iofflush.c: Assume weak_alias is defined.
30107 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30108 defined.
30109 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30110 * libio/iofgets.c: Likewise.
30111 * libio/iofopen.c: Assume _LIBC is defined.
30112 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30113 * libio/iofputs.c: Assume weak_alias is defined.
30114 * libio/iofread.c: Likewise.
30115 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30116 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30117 * libio/ioftell.c: Assume weak_alias is defined.
30118 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30119 * libio/iofwide.c: Assume _LIBC is defined.
30120 (_IO_fwide): Drop SHARED conditional because it is implied by
30121 SHLIB_COMPAT.
30122 * libio/iofwrite.c: Assume weak_alias is defined.
30123 * libio/iogetdelim.c: Likewise.
30124 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30125 * libio/iogetwline.c (wmemcpy): Remove macro definition.
30126 (_IO_getwline): Call __wmemcpy directly.
30127 * libio/iopopen.c: Assume _LIBC is defined.
30128 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30129 (_IO_close): Remove macro definitions.
30130 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30131 _exit directly.
30132 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30133 directly.
30134 * libio/ioputs.c: Assume weak_alias is defined.
30135 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30136 * libio/iosetbuffer.c: Assume weak_alias is defined.
30137 * libio/iosetvbuf.c: Likewise.
30138 * libio/ioungetc.c: Likewise.
30139 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30140 libc_hidden_def, libc_hidden_weak, NULL are defined.
30141 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30142 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30143 defined.
30144 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30145 definitions.
30146 (_IO_old_file_init_internal): Drop SHARED conditional because it
30147 is implied by SHLIB_COMPAT.
30148 (_IO_old_file_fopen): Call __open directly.
30149 (_IO_old_file_sync): Assume ESPIPE is defined.
30150 (_IO_old_file_write): Call __write directly.
30151 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30152 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30153 Call __fcntl directly.
30154 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30155 (_IO_old_fgetpos): Assume EIO is defined.
30156 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30157 (_IO_old_fgetpos64): Assume EIO is defined.
30158 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30159 (_IO_old_fsetpos): Assume EIO is defined.
30160 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30161 (_IO_old_fsetpos64): Assume EIO is defined.
30162 * libio/oldiopopen.c: Assume _LIBC is defined.
30163 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30164 (_IO_close): Remove macro definitions.
30165 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30166 directly.
30167 (_IO_old_proc_close): Call __close, __waitpid directly.
30168 * libio/put.c: Assume weak_alias is defined.
30169 * libio/stdfiles.c: Assume _LIBC is defined.
30170 * libio/stdio.c: Likewise.
30171 * libio/wfileops.c: Likewise.
30172 (_IO_wfile_sync): Assume ESPIPE is defined.
30173 * libio/wgenops.c: Assume _LIBC is defined.
30174 (save_for_wbackup): Remove internal_function.
30175
30176 2017-08-31 Florian Weimer <fweimer@redhat.com>
30177
30178 * malloc/malloc.c (top_check): Change return type to void. Remove
30179 internal_function.
30180 * malloc/hooks.c (top_check): Likewise.
30181 (malloc_check, realloc_check, memalign_check): Adjust.
30182
30183 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30184
30185 [BZ #21457]
30186 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30187 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30188 sigcontext and namespace requirements.
30189 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30190 * sysdeps/m68k/sys/ucontext.h: Likewise.
30191 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30192 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30193 <bits/sigcontext.h>.
30194 (__ctx): Define earlier.
30195 (mcontext_t): Define structure contents rather than using struct
30196 sigcontext.
30197 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30198 __glibc_reserved1 instead of __reserved.
30199 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30200 <bits/sigcontext.h>.
30201 (__ctx): Define earlier.
30202 (mcontext_t): Define structure contents rather than using struct
30203 sigcontext.
30204 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30205 mcontext_t instead of struct sigcontext.
30206 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30207 <bits/sigcontext.h>.
30208 (__ctx): Define earlier.
30209 (mcontext_t): Define structure contents rather than using struct
30210 sigcontext.
30211 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30212 <bits/sigcontext.h>.
30213 (__ctx): Define earlier.
30214 (mcontext_t): Define structure contents rather than using struct
30215 sigcontext.
30216 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30217 mcontext_t instead of struct sigcontext.
30218 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30219 mcontext_t instead of struct sigcontext.
30220 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30221 <bits/sigcontext.h>.
30222 (__ctx): New macro.
30223 (struct __ia64_fpreg_mcontext): New type.
30224 (mcontext_t): Define structure contents rather than using struct
30225 sigcontext.
30226 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30227 (uc_sigmask): Define using __ctx.
30228 (uc_stack): Likewise.
30229 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30230 <bits/sigcontext.h>.
30231 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30232 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30233 <bits/sigcontext.h>.
30234 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30235 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30236 <bits/sigcontext.h>.
30237 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30238 <bits/sigcontext.h>.
30239 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30240 <bits/sigcontext.h>.
30241 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30242 <bits/sigcontext.h>.
30243 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30244 <bits/sigcontext.h>.
30245 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30246 <bits/sigcontext.h>.
30247 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30248 <bits/sigcontext.h>.
30249 (__ctx): Define earlier.
30250 (mcontext_t): Define structure contents rather than using struct
30251 sigcontext.
30252 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30253 <bits/sigcontext.h>. Include <bits/types.h>.
30254 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30255 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30256 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30257 (test-xfail-UNIX98/signal.h/conform): Likewise.
30258 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30259 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30260 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30261 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30262 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30263 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30264 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30265 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30266 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30267
30268 2017-08-30 Florian Weimer <fweimer@redhat.com>
30269
30270 * malloc/dynarray_emplace_enlarge.c
30271 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30272 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30273 * malloc/tst-dynarray.c (test_long_overflow): New function.
30274 (do_test): Call it.
30275
30276 2017-08-30 Florian Weimer <fweimer@redhat.com>
30277
30278 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30279 (set_arena_corrupt): Remove definitions.
30280 (mtrim): Do not check for corrupt arena.
30281 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30282 Likewise.
30283
30284 2017-08-30 Florian Weimer <fweimer@redhat.com>
30285
30286 [BZ #21754]
30287 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30288 check_action.
30289 (ptmalloc_init): Do not set or use check_action.
30290 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30291 call to malloc_printerr. Remove return statement.
30292 (free_check): Likewise. Remove arena unlock.
30293 (top_check): Update comment. Adjust call to malloc_printerr.
30294 Remove heap repair code.
30295 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30296 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30297 (sysmalloc): Adjust call to malloc_printerr.
30298 (munmap_chunk, __libc_realloc): Likewise. Remove return
30299 statement.
30300 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30301 Remove errout label and corresponding gotos.
30302 (_int_free): Likewise. Remove arena unlock.
30303 (do_set_mallopt_check): Do not set check_action.
30304 (malloc_printerr): Adjust parameter list. Do not mark arena as
30305 corrupt.
30306 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30307 comment.
30308 * manual/probes.texi (Memory Allocation Probes): Remove
30309 memory_mallopt_check_action.
30310
30311 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30312
30313 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30314 Use pointer to uint64_t instead of long int for sp.
30315
30316 2017-08-30 Florian Weimer <fweimer@redhat.com>
30317
30318 [BZ #21754]
30319 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30320 without printing a backtrace. Do not leak any information in the
30321 error message.
30322 * manual/memory.texi (Heap Consistency Checking): Update.
30323 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30324
30325 2017-08-30 Florian Weimer <fweimer@redhat.com>
30326
30327 Do not scale NPTL tests with available number of CPUs.
30328 * nptl/tst-cond16.c (count): Set to constant value of 8.
30329 * nptl/tst-cond18.c (count): Likewise.
30330
30331 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30332
30333 [BZ #22035]
30334 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30335 Define to take a second argument that is a macro that
30336 concatentates a suffix, not the suffix itself.
30337 (__CONCAT_d): New macro.
30338 (__CONCAT_f): Likewise.
30339 (__CONCAT_l): Likewise.
30340
30341 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30342
30343 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30344 by child.
30345
30346 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30347 Aurelien Jarno <aurelien@aurel32.net>
30348 Maciej W. Rozycki <macro@imgtec.com>
30349
30350 [BZ #21956]
30351 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30352 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30353 `mips16-syscall6' and `mips16-syscall7'.
30354 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30355 (CFLAGS-mips16-syscall7.c): Remove.
30356 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30357 Remove `__mips16_syscall5', `__mips16_syscall6' and
30358 `__mips16_syscall7'.
30359 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30360 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30361 `__mips_syscall_return'.
30362 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30363 (__mips16_syscall1): Likewise.
30364 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30365 (__mips16_syscall2): Likewise.
30366 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30367 (__mips16_syscall3): Likewise.
30368 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30369 (__mips16_syscall4): Likewise.
30370 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30371 Remove.
30372 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30373 Remove.
30374 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30375 Remove.
30376 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30377 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30378 `__mips16_syscall5'. Remove prototype.
30379 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30380 `__mips16_syscall6'. Remove prototype.
30381 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30382 `__mips16_syscall7'. Remove prototype.
30383 (__nomips16, __mips16_syscall_return): Move to...
30384 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30385 (__nomips16, __mips_syscall_return): ... here.
30386 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30387 `__mips16_syscall_return' to `__mips_syscall_return'.
30388 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30389 `internal_syscall##nr'.
30390 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30391 `internal_syscall##nr'.
30392 (FORCE_FRAME_POINTER): Remove.
30393 (__mips_syscall5): New prototype.
30394 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30395 (__mips_syscall6): New prototype.
30396 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30397 (__mips_syscall7): New prototype.
30398 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30399 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30400 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30401 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30402 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30403 (sysdep_routines): Add libc-do-syscall.
30404 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30405 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30406
30407 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30408
30409 [BZ #21672]
30410 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30411 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30412 (advise_stack_range): New function.
30413 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30414 stack non required to advise_stack_range at allocatestack.c
30415
30416 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30417
30418 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30419
30420 2017-08-29 Florian Weimer <fweimer@redhat.com>
30421
30422 [BZ #22026]
30423 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30424 __end_fct. Mangle __end_fct after setting it to NULL.
30425 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30426 (modules-names, modules-names-tests): Add
30427 tst-gconv-init-failure-mod.
30428 (gconv-modules): New target.
30429 (tst-gconv-init-failure-mod.so): Link against libsupport.
30430 (tst-gconv-init-failure): Depend on gconv-modules,
30431 tst-gconv-init-failure-mod.so.
30432 * iconv/tst-gconv-init-failure-mod.c: New file.
30433 * iconv/tst-gconv-init-failure.c: Likewise.
30434 * iconv/test-gconv-modules: Likewise.
30435
30436 2017-08-29 Florian Weimer <fweimer@redhat.com>
30437
30438 [BZ #22025]
30439 * iconv/gconv_db.c (free_derivation): Remove redundant
30440 parentheses.
30441 (gen_steps): Unconditionally mangle __btowc_fct after
30442 initialization.
30443 (increment_counter): Likewise. Do not call init_fct for internal
30444 modules.
30445
30446 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30447
30448 [BZ #22028]
30449 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30450 (_MSUF_): Remove macro.
30451 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30452 Likewise.
30453 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30454 (__REDIRFROM_X): New macro.
30455 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30456 Likewise.
30457 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30458 (__REDIRTO_X): Likewise.
30459 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30460 arguments.
30461 (__MATH_REDIRCALL_2): Likewise.
30462 (__MATH_REDIRCALL_INTERNAL): Likewise.
30463 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30464 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30465 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30466 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30467 * math/test-finite-macros.c: New file.
30468 * math/Makefile (tests): Add test-finite-macros.
30469 (CFLAGS-test-finite-macros.c): New variable.
30470
30471 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30472 Jeff Law <law@redhat.com>
30473
30474 [BZ #22025]
30475 Mangle NULL pointers in iconv/gconv.
30476 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30477 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30478 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30479 is non-NULL before demangling the end_fct. Check for NULL
30480 end_fct after demangling.
30481 (__gconv_release_step): Demangle the end_fct before checking
30482 it for NULL. Remove assert on __shlibc_handle != NULL.
30483 (gen_steps): Don't check btowc_fct for NULL before mangling.
30484 Demangle init_fct before checking for NULL.
30485 (increment_counter): Likewise.
30486 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30487 end_fct for NULL before mangling.
30488 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30489 for NULL.
30490
30491 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30492
30493 [BZ #21971]
30494 * locale/iso-639.def: add Morisyen.
30495
30496 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30497
30498 [BZ #21930]
30499 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30500 (iszero): New C++ implementation that does not use
30501 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30502 signaling nans are enabled, since __builtin_types_compatible_p
30503 is a C-only feature.
30504 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30505 defined, include ieee754_float128.h for access to the union and
30506 member ieee854_float128.ieee.
30507 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30508 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30509 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30510 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30511 options of test-math-zero on powerpc64le.
30512
30513 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30514
30515 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30516 Change double to float.
30517
30518 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30519
30520 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30521 unconditional.
30522 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30523 conditional code; define contents only for [LIBM_SVID_COMPAT].
30524
30525 2017-08-28 Florian Weimer <fweimer@redhat.com>
30526
30527 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30528 (abi-lp64_be-options): Remove.
30529 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30530 (abi-hard-options): Likewise.
30531 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30532 (abi-o32_hard-options, abi-o32_soft_2008-options)
30533 (abi-o32_hard_2008-options, abi-n32_soft-options)
30534 (abi-n32_hard-options, abi-n32_soft_2008-options)
30535 (abi-n32_hard_2008-options, abi-n64_soft-options)
30536 (abi-n64_hard-options, abi-n64_soft_2008-options)
30537 (abi-n64_hard_2008-options): Likewise.
30538 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30539 (abi-64-v1-options, abi-64-v2-options): Likewise.
30540 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30541 (abi-64-options): Likewise.
30542 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30543 (abi-64-options): Likewise.
30544 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30545 (abi-64-options): Likewise.
30546 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30547 (abi-64-options, abi-x32-options): Likewise.
30548
30549 2017-08-28 Florian Weimer <fweimer@redhat.com>
30550
30551 Store supported list of SYS_* system calls in the source tree.
30552 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30553 (bits/syscall.h): Generate from list file.
30554 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30555 [$(subdir) = misc] (tests): Add tst-syscall-list.
30556 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30557 [$(subdir) = misc] (tst-syscall-list-macros.list)
30558 [$(subdir) = misc] (tst-syscall-list-nr.list)
30559 (tst-syscall-list-sys.list): Helper targets for new
30560 tst-syscall-list test.
30561 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30562 tst-syscall-list.sh.
30563 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30564 target. Do not include bits/syscall.d.
30565 [$(subdir) = misc] (generated): Do not update.
30566 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30567 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30568 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30569 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30570
30571 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30572
30573 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30574 (tst-cxa_atexit, tst-on_exit): Likewise.
30575 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30576 tst-cxa_atexit, and tst-on_exit.
30577 * stdlib/tst-atexit-common.c: New file.
30578 * stdlib/tst-atexit.c: New file.
30579 * stdlib/tst-at_quick_exit.c: New file.
30580 * stdlib/tst-cxa_atexit.c: New file.
30581 * stdlib/tst-on_exit.c: New file.
30582
30583 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30584
30585 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30586 * mach/stack_chk_fail_local.c: New file.
30587 * hurd/stack_chk_fail_local.c: New file.
30588 * mach/Machrules ($(interface-library)-routines): Add
30589 stack_chk_fail_local.
30590 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30591 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30592 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30593 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30594 * hurd/Makefile (CFLAGS-hurdstartup.o,
30595 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30596
30597 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30598
30599 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30600 (index_cpu_*, index_arch_*): Removed.
30601
30602 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30603
30604 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30605 Use uint64_t instead of unsigned long.
30606
30607 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30608
30609 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30610 [__HAVE_DISTINCT_FLOAT128].
30611
30612 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30613 of <bits/math-finite.h>.
30614 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30615 inclusion of <bits/math-finite.h>.
30616 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30617 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30618 __NO_LONG_DOUBLE_MATH].
30619 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30620 (__MATH_REDIRCALL_2): Likewise.
30621 (__MATH_REDIRCALL_INTERNAL): Likewise.
30622 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30623 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30624 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30625
30626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30627 Remove file.
30628 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30629 Likewise.
30630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30631 Likewise.
30632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30633 Likewise.
30634 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30635 Likewise.
30636 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30637 Likewise.
30638 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30639 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30640 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30641 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30642 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30643 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30644 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30645 w_sqrtf_compat-ppc32.
30646
30647 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30648
30649 * math/math.h [defined __cplusplus] (issignaling): In the long
30650 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30651 is not defined. Call __issignaling, otherwise.
30652
30653 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30654
30655 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30656 syscall definitions and replace __builtin_expect with __glibc_likely.
30657 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30658 syscall.
30659 (SYSCALL_CANCELLABLE): Removedefinition
30660 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30661 definition.
30662 (PSEUDO_END): Likewise.
30663 [IS_IN (libpthread)] (CENABLE): Likewise.
30664 [IS_IN (libpthread)] (CDISABLE): Likewise.
30665 [IS_IN (libc)] (CENABLE): Likewise.
30666 [IS_IN (libc)] (CENABLE): Likewise.
30667 [IS_IN (librt)] (CDISABLE): Likewise.
30668 [IS_IN (librt)] (CDISABLE): Likewise.
30669 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30670 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30671 definition.
30672 (PSEUDO_END): Likewise.
30673 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30674 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30675 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30676 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30677 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30678 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30679 (CENABLE): Likewise.
30680 (CDISABLE): Likewise.
30681 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30682 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30683 defintion.
30684 (PSEUDO_END): Likewise.
30685 [IS_IN (libpthread)] (CENABLE): Likewise.
30686 [IS_IN (libpthread)] (CDISABLE): Likewise.
30687 [IS_IN (libc)] (CENABLE): Likewise.
30688 [IS_IN (libc)] (CENABLE): Likewise.
30689 [IS_IN (librt)] (CDISABLE): Likewise.
30690 [IS_IN (librt)] (CDISABLE): Likewise.
30691 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30692 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30693 definition.
30694 (PSEUDO_END): Likewise.
30695 [IS_IN (libpthread)] (CENABLE): Likewise.
30696 [IS_IN (libpthread)] (CDISABLE): Likewise.
30697 [IS_IN (libc)] (CENABLE): Likewise.
30698 [IS_IN (libc)] (CENABLE): Likewise.
30699 [IS_IN (librt)] (CDISABLE): Likewise.
30700 [IS_IN (librt)] (CDISABLE): Likewise.
30701 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30702 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30703 definition.
30704 (PSEUDO_END): Likewise.
30705 [IS_IN (libpthread)] (CENABLE): Likewise.
30706 [IS_IN (libpthread)] (CDISABLE): Likewise.
30707 [IS_IN (libc)] (CENABLE): Likewise.
30708 [IS_IN (libc)] (CENABLE): Likewise.
30709 [IS_IN (librt)] (CDISABLE): Likewise.
30710 [IS_IN (librt)] (CDISABLE): Likewise.
30711 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30712 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30713 definition.
30714 (PSEUDO_END): Likewise.
30715 [IS_IN (libpthread)] (CENABLE): Likewise.
30716 [IS_IN (libpthread)] (CDISABLE): Likewise.
30717 [IS_IN (libc)] (CENABLE): Likewise.
30718 [IS_IN (libc)] (CENABLE): Likewise.
30719 [IS_IN (librt)] (CDISABLE): Likewise.
30720 [IS_IN (librt)] (CDISABLE): Likewise.
30721 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30722 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30723 definition.
30724 (PSEUDO_END): Likewise.
30725 [IS_IN (libpthread)] (CENABLE): Likewise.
30726 [IS_IN (libpthread)] (CDISABLE): Likewise.
30727 [IS_IN (libc)] (CENABLE): Likewise.
30728 [IS_IN (libc)] (CENABLE): Likewise.
30729 [IS_IN (librt)] (CDISABLE): Likewise.
30730 [IS_IN (librt)] (CDISABLE): Likewise.
30731 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30732 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30733 definition.
30734 (PSEUDO_END): Likewise.
30735 [IS_IN (libpthread)] (CENABLE): Likewise.
30736 [IS_IN (libpthread)] (CDISABLE): Likewise.
30737 [IS_IN (libc)] (CENABLE): Likewise.
30738 [IS_IN (libc)] (CENABLE): Likewise.
30739 [IS_IN (librt)] (CDISABLE): Likewise.
30740 [IS_IN (librt)] (CDISABLE): Likewise.
30741 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30742 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30743 Remove definition.
30744 (PSEUDO_END): Likewise.
30745 [IS_IN (libpthread)] (CENABLE): Likewise.
30746 [IS_IN (libpthread)] (CDISABLE): Likewise.
30747 [IS_IN (libc)] (CENABLE): Likewise.
30748 [IS_IN (libc)] (CENABLE): Likewise.
30749 [IS_IN (librt)] (CDISABLE): Likewise.
30750 [IS_IN (librt)] (CDISABLE): Likewise.
30751 (SINGLE_THREAD_P): Likewise.
30752 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30753 definition.
30754 (PSEUDO_END): Likewise.
30755 [IS_IN (libpthread)] (CENABLE): Likewise.
30756 [IS_IN (libpthread)] (CDISABLE): Likewise.
30757 [IS_IN (libc)] (CENABLE): Likewise.
30758 [IS_IN (libc)] (CENABLE): Likewise.
30759 [IS_IN (librt)] (CDISABLE): Likewise.
30760 [IS_IN (librt)] (CDISABLE): Likewise.
30761 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30762 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30763 definition.
30764 (PSEUDO_END): Likewise.
30765 [IS_IN (libpthread)] (CENABLE): Likewise.
30766 [IS_IN (libpthread)] (CDISABLE): Likewise.
30767 [IS_IN (libc)] (CENABLE): Likewise.
30768 [IS_IN (libc)] (CENABLE): Likewise.
30769 [IS_IN (librt)] (CDISABLE): Likewise.
30770 [IS_IN (librt)] (CDISABLE): Likewise.
30771 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30772 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30773 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30774 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30775 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30776 definition.
30777 (PSEUDO_END): Likewise.
30778 [IS_IN (libpthread)] (CENABLE): Likewise.
30779 [IS_IN (libpthread)] (CDISABLE): Likewise.
30780 [IS_IN (libc)] (CENABLE): Likewise.
30781 [IS_IN (libc)] (CENABLE): Likewise.
30782 [IS_IN (librt)] (CDISABLE): Likewise.
30783 [IS_IN (librt)] (CDISABLE): Likewise.
30784 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30785 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30786 definition.
30787 (PSEUDO_END): Likewise.
30788 [IS_IN (libpthread)] (CENABLE): Likewise.
30789 [IS_IN (libpthread)] (CDISABLE): Likewise.
30790 [IS_IN (libc)] (CENABLE): Likewise.
30791 [IS_IN (libc)] (CENABLE): Likewise.
30792 [IS_IN (librt)] (CDISABLE): Likewise.
30793 [IS_IN (librt)] (CDISABLE): Likewise.
30794 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30795 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30796 definition.
30797 (PSEUDO_END): Likewise.
30798 [IS_IN (libpthread)] (CENABLE): Likewise.
30799 [IS_IN (libpthread)] (CDISABLE): Likewise.
30800 [IS_IN (libc)] (CENABLE): Likewise.
30801 [IS_IN (libc)] (CENABLE): Likewise.
30802 [IS_IN (librt)] (CDISABLE): Likewise.
30803 [IS_IN (librt)] (CDISABLE): Likewise.
30804 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30805 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30806 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30807 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30808 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30809 definition.
30810 (PSEUDO_END): Likewise.
30811 [IS_IN (libpthread)] (CENABLE): Likewise.
30812 [IS_IN (libpthread)] (CDISABLE): Likewise.
30813 [IS_IN (libc)] (CENABLE): Likewise.
30814 [IS_IN (libc)] (CENABLE): Likewise.
30815 [IS_IN (librt)] (CDISABLE): Likewise.
30816 [IS_IN (librt)] (CDISABLE): Likewise.
30817 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30818 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30819 definition.
30820 (PSEUDO_END): Likewise.
30821 [IS_IN (libpthread)] (CENABLE): Likewise.
30822 [IS_IN (libpthread)] (CDISABLE): Likewise.
30823 [IS_IN (libc)] (CENABLE): Likewise.
30824 [IS_IN (libc)] (CENABLE): Likewise.
30825 [IS_IN (librt)] (CDISABLE): Likewise.
30826 [IS_IN (librt)] (CDISABLE): Likewise.
30827 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30828
30829 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30830
30831 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30832
30833 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30834
30835 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30836
30837 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30838
30839 [BZ #21982]
30840 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30841 middle and outer with size_t instead of int. Repleace %d and
30842 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30843 "MAX (outer, nchars - 64)" to support unsigned outer and
30844 nchars. Also exit loop when outer == 0.
30845
30846 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30847
30848 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30849 * include/signal.h (__sigsuspend_nocancel): Likewise.
30850 * include/time.h (__nanosleep_nocancel): Likewise.
30851 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30852 * login/utmp_file.c: Include non cancellable syscall header.
30853 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30854 prototype.
30855
30856 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30857
30858 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30859 .byte sequences with AVX512F instructions.
30860 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30861 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30862 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30863 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30864 Likewise.
30865 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30866 Likewise.
30867
30868 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30869 Steve Ellcey <sellcey@cavium.com>
30870
30871 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30872 Use PTR_REG macro in cmp instruction.
30873
30874 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30875
30876 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30877 Change the return type of the ifunc resolver to match the return
30878 type of the target function.
30879
30880 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30881
30882 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30883 (preadv64): Likewise.
30884 (pwrite64(: Likewise.
30885 (pwritev64): Likewise.
30886
30887 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30888 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30889 (LOAD_ARGS_0): Likewise.
30890 (LOAD_ARGS_1): Likewise.
30891 (LOAD_ARGS_2): Likewise.
30892 (LOAD_ARGS_3): Likewise.
30893 (LOAD_ARGS_4): Likewise.
30894 (LOAD_ARGS_5): Likewise.
30895 (LOAD_ARGS_6): Likewise.
30896 (LOAD_REGS_0): Likewise.
30897 (LOAD_REGS_1): Likewise.
30898 (LOAD_REGS_2): Likewise.
30899 (LOAD_REGS_3): Likewise.
30900 (LOAD_REGS_4): Likewise.
30901 (LOAD_REGS_5): Likewise.
30902 (LOAD_REGS_6): Likewise.
30903 (ASM_ARGS_0): Likewise.
30904 (ASM_ARGS_1): Likewise.
30905 (ASM_ARGS_2): Likewise.
30906 (ASM_ARGS_3): Likewise.
30907 (ASM_ARGS_4): Likewise.
30908 (ASM_ARGS_5): Likewise.
30909 (ASM_ARGS_6): Likewise.
30910 (LOAD_ARGS_TYPES_1): Likewise.
30911 (LOAD_ARGS_TYPES_2): Likewise.
30912 (LOAD_ARGS_TYPES_3): Likewise.
30913 (LOAD_ARGS_TYPES_4): Likewise.
30914 (LOAD_ARGS_TYPES_5): Likewise.
30915 (LOAD_ARGS_TYPES_6): Likewise.
30916 (LOAD_REGS_TYPES_1): Likewise.
30917 (LOAD_REGS_TYPES_2): Likewise.
30918 (LOAD_REGS_TYPES_3): Likewise.
30919 (LOAD_REGS_TYPES_4): Likewise.
30920 (LOAD_REGS_TYPES_5): Likewise.
30921 (LOAD_REGS_TYPES_6): Likewise.
30922 (TYPEFY): New define.
30923 (ARGIFY): Likewise.
30924 (internal_syscall0): Likewise.
30925 (internal_syscall1): Likewise.
30926 (internal_syscall2): Likewise.
30927 (internal_syscall3): Likewise.
30928 (internal_syscall4): Likewise.
30929 (internal_syscall5): Likewise.
30930 (internal_syscall6): Likewise.
30931 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30932 (INTERNAL_SYSCALL_NCS): Remove define.
30933 (internal_syscall1): Add define.
30934
30935 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30936
30937 * math/w_remainder_compat.c: Remove duplicate inclusion of
30938 math-svid-compat.h.
30939 * math/w_remainderf_compat.c: Likewise.
30940 * math/w_remainderl_compat.c: Likewise.
30941
30942 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30943
30944 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30945
30946 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30947
30948 [BZ #21684]
30949 * math/tgmath.h (__floating_type): Simplify definitions.
30950 (__real_integer_type): New macro.
30951 (__complex_integer_type): Likewise.
30952 (__expr_is_real): Likewise.
30953 (__tgmath_real_type_sub): Update comment to describe handling of
30954 complex types.
30955 (__tgmath_complex_type_sub): New macro.
30956 (__tgmath_complex_type): Likewise.
30957 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30958 (__TGMATH_CF128): Use __expr_is_real.
30959 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30960 __expr_is_real.
30961 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30962 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30963 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30964 integer types.
30965
30966 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30967
30968 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30969 macro.
30970 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30971 alias.
30972 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30973 Likewise.
30974
30975 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30976 nanosleep_not_cancel with __nanosleep_nocancel.
30977 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30978 (__nanosleep_nocancel): New macro.
30979 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30980 function.
30981 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30982 macro.
30983 (__nanosleep_nocancel): New prototype.
30984
30985 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30986 pause_not_cancel with __pause_nocancel.
30987 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30988 (__pause_nocancel): New macro.
30989 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30990 macro.
30991 (__pause_nocancel): New prototype.
30992 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30993
30994 2017-08-22 Martin Sebor <msebor@redhat.com>
30995
30996 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30997 to return a pointer to the same type as the target function.
30998
30999 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31000
31001 [BZ #18822]
31002 [BZ #21986]
31003 * include/printf.h (__printf_fphex): Add attribute_hidden.
31004 (__guess_grouping): New prototype.
31005 * stdio-common/printf_fp.c (__guess_grouping): Removed.
31006 * stdio-common/reg-printf.c (__register_printf_specifier): Add
31007 libc_hidden_proto and libc_hidden_def.
31008 * stdlib/strfmon_l.c (__guess_grouping): Removed.
31009 (__vstrfmon_l): Remove the third argument passed to
31010 __guess_grouping.
31011
31012 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31013
31014 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31015 definition for issignaling that does not rely on __MATH_TG,
31016 since __MATH_TG uses __builtin_types_compatible_p, which is only
31017 available in C mode.
31018 (CFLAGS-test-math-issignaling.cc): New variable.
31019 * math/Makefile [CXX] (tests): Add test-math-issignaling.
31020 * math/test-math-issignaling.cc: New test for C++ implementation
31021 of type-generic issignaling.
31022 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31023 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31024 options of test-math-issignaling on powerpc64le.
31025
31026 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31027
31028 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31029 building libc.a.
31030 (hidden_proto): Likewise.
31031 (hidden_tls_proto): Likewise.
31032 (__hidden_proto): Likewise.
31033
31034 2017-08-22 Florian Weimer <fweimer@redhat.com>
31035
31036 math: Statically link tests of internal functionality.
31037 * math/Makefile (tests): Remove atest-exp, atest-sincos,
31038 atest-exp2.
31039 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31040 (gmp-objs): Remove assignment.
31041 (atest-exp, atest-sincos, atest-exp2): Remove targets.
31042
31043 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31044
31045 [BZ #21987]
31046 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31047 and copy to ...
31048 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31049 ... here.
31050 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31051 ... and here.
31052
31053 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31054 variable definitions above inclusion of ../Rules.
31055
31056 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31057
31058 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31059 case calling __builtin_unreachable.
31060
31061 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31062
31063 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31064 __waitpid_nocancel.
31065 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31066 (__waitpid_nocancel): New macro.
31067 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31068 macro.
31069 (__waitpid_nocancel): Replace macro with a function.
31070 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31071 function.
31072
31073 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31074 __fcntl_nocancel.
31075 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31076 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31077
31078 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31079 __writev_nocancel_nostatus.
31080 (write_call_graph): Likewise.
31081 (write_bb_counts): Likewise.
31082 * resolv/herror.c (herror): Likewise.
31083 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31084 macro.
31085 (__writev_nocancel_nostatus): New macro.
31086 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31087 Remove macro.
31088 (__writev_nocancel_nostatus): New function.
31089
31090 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31091
31092 Revert:
31093 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31094
31095 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31096 building libc.a.
31097 (hidden_proto): Likewise.
31098 (hidden_tls_proto): Likewise.
31099 (__hidden_proto): Likewise.
31100
31101 [BZ #21973]
31102 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31103 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31104 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31105 Likewise.
31106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31107 Likewise.
31108 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31109 Likewise.
31110 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31111 Likewise.
31112 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31113 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31114 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31115 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31116 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31117 GLIBC_2.0 sqrtl symbol.
31118
31119 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31120 [__USE_MISC] (_LIB_VERSION): Likewise.
31121 [__USE_MISC] (struct exception): Likewise.
31122 [__USE_MISC] (matherr): Likewise.
31123 [__USE_MISC] (DOMAIN): Likewise.
31124 [__USE_MISC] (SING): Likewise.
31125 [__USE_MISC] (OVERFLOW): Likewise.
31126 [__USE_MISC] (UNDERFLOW): Likewise.
31127 [__USE_MISC] (TLOSS): Likewise.
31128 [__USE_MISC] (PLOSS): Likewise.
31129 [__USE_MISC] (HUGE): Likewise.
31130 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31131 * math/math-svid-compat.h: New file.
31132 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31133 and matherrl.
31134 * include/math.h [!_ISOMAC] (__matherr): Remove.
31135 * manual/arith.texi (FP Exceptions): Do not document matherr.
31136 * math/Makefile (tests): Change test-matherr to test-matherr-3.
31137 (tests-internal): New variable.
31138 (install-lib): Do not add libieee.a.
31139 (non-lib.a): Likewise.
31140 (extra-objs): Do not add libieee.a and ieee-math.o.
31141 (CPPFLAGS-s_lib_version.c): Remove variable.
31142 ($(objpfx)libieee.a): Remove rule.
31143 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31144 * math/ieee-math.c: Remove.
31145 * math/libm-test-support.c (matherr): Remove.
31146 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31147 and license notices. Include <math-svid-compat.h> and
31148 <shlib-compat.h>.
31149 (matherr): Undefine as macro. Use compat_symbol_reference.
31150 (_LIB_VERSION): Likewise.
31151 * math/test-matherr-2.c: New file.
31152 * math/test-matherr-3.c: Likewise.
31153 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31154 declaration.
31155 (__kernel_standard_f): Likewise.
31156 (__kernel_standard_l): Likewise.
31157 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31158 <math_private.h>. Include <math-svid-compat.h>.
31159 (_LIB_VERSION): Undefine as macro.
31160 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31161 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31162 [LIBM_SVID_COMPAT], use compat_symbol.
31163 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31164 <math_private.h>. Include <math-svid-compat.h>.
31165 (matherr): Undefine as macro.
31166 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31167 compat_symbol.
31168 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31169 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31170 compat_symbol_reference.
31171 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31172 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31173 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31174 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31175 (MATHERR_D): Remove declaration.
31176 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31177 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31178 [LIBM_BUILD] (pmatherrf): Likewise.
31179 [LIBM_BUILD] (pmatherr): Likewise.
31180 [LIBM_BUILD] (pmatherrl): Likewise.
31181 (DOMAIN): Likewise.
31182 (SING): Likewise.
31183 (OVERFLOW): Likewise.
31184 (UNDERFLOW): Likewise.
31185 (TLOSS): Likewise.
31186 (PLOSS): Likewise.
31187 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31188 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31189 compat_symbol.
31190 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31191 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31192 compat_symbol.
31193 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31194 * math/w_acos_compat.c: Likewise.
31195 * math/w_acosf_compat.c: Likewise.
31196 * math/w_acosh_compat.c: Likewise.
31197 * math/w_acoshf_compat.c: Likewise.
31198 * math/w_acoshl_compat.c: Likewise.
31199 * math/w_acosl_compat.c: Likewise.
31200 * math/w_asin_compat.c: Likewise.
31201 * math/w_asinf_compat.c: Likewise.
31202 * math/w_asinl_compat.c: Likewise.
31203 * math/w_atan2_compat.c: Likewise.
31204 * math/w_atan2f_compat.c: Likewise.
31205 * math/w_atan2l_compat.c: Likewise.
31206 * math/w_atanh_compat.c: Likewise.
31207 * math/w_atanhf_compat.c: Likewise.
31208 * math/w_atanhl_compat.c: Likewise.
31209 * math/w_cosh_compat.c: Likewise.
31210 * math/w_coshf_compat.c: Likewise.
31211 * math/w_coshl_compat.c: Likewise.
31212 * math/w_exp10_compat.c: Likewise.
31213 * math/w_exp10f_compat.c: Likewise.
31214 * math/w_exp10l_compat.c: Likewise.
31215 * math/w_exp2_compat.c: Likewise.
31216 * math/w_exp2f_compat.c: Likewise.
31217 * math/w_exp2l_compat.c: Likewise.
31218 * math/w_fmod_compat.c: Likewise.
31219 * math/w_fmodf_compat.c: Likewise.
31220 * math/w_fmodl_compat.c: Likewise.
31221 * math/w_hypot_compat.c: Likewise.
31222 * math/w_hypotf_compat.c: Likewise.
31223 * math/w_hypotl_compat.c: Likewise.
31224 * math/w_j0_compat.c: Likewise.
31225 * math/w_j0f_compat.c: Likewise.
31226 * math/w_j0l_compat.c: Likewise.
31227 * math/w_j1_compat.c: Likewise.
31228 * math/w_j1f_compat.c: Likewise.
31229 * math/w_j1l_compat.c: Likewise.
31230 * math/w_jn_compat.c: Likewise.
31231 * math/w_jnf_compat.c: Likewise.
31232 * math/w_jnl_compat.c: Likewise.
31233 * math/w_lgamma_main.c: Likewise.
31234 * math/w_lgamma_r_compat.c: Likewise.
31235 * math/w_lgammaf_main.c: Likewise.
31236 * math/w_lgammaf_r_compat.c: Likewise.
31237 * math/w_lgammal_main.c: Likewise.
31238 * math/w_lgammal_r_compat.c: Likewise.
31239 * math/w_log10_compat.c: Likewise.
31240 * math/w_log10f_compat.c: Likewise.
31241 * math/w_log10l_compat.c: Likewise.
31242 * math/w_log2_compat.c: Likewise.
31243 * math/w_log2f_compat.c: Likewise.
31244 * math/w_log2l_compat.c: Likewise.
31245 * math/w_log_compat.c: Likewise.
31246 * math/w_logf_compat.c: Likewise.
31247 * math/w_logl_compat.c: Likewise.
31248 * math/w_pow_compat.c: Likewise.
31249 * math/w_powf_compat.c: Likewise.
31250 * math/w_powl_compat.c: Likewise.
31251 * math/w_remainder_compat.c: Likewise.
31252 * math/w_remainderf_compat.c: Likewise.
31253 * math/w_remainderl_compat.c: Likewise.
31254 * math/w_scalb_compat.c: Likewise.
31255 * math/w_scalbf_compat.c: Likewise.
31256 * math/w_scalbl_compat.c: Likewise.
31257 * math/w_sinh_compat.c: Likewise.
31258 * math/w_sinhf_compat.c: Likewise.
31259 * math/w_sinhl_compat.c: Likewise.
31260 * math/w_sqrt_compat.c: Likewise.
31261 * math/w_sqrtf_compat.c: Likewise.
31262 * math/w_sqrtl_compat.c: Likewise.
31263 * math/w_tgamma_compat.c: Likewise.
31264 * math/w_tgammaf_compat.c: Likewise.
31265 * math/w_tgammal_compat.c: Likewise.
31266 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31267 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31268 * sysdeps/ieee754/k_standard.c: Likewise.
31269 * sysdeps/ieee754/k_standardf.c: Likewise.
31270 * sysdeps/ieee754/k_standardl.c: Likewise.
31271 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31272 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31273 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31274 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31275 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31276 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31277 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31278 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31279 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31280 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31281 Likewise.
31282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31283 Likewise.
31284 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31285 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31286 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31287 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31288
31289 2017-08-21 Florian Weimer <fweimer@redhat.com>
31290
31291 [BZ #21864]
31292 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31293 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31294 Move before inclusion of ../Rules.
31295
31296 2017-08-21 Florian Weimer <fweimer@redhat.com>
31297
31298 [BZ #21972]
31299 * assert/assert.h (assert): Use static_cast (bool) for C++.
31300 Use the ternary operator in the warning branch for GNU C.
31301 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31302 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31303 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31304 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31305 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31306
31307 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31308
31309 [BZ #18822]
31310 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31311 (__syscall_clock_gettime): Add attribute_hidden.
31312 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31313 (__start_context): Likewise.
31314
31315 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31316
31317 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31318 building libc.a.
31319 (hidden_proto): Likewise.
31320 (hidden_tls_proto): Likewise.
31321 (__hidden_proto): Likewise.
31322
31323 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31324
31325 * include/libc-symbols.h (attribute_hidden): Enable hidden
31326 visibility in libc.a compiled with PIE.
31327
31328 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31329
31330 [BZ #18822]
31331 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31332 Add attribute_hidden.
31333
31334 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31335
31336 [BZ #21864]
31337 * Makerules (all-nonlib): Add $(others-extras).
31338 * catgets/Makefile (others-extras): New.
31339 * elf/Makefile (others-extras): Likewise.
31340 * nss/Makefile (others-extras): Likewise.
31341
31342 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31343
31344 [BZ #18822]
31345 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31346 * elf/dl-open.c: Include <libc-internal.h>.
31347 (__libc_multiple_libcs): Removed.
31348 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31349 <hp-timing.h>.
31350 * include/libc-internal.h (__libc_multiple_libcs): New.
31351 * misc/sbrk.c: Include <libc-internal.h>.
31352 (__libc_multiple_libcs): Removed.
31353
31354 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31355
31356 [BZ #18822]
31357 * grp/initgroups.c (__nss_group_database): Removed.
31358 (__nss_initgroups_database): Likewise.
31359 * nscd/gai.c (__nss_hosts_database): Likewise.
31360 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31361 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31362 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31363 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31364 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31365 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31366 attribute_hidden.
31367 * nss/nsswitch.c (__nss_database_custom): Define only if
31368 USE_NSCD is defined.
31369 (__nss_configure_lookup): Use __nss_database_custom only if
31370 USE_NSCD is defined.
31371 * nss/nsswitch.h (__nss_database_custom): Declare only if
31372 USE_NSCD is defined. Add attribute_hidden.
31373 (__nss_setent): Add attribute_hidden.
31374 (__nss_endent): Likewise.
31375 (__nss_getent_r): Likewise.
31376 (__nss_getent): Likewise.
31377 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31378
31379 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31380
31381 [BZ #18822]
31382 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31383 libc_hidden_proto and libc_hidden_def.
31384
31385 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31386
31387 [BZ #18822]
31388 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31389 Add libc_hidden_proto.
31390 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31391 Add libc_hidden_def.
31392
31393 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31394
31395 [BZ #21974]
31396 * gmon/Makefile (routines): Remove bb_init_func and
31397 bb_exit_func.
31398 (elide-routines.os): Removed.
31399 * gmon/bb_exit_func.c: Likewise.
31400 * gmon/bb_init_func.c: Likewise.
31401 * include/sys/gmon.h (__bb): Likewise.
31402 (__bb_init_func): Likewise.
31403 (__bb_exit_func): Likewise.
31404 * sysdeps/alpha/bb_init_func.S: Likewise.
31405
31406 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31407
31408 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31409 * include/setjmp.h (____longjmp_chk): Here. Add
31410 attribute_hidden.
31411
31412 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31413
31414 [BZ #18822]
31415 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31416 attribute_hidden.
31417 (__strspn_sse2): Likewise.
31418
31419 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31420
31421 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31422 (close_not_cancel_no_status): Likewise.
31423 (__close_nocancel): New macro.
31424 (__close_nocancel_nostatus): Likewise.
31425 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31426 macro.
31427 (close_not_cancel): Likewise.
31428 (close_not_cancel_no_status): Likewise.
31429 (__close_nocancel): New prototype.
31430 (__close_nocancel_nostatus): New function.
31431 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31432 * catgets/open_catalog.c (__open_catalog): Replace
31433 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31434 * gmon/gmon.c (write_gmon): Likewise.
31435 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31436 * intl/loadmsgcat.c (close): Likewise.
31437 * io/ftw.c (open_dir_stream): Likewise.
31438 (ftw_startup): Likewise.
31439 * libio/fileops.c (_IO_file_open): Likewise.
31440 (_IO_file_close_mmap): Likewise.
31441 (_IO_file_close): Likewise.
31442 * libio/iopopen.c (_IO_dup2): Likewise.
31443 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31444 * locale/loadlocale.c (_nl_load_locale): Likewise.
31445 * login/utmp_file.c (pututline_file): Likewise.
31446 (endutent_file): Likewise.
31447 * misc/daemon.c (daemon): Likewise.
31448 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31449 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31450 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31451 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31452 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31453 * nscd/nscd_helper.c (open_socket): Likewise.
31454 (__nscd_open_socket): Likewise.
31455 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31456 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31457 (__nscd_innetgr): Likewise.
31458 * nss/nss_db/db-open.c (internal_setent): Likewise.
31459 * resolv/res-close.c (__res_iclose): Likewise.
31460 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31461 * sysdeps/posix/closedir.c (__closedir): Likewise.
31462 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31463 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31464 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31465 (opendir_tail): Likewise.
31466 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31467 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31468 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31469 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31470 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31471 (gethostid): Likewise.
31472 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31473 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31474 Likewise.
31475 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31476 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31477 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31478 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31479 Likewise.
31480 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31481 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31482 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31483 Likewise.
31484 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31485 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31486 Likewise.
31487 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31488 Likewise.
31489 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31490 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31491 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31492 __close_nocancel.
31493
31494 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31495 (openat_not_cancel_3): Likewise.
31496 (openat64_not_cancel_3): Likewise).
31497 (openat_not_cancel_3): Likewise).
31498 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31499 macro.
31500 (openat_not_cancel_3): Likewise.
31501 (openat64_not_cancel): Likewise.
31502 (openat64_not_cancel_3): Likewise.
31503 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31504 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31505 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31506 __open{64}_nocancel.
31507 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31508 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31509 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31510
31511 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31512
31513 [BZ #18822]
31514 * include/argz.h (__argz_create_sep): New function prototype.
31515 (__argz_append): Likewise.
31516 (__argz_add): Likewise.
31517 (__argz_add_sep): Likewise.
31518 (__argz_delete): Likewise.
31519 (__argz_insert): Likewise.
31520 (__argz_replace): Likewise.
31521 * string/argz.h (__argz_create_sep): Removed.
31522 (__argz_append): Likewise.
31523 (__argz_add): Likewise.
31524 (__argz_add_sep): Likewise.
31525 (__argz_delete): Likewise.
31526 (__argz_insert): Likewise.
31527 (__argz_replace): Likewise.
31528
31529 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31530
31531 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31532 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31533 (GNU_PROPERTY_STACK_SIZE): Likewie.
31534 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31535 (GNU_PROPERTY_LOPROC): Likewise.
31536 (GNU_PROPERTY_HIPROC): Likewise.
31537 (GNU_PROPERTY_LOUSER): Likewise.
31538 (GNU_PROPERTY_HIUSER): Likewise.
31539 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31540 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31541 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31542 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31543 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31544 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31545 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31546 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31547 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31548 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31549 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31550 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31551 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31552 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31553 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31554 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31555 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31556 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31557 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31558 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31559 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31560 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31561 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31562
31563 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31564
31565 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31566 in C++ mode.
31567
31568 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31569
31570 [BZ #21930]
31571 * math/math.h (isinf): Check if in C or C++ mode before using
31572 __builtin_types_compatible_p, since this is a C mode feature.
31573
31574 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31575
31576 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31577 (__write_nocancel): New macro.
31578 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31579 Rewrite as a function prototype.
31580 (write_not_cancel): Remove macro.
31581 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31582 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31583 (write_gmon): Likewise.
31584 * libio/fileops.c (_IO_new_file_write): Likewise.
31585 * login/utmp_file.c (pututline_file): Likewise.
31586 (updwtmp_file): Likewise.
31587 * stdio-common/psiginfo.c (psiginfo): Likewise.
31588 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31589 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31590 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31591 Likewise.
31592 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31593 Likewise.
31594
31595 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31596 (__read_nocancel): New macro.
31597 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31598 __read_nocancel.
31599 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31600 macro.
31601 (__read_nocancel): New prototype.
31602 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31603 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31604 with __read_nocancel.
31605 * intl/loadmsgcat.c (read): Likewise.
31606 * libio/fileops.c (_IO_file_read): Likewise.
31607 * locale/loadlocale.c (_nl_load_locale): Likewise.
31608 * login/utmp_file.c (getutent_r_file): Likewise.
31609 (internal_getut_r): Likewise.
31610 (getutline_r_file): Likewise.
31611 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31612 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31613 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31614 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31615 Likewise.
31616 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31617 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31618 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31619 Likewise.
31620 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31621 Likewise.
31622 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31623 Likewise.
31624 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31625 Likewise.
31626 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31627
31628 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31629
31630 [BZ #21966]
31631 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31632 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31633 usable.
31634
31635 2017-08-17 DJ Delorie <dj@redhat.com>
31636
31637 * bug17079.c: Update to new test harness.
31638 * test-digits-dots.c: Likewise.
31639 * test-netdb.c: Likewise.
31640 * tst-field.c: Likewise.
31641 * tst-nss-getpwent.c: Likewise.
31642 * tst-nss-static.c: Likewise.
31643 * tst-nss-test1.c: Likewise.
31644 * tst-nss-test2.c: Likewise.
31645 * tst-nss-test3.c: Likewise.
31646 * tst-nss-test4.c: Likewise.
31647 * tst-nss-test5.c: Likewise.
31648
31649 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31650
31651 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31652 (open_not_cancel_2): Likewise.
31653 (open_nocancel): New macro.
31654 (open64_nocancel): Likewise.
31655 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31656 (open_not_cancel_2): Likewise.
31657 (__open_nocancel): New prototype.
31658 (__open64_nocancel): Likewise.
31659 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31660 __open_nocancel.
31661 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31662 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31663 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31664 with __open_nocancel.
31665 * csu/check_fds.c (check_one_fd): Likewise.
31666 * gmon/gmon.c (write_gmon): Likewise.
31667 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31668 * intl/loadmsgcat.c (open): Likewise.
31669 * libio/fileops.c (_IO_file_open): Likewise.
31670 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31671 * locale/loadlocale.c (_nl_load_locale): Likewise.
31672 * login/utmp_file.c (setutent_file): Likewise.
31673 * misc/daemon.c (daemon): Likewise.
31674 * nss/nss_db/db-open.c (internal_setent): Likewise.
31675 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31676 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31677 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31678 (__opendir): Likewise.
31679 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31680 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31681 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31682 (gethostid): Likewise.
31683 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31684 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31685 Likewise.
31686 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31687 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31688 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31689 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31690 Likewise.
31691 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31692 Likewise.
31693 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31694 Likewise.
31695 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31696 Likewise.
31697 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31698 Likewise.
31699 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31700 Likewise.
31701 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31702 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31703
31704 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31705
31706 * benchtests/bench-skeleton.c (main): Add support for
31707 latency benchmarking.
31708 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31709
31710 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31711
31712 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31713 the startup object.
31714
31715 2017-08-17 Florian Weimer <fweimer@redhat.com>
31716
31717 * include/sys/socket.h (__opensock): Remove internal_function.
31718 * socket/opensock.c (__opensock): Likewise.
31719 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31720
31721 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31722
31723 [BZ #21944]
31724 * signal/bits/types/__sigval_t.h: New file.
31725 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31726 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31727 and define sigval_t using __sigval_t.
31728 * include/bits/types/__sigval_t.h: New file.
31729 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31730 instead of <bits/types/__sigval_t.h>.
31731 (struct sigevent): Use __sigval_t instead of sigval_t.
31732 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31733 instead of <bits/types/__sigval_t.h>.
31734 (siginfo_t): Use __sigval_t instead of sigval_t.
31735 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31736 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31737 (struct sigevent): Use __sigval_t instead of sigval_t.
31738 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31739 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31740 (siginfo_t): Use __sigval_t instead of sigval_t.
31741 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31742
31743 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31744
31745 * NEWS: Remove "[Add new features here]" for 2.27.
31746
31747 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31748
31749 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31750 libc.so.
31751
31752 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31753
31754 * NEWS: Mention x86-64 FMA optimization.
31755
31756 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31757
31758 [BZ #21912]
31759 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31760 Add e_expf-fma.
31761 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31762 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31763 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31764
31765 2017-08-16 Andreas Schwab <schwab@suse.de>
31766
31767 [BZ #16750]
31768 CVE-2009-5064
31769 * elf/ldd.bash.in: Never run file directly.
31770
31771 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31772
31773 [BZ #21955]
31774 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31775 (L(SP_INF_0)): Likewise.
31776
31777 2017-08-15 Florian Weimer <fweimer@redhat.com>
31778
31779 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31780 run-built-tests.
31781
31782 2017-08-15 Florian Weimer <fweimer@redhat.com>
31783
31784 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31785 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31786 BROKEN_THREAD_SIGNALS code.
31787 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31788 request_list): Remove caller_pid member used for
31789 BROKEN_THREAD_SIGNALS.
31790 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31791 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31792 Remove BROKEN_THREAD_SIGNALS support.
31793 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31794 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31795
31796 2017-08-15 Florian Weimer <fweimer@redhat.com>
31797
31798 * gmon/Makefile (tests): Add tst-gmon.
31799 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31800 Set.
31801 (tests-special): Add tst-gmon-prof.out.
31802 (tst-gmon.out): Depend on clean-tst-gmon-data.
31803 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31804 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31805 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31806 startup object.
31807 * aclocal.m4 (GPROF): Set and substitute.
31808 * config.amke.in (GPROF): Set.
31809 * configure: Regenerate.
31810
31811 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31812
31813 * elf/elf.h A (NT_PPC_TAR): New macro.
31814 (NT_PPC_PPR): Likewise.
31815 (NT_PPC_DSCR): Likewise.
31816 (NT_PPC_EBB): Likewise.
31817 (NT_PPC_PMU): Likewise.
31818 (NT_PPC_TM_CGPR): Likewise.
31819 (NT_PPC_TM_CFPR): Likewise.
31820 (NT_PPC_TM_CVMX): Likewise.
31821 (NT_PPC_TM_CVSX): Likewise.
31822 (NT_PPC_TM_SPR): Likewise.
31823 (NT_PPC_TM_CTAR): Likewise.
31824 (NT_PPC_TM_CPPR): Likewise.
31825 (NT_PPC_TM_CDSCR): Likewise.
31826
31827 2017-08-15 Florian Weimer <fweimer@redhat.com>
31828
31829 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31830 regparm (2) instead of internal_function.
31831 (_MCOUNT_DECL): Adjust.
31832
31833 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31834
31835 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31836 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31837
31838 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31839
31840 * conform/data/sys/wait.h-data (si_value): Do not expect for
31841 XPG42.
31842
31843 2017-08-14 Florian Weimer <fweimer@redhat.com>
31844
31845 [BZ #21962]
31846 NSS: Create stubs for accidentally exported lookup functions.
31847 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31848 Remove declaration.
31849 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31850 (ether_hostton): Call __nss_ethers_lookup2 instead.
31851 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31852 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31853 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31854 (setup): Call __nss_netgroup_lookup2 instead.
31855 * nss/Makefile (routines): Add compat-lookup.
31856 * nss/Versions (GLIBC_2.27): Add symbol version.
31857 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31858 (DB_COMPAT_FCT): Remove.
31859 * nss/compat-lookup.c: New file.
31860 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31861 from databases.def.
31862 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31863 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31864 (netname2user): Call __nss_publickey_lookup2 instead.
31865 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31866 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31867 instead.
31868
31869 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31870 Sergei Trofimovich <slyfox@inbox.ru>
31871
31872 [BZ #21908]
31873 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31874 Rename to MMAP2_PAGE_UNIT.
31875 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31876 __OFF_T_MATCHES_OFF64_T is not defined.
31877 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31878 uint64_t.
31879 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31880 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31881
31882 2017-08-14 Florian Weimer <fweimer@redhat.com>
31883
31884 i386: Do not set internal_function.
31885 * config.h.in (USE_REGPARMS, internal_function): Remove.
31886 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31887 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31888
31889 2017-08-14 Florian Weimer <fweimer@redhat.com>
31890
31891 * elf/dl-init.c (_dl_init): Remove internal_function.
31892 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31893 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31894
31895 2017-08-14 Florian Weimer <fweimer@redhat.com>
31896
31897 * elf/rtld.c (_dl_start): Remove internal_function.
31898 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31899 _dl_start.
31900
31901 2017-08-14 Florian Weimer <fweimer@redhat.com>
31902
31903 * elf/dl-fini.c (_dl_fini): Remove internal_function
31904 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31905
31906 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31907
31908 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31909 (bit_cpu_SHSTK): Likewise.
31910 (index_cpu_IBT): Likewise.
31911 (index_cpu_SHSTK): Likewise.
31912 (reg_IBT): Likewise.
31913 (reg_SHSTK): Likewise.
31914 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31915 Handle index_cpu_IBT and index_cpu_SHSTK.
31916
31917 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31918
31919 [BZ #19982]
31920 * po/fr.po: Fix spelling mistake.
31921
31922 2017-08-13 Florian Weimer <fweimer@redhat.com>
31923
31924 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31925 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31926 (_dl_catch_error, _dl_receive_error): Likewise.
31927 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31928 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31929 (_dl_deallocate_tls): Likewise.
31930 * include/dlfcn.h (_dl_addr): Likewise.
31931 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31932 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31933 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31934 Likewise.
31935
31936 2017-08-13 Florian Weimer <fweimer@redhat.com>
31937
31938 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31939 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31940 internal_function.
31941 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31942
31943 2017-08-13 Florian Weimer <fweimer@redhat.com>
31944
31945 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31946 internal_function.
31947 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31948 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31949 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31950 internal_function from _dl_make_stack_executable_hook member.
31951 (_dl_make_stack_executable): Remove internal_function.
31952 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31953 Likewise.
31954 * sysdeps/unix/sysv/linux/dl-execstack.c
31955 (_dl_make_stack_executable): Likewise.
31956
31957 2017-08-13 Florian Weimer <fweimer@redhat.com>
31958
31959 * sysdeps/unix/sysv/linux/netlinkaccess.h
31960 (__netlink_assert_response): Remove internal_function.
31961 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31962 (__netlink_assert_response): Likewise.
31963
31964 2017-08-13 Florian Weimer <fweimer@redhat.com>
31965
31966 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31967 internal_function.
31968 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31969
31970 2017-08-13 Florian Weimer <fweimer@redhat.com>
31971
31972 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31973 internal_function.
31974 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31975 * inet/netgroup.h (__internal_setnetgrent)
31976 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31977 * inet/getnetgrent_r.c (__internal_setnetgrent)
31978 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31979 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31980 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31981 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31982 * nss/nsswitch.h (db_lookup_function): Likewise.
31983
31984 2017-08-13 Florian Weimer <fweimer@redhat.com>
31985
31986 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31987 Remove internal_function.
31988 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31989 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31990 message argument on the stack.
31991 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31992 Likeweise.
31993
31994 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31995
31996 Adapt test case data to the changes in the thousands
31997 separators.
31998
31999 [BZ #20756]
32000 * localedata/tst-langinfo.sh: Adapt test case data.
32001 * stdlib/tst-strfmon_l.c: Likewise.
32002 * stdlib/tst-strtod4.c: Likewise.
32003 * stdlib/tst-strtod5i.c: Likewise.
32004
32005 2017-08-11 Florian Weimer <fweimer@redhat.com>
32006
32007 [BZ #21242]
32008 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32009 Suppress pedantic warning resulting from statement expression.
32010 (__ASSERT_FUNCTION): Add missing __extension__.
32011
32012 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
32013
32014 * benchtests/bench-memmove-large.c: Print output in JSON
32015 format.
32016 * benchtests/bench-memmove.c: Likewise.
32017
32018 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32019 * benchtests/bench-memchr.c (do_one_test): Likewise.
32020 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32021 * benchtests/bench-memcpy.c (do_one_test): Likewise.
32022 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32023 * benchtests/bench-memmove.c (do_one_test): Likewise.
32024 * benchtests/bench-memset-large.c (do_one_test): Likewise.
32025 * benchtests/bench-memset.c (do_one_test): Likewise.
32026 * benchtests/bench-string.h (test_init): Remove memsets.
32027
32028 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32029
32030 * manual/lang.texi
32031 (Computing the Width of an Integer Data Type): Rename section to
32032 "Width of an Integer Type". Remove inaccurate statement regarding
32033 lack of C language facilities for determining width of integer
32034 types, and reorder content to improve flow and context of
32035 discussion.
32036
32037 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32038
32039 * lang.texi (va_copy): Change standard from ISO to C99.
32040 (__va_copy): Add standard and header annotation.
32041 Update description for clarity of origins and current use.
32042
32043 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32044
32045 [BZ #21941]
32046 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32047 xssqrtqp requires operands to be in Vector Registers
32048 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32049 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32050 (__ieee754_sqrtf128): Likewise.
32051
32052 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
32053
32054 * sysdeps/aarch64/memcmp.S (memcmp):
32055 Rewrite of optimized memcmp.
32056
32057 2017-08-10 Florian Weimer <fweimer@redhat.com>
32058
32059 Introduce ld.so exceptions.
32060 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32061 (_dl_exception_create, _dl_exception_create_format)
32062 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32063 (_dl_catch_exception): Declare.
32064 (_dl_catch_error): Update comment.
32065 * elf/dl-error-skeleton.c (struct catch): Replace objname,
32066 errstring, malloced members with exception member.
32067 (_dl_out_of_memory): Remove.
32068 (fatal_error): New function, extracted from _dl_signal_error.
32069 (_dl_signal_exception, _dl_signal_cexception): New functions.
32070 (_dl_signal_error): Call _dl_exception_create to allocate an
32071 exception object.
32072 (_dl_catch_exception): New function, based on _dl_catch_error.
32073 (_dl_catch_error): Implement using _dl_catch_exception.
32074 * elf/dl-exception.c: New file.
32075 * elf/Makefile (dl-routines): Add dl-exception.
32076 (elide-routines.os): Likewise.
32077 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32078 _dl_exception_create_format, _dl_exception_free.
32079 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32080 _dl_signal_exception.
32081 * elf/dl-lookup.c (make_string): Remove.
32082 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32083 _dl_signal_cexception, _dl_exception_free.
32084 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32085 _dl_signal_exception.
32086 * elf/dl-sym.c (do_sym): Likewise.
32087 * elf/dl-version.c (make_string): Remove.
32088 (match_symbol): Use _dl_exception_create_format,
32089 _dl_signal_cexception, _dl_exception_free.
32090 (_dl_check_map_versions): Likewise.
32091 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32092 _dl_catch_exception.
32093 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32094 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32095 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32096 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32097 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32098 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32099 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32100 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32101 Likewise.
32102 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32104 (ld.so): Likewise.
32105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32106 (ld.so): Likewise.
32107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32108 Likewise.
32109 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32110 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32111 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32112 Likewise.
32113 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32114 Likewise.
32115 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32116
32117 2017-08-10 Florian Weimer <fweimer@redhat.com>
32118
32119 * inet/net-internal.h (__inet6_scopeid_pton): Remove
32120 attribute_hidden, internal_function.
32121 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32122 internal_function.
32123
32124 2017-08-10 Florian Weimer <fweimer@redhat.com>
32125
32126 * malloc/malloc.c (get_max_fast): Reimplement as an inline
32127 function which calls __builtin_unreachable.
32128
32129 2017-08-10 Mike FABIAN <mfabian@redhat.com>
32130
32131 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32132 Indian monetary formatting
32133 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32134 test cases.
32135
32136 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
32137
32138 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32139 Fix typo in comment.
32140
32141 [BZ #21928]
32142 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32143 PTRACE_SEIZE_DEVEL): Remove.
32144 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32145 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32146 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32147 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32148 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32149
32150 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32151
32152 * posix/bits/types.h (__qaddr_t): Remove.
32153
32154 [BZ #21457]
32155 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32156 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32157 __glibc_reserved1.
32158 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32159 (ucontext_t): Use __ctx with uc_flags.
32160 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32161 (__ctxt): Likewise.
32162 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32163 __glibc_reserved1.
32164 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32165 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32166 __glibc_reserved1.
32167 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32168 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32169 __glibc_reserved1.
32170 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32171 macro.
32172 (ucontext_t): Use __ctx with uc_flags.
32173 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32174 (ucontext_t): Use __ctx with uc_flags.
32175 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32176 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32177 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32178 (ucontext_t): Use __ctx with uc_flags.
32179 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32180 undefine further down.
32181 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32182 __glibc_reserved1.
32183 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32184 undefine further down.
32185 (ucontext_t): Use __ctx with uc_flags.
32186 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32187 undefine further down.
32188 (ucontext_t): Use __ctx with uc_flags.
32189 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32190 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32191 Rename uc_pad to __glibc_reserved1.
32192 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32193 undefine further down.
32194 (ucontext_t): Use __ctx with uc_flags.
32195 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32196 further down.
32197 (ucontext_t): Use __ctx with uc_flags.
32198 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32199 __ctx with uc_flags.
32200 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32201 (ucontext_t): Use __ctx with uc_flags.
32202 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32203 __ctx with uc_flags.
32204
32205 2017-08-09 Florian Weimer <fweimer@redhat.com>
32206
32207 [BZ #21932]
32208 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32209 before early return.
32210
32211 2017-08-09 Andreas Schwab <schwab@suse.de>
32212
32213 [BZ #21041]
32214 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32215 renamed alias.
32216
32217 [BZ #21041]
32218 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32219 tst-compat-forwarder.
32220 (modules-names): Add tst-compat-forwarder-mod.
32221 ($(objpfx)tst-compat-forwarder): Depend on
32222 $(objpfx)tst-compat-forwarder-mod.so.
32223 * nptl/tst-compat-forwarder.c: New file.
32224 * nptl/tst-compat-forwarder-mod.c: New file.
32225
32226 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32227
32228 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32229 comments.
32230
32231 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32232 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32233 memcpy_falkor.
32234 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32235 Bump.
32236 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32237 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32238 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32239 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32240 Add falkor.
32241 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32242 New macro.
32243
32244 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32245
32246 [BZ #759]
32247 * manual/setjmp.texi (getcontex): Document uc_stack value
32248 compatibility differences.
32249
32250 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32251
32252 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32253 (old_malloc_hook): Likewise.
32254 (old_memalign_hook): Likewise.
32255 (old_realloc_hook): Likewise.
32256 (struct hdr): Likewise.
32257 (flood): Likewise.
32258 (freehook): Likewise.
32259 (mallochook): Likewise.
32260 (memalignhook): Likewise.
32261 (reallochook): Likewise.
32262 (mprobe): Likewise.
32263 * malloc/mtrace.c (mallwatch): Likewise.
32264 (tr_old_free_hook): Likewise.
32265 (tr_old_malloc_hook): Likewise.
32266 (tr_old_realloc_hook): Likewise.
32267 (tr_old_memalign_hook): Likewise.
32268 (tr_where): Likewise.
32269 (lock_and_info): Likewise.
32270 (tr_freehook): Likewise.
32271 (tr_mallochook): Likewise.
32272 (tr_reallochook): Likewise.
32273 (tr_memalignhook): Likewise.
32274 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32275 * misc/mmap.c (__mmap): Likewise.
32276 * misc/mmap64.c (__mmap64): Likewise.
32277 * misc/mprotect.c (__mprotect): Likewise.
32278 * misc/msync.c (msync): Likewise.
32279 * misc/munmap.c (__munmap): Likewise.
32280 * posix/posix_madvise.c (posix_madvise): Likewise.
32281 * socket/send.c (__send): Likewise.
32282 * socket/sendto.c (__sendto): Likewise.
32283 * socket/setsockopt.c (__setsockopt): Likewise.
32284 * string/memcmp.c (__ptr_t): Remove macro.
32285 (MEMCMP): Use void * instead of ptr_t.
32286 * string/memrchr.c (__ptr_t): Remove macro.
32287 (__memrchr): Use void * instead of ptr_t.
32288 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32289 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32290 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32291 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32292 * sysdeps/mach/msync.c (msync): Likewise.
32293 * sysdeps/mach/munmap.c (__munmap): Likewise.
32294 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32295 Likewise.
32296 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32297 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32298 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32299 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32300 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32301 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32302 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32303 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32304 Likewise.
32305 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32306 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32307 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32308 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32309 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32310 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32311 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32312 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32313 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32314 Likewise.
32315 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32316 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32317 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32318 (MEMCMP): Use void * instead of ptr_t.
32319 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32320 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32321
32322 2017-08-08 Florian Weimer <fweimer@redhat.com>
32323
32324 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32325 return statement.
32326
32327 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32328
32329 [BZ #21913]
32330 * csu/libc-tls.c: Include <startup.h> first.
32331 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32332 * elf/dl-tunables.c: Include <startup.h> first.
32333 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32334 * sysdeps/generic/startup.h: New file.
32335 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32336 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32337 (I386_USE_SYSENTER): New. Defined to 0.
32338
32339 2017-08-08 Andreas Schwab <schwab@suse.de>
32340
32341 [BZ #21041]
32342 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32343 * nptl/pt-system.c (system): Likewise.
32344
32345 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32346
32347 [BZ #21780]
32348 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32349 EOPNOTSUPP.
32350 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32351 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32352 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32353 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32354 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32355 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32356 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32357
32358 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32359
32360 [BZ #21899]
32361 * bits/sigaction.h (struct sigaction): Define sa_handler and
32362 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32363 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32364 [__USE_XOPEN_EXTENDED].
32365 (SA_RESTART): Likewise.
32366 (SA_NODEFER): Likewise.
32367 (SA_RESETHAND): Likewise.
32368 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32369 (struct sigaction): Define sa_handler and sa_sigaction using union
32370 also for [__USE_XOPEN_EXTENDED].
32371 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32372 [__USE_XOPEN_EXTENDED].
32373 (SA_RESTART): Likewise.
32374 (SA_NODEFER): Likewise.
32375 (SA_RESETHAND): Likewise.
32376 * sysdeps/unix/sysv/linux/bits/sigaction.h
32377 (struct sigaction): Define sa_handler and sa_sigaction using union
32378 also for [__USE_XOPEN_EXTENDED].
32379 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32380 [__USE_XOPEN_EXTENDED].
32381 (SA_RESTART): Likewise.
32382 (SA_NODEFER): Likewise.
32383 (SA_RESETHAND): Likewise.
32384 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32385 (struct sigaction): Define sa_handler and sa_sigaction using union
32386 also for [__USE_XOPEN_EXTENDED].
32387 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32388 [__USE_XOPEN_EXTENDED].
32389 (SA_RESTART): Likewise.
32390 (SA_NODEFER): Likewise.
32391 (SA_RESETHAND): Likewise.
32392 * sysdeps/unix/sysv/linux/ia64/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/mips/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/s390/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/sparc/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. Define directly rather than as alias.
32423 (SA_RESETHAND): Likewise.
32424 (SA_INTERRUPT): Define only for [__USE_MISC].
32425 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32426 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32427 [__USE_MISC].
32428 (SA_STACK): Define only for [__USE_MISC].
32429 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32430 (struct sigaction): Define sa_handler and sa_sigaction using union
32431 also for [__USE_XOPEN_EXTENDED].
32432 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32433 [__USE_XOPEN_EXTENDED].
32434 (SA_RESTART): Likewise.
32435 (SA_NODEFER): Likewise.
32436 (SA_RESETHAND): Likewise.
32437 (SA_NOPTRACE): Define only for [__USE_MISC].
32438
32439 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32440 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32441 (struct catalog_info): Likewise.
32442 * inet/htontest.c (lo): Likewise.
32443 (foo): Likewise.
32444 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32445 * inet/inet_net.c (inet_network): Likewise.
32446 * inet/inet_netof.c (inet_netof): Likewise.
32447 * inet/rcmd.c (__ivaliduser): Likewise.
32448 (iruserok): Likewise.
32449 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32450 * locale/programs/locale-spec.c (locale_special): Likewise.
32451 * nis/nis_findserv.c (struct findserv_req): Likewise.
32452 (__nis_findfastest_with_timeout): Likewise.
32453 * nss/test-netdb.c (test_network): Likewise.
32454 * resolv/inet_neta.c (inet_neta): Likewise.
32455 * resolv/ns_date.c (ns_datetosecs): Likewise.
32456 (SECS_PER_DAY): Likewise.
32457 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32458 Likewise.
32459 * resolv/res_comp.c (__putlong): Likewise.
32460 (__putshort): Likewise.
32461 (_getlong): Likewise.
32462 (_getshort): Likewise.
32463 * resolv/res_debug.c (p_time): Likewise.
32464 (precsize_ntoa): Likewise.
32465 (precsize_aton): Likewise.
32466 (latlon2ul): Likewise.
32467 (loc_aton): Likewise.
32468 (loc_ntoa): Likewise.
32469 * resolv/res_hconf.c (struct netaddr): Likewise.
32470 (_res_hconf_reorder_addrs): Likewise.
32471 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32472 (clnttcp_control): Likewise.
32473 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32474 (clntudp_control): Likewise.
32475 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32476 (clntunix_control): Likewise.
32477 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32478 * sunrpc/rpc/auth.h (union des_block): Likewise.
32479 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32480 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32481 (xdrrec_create): Likewise.
32482 (xdrrec_endofrecord): Likewise.
32483 (flush_out): Likewise.
32484 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32485 (xdrstdio_putlong): Likewise.
32486 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32487 Likewise.
32488
32489 * misc/sys/cdefs.h (__long_double_t): Remove.
32490 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32491 instead of __long_double_t,
32492 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32493
32494 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32495
32496 * benchtests/scripts/compare_strings.py: Avoid display error when
32497 running on a text terminal.
32498
32499 * benchtests/scripts/compare_strings.py (main): Add an
32500 optional -base option.
32501 (process_results): New argument base_func.
32502
32503 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32504 hardcoding memcpy.
32505 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32506 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32507
32508 2017-08-07 Andreas Schwab <schwab@suse.de>
32509
32510 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32511 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32512 * intl/Makefile ($(objpfx)tst-gettext.out)
32513 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32514 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32515 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32516 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32517 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32518 * posix/Makefile ($(objpfx)globtest.out)
32519 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32520 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32521 ($(objpfx)tst-printf.out): Likewise.
32522 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32523 ($(objpfx)tst-setcontext3.out): Likewise.
32524
32525 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32526
32527 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32528 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32529 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32530 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32531 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32532 and mptan-fma.
32533 (CFLAGS-doasin-fma.c): New.
32534 (CFLAGS-dosincos-fma.c): Likewise.
32535 (CFLAGS-e_asin-fma.c): Likewise.
32536 (CFLAGS-e_atan2-fma.c): Likewise.
32537 (CFLAGS-e_exp-fma.c): Likewise.
32538 (CFLAGS-e_log-fma.c): Likewise.
32539 (CFLAGS-e_pow-fma.c): Likewise.
32540 (CFLAGS-halfulp-fma.c): Likewise.
32541 (CFLAGS-mpa-fma.c): Likewise.
32542 (CFLAGS-mpatan-fma.c): Likewise.
32543 (CFLAGS-mpatan2-fma.c): Likewise.
32544 (CFLAGS-mpexp-fma.c): Likewise.
32545 (CFLAGS-mplog-fma.c): Likewise.
32546 (CFLAGS-mpsqrt-fma.c): Likewise.
32547 (CFLAGS-mptan-fma.c): Likewise.
32548 (CFLAGS-s_atan-fma.c): Likewise.
32549 (CFLAGS-sincos32-fma.c): Likewise.
32550 (CFLAGS-slowexp-fma.c): Likewise.
32551 (CFLAGS-slowpow-fma.c): Likewise.
32552 (CFLAGS-s_sin-fma.c): Likewise.
32553 (CFLAGS-s_tan-fma.c): Likewise.
32554 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32555 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32556 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32557 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32558 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32559 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32560 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32561 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32562 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32563 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32564 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32565 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32566 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32567 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32568 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32569 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32570 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32571 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32572 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32573 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32574 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32575 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32576 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32577 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32578 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32579 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32580 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32581 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32582 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32583 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32584 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32585
32586 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32587
32588 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32589 (min_of_type_f): New macro.
32590 (min_of_type_): Likewise.
32591 (min_of_type_l): Likewise.
32592 (min_of_type_f128): Likewise.
32593 (min_of_type): Define using __MATH_TG and taking an expression
32594 argument.
32595 (math_check_force_underflow): Pass expression instead of type to
32596 min_of_type.
32597 (math_check_force_underflow_nonneg): Likewise.
32598
32599 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32600
32601 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32602 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32603 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32604
32605 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32606
32607 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32608 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32609 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32610 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32611 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32612 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32613 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32614 memmove_chk-nonshared and memset_chk-nonshared
32615 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32616 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32617 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32618 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32619 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32620 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32621 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32622 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32623 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32624 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32625 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32626 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32627 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32628 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32629 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32630 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32631 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32632 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32633 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32634 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32635 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32636 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32637 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32638 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32639 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32640 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32641 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32642 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32643 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32644 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32645 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32646 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32647 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32648 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32649 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32650 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32651 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32652 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32653 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32654 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32655 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32656 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32657 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32658 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32659 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32660 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32661 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32662 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32663 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32664 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32665 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32666 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32667 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32668 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32669 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32670 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32671 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32672 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32673 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32674 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32675 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32676 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32677 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32678 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32679 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32680 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32681 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32682 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32683 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32684 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32685 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32686 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32687 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32688 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32689 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32690 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32691 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32692 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32693 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32694 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32695 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32696 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32697 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32698 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32699 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32700 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32701 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32702 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32703 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32704 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32705 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32706 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32707 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32708 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32709 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32710 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32711 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32712 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32713 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32714 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32715 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32716 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32717 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32718 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32719 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32720 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32721 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32722 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32723
32724 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32725
32726 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32727 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32728 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32729 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32730 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32731 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32732 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32733 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32734 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32735 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32736 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32737 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32738 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32739 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32740 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32741 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32742 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32743 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32744 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32745 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32746 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32747 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32748 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32749 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32750 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32751 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32752 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32753 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32754 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32755 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32756 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32757 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32758 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32759 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32760 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32761 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32762 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32763 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32764 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32765 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32766 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32767 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32768 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32769 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32770 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32771 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32772 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32773 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32774 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32775 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32776 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32777 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32778 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32779 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32780 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32781 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32782 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32783 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32784 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32785 ...
32786 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32787 Don't include <sysdep.h> nor <init-arch.h>.
32788 (_ZGVbN2v_cos): Removed.
32789 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32790 ...
32791 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32792 Don't include <sysdep.h> nor <init-arch.h>.
32793 (_ZGVdN4v_cos): Removed.
32794 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32795 ...
32796 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32797 Don't include <sysdep.h> nor <init-arch.h>.
32798 (_ZGVeN8v_cos): Removed.
32799 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32800 ...
32801 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32802 Don't include <sysdep.h> nor <init-arch.h>.
32803 (_ZGVbN2v_exp): Removed.
32804 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32805 ...
32806 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32807 Don't include <sysdep.h> nor <init-arch.h>.
32808 (_ZGVdN4v_exp): Removed.
32809 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32810 ...
32811 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32812 Don't include <sysdep.h> nor <init-arch.h>.
32813 (_ZGVeN8v_exp): Removed.
32814 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32815 ...
32816 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32817 Don't include <sysdep.h> nor <init-arch.h>.
32818 (_ZGVbN2v_log): Removed.
32819 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32820 ...
32821 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32822 Don't include <sysdep.h> nor <init-arch.h>.
32823 (_ZGVdN4v_log): Removed.
32824 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32825 ...
32826 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32827 Don't include <sysdep.h> nor <init-arch.h>.
32828 (_ZGVeN8v_log): Removed.
32829 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32830 ...
32831 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32832 Don't include <sysdep.h> nor <init-arch.h>.
32833 (_ZGVbN2vv_pow): Removed.
32834 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32835 ...
32836 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32837 Don't include <sysdep.h> nor <init-arch.h>.
32838 (_ZGVdN4vv_pow): Removed.
32839 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32840 ...
32841 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32842 Don't include <sysdep.h> nor <init-arch.h>.
32843 (_ZGVeN8vv_pow): Removed.
32844 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32845 ...
32846 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32847 Don't include <sysdep.h> nor <init-arch.h>.
32848 (_ZGVbN2v_sin): Removed.
32849 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32850 ...
32851 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32852 Don't include <sysdep.h> nor <init-arch.h>.
32853 (_ZGVbN4v_sin): Removed.
32854 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32855 ...
32856 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32857 Don't include <sysdep.h> nor <init-arch.h>.
32858 (_ZGVbN8v_sin): Removed.
32859 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32860 ...
32861 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32862 Don't include <sysdep.h> nor <init-arch.h>.
32863 (_ZGVbN2vvv_sincos): Removed.
32864 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32865 ...
32866 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32867 Don't include <sysdep.h> nor <init-arch.h>.
32868 (_ZGVdN4vvv_sincos): Removed.
32869 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32870 ...
32871 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32872 Don't include <sysdep.h> nor <init-arch.h>.
32873 (_ZGVeN8vvv_sincos): Removed.
32874 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32875 ...
32876 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32877 Don't include <sysdep.h> nor <init-arch.h>.
32878 (_ZGVeN16v_cosf): Removed.
32879 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32880 ...
32881 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32882 Don't include <sysdep.h> nor <init-arch.h>.
32883 (_ZGVbN4v_cosf): Removed.
32884 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32885 ...
32886 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32887 Don't include <sysdep.h> nor <init-arch.h>.
32888 (_ZGVdN8v_cosf): Removed.
32889 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32890 ...
32891 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32892 Don't include <sysdep.h> nor <init-arch.h>.
32893 (_ZGVeN16v_expf): Removed.
32894 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32895 ...
32896 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32897 Don't include <sysdep.h> nor <init-arch.h>.
32898 (_ZGVbN4v_expf): Removed.
32899 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32900 ...
32901 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32902 Don't include <sysdep.h> nor <init-arch.h>.
32903 (_ZGVdN8v_expf): Removed.
32904 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32905 ...
32906 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32907 Don't include <sysdep.h> nor <init-arch.h>.
32908 (_ZGVeN16v_logf): Removed.
32909 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32910 ...
32911 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32912 Don't include <sysdep.h> nor <init-arch.h>.
32913 (_ZGVbN4v_logf): Removed.
32914 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32915 ...
32916 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32917 Don't include <sysdep.h> nor <init-arch.h>.
32918 (_ZGVdN8v_logf): Removed.
32919 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32920 ...
32921 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32922 Don't include <sysdep.h> nor <init-arch.h>.
32923 (_ZGVeN16vv_powf): Removed.
32924 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32925 ...
32926 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32927 Don't include <sysdep.h> nor <init-arch.h>.
32928 (_ZGVbN4vv_powf): Removed.
32929 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32930 ...
32931 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32932 Don't include <sysdep.h> nor <init-arch.h>.
32933 (_ZGVdN8vv_powf): Removed.
32934 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32935 ...
32936 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32937 Don't include <sysdep.h> nor <init-arch.h>.
32938 (_ZGVeN16vvv_sincosf): Removed.
32939 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32940 ...
32941 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32942 Don't include <sysdep.h> nor <init-arch.h>.
32943 (_ZGVbN4vvv_sincosf): Removed.
32944 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32945 ...
32946 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32947 Don't include <sysdep.h> nor <init-arch.h>.
32948 (_ZGVdN8vvv_sincosf): Removed.
32949 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32950 ...
32951 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32952 Don't include <sysdep.h> nor <init-arch.h>.
32953 (_ZGVeN16v_sinf): Removed.
32954 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32955 ...
32956 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32957 Don't include <sysdep.h> nor <init-arch.h>.
32958 (_ZGVbN4v_sinf): Removed.
32959 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32960 ...
32961 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32962 Don't include <sysdep.h> nor <init-arch.h>.
32963 (_ZGVdN8v_sinf): Removed.
32964
32965 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32966
32967 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32968 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32969 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32970 s_rint-sse4_1 and s_rintf-sse4_1.
32971 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32972 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32973 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32974 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32975 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32976 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32977 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32978 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32979 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32980 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32981 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32982 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32983 (__ceil): Removed.
32984 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32985 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32986 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32987 (__ceilf): Removed.
32988 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32989 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32990 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32991 (__floor): Removed.
32992 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32993 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32994 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32995 (__floorf): Removed.
32996 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32997 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32998 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32999 (__nearbyint): Removed.
33000 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
33001 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
33002 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33003 (__nearbyintf): Removed.
33004 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
33005 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
33006 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33007 (__rint): Removed.
33008 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33009 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
33010 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33011 (__rintf): Removed.
33012
33013 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33014
33015 * sysdeps/i386/start.S (_start): Check Check PIC instead of
33016 SHARED. Avoid dynamic relocation against main in static PIE.
33017
33018 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33019
33020 [BZ #21815]
33021 * elf/Makefile (CFLAGS-tst-prelink.c): New.
33022 (LDFLAGS-tst-prelink): Likewise.
33023
33024 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33025
33026 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33027 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33028 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33029 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33030 (INTERNAL_SYSCALL_NCS): Likewise.
33031 (LOADARGS_1): Likewise.
33032 (LOADARGS_5): Likewise.
33033 (RESTOREARGS_1): Likewise.
33034 (RESTOREARGS_5): Likewise.
33035
33036 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33037
33038 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33039 (MEMPCPY_SYMBOL): Likewise.
33040 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33041 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33042 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33043 in libc.a.
33044 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33045 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33046 Likewise.
33047 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33048 (__hidden_ver1): Don't use in libc.a.
33049 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33050 (__mempcpy): Don't create a weak alias in libc.a.
33051 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33052 libc.a.
33053 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33054 (__hidden_ver1): Don't use in libc.a.
33055
33056 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33057
33058 * config.make.in (have-insert): New.
33059 * configure.ac (libc_cv_insert): New. Set to yes if linker
33060 supports INSERT in linker script.
33061 (AC_SUBST(libc_cv_insert): New.
33062 * configure: Regenerated.
33063 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33064 if $(have-insert) == yes.
33065
33066 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33067
33068 * elf/Makefile (tests): Add vismain only if
33069 $(have-protected-data) == yes.
33070 (tests-pie): Likewise.
33071
33072 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33073
33074 [BZ #21871]
33075 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33076 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33077
33078 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33079
33080 [BZ #21790]
33081 * sysdeps/i386/i586/memset.S
33082 (__memset_zero_constant_len_parameter): Removed.
33083 * sysdeps/i386/i686/memset.S
33084 (__memset_zero_constant_len_parameter): Likewise.
33085 * sysdeps/i386/i686/multiarch/memset_chk.S
33086 (__memset_zero_constant_len_parameter): Likewise.
33087 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33088 Likewise.
33089
33090 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33091
33092 * stdlib/getentropy.c (getentropy): Change return type to int.
33093
33094 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33095
33096 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33097
33098 2017-08-03 Joseph Myers <joseph@codesourcery.com>
33099
33100 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33101 u_intN_t.
33102 * math/s_nexttowardf.c (__nexttowardf): Likewise.
33103 * sysdeps/generic/math_private.h (ieee_double_shape_type):
33104 Likewise.
33105 (ieee_float_shape_type): Likewise.
33106 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33107 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33108 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33109 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33110 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33111 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33112 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33113 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33114 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33115 Likewise.
33116 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33117 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33118 (__ieee754_yn): Likewise.
33119 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33120 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33121 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33122 Likewise.
33123 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33124 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33125 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33126 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33127 (__erfc): Likewise.
33128 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33129 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33130 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33131 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33132 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33133 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33134 Likewise.
33135 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33136 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33137 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33138 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33139 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33140 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33141 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33142 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33143 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33144 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33145 (__issignaling): Likewise.
33146 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33147 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33148 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33149 Likewise.
33150 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33151 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33152 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33153 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33154 Likewise.
33155 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33156 Likewise.
33157 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33158 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33159 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33160 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33161 (__erfcf): Likewise.
33162 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33163 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33164 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33165 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33166 Likewise.
33167 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33168 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33169 Likewise.
33170 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33171 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33172 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33173 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33174 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33175 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33176 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33177 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33178 Likewise.
33179 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33180 Likewise.
33181 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33182 Likewise.
33183 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33184 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33185 Likewise.
33186 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33187 Likewise.
33188 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33189 (__ieee754_ynl): Likewise.
33190 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33191 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33192 Likewise.
33193 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33194 Likewise.
33195 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33196 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33197 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33198 Likewise.
33199 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33200 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33201 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33202 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33203 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33204 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33205 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33206 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33207 Likewise.
33208 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33209 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33210 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33211 Likewise.
33212 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33213 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33214 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33215 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33216 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33217 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33218 Likewise.
33219 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33220 Likewise.
33221 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33222 Likewise.
33223 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33224 Likewise.
33225 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33226 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33227 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33228 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33229 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33230 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33231 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33232 Likewise.
33233 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33234 Likewise.
33235 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33236 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33237 Likewise.
33238 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33239 (__ieee754_remainderl): Likewise.
33240 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33241 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33242 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33243 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33244 Likewise.
33245 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33246 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33247 Likewise.
33248 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33249 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33250 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33251 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33252 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33253 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33254 Likewise.
33255 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33256 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33257 (__ieee754_y0l): Likewise.
33258 (pzero): Likewise.
33259 (qzero): Likewise.
33260 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33261 (__ieee754_y1l): Likewise.
33262 (pone): Likewise.
33263 (qone): Likewise.
33264 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33265 (__ieee754_ynl): Likewise.
33266 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33267 (__ieee754_lgammal_r): Likewise.
33268 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33269 Likewise.
33270 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33271 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33272 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33273 (__erfcl): Likewise.
33274 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33275 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33276 Likewise.
33277 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33278 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33279 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33280 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33281 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33282 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33283 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33284 Likewise.
33285 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33286 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33287 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33288 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33289 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33290 Likewise.
33291 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33292 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33293 Likewise.
33294 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33295 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33296 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33297 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33298 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33299
33300 2017-08-03 Florian Weimer <fweimer@redhat.com>
33301
33302 [BZ #21885]
33303 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33304 on memory allocation failure.
33305
33306 2017-08-03 Alan Modra <amodra@gmail.com>
33307
33308 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33309 tst-tlsopt-powerpc.c with function name change and no test harness.
33310 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33311 Call tls_get_addr_opt_test.
33312 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33313 (modules-names): Add mod-tlsopt-powerpc.
33314 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33315 (tst-tlsopt-powerpc): Depend on .so.
33316 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33317 define. Expand use in TLS_GD and TLS_LD.
33318
33319 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33320
33321 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33322 function.
33323 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33324
33325 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33326
33327 [BZ #21686]
33328 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33329 comparing size with that of double.
33330 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33331 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33332 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33333 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33334 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33335 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33336 unsigned __int128 types.
33337
33338 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33339
33340 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33341 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33342 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33343 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33344 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33345
33346 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33347
33348 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33349
33350 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33351
33352 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33353 of SHARED.
33354 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33355 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33356 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33357 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33358 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33359 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33360 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33361
33362 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33363
33364 [BZ #21685]
33365 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33366 bit-field expressions passed to sizeof or typeof.
33367 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33368 (__TGMATH_F128): Likewise.
33369 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33370 (__TGMATH_CF128): Likewise.
33371 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33372 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33373 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33374 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33375 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33376 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33377 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33378 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33379 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33380 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33381 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33382 (__TGMATH_UNARY_IMAG): Likewise.
33383 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33384 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33385 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33386 type.
33387 (define_vars_for_type): Handle bit_field type specially.
33388 (Tests.__init__): Declare structure with bit-field element.
33389
33390 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33391
33392 [BZ #21791]
33393 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33394 (MEMCPY_CHK): Define only if SHARED is defined.
33395 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33396 Likewise.
33397 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33398 Likewise.
33399
33400 See ChangeLog.18 for earlier changes.