]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add UDP_GRO from Linux 5.0 to netinet/udp.h.
[thirdparty/glibc.git] / ChangeLog
1 2019-03-25 Joseph Myers <joseph@codesourcery.com>
2
3 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
4
5 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
6 (NT_MIPS_MSA): Likewise.
7
8 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9
10 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
11 * benchtests/README: Update description.
12 * benchtests/bench-timing.h: Default to hp-timing.
13 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
14 HP_TIMING_PRINT): Remove.
15 (HP_TIMING_NOW): Add generic implementation.
16 (hp_timing_t): Change to uint64_t.
17
18 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
19 HP_TIMING_INLINE.
20 * nptl/descr.h: Likewise.
21 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
22 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
23 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
24 Abstract hp-timing usage with RTLD_* macros.
25 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
26 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
27 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
28 HP_TIMING_NONAVAIL): Likewise.
29 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
30 Likewise.
31 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
32 HP_SMALL_TIMING_AVAIL): Likewise.
33 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
34 HP_SMALL_TIMING_AVAIL): Likewise.
35 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
36 HP_SMALL_TIMING_AVAIL): Likewise.
37 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
38 HP_SMALL_TIMING_AVAIL): Likewise.
39 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
40 Likewise.
41 * sysdeps/generic/hp-timing-common.h: Update comment with
42 HP_TIMING_AVAIL removal.
43
44 * include/random-bits.h: New file.
45 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
46 (__res_context_mkquery): Remove usage hp-timing usage and replace with
47 random_bits.
48 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
49 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
50 Likewise.
51
52 * include/libc-internal.h (__get_clockfreq): Remove prototype.
53 * rt/Makefile (clock-routines): Remove get_clockfreq.
54 * rt/get_clockfreq.c: Remove file.
55 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
56 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
57 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
58 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
59 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
60
61 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
62 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
63 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
64 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
65 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
66
67 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
68 pthread_clock_settime.
69 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
70 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
71 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
72 * elf/rtld.c (_dl_start_final): Likewise.
73 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
74 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
75 Remove.
76 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
77 (_dl_cpuclock_offset): Remove.
78 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
79 cpuclock_offset_ununsed.
80 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
81 cpuclock_offset set.
82 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
83 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
84 * nptl/pthread_clock_gettime.c: Remove file.
85 * nptl/pthread_clock_settime.c: Likewise.
86 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
87 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
88 and CLOCK_PROCESS_CPUTIME_ID support.
89 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
90 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
91 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
92 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
93 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
94 Likewise.
95 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
96
97 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
98
99 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
100 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
101 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
102 New defines.
103 * sysdeps/s390/memmem-arch13.S: New file.
104 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
105 if it is only used as fallback.
106 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
107 * sysdeps/s390/multiarch/ifunc-impl-list.c
108 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
109
110 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
111
112 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
113 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
114 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
115 New defines.
116 * sysdeps/s390/multiarch/ifunc-impl-list.c
117 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
118 * sysdeps/s390/strstr-arch13.S: New file.
119 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
120 if it is only used as fallback.
121 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
122
123 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
124
125 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
126 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
127 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
128 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
129 ifunc selector.
130 * sysdeps/s390/multiarch/ifunc-impl-list.c
131 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
132 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
133 S390_IS_ARCH13_MIE3): New defines.
134
135 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
136
137 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
138 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
139 * sysdeps/s390/configure.ac: Add checks for arch13 support.
140 * sysdeps/s390/configure: Regenerated.
141
142 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
143
144 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
145 Add vxe2, vxp, dflt, sort flags.
146 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
147 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
148 capabilities.
149 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
150 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
151 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
152 HWCAP_S390_DFLT): Define.
153
154 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
155
156 [BZ #24372]
157 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
158 of compiler warning.
159 * locale/programs/ld-collate.c (collate_output): Likewise.
160
161 2019-03-21 DJ Delorie <dj@redhat.com>
162
163 [BZ #24372]
164 * iconv/iconvconfig.c (write_output): Replace floating point math
165 with integer math to avoid imprecise results.
166 * locale/programs/ld-collate.c (collate_output): Likewise.
167
168 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
169
170 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
171 Add HWCAP_S390_VX and HWCAP_S390_VXE.
172
173 2019-03-20 mansayk <6688000@gmail.com>
174
175 [BZ #24296]
176 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
177 (abday): Likewise, but remove the trailing dots.
178
179 2019-03-19 Joseph Myers <joseph@codesourcery.com>
180
181 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
182 macro.
183 (HWCAP_PACA): Likewise.
184 (HWCAP_PACG): Likewise.
185 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
186 Increase to 32.
187 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
188
189 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
190
191 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
192 should be handled.
193
194 2019-03-15 Joseph Myers <joseph@codesourcery.com>
195
196 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
197 version to 5.0.
198 (old_getpagesize): New syscall.
199
200 2019-03-15 Felix Yan <felixonmars@archlinux.org>
201
202 [BZ #24293]
203 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
204 * localedata/locales/cmn_TW (era): Likewise.
205 * localedata/locales/hak_TW (era): Likewise.
206 * localedata/locales/lzh_TW (era): Likewise.
207 * localedata/locales/nan_TW (era): Likewise.
208
209 2019-03-14 Florian Weimer <fweimer@redhat.com>
210
211 Remove obsolete, never-implemented XSI STREAMS declarations.
212 * manual/terminal.texi (Allocation): Remove portability note and
213 adjust example.
214 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
215 _SC_STREAMS.
216 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
217 * sysdeps/unix/inet/Subdirs (streams): Remove.
218 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
219 (conformtest-headers-UNIX98): Likewise.
220 (conformtest-headers-XOPEN2K): Likewise.
221 (conformtest-headers-POSIX2008): Likewise.
222 * posix/compat-streams.c: New file.
223 * posix/Makefile (routines): Add it.
224 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
225 getpmsg, isastream, putmsg, putpmsg.
226 (GLIBC_2.30): New section.
227 * bits/stropts.h: Remove file.
228 * bits/xtitypes.h: Likewise.
229 * conform/data/stropts.h-data: Likewise.
230 * include/stropts.h: Likewise.
231 * include/sys/stropts.h: Likewise.
232 * include/xtitypes.h: Likewise.
233 * streams/Makefile: Likewise.
234 * streams/fattach.c: Likewise.
235 * streams/fdetach.c: Likewise.
236 * streams/getmsg.c: Likewise.
237 * streams/getpmsg.c: Likewise.
238 * streams/isastream.c: Likewise.
239 * streams/putmsg.c: Likewise.
240 * streams/putpmsg.c: Likewise.
241 * streams/stropts.h: Likewise.
242 * streams/sys/stropts.h: Likewise.
243 * sysdeps/ia64/bits/xtitypes.h: Likewise.
244 * sysdeps/s390/bits/xtitypes.h: Likewise.
245 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
246 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
247 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
248 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
249 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
250 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
251 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
252 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
253 * sysdeps/x86/bits/xtitypes.h: Likewise.
254
255 2019-03-14 Florian Weimer <fweimer@redhat.com>
256
257 * nss/tst-nss-files-alias-truncated.c (do_test): Load
258 libnss_files.
259 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
260 but not with libnss_files.
261 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
262
263 2019-03-14 Zack Weinberg <zackw@panix.com>
264
265 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
266 Specify encoding="utf-8" when opening headers to check.
267
268 2019-03-13 Joseph Myers <joseph@codesourcery.com>
269
270 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
271 version to 5.0.
272 (Context.checkout_tar): Handle variable major version for Linux
273 kernel.
274
275 2019-03-13 Florian Weimer <fweimer@redhat.com>
276
277 [BZ #24047]
278 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
279
280 2019-03-13 Zack Weinberg <zackw@panix.com>
281
282 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
283 Move to stdlib.
284 * include/inttypes.h: Adjust to match.
285 * include/stdint.h: New wrapper.
286
287 2019-03-13 Zack Weinberg <zackw@panix.com>
288
289 * scripts/check-obsolete-constructs.py: New test script.
290 * scripts/check-installed-headers.sh: Remove tests for
291 obsolete typedefs, superseded by check-obsolete-constructs.py.
292 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
293 as a special test. Update commentary.
294 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
295 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
296 Update commentary.
297 * posix/sys/types.h (__u_intN_t): Remove.
298 (u_int8_t): Typedef using __uint8_t.
299 (u_int16_t): Typedef using __uint16_t.
300 (u_int32_t): Typedef using __uint32_t.
301 (u_int64_t): Typedef using __uint64_t.
302
303 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
304
305 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
306 call _dl_procinfo.
307 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
308 Ignore types other than AT_HWCAP.
309 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
310 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
311 Likewise.
312 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
313 in the case of falling back to generic output mechanism.
314 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
315 Likewise.
316
317 2019-03-12 Florian Weimer <fweimer@redhat.com>
318
319 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
320
321 2019-03-12 Florian Weimer <fweimer@redhat.com>
322
323 [BZ #24047]
324 resolv: Enable full ICMP errors for UDP DNS sockets
325 * resolv/res_enable_icmp.c: New file.
326 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
327 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
328 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
329 socket.
330
331 2019-03-11 Mao Han <han_mao@c-sky.com>
332
333 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
334 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
335
336 2019-03-11 Mao Han <han_mao@c-sky.com>
337
338 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
339 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
340 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
341
342 2019-03-11 Mao Han <han_mao@c-sky.com>
343
344 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
345 directly.
346 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
347 definition.
348
349 2019-03-11 Mao Han <han_mao@c-sky.com>
350
351 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
352 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
353 in mcontext_t
354
355 2019-03-08 Mike FABIAN <mfabian@redhat.com>
356
357 [BZ #24307]
358 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
359 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
360 Unicode 12.0.0.
361 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
362 * localedata/unicode-gen/PropList.txt: Likewise.
363 * localedata/unicode-gen/UnicodeData.txt: Likewise.
364 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
365 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
366 * localedata/charmaps/UTF-8: Regenerate.
367 * localedata/locales/i18n_ctype: Likewise.
368 * localedata/locales/tr_TR: Likewise.
369 * localedata/locales/translit_circle: Likewise.
370 * localedata/locales/translit_cjk_compat: Likewise.
371 * localedata/locales/translit_combining: Likewise.
372 * localedata/locales/translit_compat: Likewise.
373 * localedata/locales/translit_font: Likewise.
374 * localedata/locales/translit_fraction: Likewise.
375
376 2019-03-07 Joseph Myers <joseph@codesourcery.com>
377
378 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
379 than after operators.
380 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
381 (setitimer_locked): Likewise.
382 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
383 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
384 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
385 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
386 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
387 (PPC_CPU_SUPPORTED): Likewise.
388 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
389 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
390 (stat_overflow): Likewise.
391 (statfs_overflow): Likewise.
392 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
393 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
394 (eq_ttyname_r): Likewise.
395 (run_chroot_tests): Likewise.
396
397 2019-03-07 Florian Weimer <fweimer@redhat.com>
398
399 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
400 header check.
401
402 2019-03-07 Martin Liska <mliska@suse.cz>
403
404 * math/Makefile: Change location where math-vector-fortran.h is
405 installed.
406 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
407 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
408 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
409 * scripts/check-installed-headers.sh: Skip Fortran header files.
410 * scripts/check-wrapper-headers.py: Likewise.
411
412 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
413
414 * nptl/nptl-init.c (__have_futex_clock_realtime,
415 __have_futex_clock_realtime): Remove definition.
416 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
417 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
418 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
419 __ASSUME_FUTEX_CLOCK_REALTIME support.
420 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
421 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
422 * sysdeps/unix/sysv/linux/kernel-features.h
423 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
424 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
425 Adjust comment.
426
427 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
428
429 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
430 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
431 __GI___wcscpy and wcscpy.
432
433 2019-03-04 Florian Weimer <fweimer@redhat.com>
434
435 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
436 declaration.
437 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
438 defined.
439
440 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
441
442 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
443 * sysdeps/s390/s390-32/sysdep.h: Likewise.
444
445 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
446
447 [BZ #24162]
448 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
449 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
450
451 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
452
453 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
454 tests.
455 (do_test): Likewise.
456 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
457 (do_test_call_varg): Likewise.
458 (do_test_call_rarg): Likewise.
459 * sysdeps/ieee754/ldbl-opt/Makefile
460 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
461 tst-nldbl-error.
462 ($(objpfx)tst-nldbl-warn.c): New rule.
463 ($(objpfx)tst-nldbl-error.c): Likewise.
464 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
465 New variables.
466
467 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
468
469 [BZ #23984]
470 * include/bits/error-ldbl.h: New file.
471 * include/error.h: Include stdarg.h. Declare internal functions
472 __error_internal and __error_at_line_internal.
473 * misc/Makefile (headers): Add bits/error-ldbl.h.
474 * misc/bits/error-ldbl.h: New file.
475 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
476 avoid the inclusion of bits/error.h.
477 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
478 and __nldbl_error_at_line.
479 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
480 (__nldbl_error, __ndlbl_error_at_line): New functions.
481 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
482 Redirect error and error_at_line.
483 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
485 Likewise.
486 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
487 Likewise.
488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
489 Likewise.
490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
491 Likewise.
492 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
493 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
494 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
495
496 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
497
498 [BZ #23984]
499 * include/bits/err-ldbl.h: New file.
500 * include/err.h: Add prototypes for the internal functions:
501 __vwarnx_internal and __vwarn_internal.
502 * misc/Makefile (headers): Add bits/err-ldbl.h.
503 * misc/bits/err-ldbl.h: New file.
504 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
505 defined, i.e.: when -mlong-double-64 is in use.
506 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
507 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
508 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
509 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
510 (VA_CALL): New macro.
511 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
512 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
513 functions.
514 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
515 declare prototypes for the new functions.
516 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
517 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
518 Likewise.
519 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
520 Likewise.
521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
522 Likewise.
523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
524 Likewise.
525 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
526 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
527 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
528
529 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
530
531 * sysdeps/ieee754/ldbl-opt/Makefile
532 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
533 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
534 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
535
536 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
537
538 [BZ #23983]
539 * argp/Makefile (headers): Add bits/argp-ldbl.h.
540 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
541 * argp/bits/argp-ldbl.h: New file.
542 * include/argp.h: Include stdarg.h. Add prototypes for internal
543 functions: __argp_error_internal and __argp_failure_internal.
544 * include/bits/argp-ldbl.h: New file.
545 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
546 __nldbl_argp_error and __nldbl_argp_failure.
547 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
548 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
549 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
550 Redirect argp_error and argp_failure calls.
551 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
553 Likewise.
554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
555 Likewise.
556 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
557 Likewise.
558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
559 Likewise.
560 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
561 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
562 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
563
564 2019-03-01 Florian Weimer <fweimer@redhat.com>
565
566 [BZ #20419]
567 * elf/tst-big-note-lib.S: Create a syntactically valid note.
568 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
569 code, to avoid creating an ABI tag note.
570 (modules-names-nobuild): Add tst-big-note-lib.
571
572 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
573
574 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
575 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
576
577 2019-03-01 Florian Weimer <fweimer@redhat.com>
578
579 [BZ #20271]
580 * sysdeps/unix/sysv/linux/netlink_assert_response.c
581 (__netlink_assert_response): Add additional missing newlines.
582
583 2019-02-28 Joseph Myers <joseph@codesourcery.com>
584
585 * sysdeps/powerpc/powerpc32/dl-machine.c
586 (__elf_machine_fixup_plt): Use space before '('.
587 (__process_machine_rela): Likewise.
588 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
589 Likewise.
590 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
591 Likewise.
592 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
593 Likewise.
594 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
595 (pattern): Likewise.
596 (delta): Likewise.
597 (check_result): Likewise.
598 (check_excepts): Likewise.
599 (check_op): Likewise.
600 (fail_xr): Likewise.
601 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
602 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
603 (SCNHSZ): Likewise.
604 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
605 Likewise.
606 (ARGS): Likewise.
607 (__makecontext): Likewise.
608 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
609 Likewise.
610
611 2019-02-28 Florian Weimer <fweimer@redhat.com>
612
613 [BZ #23937]
614 elf: Add test with a local IFUNC resolver.
615 * elf/ifuncmain9.c: New file.
616 * elf/ifuncmain9pic.c: Likewise.
617 * elf/ifuncmain9picstatic.c: Likewise.
618 * elf/ifuncmain9pie.c: Likewise.
619 * elf/ifuncmain9static.c: Likewise.
620 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
621 ifuncmain9static, ifuncmain9picstatic.
622 * elf/Makefile [multi-arch && build-shared] (tests-internal):
623 Add ifuncmain9, ifuncmain9pic.
624 * elf/Makefile [multi-arch && build-shared && have-fpie]
625 (ifunc-pie-tests): Add ifuncmain9pie.
626 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
627 (CFLAGS-ifuncmain9picstatic.c): Likewise.
628 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
629
630 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
631
632 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
633 * configure: Regenerated.
634 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
635
636 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
637
638 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
639 symbol as __wcspcy instead of wcscpy.
640
641 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
642
643 * include/stdio.h (__renameat2): New hidden prototype.
644 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
645 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
646 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
647 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
648
649 2019-02-27 Joseph Myers <joseph@codesourcery.com>
650
651 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
652 if statement.
653
654 * benchtests/bench-strcpy.c (do_test): Use space before '('.
655 * benchtests/bench-string.h (cmdline_process_function): Likewise.
656 * benchtests/bench-strlen.c (do_test): Likewise.
657 (test_main): Likewise.
658 * catgets/gencat.c (read_old): Likewise.
659 * elf/cache.c (load_aux_cache): Likewise.
660 * iconvdata/bug-iconv8.c (do_test): Likewise.
661 * math/test-tgmath-ret.c (do_test): Likewise.
662 * nis/nis_call.c (rec_dirsearch): Likewise.
663 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
664 * nptl/tst-audit-threads.c (do_test): Likewise.
665 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
666 * nss/nss_test1.c (init): Likewise.
667 * nss/test-netdb.c (test_hosts): Likewise.
668 * posix/execvpe.c (maybe_script_execute): Likewise.
669 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
670 * stdio-common/tst-printf.c (do_test): Likewise.
671 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
672 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
673 * stdlib/qsort.c (STACK_SIZE): Likewise.
674 * stdlib/test-canon.c (do_test): Likewise.
675 * stdlib/tst-swapcontext1.c (do_test): Likewise.
676 * string/memcmp.c (OPSIZ): Likewise.
677 * string/test-strcpy.c (do_test): Likewise.
678 (do_random_tests): Likewise.
679 * string/test-strlen.c (do_test): Likewise.
680 (test_main): Likewise.
681 * string/test-strrchr.c (do_test): Likewise.
682 (do_random_tests): Likewise.
683 * string/tester.c (test_memrchr): Likewise.
684 (test_memchr): Likewise.
685 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
686 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
687 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
688 (read_encoded_value_with_base): Likewise.
689 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
690 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
691 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
692 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
693 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
694 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
695 Likewise.
696 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
697 Likewise.
698 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
699 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
700 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
701 Likewise.
702 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
703 Likewise.
704 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
705 Likewise.
706 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
707 Likewise.
708 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
709 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
710 (FP_XSTATE_MAGIC2_SIZE): Likewise.
711 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
712 * time/test_time.c (main): Likewise.
713
714 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
715
716 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
717
718 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
719 wmemcpy.
720
721 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
722 wmemcpy.
723
724 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
725
726 * include/wchar.h (__wcscpy): New prototype.
727 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
728 (__wcscpy): Route internal symbol to generic implementation.
729 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
730 Add internal __wcscpy alias.
731 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
732 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
733 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
734 * wcsmbs/wcscpy.c (wcscpy): Add
735 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
736 use generic implementation.
737 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
738
739 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
740 wmemset.
741
742 * sysdeps/m68k/wcpcpy.c: Remove file.
743 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
744
745 2019-02-26 Joseph Myers <joseph@codesourcery.com>
746
747 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
748 than after operators.
749 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
750 * sysdeps/mach/hurd/getcwd.c
751 (__hurd_canonicalize_directory_name_internal): Likewise.
752 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
753 (pthread_mutex_consistent): Likewise.
754 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
755 Likewise.
756 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
757 (__pthread_mutex_transfer_np): Likewise.
758 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
759 (__pthread_mutex_unlock): Likewise.
760 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
761 (mtx_owned_p): Likewise.
762 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
763 (pthread_mutexattr_getrobust): Likewise.
764 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
765 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
766 Likewise.
767 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
768 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
769 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
770 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
771 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
772 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
773 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
774 Likewise.
775 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
776 Likewise.
777 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
778 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
779 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
780 (____longjmp_chk): Likewise.
781 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
782 Likewise.
783 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
784 (INTERNAL_SYSCALL): Likewise.
785 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
786 (INTERNAL_SYSCALL): Likewise.
787 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
788 (__get_clockfreq_via_cpuinfo): Likewise.
789
790 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
791 comments.
792 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
793 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
794 (WORD_COPY_BWD): Likewise.
795 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
796 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
797 Likewise.
798 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
799 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
800 comment.
801 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
802
803 2019-02-25 Joseph Myers <joseph@codesourcery.com>
804
805 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
806 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
807 rather than after operators.
808 * elf/cache.c (print_cache): Likewise.
809 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
810 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
811 * hurd/hurdinit.c (_hurd_setproc): Likewise.
812 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
813 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
814 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
815 (reauth_proc): Likewise.
816 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
817 (__file_name_split_at): Likewise.
818 (__directory_name_split_at): Likewise.
819 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
820 * hurd/port2fd.c (_hurd_port2fd): Likewise.
821 * iconv/gconv_dl.c (do_print): Likewise.
822 * inet/netinet/in.h (struct sockaddr_in): Likewise.
823 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
824 * locale/setlocale.c (new_composite_name): Likewise.
825 * malloc/memusagestat.c (main): Likewise.
826 * misc/fstab.c (fstab_convert): Likewise.
827 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
828 Likewise.
829 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
830 (getgrent_next_file): Likewise.
831 (internal_getgrnam_r): Likewise.
832 (internal_getgrgid_r): Likewise.
833 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
834 Likewise.
835 (internal_getgrent_r): Likewise.
836 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
837 (getpwent_next_nss): Likewise.
838 (getpwent_next_file): Likewise.
839 (internal_getpwnam_r): Likewise.
840 (internal_getpwuid_r): Likewise.
841 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
842 Likewise.
843 (getspent_next_nss): Likewise.
844 (internal_getspnam_r): Likewise.
845 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
846 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
847 * string/strchr.c (STRCHR): Likewise.
848 * string/strchrnul.c (STRCHRNUL): Likewise.
849 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
850 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
851 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
852 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
853 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
854 Likewise.
855 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
856 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
857 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
858 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
859 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
860 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
861 (open_file): Likewise.
862 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
863 (pthread_mutexattr_setprotocol): Likewise.
864 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
865 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
866 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
867 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
868 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
869 Likewise.
870 (elf_machine_rela): Likewise.
871 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
872 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
873 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
874 * sysdeps/posix/rename.c (rename): Likewise.
875 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
876 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
877 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
878 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
879 * sysdeps/unix/grantpt.c (grantpt): Likewise.
880 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
881 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
882 Likewise.
883 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
884 Likewise.
885 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
886 * time/tzfile.c (__tzfile_compute): Likewise.
887
888 2019-02-22 Joseph Myers <joseph@codesourcery.com>
889
890 * benchtests/bench-memmem.c (simple_memmem): Break lines before
891 rather than after operators.
892 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
893 * crypt/md5.c (md5_finish_ctx): Likewise.
894 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
895 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
896 * elf/cache.c (load_aux_cache): Likewise.
897 * elf/dl-load.c (open_verify): Likewise.
898 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
899 * elf/readelflib.c (process_elf_file): Likewise.
900 * elf/rtld.c (dl_main): Likewise.
901 * elf/sprof.c (generate_call_graph): Likewise.
902 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
903 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
904 * hurd/dtable.c (reauth_dtable): Likewise.
905 * hurd/getdport.c (__getdport): Likewise.
906 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
907 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
908 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
909 Likewise.
910 * hurd/hurdioctl.c (fioctl): Likewise.
911 * hurd/hurdselect.c (_hurd_select): Likewise.
912 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
913 (STOPSIGS): Likewise.
914 * hurd/hurdstartup.c (_hurd_startup): Likewise.
915 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
916 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
917 * hurd/msgportdemux.c (msgport_server): Likewise.
918 * hurd/setauth.c (_hurd_setauth): Likewise.
919 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
920 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
921 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
922 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
923 * login/tst-utmp.c (do_check): Likewise.
924 (simulate_login): Likewise.
925 * mach/lowlevellock.h (lll_lock): Likewise.
926 (lll_trylock): Likewise.
927 * math/test-fenv.c (ALL_EXC): Likewise.
928 * math/test-fenvinline.c (ALL_EXC): Likewise.
929 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
930 * nis/nis_call.c (__do_niscall3): Likewise.
931 * nis/nis_callback.c (cb_prog_1): Likewise.
932 * nis/nis_defaults.c (searchaccess): Likewise.
933 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
934 * nis/nis_ismember.c (internal_ismember): Likewise.
935 * nis/nis_local_names.c (nis_local_principal): Likewise.
936 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
937 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
938 Likewise.
939 * nis/ypclnt.c (yp_match): Likewise.
940 (yp_first): Likewise.
941 (yp_next): Likewise.
942 (yp_master): Likewise.
943 (yp_order): Likewise.
944 * nscd/hstcache.c (cache_addhst): Likewise.
945 * nscd/initgrcache.c (addinitgroupsX): Likewise.
946 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
947 (internal_getpwuid_r): Likewise.
948 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
949 * posix/glob.h (__GLOB_FLAGS): Likewise.
950 * posix/regcomp.c (peek_token): Likewise.
951 (peek_token_bracket): Likewise.
952 (parse_expression): Likewise.
953 * posix/regexec.c (sift_states_iter_mb): Likewise.
954 (check_node_accept_bytes): Likewise.
955 * posix/tst-spawn3.c (do_test): Likewise.
956 * posix/wordexp-test.c (testit): Likewise.
957 * posix/wordexp.c (parse_tilde): Likewise.
958 (exec_comm): Likewise.
959 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
960 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
961 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
962 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
963 * stdio-common/tst-fileno.c (do_test): Likewise.
964 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
965 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
966 * stdlib/strtod_l.c (round_and_return): Likewise.
967 (____STRTOF_INTERNAL): Likewise.
968 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
969 * string/strcspn.c (STRCSPN): Likewise.
970 * string/test-memmem.c (simple_memmem): Likewise.
971 * termios/tcsetattr.c (tcsetattr): Likewise.
972 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
973 * time/asctime.c (asctime_internal): Likewise.
974 * time/strptime_l.c (__strptime_internal): Likewise.
975 * time/sys/time.h (timercmp): Likewise.
976 * time/tzfile.c (__tzfile_compute): Likewise.
977
978 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
979
980 [BZ #21915]
981 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
982
983 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
984
985 * argp/argp-help.c (__argp_error_internal): New function,
986 renamed from __argp_error, but that takes a 'mode_flags'
987 parameter to control the format of long double parameters.
988 (__argp_error): Converted into a call __argp_error_internal.
989 (__argp_failure_internal): New function, renamed from
990 __argp_failure, but that takes a 'mode_flags' parameter.
991 (__argp_failure): Converted into a call __argp_failure_internal.
992 * misc/err.c (__vwarnx_internal): New function, renamed from
993 vwarnx, but that takes a 'mode_flags' parameter.
994 (vwarnx): Converted into a call to __vwarnx_internal.
995 (__vwarn_internal): New function, renamed from vwarn, but that
996 takes a 'mode_flags' parameter.
997 (vwarn): Converted into a call to __vwarn_internal.
998 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
999 call to __vfxprintf with 'mode_flags'.
1000 (__error_internal): New function, renamed from error, but that
1001 takes a 'mode_flags' parameter.
1002 (error): Converted into a call to __error_internal.
1003 (__error_at_line_internal): New function, renamed from
1004 error_at_line, but that takes a 'mode_flags' parameter.
1005 (error_at_line): Converted into a call to
1006 __error_at_line_internal.
1007 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
1008 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
1009 Likewise.
1010
1011 2019-02-20 Martin Liska <mliska@suse.cz>
1012
1013 * math/Makefile: Install math-vector-fortran.h.
1014 * bits/math-vector-fortran.h: New file.
1015 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1016
1017 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1018
1019 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1020 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1021
1022 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
1023
1024 * nptl/pthread_mutex_trylock.c: Fix comment.
1025
1026 2019-02-19 Carlos O'Donell <carlos@redhat.com>
1027
1028 * nptl/pthread_tryjoin.c: Fix comment.
1029
1030 2019-02-18 Joseph Myers <joseph@codesourcery.com>
1031
1032 [BZ #24231]
1033 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1034 after R_SPARC_H34 case.
1035
1036 2019-02-18 Florian Weimer <fweimer@redhat.com>
1037
1038 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1039 (getanswer): Do not call Dprintf.
1040 (res_gethostbyname2_context): Likewise.
1041 (res_gethostbyaddr_context): Likewise.
1042
1043 2019-02-18 Florian Weimer <fweimer@redhat.com>
1044
1045 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1046 declaration.
1047 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1048 Remove definitions.
1049 * libio/stdfiles.c: Update comment.
1050 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
1051 set _IO_stdin, _IO_stdout, _IO_stderr.
1052 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1053 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1054 inline function.
1055 (_IO_deallocate_file): New inline function.
1056 * libio/iolibio.h (_IO_vprintf): Remove definition.
1057 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1058 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1059 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1060 _IO_legacy_file.
1061 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1062 __builtin_expect. Use _IO_legacy_file.
1063
1064 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
1065
1066 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1067 Initialize ctid with a known value and remove update of ctid
1068 after clone.
1069 (wait_tid): Adjust arguments and call futex_wait with ctid_val
1070 as assumed current value of ctid_ptr.
1071
1072 2019-02-15 Florian Weimer <fweimer@redhat.com>
1073
1074 Check that non-sysdeps headers have wrapper headers.
1075 * scripts/check-wrapper-headers.py: New file.
1076 * Makefile (tests-special): Add check-wrapper-headers.out.
1077 (check-wrapper-headers.out): New target.
1078 * Rules (tests-special): Add check-wrapper-headers.out.
1079 (check-wrapper-headers.out): New target.
1080
1081 2019-02-15 Florian Weimer <fweimer@redhat.com>
1082
1083 Add missing header wrappers under include/.
1084 * include/ar.h: New file.
1085 * include/bits/mqueue2.h: Likewise.
1086 * include/bits/stdio.h: Likewise.
1087 * include/bits/stdio2.h: Likewise.
1088 * include/fstab.h: Likewise.
1089 * include/fts.h: Likewise.
1090 * include/lastlog.h: Likewise.
1091 * include/netinet/icmp6.h: Likewise.
1092 * include/netinet/igmp.h: Likewise.
1093 * include/netinet/ip6.h: Likewise.
1094 * include/re_comp.h: Likewise.
1095 * include/regexp.h: Likewise.
1096 * include/rpcsvc/bootparam.h: Likewise.
1097 * include/rpcsvc/yp_prot.h: Likewise.
1098 * include/sys/random.h: Likewise.
1099 * include/sys/stropts.h: Likewise.
1100 * include/sys/ttychars.h: Likewise.
1101 * include/sys/vfs.h: Likewise.
1102 * include/wait.h: Likewise.
1103
1104 2019-02-15 Florian Weimer <fweimer@redhat.com>
1105
1106 * nptl_db/proc_service.h: Move to ...
1107 * sysdeps/nptl/proc_service.h: ... here.
1108 * nptl_db/thread_db.h: Move to ...
1109 * sysdeps/nptl/thread_db.h: ... here.
1110 * nptl/descr.h: Include <thread_db.h>.
1111
1112 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1113
1114 * io/Makefile (tests): Add tst-lockf.
1115 * io/lockf.c (lockf): Use __fcntl and only define for
1116 !__OFF_T_MATCHES_OFF64_T.
1117 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1118 __OFF_T_MATCHES_OFF64_T case.
1119 * io/tst-lockf.c: New file.
1120 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1121 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1122 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1123 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1124 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1125 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1126 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1127 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1128 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1129
1130 2019-02-15 Florian Weimer <fweimer@redhat.com>
1131
1132 [BZ #24211]
1133 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1134 pd->result after the thread descriptor has been freed.
1135
1136 2019-02-15 Joseph Myers <joseph@codesourcery.com>
1137
1138 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1139 from function return type.
1140
1141 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1142
1143 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1144
1145 * scripts/test_printers_common.py: Set TERM to a known harmless
1146 value.
1147
1148 2019-02-14 Joseph Myers <joseph@codesourcery.com>
1149
1150 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1151 (xdr_u_int): Likewise.
1152 (xdr_enum): Likewise.
1153 (xdr_bytes): Reword fall-through comment.
1154 (xdr_string): Likewise.
1155
1156 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1157
1158 [BZ #2421]
1159 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1160 (tests): Add tst-join8 tst-join9.
1161 * nptl/lll_timedwait_tid.c: Remove file.
1162 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1163 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1164 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1165 * nptl/pthread_join_common.c (timedwait_tid): New function.
1166 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1167 is set.
1168 * nptl/tst-join5.c (thread_join): New function.
1169 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1170 check.
1171 * nptl/tst-join8.c: New file.
1172 * nptl/tst-join9.c: Likewise.
1173 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1174 lll_futex_timed_wait_cancel): Add generic macros.
1175 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1176 Remove definitions.
1177 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1178 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1179 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1180 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1181 Remove function.
1182 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1183 Likewise.
1184 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1185 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1186 (lll_futex_timed_wait_cancel): New macro.
1187
1188 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1189
1190 * benchtests/Makefile: Add malloc-simple benchmark.
1191 * benchtests/bench-malloc-simple.c: New benchmark.
1192
1193 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1194
1195 * benchtests/bench-memmove.c (do_one_test): Remove unused
1196 ORIG_SRC.
1197 (do_test): Adjust.
1198 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1199 ORIG_SRC.
1200 (do_test): Adjust.
1201
1202 2019-01-13 Jim Wilson <jimw@sifive.com>
1203
1204 [BZ #24040]
1205 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1206 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1207 (func): New.
1208 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1209 call func directly.
1210 * nptl/Makefile (tests): Add tst-unwind-thread.
1211 (CFLAGS-tst-unwind-thread.c): Define.
1212 * nptl/tst-unwind-thread.c: New file.
1213 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1214 as undefined.
1215
1216 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1217
1218 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1219 comment wording.
1220 * nis/nis_call.c (__do_niscall3): Likewise.
1221
1222 * catgets/gencat.c (normalize_line): Use braces around empty
1223 'else' body.
1224 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1225 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1226 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1227 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1228 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1229 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1230 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1231 definition.
1232
1233 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1234 execlp returns.
1235
1236 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1237
1238 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1239 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1240 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1241 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1242 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1243 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1244 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1245 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1246 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1247 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1248 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1249 * benchtests/bench-bcopy.c: Delete file.
1250 * benchtests/bench-bzero.c: Likewise.
1251 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1252 (simple_memccpy): Remove.
1253 (generic_memccpy): Add function.
1254 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1255 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1256 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1257 (generic_mempcpy): Add new function.
1258 * benchtests/bench-memset.c (simple_bzero): Remove.
1259 (builtin_bzero): Remove.
1260 (builtin_memset): Remove.
1261 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1262 (generic_rawmemchr): Add new function.
1263
1264 2019-02-12 Florian Weimer <fweimer@redhat.com>
1265
1266 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1267
1268 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1269
1270 [BZ #24122]
1271 * elf/Makefile (tests): Add tst-audit13.
1272 (modules-names): Add tst-audit13mod1.
1273 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1274 rule.
1275 * elf/tst-audit13.c: New file.
1276 * elf/tst-audit13mod1.c: Likewise.
1277
1278 2019-02-12 Florian Weimer <fweimer@redhat.com>
1279
1280 [BZ #24122]
1281 * elf/rtld.c (unload_audit_module): New function.
1282 (report_audit_module_load_error): Likewise.
1283 (load_audit_module): Likewise. Extracted from dl_main. Call
1284 _dl_close if the laversion symbol cannot be found. Use early
1285 returns for error handling. Add malloc error check. Check for a
1286 zero return value from la_version. Remove spurious comment about
1287 static TLS initialization. Remove useless casts.
1288 (notify_audit_modules_of_loaded_object): New function. Extracted
1289 from dl_main.
1290 (load_audit_module): Likewise.
1291 (dl_main): Call load_audit_modules.
1292
1293 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1294
1295 * elf/dl-exception.c (_dl_exception_create_format): Add
1296 fall-through comments.
1297 * elf/ldconfig.c (parse_conf_include): Likewise.
1298 * elf/rtld.c (print_statistics): Likewise.
1299 * locale/programs/charmap.c (parse_charmap): Likewise.
1300 * misc/mntent_r.c (__getmntent_r): Likewise.
1301 * posix/wordexp.c (parse_arith): Likewise.
1302 (parse_backtick): Likewise.
1303 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1304 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1305 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1306
1307 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1308
1309 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1310 Use float instead of double.
1311
1312 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1313
1314 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1315
1316 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1317
1318 * sysdeps/powerpc/bits/mathinline.h: Remove.
1319
1320 2019-02-08 Florian Weimer <fweimer@redhat.com>
1321
1322 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1323 * math/bits/math-finite.h: Move to ...
1324 * bits/math-finite.h: ... here.
1325
1326 2019-02-08 Florian Weimer <fweimer@redhat.com>
1327
1328 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1329 * bits/unistd_ext.h: here.
1330
1331 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1332
1333 [BZ #21915]
1334 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1335 * nss/tst-nss-files-hosts-long.c: New file.
1336 * nss/tst-nss-files-hosts-long.root: New directory.
1337 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1338 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1339
1340 2019-02-08 Florian Weimer <fweimer@redhat.com>
1341
1342 * include/bits/unistd_ext.h: Remove file.
1343 * posix/bits/unistd_ext.h: Move to ...
1344 * sysdeps/generic/bits/unistd_ext.h: ... here.
1345
1346 2019-02-08 Florian Weimer <fweimer@redhat.com>
1347
1348 * include/bits/unistd_ext.h: New file.
1349
1350 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1351
1352 * time/tst-strftime2.c: Use array_length macros instead of magic
1353 numbers.
1354
1355 2019-02-08 Florian Weimer <fweimer@redhat.com>
1356
1357 [BZ #24161]
1358 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1359 argument.
1360 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1361 locking if the new do_locking argument is true.
1362 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1363 __run_fork_handlers.
1364
1365 2019-02-08 Florian Weimer <fweimer@redhat.com>
1366
1367 [BZ #6399]
1368 Linux: Add gettid system call wrapper.
1369 * posix/Makefile (headers): Add bits/unistd_ext.h.
1370 * posix/bits/unistd_ext.h: New file.
1371 * posix/unistd.h: Include it.
1372 * manual/process.texi (Process Identification): Document gettid.
1373 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1374 tst-gettid, tst-gettid-kill.
1375 (tst-gettid): Link with $(shared-thread-library).
1376 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1377 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1378 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1379 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1380 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1381 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1382 Add gettid.
1383 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1384 Likewise.
1385 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1386 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1387 Likewise.
1388 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1389 Likewise.
1390 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1391 Likewise.
1392 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1393 Likewise.
1394 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1395 Likewise.
1396 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1397 Likewise.
1398 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1399 Likewise.
1400 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1401 (GLIBC_2.30): Likewise.
1402 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1403 (GLIBC_2.30): Likewise.
1404 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1405 (GLIBC_2.30): Likewise.
1406 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1407 (GLIBC_2.30): Likewise.
1408 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1409 Likewise.
1410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1411 (GLIBC_2.30): Likewise.
1412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1413 (GLIBC_2.30): Likewise.
1414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1415 (GLIBC_2.30): Likewise.
1416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1417 (GLIBC_2.30): Likewise.
1418 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1419 Likewise.
1420 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1421 Likewise.
1422 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1423 Likewise.
1424 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1425 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1426 Likewise.
1427 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1428 Likewise.
1429 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1430 Likewise.
1431 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1432 Likewise.
1433 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1434
1435 2019-02-07 Florian Weimer <fweimer@redhat.com>
1436
1437 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1438 compatibility symbols.
1439
1440 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1441
1442 [BZ #24180]
1443 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1444 Add compiler barriers and comments.
1445
1446 2019-02-07 Florian Weimer <fweimer@redhat.com>
1447
1448 * include/array_length.h (array_length): Do not use a statement
1449 expression and _Static_assert, so that array_length can be used at
1450 file scope and as a constant expression.
1451
1452 2019-02-07 Florian Weimer <fweimer@redhat.com>
1453
1454 * support/xdlfcn.h (xdlmopen): Declare.
1455 * support/xdlmopen.c: New file.
1456 * support/Makefile (libsupport-routines): Add xdlmopen.
1457
1458 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1459
1460 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1461 before return type, without separate inline.
1462 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1463 * elf/dl-tunables.h (tunable_is_name): Likewise.
1464 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1465 (do_set_top_pad): Likewise.
1466 (do_set_mmap_threshold): Likewise.
1467 (do_set_mmaps_max): Likewise.
1468 (do_set_mallopt_check): Likewise.
1469 (do_set_perturb_byte): Likewise.
1470 (do_set_arena_test): Likewise.
1471 (do_set_arena_max): Likewise.
1472 (do_set_tcache_max): Likewise.
1473 (do_set_tcache_count): Likewise.
1474 (do_set_tcache_unsorted_limit): Likewise.
1475 * nis/nis_subr.c (count_dots): Likewise.
1476 * nptl/allocatestack.c (advise_stack_range): Likewise.
1477 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1478 (do_sin): Likewise.
1479 (reduce_sincos): Likewise.
1480 (do_sincos): Likewise.
1481 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1482 (do_set_elision_enable): Likewise.
1483 (TUNABLE_CALLBACK_FNDECL): Likewise.
1484
1485 2019-02-06 Florian Weimer <fweimer@redhat.com>
1486
1487 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1488 (xdlsym): Use dlerror to detect a NULL symbol.
1489
1490 2019-02-06 Florian Weimer <fweimer@redhat.com>
1491
1492 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1493 <stap-probe.h>.
1494 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1495
1496 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1497
1498 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1499
1500 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1501
1502 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1503 __wmemcmp and weak alias to wmemcmp.
1504
1505 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1506
1507 [BZ #23403]
1508 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1509 TLS_TCB_AT_TP tls variant.
1510 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1511 Add alignment checks.
1512 * support/Makefile (libsupport-routines): Add xposix_memalign and
1513 xpthread_setstack.
1514 * support/support.h: Add xposix_memalign.
1515 * support/xthread.h: Add xpthread_attr_setstack.
1516 * support/xposix_memalign.c: New File.
1517 * support/xpthread_attr_setstack.c: Likewise.
1518
1519 2019-02-05 Florian Weimer <fweimer@redhat.com>
1520
1521 [BZ #24164]
1522 arm: Use "nr" constraint for Systemtap probes, to avoid the
1523 compiler using memory operands for constants, due to the "o"
1524 alternative in the default "nor" constraint.
1525 * include/stap-probe.h [USE_STAP_PROBE]: Include
1526 <stap-probe-machine.h>
1527 * sysdeps/generic/stap-probe-machine.h: New file.
1528 * sysdeps/arm/stap-probe-machine.h: Likewise.
1529
1530 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1531
1532 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1533 with 0, not tcache->entries[tc_idx].
1534
1535 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1536 once.
1537
1538 2019-02-04 Andreas Schwab <schwab@suse.de>
1539
1540 [BZ #16976]
1541 [BZ #17396]
1542 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1543 looking up collating elements match against (wide) character
1544 sequence instead of name. Correct alignment adjustment.
1545 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1546 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1547 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1548 (LOCALES): Add cs_CZ.ISO-8859-2.
1549 * posix/tst-fnmatch4.c: New file.
1550 * posix/tst-fnmatch5.c: New file.
1551 * include/wchar.h (__wmemcmp): Declare.
1552 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1553 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1554 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1555 * sysdeps/s390/wmemcmp.c: Likewise.
1556
1557 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1558
1559 [BZ #24155]
1560 CVE-2019-7309
1561 * NEWS: Updated for CVE-2019-7309.
1562 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1563 upper 32 bits of RDX register for x32. Use unsigned Jcc
1564 instructions, instead of signed.
1565 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1566 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1567
1568 2019-02-04 Florian Weimer <fweimer@redhat.com>
1569
1570 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1571 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1572 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1573 Likewise.
1574 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1575 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1576 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1577 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1578 Likewise.
1579 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1580 Likewise.
1581 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1582 Likewise.
1583 (posix_spawn_file_actions_addopen): Likewise.
1584 (posix_spawn_file_actions_addclose): Likewise.
1585 (posix_spawn_file_actions_adddup2): Likewise.
1586 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1587 qualifiers.
1588 (posix_spawn_file_actions_addfchdir_np): Likewise.
1589
1590 2019-02-04 David Newall <glibc@davidnewall.com>
1591
1592 elf: Implement --preload option for the dynamic linker.
1593 * elf/rtld.c (preloadarg): New variable.
1594 (handle_preload_list): Pass through “where” argument to
1595 do_preload.
1596 (dl_main): Handle "--preload" and add second call to
1597 handle_preload_list.
1598 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1599 (tst-rtld-preload-OBJS): Set variable.
1600 (tst-rtld-preload.out): New target.
1601 * elf/tst-rtld-preload.sh: New file.
1602
1603 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1604
1605 * Makefile (testrun.sh): Exit in case of incorrect argument.
1606
1607 2019-02-04 Florian Weimer <fweimer@redhat.com>
1608
1609 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1610 alignment gaps.
1611
1612 2019-02-03 Florian Weimer <fweimer@redhat.com>
1613
1614 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1615 implicit overflow checks.
1616
1617 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1618
1619 * stdlib/isomac.c: Include <unistd.h>.
1620
1621 2019-02-03 Florian Weimer <fweimer@redhat.com>
1622
1623 * include/time.h (__tzfile_default): Use int, not long int, for
1624 the GMT offsets.
1625 * time/tzfile.c (struct ttinfo): Change type of the offset member
1626 to int.
1627 (__tzfile_read): Remove useless cast.
1628 (__tzfile_default): Adjust prototype.
1629 * time/tzset.c (tz_rule): Change type of the offset member to int.
1630 (parse_offset): Change the type of the sign variable to int.
1631
1632 2019-02-03 Florian Weimer <fweimer@redhat.com>
1633
1634 [BZ #24153]
1635 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1636 * libio/getchar.c (getchar): Likewise.
1637 * libio/getchar_u.c (getchar_unlocked): Likewise.
1638 * libio/getwchar.c (getwchar): Likewise.
1639 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1640 * libio/iogets.c (_IO_gets): Likewise.
1641 * libio/vscanf.c (_IO_vscanf): Likewise.
1642 * libio/vwscanf.c (__vwscanf): Likewise.
1643 * libio/tst-bz24153.c: New file.
1644 * libio/Makefile (tests): Add it.
1645
1646 2019-02-02 Florian Weimer <fweimer@redhat.com>
1647
1648 [BZ #14829]
1649 * manual/resource.texi (Basic Scheduling Functions): Add
1650 portability note. Change process to task throughout the section.
1651 Remove incorrect comment about sched_yield as it affects
1652 tasks/threads, not entire processes.
1653 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1654 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1655
1656 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1657
1658 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1659 * configure: Regenerated.
1660 * manual/install.texi (Tools for Compilation): Update minimum GCC
1661 version.
1662 * INSTALL: Regenerated.
1663
1664 2019-02-01 Florian Weimer <fweimer@redhat.com>
1665
1666 * support/support_test_compare_string.c
1667 (support_test_compare_string): Use "string" in error message.
1668 * support/tst-test_compare_string.c (do_test): Adjust.
1669
1670 2019-02-01 Florian Weimer <fweimer@redhat.com>
1671
1672 * support/support_format_address_family.c
1673 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1674
1675 2019-02-01 Florian Weimer <fweimer@redhat.com>
1676
1677 * manual/socket.texi (Internet Address Formats): Clarify the byte
1678 order of struct sockaddr_in, struct sockaddr_in6. Document
1679 sin6_flowinfo and sin6_scope_id.
1680
1681 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1682
1683 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1684 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1685 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1686 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1687 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1688 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1689
1690 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1691
1692 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1693 [!MEMCHR](MEMCHR): Set to __memchr.
1694 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1695 Add memchr_generic and memchr_nosimd.
1696 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1697 (__libc_ifunc_impl_list): Add memchr ifuncs.
1698 * sysdeps/aarch64/multiarch/memchr.c: New file.
1699 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1700 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1701
1702 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1703
1704 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1705 Add memset_emag.
1706 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1707 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1708 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1709 Add IS_EMAG check for ifunc dispatch.
1710 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1711 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1712
1713 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1714
1715 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1716 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1717 Add emag.
1718 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1719 New macro.
1720
1721 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1722
1723 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1724
1725 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1726
1727 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1728 syscall-template file.
1729
1730 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1731 Torvald Riegel <triegel@redhat.com>
1732 Rik Prohaska <prohaska7@gmail.com>
1733
1734 [BZ# 23844]
1735 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1736 tst-rwlock-trywrlock-stall.
1737 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1738 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1739 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1740 Set __wrphase_fute to 1 only if we started the write phase.
1741 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1742 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1743 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1744 * support/xpthread_rwlock_destroy.c: New file.
1745 * support/xthread.h: Declare xpthread_rwlock_destroy.
1746
1747 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1748
1749 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1750 version to 4.0.2.
1751
1752 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1753
1754 [BZ #24051]
1755 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1756 * libio/fileops.c (_IO_new_file_underflow): Likewise
1757 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1758 * libio/putchar.c (putchar): Likewise.
1759 * libio/putchar_u.c (putchar_unlocked): Likewise.
1760 * libio/putwchar.c (putchar): Likewise.
1761 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1762 * libio/tst-bz24051.c: New test.
1763 * libio/Makefile (tests): Add tst-bz24051
1764
1765 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1766
1767 CVE-2019-9169
1768 regex: fix read overrun [BZ #24114]
1769 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1770 https://debbugs.gnu.org/34140
1771 * posix/regexec.c (proceed_next_node):
1772 Do not read past end of input buffer.
1773
1774 2019-01-31 Florian Weimer <fweimer@redhat.com>
1775
1776 [BZ #24059]
1777 * nss/nss_files/files-alias.c (get_next_alias): Handle
1778 continuation line without newline at the end.
1779 * nss/tst-nss-files-alias-truncated.c: New file.
1780 * nss/Makefile [$(build-shared)] (tests): Add
1781 tst-nss-files-alias-truncated.
1782 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1783 * support/namespace.h (struct support_chroot_configuration): Add
1784 aliases member.
1785 (struct support_chroot): Add path_aliases member.
1786 * support/support_chroot.c (support_chroot_create): Handle
1787 aliases.
1788 (support_chroot_free): Free path_aliases.
1789
1790 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1791
1792 * version.h (RELEASE): Set to "development".
1793 (VERSION): Set to "2.29.9000".
1794 * NEWS: Add section for 2.30.
1795
1796 * version.h (RELEASE): Set to "stable".
1797 (VERSION): Set to "2.29".
1798 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1799
1800 * NEWS: Add the list of bugs fixed in 2.29.
1801 * manual/contrib.texi: Update contributors list with some more
1802 names.
1803 * manual/install.texi: Update latest versions of packages
1804 tested.
1805 * INSTALL: Regenerated.
1806
1807 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1808
1809 * po/be.po: Update translations.
1810 * po/bg.po: Likewise.
1811 * po/ca.po: Likewise.
1812 * po/cs.po: Likewise.
1813 * po/da.po: Likewise.
1814 * po/de.po: Likewise.
1815 * po/el.po: Likewise.
1816 * po/eo.po: Likewise.
1817 * po/es.po: Likewise.
1818 * po/fi.po: Likewise.
1819 * po/fr.po: Likewise.
1820 * po/gl.po: Likewise.
1821 * po/hr.po: Likewise.
1822 * po/hu.po: Likewise.
1823 * po/ia.po: Likewise.
1824 * po/id.po: Likewise.
1825 * po/it.po: Likewise.
1826 * po/ja.po: Likewise.
1827 * po/ko.po: Likewise.
1828 * po/lt.po: Likewise.
1829 * po/nb.po: Likewise.
1830 * po/nl.po: Likewise.
1831 * po/pl.po: Likewise.
1832 * po/pt_BR.po: Likewise.
1833 * po/ru.po: Likewise.
1834 * po/rw.po: Likewise.
1835 * po/sk.po: Likewise.
1836 * po/sl.po: Likewise.
1837 * po/sv.po: Likewise.
1838 * po/tr.po: Likewise.
1839 * po/uk.po: Likewise.
1840 * po/vi.po: Likewise.
1841 * po/zh_CN.po: Likewise.
1842 * po/zh_TW.po: Likewise.
1843
1844 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1845
1846 [BZ #24130]
1847 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1848 of $f3 register on $y_is_neg path.
1849
1850 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1851
1852 [BZ #24110]
1853 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1854 sigaltstack.ss_flags.
1855
1856 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1857
1858 [BZ #23758]
1859 * manual/time.texi (strftime): Document "%Ey".
1860 * time/strftime_l.c (__strftime_internal): Set the default width
1861 padding with zero of "%Ey" to 2.
1862
1863 [BZ #24096]
1864 * manual/time.texi (strftime): Document "%EC" and "%EY".
1865 * time/Makefile (tests): Add tst-strftime2.
1866 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1867 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1868 override padding for "%Ey".
1869 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1870 "%Ey" in the subformat as if decorated with that flag.
1871 * time/tst-strftime2.c: New file.
1872
1873 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1874
1875 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1876 are not defined.
1877
1878 [BZ #24122]
1879 * elf/Makefile (tests): Add tst-audit13.
1880 (modules-names): Add tst-audit13mod1.
1881 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1882 rule.
1883 * elf/rtld.c (dl_main): Handle invalid audit module version.
1884 * elf/tst-audit13.c: New file.
1885 * elf/tst-audit13mod1.c: Likewise.
1886
1887 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1888
1889 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1890 returned by __hurd_at_flags.
1891 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1892 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1893 directly instead of __hurd_file_name_lookup.
1894
1895 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1896
1897 * scripts/build-many-glibcs.py (Context.checkout): Default
1898 binutils version to 2.32 branch.
1899
1900 2019-01-21 Florian Weimer <fweimer@redhat.com>
1901
1902 [BZ #20018]
1903 CVE-2016-10739
1904 resolv: Reject trailing characters in host names
1905 * include/arpa/inet.h (__inet_aton_exact): Declare.
1906 (inet_aton): Remove hidden prototype. No longer used internally.
1907 * nscd/gai.c (__inet_aton): Do not define.
1908 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1909 * nss/digits_dots.c (__inet_aton): Likewise.
1910 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1911 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1912 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1913 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1914 (tst-resolv-trailing): Likewise.
1915 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1916 libc.
1917 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1918 Make static. Add endp parameter.
1919 (__inet_aton_exact): New function.
1920 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1921 (__inet_addr): Call inet_aton_end.
1922 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1923 not just IPv6. Call __inet_aton_exact.
1924 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1925 (tests): Make const. Add additional test cases with trailing
1926 characters.
1927 (do_test): Use array_length.
1928 * resolv/tst-inet_aton_exact.c: New file.
1929 * resolv/tst-resolv-trailing.c: Likewise.
1930 * resolv/tst-resolv-nondecimal.c: Likewise.
1931 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1932
1933 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1934
1935 [BZ# 24097]
1936 CVE-2019-6488
1937 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1938 Clear the upper 32 bits of RSI register.
1939 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1940 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1941 and tst-size_t-wcsnlen.
1942 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1943 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1944
1945 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1946
1947 [BZ# 24097]
1948 CVE-2019-6488
1949 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1950 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1951 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1952 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1953 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1954
1955 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1956
1957 [BZ# 24097]
1958 CVE-2019-6488
1959 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1960 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1961 * sysdeps/x86_64/strcmp.S: Likewise.
1962 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1963 tst-size_t-strncmp and tst-size_t-wcsncmp.
1964 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1965 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1966 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1967
1968 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1969
1970 [BZ# 24097]
1971 CVE-2019-6488
1972 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1973 RDX_LP for length. Clear the upper 32 bits of RDX register.
1974 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1975 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1976 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1977 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1978
1979 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1980
1981 [BZ# 24097]
1982 CVE-2019-6488
1983 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1984 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1985 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1986 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1987
1988 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 [BZ# 24097]
1991 CVE-2019-6488
1992 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1993 length. Clear the upper 32 bits of RDX register.
1994 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1995 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1996 Likewise.
1997 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1998 Likewise.
1999 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
2000 tst-size_t-wmemchr.
2001 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
2002
2003 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2004
2005 [BZ# 24097]
2006 CVE-2019-6488
2007 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
2008 length. Clear the upper 32 bits of RDX register.
2009 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2010 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2011 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
2012 tst-size_t-wmemcmp.
2013 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
2014 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2015
2016 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2017
2018 [BZ# 24097]
2019 CVE-2019-6488
2020 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
2021 upper 32 bits of RDX register.
2022 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2023 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2024 tst-size_t-wmemchr.
2025 * sysdeps/x86_64/x32/test-size_t.h: New file.
2026 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2027 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2028
2029 2019-01-18 Florian Weimer <fweimer@redhat.com>
2030
2031 [BZ #24112]
2032 resolv: Do not send queries for non-host-names in nss_dns.
2033 * resolv/nss_dns/dns-host.c (check_name): New function.
2034 (_nss_dns_gethostbyname2_r): Use it.
2035 (_nss_dns_gethostbyname_r): Likewise.
2036 (_nss_dns_gethostbyname4_r): Likewise.
2037
2038 2019-01-21 Florian Weimer <fweimer@redhat.com>
2039
2040 * resolv/inet_addr.c: Reformat to GNU style.
2041 (__inet_addr, __inet_aton): Update comment.
2042
2043 2019-01-18 Florian Weimer <fweimer@redhat.com>
2044
2045 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2046 ("malloc: Use current (C11-style) atomics for fastbin access").
2047 This commit introduces a substantial performance regression on
2048 POWER and Aarch64.
2049 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2050 (REMOVE_FB): Define.
2051 (_int_malloc): Use it and reindent.
2052 (_int_free): Use CAS loop with
2053 catomic_compare_and_exchange_val_rel.
2054 (malloc_consolidate): Use atomic_exchange_acq.
2055
2056
2057 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2058
2059 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
2060 -Wl,-z,now.
2061 (LDFLAGS-tst-minsigstksz-2): Likewise.
2062 (LDFLAGS-tst-minsigstksz-3): Likewise.
2063 (LDFLAGS-tst-minsigstksz-3a): Likewise.
2064 (LDFLAGS-tst-minsigstksz-4): Likewise.
2065
2066 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
2067
2068 * manual/time.texi (strftime): Fix the wording to "alternative" rather
2069 than "alternate".
2070
2071 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
2072
2073 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2074
2075 2019-01-16 Zack Weinberg <zackw@panix.com>
2076
2077 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2078 (xget_sigstack_location): New test support functions.
2079 * support/xsigstack.c: New file, implementing them.
2080 * support/tst-xsigstack.c: New test for them.
2081 * support/Makefile: Update.
2082
2083 * signal/tst-minsigstksz-1.c
2084 * signal/tst-minsigstksz-2.c
2085 * signal/tst-minsigstksz-3.c
2086 * signal/tst-minsigstksz-3a.c
2087 * signal/tst-minsigstksz-4.c: New tests.
2088 * signal/Makefile: Run them.
2089
2090 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
2091
2092 * po/libc.pot: Regenerate.
2093
2094 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2095
2096 * math/libm-test-fma.inc (fma_test_data): Set
2097 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2098
2099 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2100
2101 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2102 (do_test): Changed __vector __int128_t to __vector unsigned int.
2103
2104 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2105
2106 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2107 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2108 stpcpy-avx2 and stpncpy-avx2.
2109 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2110 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2111 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2112 and __stpncpy_avx2.
2113 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2114 ifunc-strcpy.h}: rename header for a more generic name.
2115 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2116 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2117 AVX unaligned load is fast and vzeroupper is preferred.
2118 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2119 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2120 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2121 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2122 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2123 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2124
2125 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
2126
2127 * argp/argp-help.c: Fix typo in comment.
2128 * misc/sys/cdefs.h: Likewise.
2129 * posix/regexec.c (sift_states_iter_mb): Likewise.
2130 * socket/sockatmark.c: Likewise.
2131 * socket/sys/socket.h: Likewise.
2132 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2133 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2134 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2135 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2136 * sysdeps/unix/sockatmark.c: Likewise.
2137 * time/strptime_l.c: Likewise.
2138
2139 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2140
2141 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2142 missing space after the cast of "_NL_CURRENT".
2143
2144 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2145
2146 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2147 ifdef to fix read of VSCR.
2148 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2149 tst-ucontext-ppc64-vscr.c to test list.
2150 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2151
2152 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2153
2154 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2155 fall-through.
2156
2157 2019-01-09 Jim Wilson <jimw@sifive.com>
2158
2159 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2160
2161 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2162
2163 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2164 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2165 __memcpy_falkor for ares.
2166 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2167 Add new define.
2168 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2169 Add ares cpu.
2170
2171 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2172
2173 [BZ #24066]
2174 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2175 4_FP_W_TYPEs are used for IEEE quad precision.
2176 * soft-fp/extendhftf2.c: Likewise.
2177 * soft-fp/extendsftf2.c: Likewise.
2178 * soft-fp/extendxftf2.c: Likewise.
2179 * soft-fp/trunctfdf2.c: Likewise.
2180 * soft-fp/trunctfhf2.c: Likewise.
2181 * soft-fp/trunctfsf2.c: Likewise.
2182 * soft-fp/trunctfxf2.c: Likewise.
2183 * sysdeps/alpha/ots_cvttx.c: Likewise.
2184 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2185 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2186 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2187 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2188 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2189 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2190 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2191 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2192 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2193 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2194 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2195 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2196 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2197 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2198 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2199 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2200 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2201
2202 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2203
2204 [BZ #24024]
2205 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2206 code with -fmath-errno.
2207 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2208 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2209 * string/test-strerror-errno.c: New file.
2210
2211 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2212
2213 [BZ #24046]
2214 * localedata/locales/en_US (date_fmt): Add, set to
2215 "%a %d %b %Y %r %Z".
2216
2217 2019-01-07 Florian Weimer <fweimer@redhat.com>
2218
2219 [BZ #24063]
2220 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2221 instead of @var{errno}.
2222 (Parsing of Integers): Likewise.
2223 (Parsing of Floats): Likewise.
2224 * manual/filesys.texi (Working with Directory Trees): Likewise.
2225 (Temporary Files): Likewise.
2226 * manual/job.texi (Terminal Access Functions): Likewise.
2227 * manual/llio.texi (Synchronizing I/O): Likewise.
2228 * manual/math.texi (SVID Random): Likewise.
2229 * manual/message.texi (The catgets Functions): Likewise.
2230 (Translation with gettext): Likewise.
2231 (Locating gettext catalog): Likewise.
2232 (Charset conversion in gettext): Likewise.
2233 * manual/nss.texi (NSS Module Function Internals): Likewise.
2234 * manual/search.texi (Hash Search Function): Likewise.
2235 * manual/setjmp.texi (System V contexts): Likewise.
2236 * manual/time.texi (Sleeping): Likewise.
2237 * manual/users.texi (Lookup User): Likewise.
2238 (Lookup Group): Likewise.
2239
2240 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2241
2242 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2243 fix typo.
2244
2245 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2246
2247 [BZ #19444]
2248 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2249 __builtin_unreachable for default case in switch.
2250 (__ieee754_yn): Likewise.
2251 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2252 (__ieee754_ynl): Likewise.
2253 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2254 (__ieee754_ynl): Likewise.
2255 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2256 (__ieee754_ynl): Likewise.
2257
2258 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2259
2260 * manual/maint.texi: Use @{ and @}.
2261
2262 2019-01-04 Florian Weimer <fweimer@redhat.com>
2263
2264 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2265 function.
2266 (do_in_chroot_1): Call it.
2267 (run_chroot_tests):
2268 Improve error reporting in case it is not possible to create a
2269 collision for the PTY name required by the test.
2270
2271 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2272
2273 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2274 lll_wait_tid with timeout.
2275 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2276 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2277 futex_reltimed_wait_cancelable for cancelabla mode.
2278 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2279 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2280 macros.
2281 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2282 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2283 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2284 SYSCALL_CANCEL_NCS): New macro.
2285 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2286 (lll_timedwait_tid): Remove macro.
2287 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2288 Likewise.
2289 (lll_timedwait_tid): Likewise.
2290 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2291 Likewise.
2292 (lll_timedwait_tid): Likewise.
2293 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2294 Likewise.
2295 (lll_timedwait_tid): Likewise.
2296 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2297 Use INTERNAL_SYSCALL_CANCEL.
2298 * sysdeps/unix/sysv/linux/futex-internal.h
2299 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2300 instead of __pthread_{enable,disable}_asynccancel.
2301 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2302 (lll_futex_wait_cancel): New macro.
2303
2304 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2305 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2306
2307 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2308 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2309
2310 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2311 in backtrace analysis.
2312 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2313 side-effects.
2314 (tf_send): Likewise.
2315
2316 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2317 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2318 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2319 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2320 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2321 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2322 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2323 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2324 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2325 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2326 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2327 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2328 Likewise.
2329 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2330 tst-cancel-wrappers.sh.
2331 (generated): Remove tst-cancel-wrappers.out.
2332 (tst-cancel-wrappers.out): Remove rule.
2333 * nptl/tst-cancel-wrappers.sh: Remove file.
2334
2335 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2336
2337 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2338 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2339 Update.
2340
2341 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2342
2343 [BZ #23640]
2344 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2345 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2346 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2347 close-on-exec reset for adddup2 file action.
2348 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2349
2350 2019-01-03 Zack Weinberg <zackw@panix.com>
2351
2352 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2353 parameter. Only use deprecated scanf when __USE_GNU is defined
2354 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2355 than 201103L, whichever is relevant for the language being compiled.
2356
2357 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2358 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2359 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2360 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2361 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2362
2363 * libio/iovsscanf.c
2364 * libio/fwscanf.c
2365 * libio/iovswscanf.c
2366 * libio/swscanf.c
2367 * libio/vscanf.c
2368 * libio/vwscanf.c
2369 * libio/wscanf.c
2370 * stdio-common/fscanf.c
2371 * stdio-common/scanf.c
2372 * stdio-common/vfscanf.c
2373 * stdio-common/vfwscanf.c
2374 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2375 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2376 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2377 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2378 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2379 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2380 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2381 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2382 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2383 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2384 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2385 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2386 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2387 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2388 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2389
2390 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2391 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2392 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2393 not sscanf.
2394 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2395 with a preprocessor macro.
2396
2397 * stdio-common/bug21.c, stdio-common/scanf14.c:
2398 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2399 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2400 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2401 to xscanf, xfscanf, xsscanf.
2402
2403 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2404 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2405 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2406 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2407 xfscanf, xsscanf.
2408 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2409 override feature selection macros or provide definitions of u_char etc.
2410 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2411 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2412 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2413 with -std=gnu89.
2414
2415 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2416
2417 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2418 bits/termios-misc.h.
2419 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2420 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2421 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2422 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2423 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2424 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2425
2426 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2427 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2428 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2429 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2430 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2431 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2432 termios-misc.h.
2433 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2434 (sysdep_headers): Add termios-misc.h.
2435
2436 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2437 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2438 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2439
2440 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2441 termios-tcflow.h.
2442 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2443 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2444 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2445 TCSAFLUSH): Move to termios-tcflow.h.
2446 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2447 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2448 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2449 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2450
2451 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2452 termios-c_lflag.h.
2453 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2454 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2455 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2456 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2457 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2458 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2459 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2460 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2461 Likewise.
2462 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2463 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2464 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2465 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2466
2467 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2468 termios-c_cflag.h.
2469 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2470 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2471 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2472 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2473 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2474 termios-c_cflag.h.
2475 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2476 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2477 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2478 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2479
2480 [BZ #23783]
2481 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2482 termios-baud.h.
2483 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2484 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2485 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2486 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2487 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2488 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2489 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2490 __MAX_BAUD): Move to termios-baud.h.
2491 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2492 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2493 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2494 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2495 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2496
2497 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2498 termios-c_oflag.h.
2499 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2500 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2501 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2502 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2503 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2504 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2505 termios-c_oflag.h.
2506 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2507 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2508 FFR1): Likewise.
2509 [USE_MISC] (XTABS): Likewise.
2510 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2511 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2512 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2513 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2514
2515 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2516 termios-c_iflag.h.
2517 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2518 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2519 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2520 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2521 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2522 IUTF8): Move to termios-c_iflag.h.
2523 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2524 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2525 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2526 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2527
2528 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2529 termios-cc.h.
2530 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2531 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2532 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2533 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2534 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2535 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2536 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2537 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2538 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2539 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2540 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2541 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2542
2543 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2544 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2545 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2546 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2547 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2548 termios-struct.h.
2549 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2550 termios-struct.h.
2551 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2552 Likewise.
2553 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2554 Likewise.
2555 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2556 Likewise.
2557 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2558 Likewise.
2559 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2560 _HAVE_C_OSPEED): Define.
2561 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2562 _HAVE_C_OSPEED): Likewise.
2563 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2564 _HAVE_C_OSPEED): Likewise.
2565 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2566 (cfsetospeed): Check for define value instead of existence.
2567 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2568 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2569 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2570 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2571 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2572
2573 [BZ #17783]
2574 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2575 Define.
2576 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2577 (TIOCSER_TEMT): Likewise.
2578 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2579 (TEOCSER_TEMT): Likewise.
2580
2581 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2582
2583 [BZ #24011]
2584 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2585
2586 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2587
2588 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2589
2590 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2591
2592 * sysdeps/htl/pt-barrierattr-setpshared.c
2593 (pthread_barrierattr_setpshared): Add stub warning.
2594 * sysdeps/htl/pt-condattr-setpshared.c
2595 (pthread_condattr_setpshared): Likewise.
2596 * sysdeps/htl/pt-mutexattr-setpshared.c
2597 (pthread_mutexattr_setpshared): Likewise.
2598 * sysdeps/htl/pt-rwlockattr-setpshared.c
2599 (pthread_rwlockattr_setpshared): Likewise.
2600 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2601 (pthread_mutexattr_setpshared): Likewise.
2602
2603 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2604
2605 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2606 constants to match with Linux 4.20.
2607
2608 * sysdeps/mips/mips32/libm-test-ulps: Update.
2609 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2610
2611 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2612
2613 [BZ #24034]
2614 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2615 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2616 than __typeof (...) for the a_ptr variable.
2617
2618 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2619
2620 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2621 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2622 * libio/Makefile (tests): Add tst-sprintf-ub and
2623 tst-sprintf-chk-ub.
2624 (CFLAGS-tst-sprintf-ub.c): New variable.
2625 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2626 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2627 destination buffer and check for overflows in fortified mode.
2628 * libio/libioP.h (PRINTF_CHK): New macro.
2629 * libio/tst-sprintf-chk-ub.c: New file.
2630 * libio/tst-sprintf-ub.c: Likewise.
2631
2632 2019-01-02 Florian Weimer <fweimer@redhat.com>
2633
2634 [BZ #24018]
2635 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2636 failure.
2637
2638 2019-01-02 Florian Weimer <fweimer@redhat.com>
2639
2640 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2641
2642 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2643
2644 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2645 macro.
2646
2647 * sysdeps/unix/sysv/linux/netpacket/packet.h
2648 (PACKET_IGNORE_OUTGOING): New macro.
2649
2650 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2651 macro.
2652
2653 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2654 version to 4.20.
2655 (riscv_flush_icache): New syscall.
2656
2657 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2658 trailing whitespace removed.
2659 * scripts/config.guess: Update to version 2019-01-01.
2660 * scripts/config.sub: Update to version 2019-01-01.
2661 * scripts/move-if-change: Update from gnulib.
2662
2663 * NEWS: Update copyright dates.
2664 * catgets/gencat.c (print_version): Likewise.
2665 * csu/version.c (banner): Likewise.
2666 * debug/catchsegv.sh: Likewise.
2667 * debug/pcprofiledump.c (print_version): Likewise.
2668 * debug/xtrace.sh (do_version): Likewise.
2669 * elf/ldconfig.c (print_version): Likewise.
2670 * elf/ldd.bash.in: Likewise.
2671 * elf/pldd.c (print_version): Likewise.
2672 * elf/sotruss.sh: Likewise.
2673 * elf/sprof.c (print_version): Likewise.
2674 * iconv/iconv_prog.c (print_version): Likewise.
2675 * iconv/iconvconfig.c (print_version): Likewise.
2676 * locale/programs/locale.c (print_version): Likewise.
2677 * locale/programs/localedef.c (print_version): Likewise.
2678 * login/programs/pt_chown.c (print_version): Likewise.
2679 * malloc/memusage.sh (do_version): Likewise.
2680 * malloc/memusagestat.c (print_version): Likewise.
2681 * malloc/mtrace.pl: Likewise.
2682 * manual/libc.texinfo: Likewise.
2683 * nptl/version.c (banner): Likewise.
2684 * nscd/nscd.c (print_version): Likewise.
2685 * nss/getent.c (print_version): Likewise.
2686 * nss/makedb.c (print_version): Likewise.
2687 * posix/getconf.c (main): Likewise.
2688 * scripts/test-installation.pl: Likewise.
2689 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2690
2691 * All files with FSF copyright notices: Update copyright dates
2692 using scripts/update-copyrights.
2693 * locale/programs/charmap-kw.h: Regenerated.
2694 * locale/programs/locfile-kw.h: Likewise.
2695
2696 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2697
2698 * timezone/zdump.c: Update from tzcode 2018i.
2699 * timezone/zic.c: Likewise.
2700
2701 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2702
2703 regex: improve Gnulib port to AIX
2704 From the glibc point of view, this removes duplicate macro
2705 definitions and is obviously safe.
2706 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2707 * posix/regex_internal.h:
2708 (__attribute__, __attribute_warn_unused_result__):
2709 Remove; already defined elsewhere.
2710
2711 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2712
2713 [BZ #24027]
2714 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2715 copying operation. (ncopies had the wrong type, resulting in an
2716 integer wraparound and too few elements being copied.)
2717
2718 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2719
2720 [BZ #24022]
2721 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2722 <asm/syscalls.h> exists with __has_include__ before including it.
2723
2724 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2725
2726 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2727 version to 4.20.
2728
2729 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2730
2731 * hurd/lookup-retry: Include <unistd.h>.
2732 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2733 Release it on return. Handle "pid" magical lookup retry.
2734
2735 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2736
2737 [BZ #10496]
2738 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2739 (t_fmt_ampm): Likewise.
2740 * localedata/locales/aa_ER (t_fmt): Likewise.
2741 (t_fmt_ampm): Likewise.
2742 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2743 (t_fmt_ampm): Likewise.
2744 * localedata/locales/aa_ET (t_fmt): Likewise.
2745 (t_fmt_ampm): Likewise.
2746 * localedata/locales/am_ET (t_fmt): Likewise.
2747 (t_fmt_ampm): Likewise.
2748 * localedata/locales/byn_ER (t_fmt): Likewise.
2749 (t_fmt_ampm): Likewise.
2750 * localedata/locales/om_ET (t_fmt): Likewise.
2751 (t_fmt_ampm): Likewise.
2752 * localedata/locales/sid_ET (t_fmt): Likewise.
2753 (t_fmt_ampm): Likewise.
2754 * localedata/locales/so_DJ (t_fmt): Likewise.
2755 (t_fmt_ampm): Likewise.
2756 * localedata/locales/so_ET (t_fmt): Likewise.
2757 (t_fmt_ampm): Likewise.
2758 * localedata/locales/so_SO (t_fmt): Likewise.
2759 (t_fmt_ampm): Likewise.
2760 * localedata/locales/ti_ER (t_fmt): Likewise.
2761 (t_fmt_ampm): Likewise.
2762 * localedata/locales/ti_ET (t_fmt): Likewise.
2763 (t_fmt_ampm): Likewise.
2764 * localedata/locales/tig_ER (t_fmt): Likewise.
2765 (t_fmt_ampm): Likewise.
2766 * localedata/locales/wal_ET (t_fmt): Likewise.
2767 (t_fmt_ampm): Likewise.
2768
2769 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2770 * localedata/locales/ar_IN (t_fmt): Likewise.
2771 * localedata/locales/bhb_IN (t_fmt): Likewise.
2772 * localedata/locales/bho_IN (t_fmt): Likewise.
2773 * localedata/locales/bi_VU (t_fmt): Likewise.
2774 * localedata/locales/bn_BD (t_fmt): Likewise.
2775 * localedata/locales/bn_IN (t_fmt): Likewise.
2776 * localedata/locales/brx_IN (t_fmt): Likewise.
2777 * localedata/locales/doi_IN (t_fmt): Likewise.
2778 * localedata/locales/en_HK (t_fmt): Likewise.
2779 (t_fmt_ampm): Likewise.
2780 * localedata/locales/en_IN (t_fmt): Likewise.
2781 * localedata/locales/en_PH (t_fmt): Likewise.
2782 * localedata/locales/gu_IN (t_fmt): Likewise.
2783 * localedata/locales/hi_IN (t_fmt): Likewise.
2784 * localedata/locales/hif_FJ (t_fmt): Likewise.
2785 * localedata/locales/hne_IN (t_fmt): Likewise.
2786 * localedata/locales/kn_IN (t_fmt): Likewise.
2787 * localedata/locales/kok_IN (t_fmt): Likewise.
2788 * localedata/locales/ks_IN (t_fmt): Likewise.
2789 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2790 * localedata/locales/mag_IN (t_fmt): Likewise.
2791 * localedata/locales/mai_IN (t_fmt): Likewise.
2792 * localedata/locales/mjw_IN (t_fmt): Likewise.
2793 * localedata/locales/ml_IN (t_fmt): Likewise.
2794 * localedata/locales/mni_IN (t_fmt): Likewise.
2795 * localedata/locales/mr_IN (t_fmt): Likewise.
2796 * localedata/locales/ms_MY (t_fmt): Likewise.
2797 * localedata/locales/pa_IN (t_fmt): Likewise.
2798 * localedata/locales/raj_IN (t_fmt): Likewise.
2799 * localedata/locales/sa_IN (t_fmt): Likewise.
2800 * localedata/locales/sat_IN (t_fmt): Likewise.
2801 * localedata/locales/sd_IN (t_fmt): Likewise.
2802 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2803 * localedata/locales/tcy_IN (t_fmt): Likewise.
2804 * localedata/locales/the_NP (t_fmt): Likewise.
2805 * localedata/locales/to_TO (t_fmt): Likewise.
2806 * localedata/locales/ur_IN (t_fmt): Likewise.
2807
2808 * localedata/locales/hif_FJ (d_t_fmt): Set to
2809 "%A %d %b %Y %I:%M:%S %p".
2810 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2811
2812 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2813 * localedata/locales/ar_BH (t_fmt): Likewise.
2814 * localedata/locales/ar_DZ (t_fmt): Likewise.
2815 * localedata/locales/ar_EG (t_fmt): Likewise.
2816 * localedata/locales/ar_IQ (t_fmt): Likewise.
2817 * localedata/locales/ar_JO (t_fmt): Likewise.
2818 * localedata/locales/ar_KW (t_fmt): Likewise.
2819 * localedata/locales/ar_LB (t_fmt): Likewise.
2820 * localedata/locales/ar_LY (t_fmt): Likewise.
2821 * localedata/locales/ar_OM (t_fmt): Likewise.
2822 * localedata/locales/ar_QA (t_fmt): Likewise.
2823 * localedata/locales/ar_SD (t_fmt): Likewise.
2824 * localedata/locales/ar_SS (t_fmt): Likewise.
2825 * localedata/locales/ar_SY (t_fmt): Likewise.
2826 * localedata/locales/ar_TN (t_fmt): Likewise.
2827 * localedata/locales/ar_YE (t_fmt): Likewise.
2828
2829 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2830 (t_fmt_ampm): Likewise.
2831 * localedata/locales/gez_ET (t_fmt): Likewise.
2832 (t_fmt_ampm): Likewise.
2833
2834 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2835 (t_fmt_ampm): Likewise.
2836 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2837
2838 * localedata/locales/zh_HK (t_fmt):
2839 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2840
2841 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2842 because this locale does not use the 12-hour clock.
2843 (t_fmt): Set to "%Z %H:%M:%S".
2844 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2845
2846 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2847 because this locale does not use the 12-hour clock.
2848 (t_fmt): Set to "%H:%M:%S %Z".
2849 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2850
2851 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2852 because this locale does not use the 12-hour clock.
2853 (t_fmt): Set to "%T".
2854 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2855 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2856
2857 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2858 because this locale does not use the 12-hour clock.
2859 (t_fmt): Set to "%H:%M:%S %Z".
2860 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2861
2862 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2863 because this locale does not use the 12-hour clock.
2864 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2865 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2866
2867 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2868
2869 [BZ #10496]
2870 [BZ #23724]
2871 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2872 (t_fmt_ampm): Likewise.
2873 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2874 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2875 (d_fmt): Set to "%-d.%-m.%y".
2876
2877 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2878
2879 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2880 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2881 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2882 Likewise.
2883 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2884 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2885 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2886 function.
2887 * support/blob_repeat.c (check_mul_overflow_size_t,
2888 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2889
2890 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2891
2892 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2893
2894 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2895
2896 regex: simplify Gnulib port
2897 This simplifies the code, by removing stuff intended for porting
2898 to Gnulib but no longer needed there.
2899 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2900 uses of libc_hidden_def, weak_alias.
2901 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2902 _Restrict_ except for public-facing headers.
2903 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2904 Remove; already defined elsewhere.
2905 * posix/regex.c, posix/regex_internal.h:
2906 Use __GNUC_PREREQ instead of rolling our own.
2907 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2908
2909 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2910
2911 * benchtests/bench-strlen.c (generic_strlen): New function.
2912 (memchr_strlen): New function.
2913
2914 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2915
2916 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2917 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2918 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2919
2920 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2921
2922 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2923
2924 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2925
2926 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2927 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2928 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2929 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2930 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2931 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2932 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2933
2934 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2935
2936 [BZ #24023]
2937 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2938 PLT reference in libc.so.
2939 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2940 _Q_lltoq and _Q_qtod PLT references in libc.so.
2941
2942 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2943
2944 * benchtests/bench-memchr.c: Cleanup defines.
2945 * benchtests/bench-memcmp.c: Likewise.
2946 * benchtests/bench-memset.c: Likewise.
2947 * benchtests/bench-memset-large.c: Likewise.
2948 * benchtests/bench-memset-walk.c: Likewise.
2949 * benchtests/bench-stpcpy.c: Likewise.
2950 * benchtests/bench-stpncpy.c: Likewise.
2951 * benchtests/bench-strcat.c: Likewise.
2952 * benchtests/bench-strchr.c: Likewise.
2953 * benchtests/bench-strcmp.c: Likewise.
2954 * benchtests/bench-strcpy.c: Likewise.
2955 * benchtests/bench-strcspn.c: Likewise.
2956 * benchtests/bench-string.h: Likewise.
2957 * benchtests/bench-strlen.c: Likewise.
2958 * benchtests/bench-strncat.c: Likewise.
2959 * benchtests/bench-strncmp.c: Likewise.
2960 * benchtests/bench-strncpy.c: Likewise.
2961 * benchtests/bench-strnlen.c: Likewise.
2962 * benchtests/bench-strpbrk.c: Likewise.
2963 * benchtests/bench-strrchr.c: Likewise.
2964 * benchtests/bench-strspn.c: Likewise.
2965
2966 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2967
2968 * stdlib/longlong.h: Update from GCC.
2969
2970 [BZ #23993]
2971 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2972 * configure: Regenerated.
2973 * manual/install.texi (Tools for Compilation): Update minimum GCC
2974 version.
2975 * INSTALL: Regenerated.
2976
2977 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2978
2979 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2980
2981 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2982
2983 * malloc/malloc.c (mremap_chunk): Additional checks.
2984
2985 2018-12-21 Mao Han <han_mao@c-sky.com>
2986
2987 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2988 * scripts/build-many-glibcs.py: Add C-SKY targets.
2989 * sysdeps/csky/Implies: New file.
2990 * sysdeps/csky/Makefile: Likewise.
2991 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2992 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2993 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2994 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2995 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2996 * sysdeps/csky/abiv2/memmove.S: Likewise.
2997 * sysdeps/csky/abiv2/memset.S: Likewise.
2998 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2999 * sysdeps/csky/abiv2/start.S: Likewise.
3000 * sysdeps/csky/abiv2/strcmp.S: Likewise.
3001 * sysdeps/csky/abiv2/strcpy.S: Likewise.
3002 * sysdeps/csky/abiv2/strlen.S: Likewise.
3003 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
3004 * sysdeps/csky/abort-instr.h: Likewise.
3005 * sysdeps/csky/atomic-machine.h: Likewise.
3006 * sysdeps/csky/bits/endian.h: Likewise.
3007 * sysdeps/csky/bits/fenv.h: Likewise.
3008 * sysdeps/csky/bits/link.h: Likewise.
3009 * sysdeps/csky/bits/setjmp.h: Likewise.
3010 * sysdeps/csky/bsd-_setjmp.S: Likewise.
3011 * sysdeps/csky/bsd-setjmp.S: Likewise.
3012 * sysdeps/csky/configure: Likewise.
3013 * sysdeps/csky/configure.ac: Likewise.
3014 * sysdeps/csky/dl-machine.h: Likewise.
3015 * sysdeps/csky/dl-procinfo.c: Likewise.
3016 * sysdeps/csky/dl-procinfo.h: Likewise.
3017 * sysdeps/csky/dl-sysdep.h: Likewise.
3018 * sysdeps/csky/dl-tls.h: Likewise.
3019 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3020 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3021 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3022 * sysdeps/csky/fpu/fegetenv.c: Likewise.
3023 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3024 * sysdeps/csky/fpu/fegetmode.c: Likewise.
3025 * sysdeps/csky/fpu/fegetround.c: Likewise.
3026 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3027 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3028 * sysdeps/csky/fpu/fenv_private.h: Likewise.
3029 * sysdeps/csky/fpu/fesetenv.c: Likewise.
3030 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3031 * sysdeps/csky/fpu/fesetmode.c: Likewise.
3032 * sysdeps/csky/fpu/fesetround.c: Likewise.
3033 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3034 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3035 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3036 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3037 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3038 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3039 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3040 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3041 * sysdeps/csky/fpu_control.h: Likewise.
3042 * sysdeps/csky/gccframe.h: Likewise.
3043 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3044 * sysdeps/csky/ldsodefs.h: Likewise.
3045 * sysdeps/csky/libc-tls.c: Likewise.
3046 * sysdeps/csky/linkmap.h: Likewise.
3047 * sysdeps/csky/machine-gmon.h: Likewise.
3048 * sysdeps/csky/memusage.h: Likewise.
3049 * sysdeps/csky/nofpu/Implies: Likewise.
3050 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3051 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3052 * sysdeps/csky/nptl/Makefile: Likewise.
3053 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3054 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3055 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3056 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3057 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3058 * sysdeps/csky/nptl/tls.h: Likewise.
3059 * sysdeps/csky/preconfigure: Likewise.
3060 * sysdeps/csky/sfp-machine.h: Likewise.
3061 * sysdeps/csky/sotruss-lib.c: Likewise.
3062 * sysdeps/csky/stackinfo.h: Likewise.
3063 * sysdeps/csky/sysdep.h: Likewise.
3064 * sysdeps/csky/tininess.h: Likewise.
3065 * sysdeps/csky/tst-audit.h: Likewise.
3066 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3067 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3068 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3069 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3070 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3071 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3072 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3073 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3074 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3075 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3076 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3077 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3078 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3079 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3080 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3081 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3082 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3083 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3084 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3085 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3086 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3087 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3088 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3089 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3090 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3091 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3092 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3093 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3094 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3095 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3096 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3097 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3098 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3099 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3100 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3101 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3102 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3103 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3104 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3105 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3106 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3107 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3108 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3109 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3110
3111 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3112
3113 * include/time.h (__difftime64): Add.
3114 * time/difftime.c (subtract): convert to 64-bit time.
3115 * time/difftime.c (__difftime64): Add.
3116 * time/difftime.c (__difftime): Wrap around __difftime64.
3117
3118 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3119
3120 * manual/examples/add.c: Remove redundant "if not".
3121 * manual/examples/argp-ex1.c: Likewise.
3122 * manual/examples/argp-ex2.c: Likewise.
3123 * manual/examples/argp-ex3.c: Likewise.
3124 * manual/examples/argp-ex4.c: Likewise.
3125 * manual/examples/atexit.c: Likewise.
3126 * manual/examples/db.c: Likewise.
3127 * manual/examples/dir.c: Likewise.
3128 * manual/examples/dir2.c: Likewise.
3129 * manual/examples/execinfo.c: Likewise.
3130 * manual/examples/filecli.c: Likewise.
3131 * manual/examples/filesrv.c: Likewise.
3132 * manual/examples/fmtmsgexpl.c: Likewise.
3133 * manual/examples/genpass.c: Likewise.
3134 * manual/examples/inetcli.c: Likewise.
3135 * manual/examples/inetsrv.c: Likewise.
3136 * manual/examples/isockad.c: Likewise.
3137 * manual/examples/longopt.c: Likewise.
3138 * manual/examples/memopen.c: Likewise.
3139 * manual/examples/memstrm.c: Likewise.
3140 * manual/examples/mkdirent.c: Likewise.
3141 * manual/examples/mkfsock.c: Likewise.
3142 * manual/examples/mkisock.c: Likewise.
3143 * manual/examples/mygetpass.c: Likewise.
3144 * manual/examples/pipe.c: Likewise.
3145 * manual/examples/popen.c: Likewise.
3146 * manual/examples/rprintf.c: Likewise.
3147 * manual/examples/search.c: Likewise.
3148 * manual/examples/select.c: Likewise.
3149 * manual/examples/setjmp.c: Likewise.
3150 * manual/examples/sigh1.c: Likewise.
3151 * manual/examples/sigusr.c: Likewise.
3152 * manual/examples/stpcpy.c: Likewise.
3153 * manual/examples/strdupa.c: Likewise.
3154 * manual/examples/strftim.c: Likewise.
3155 * manual/examples/subopt.c: Likewise.
3156 * manual/examples/swapcontext.c: Likewise.
3157 * manual/examples/termios.c: Likewise.
3158 * manual/examples/testopt.c: Likewise.
3159 * manual/examples/testpass.c: Likewise.
3160 * manual/examples/timeval_subtract.c: Likewise.
3161
3162 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3163
3164 * sysdeps/x86/fpu/math_private.h: New file.
3165 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3166
3167 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3168 definition.
3169 (cosh): Likewise.
3170 (tanh): Likewise.
3171
3172 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3173
3174 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3175 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3176 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3177 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3178 fields.
3179 (_dl_show_auxv): Give a special treatment to
3180 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3181 and AT_L3_CACHEGEOMETRY.
3182 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3183 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3184 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3185 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3186
3187 2018-12-19 Andreas Schwab <schwab@suse.de>
3188
3189 * nscd/connections.c (check_use): Don't abort on invalid len.
3190
3191 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3192
3193 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3194 values in the 64bit value cases.
3195
3196 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3197
3198 * include/time.h
3199 (__ctime64_r): Add.
3200 * time/ctime_r.c
3201 (__ctime64_r): Add.
3202 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3203
3204 * include/time.h
3205 (__ctime64): Add.
3206 * time/gmtime.c
3207 (__ctime64): Add.
3208 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3209
3210 * include/time.h
3211 (__gmtime64_r): Add.
3212 * time/gmtime.c
3213 (__gmtime64_r): Add.
3214 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3215
3216 * include/time.h
3217 (__gmtime64): Add.
3218 * time/gmtime.c
3219 (__gmtime64): Add.
3220 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3221
3222 * include/time.h
3223 (__localtime64_r): Add.
3224 * time/localtime.c
3225 (__localtime64_r): Add.
3226 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3227
3228 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3229
3230 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3231 kernel_sigction definition.
3232
3233 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3234
3235 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3236
3237 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3238 __syscall_rt_sigaction.
3239 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3240 (kernel_sigaction): Use Linux generic defintion.
3241 (STUB): Define.
3242 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3243 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3244 (__syscall_rt_sigaction): Remove implementation.
3245 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3246 hidden.
3247 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3248 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3249 INTERNAL_SYSCALL): Remove definitions.
3250 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3251 action and signal set size.
3252 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3253 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3254
3255 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3256 James Clarke <jrtc27@jrtc27.com>
3257
3258 [BZ #23967]
3259 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3260 Define if SA_RESTORER is defined.
3261 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3262 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3263 already defined.
3264 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3265 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3266 definitions.
3267 (HAS_SA_RESTORER): Define.
3268 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3269 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3270 (HAS_SA_RESTORER): Define.
3271 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3272 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3273 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3274 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3275 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3276
3277 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3278
3279 * sysdeps/unix/sysv/linux/kernel-features.h
3280 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3281 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3282 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3283 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3284 (__ASSUME_ST_INO_64_BIT): Likewise.
3285 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3286 <kernel-features.h>.
3287 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3288 Remove conditional code.
3289 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3290 <kernel-features.h>.
3291 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3292 Remove conditional code.
3293 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3294 <kernel-features.h>.
3295 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3296 Remove conditional code.
3297 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3298 <kernel-features.h>.
3299 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3300 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3301
3302 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3303
3304 * sysdeps/s390/multiarch/ifunc-resolve.h
3305 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3306 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3307 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3308 Delete macro definition.
3309 (s390_libc_ifunc_init): Rename to
3310 s390_libc_ifunc_expr_stfle_init.
3311 * sysdeps/s390/bzero: Use
3312 s390_libc_ifunc_expr_stfle_init instead of
3313 s390_libc_ifunc_init.
3314 * sysdeps/s390/memcmp.c: Likewise.
3315 * sysdeps/s390/memcpy.c: Likewise.
3316 * sysdeps/s390/mempcpy.c: Likewise.
3317 * sysdeps/s390/memset.c: Likewise.
3318
3319 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3320
3321 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3322 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3323
3324 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3325
3326 * sysdeps/s390/multiarch/Makefile
3327 (sysdep_routines): Remove wmemcmp variants.
3328 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3329 * sysdeps/s390/multiarch/ifunc-impl-list.c
3330 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3331 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3332 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3333 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3334 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3335 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3336 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3337 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3338
3339 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3340
3341 * sysdeps/s390/multiarch/Makefile
3342 (sysdep_routines): Remove wmemset variants.
3343 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3344 * sysdeps/s390/multiarch/ifunc-impl-list.c
3345 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3346 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3347 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3348 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3349 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3350 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3351 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3352 * sysdeps/s390/ifunc-wmemset.h: New file.
3353
3354 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3355
3356 * sysdeps/s390/multiarch/Makefile
3357 (sysdep_routines): Remove wmemchr variants.
3358 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3359 * sysdeps/s390/multiarch/ifunc-impl-list.c
3360 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3361 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3362 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3363 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3364 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3365 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3366 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3367 * sysdeps/s390/ifunc-wmemchr.h: New file.
3368
3369 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3370
3371 * sysdeps/s390/multiarch/Makefile
3372 (sysdep_routines): Remove wcscspn variants.
3373 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3374 * sysdeps/s390/multiarch/ifunc-impl-list.c
3375 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3376 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3377 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3378 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3379 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3380 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3381 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3382 * sysdeps/s390/ifunc-wcscspn.h: New file.
3383
3384 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3385
3386 * sysdeps/s390/multiarch/Makefile
3387 (sysdep_routines): Remove wcspbrk variants.
3388 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3389 * sysdeps/s390/multiarch/ifunc-impl-list.c
3390 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3391 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3392 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3393 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3394 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3395 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3396 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3397 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3398
3399 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3400
3401 * sysdeps/s390/multiarch/Makefile
3402 (sysdep_routines): Remove wcsspn variants.
3403 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3404 * sysdeps/s390/multiarch/ifunc-impl-list.c
3405 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3406 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3407 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3408 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3409 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3410 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3411 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3412 * sysdeps/s390/ifunc-wcsspn.h: New file.
3413
3414 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3415
3416 * sysdeps/s390/multiarch/Makefile
3417 (sysdep_routines): Remove wcsrchr variants.
3418 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3419 * sysdeps/s390/multiarch/ifunc-impl-list.c
3420 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3421 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3422 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3423 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3424 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3425 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3426 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3427 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3428
3429 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3430
3431 * sysdeps/s390/multiarch/Makefile
3432 (sysdep_routines): Remove wcschrnul variants.
3433 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3434 * sysdeps/s390/multiarch/ifunc-impl-list.c
3435 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3436 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3437 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3438 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3439 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3440 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3441 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3442 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3443
3444 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3445
3446 * sysdeps/s390/multiarch/Makefile
3447 (sysdep_routines): Remove wcschr variants.
3448 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3449 * sysdeps/s390/multiarch/ifunc-impl-list.c
3450 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3451 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3452 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3453 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3454 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3455 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3456 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3457 * sysdeps/s390/ifunc-wcschr.h: New file.
3458
3459 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3460
3461 * sysdeps/s390/multiarch/Makefile
3462 (sysdep_routines): Remove wcsncmp variants.
3463 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3464 * sysdeps/s390/multiarch/ifunc-impl-list.c
3465 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3466 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3467 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3468 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3469 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3470 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3471 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3472 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3473
3474 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3475
3476 * sysdeps/s390/multiarch/Makefile
3477 (sysdep_routines): Remove wcscmp variants.
3478 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3479 * sysdeps/s390/multiarch/ifunc-impl-list.c
3480 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3481 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3482 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3483 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3484 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3485 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3486 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3487 * sysdeps/s390/ifunc-wcscmp.h: New file.
3488
3489 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3490
3491 * sysdeps/s390/multiarch/Makefile
3492 (sysdep_routines): Remove wcsncat variants.
3493 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3494 * sysdeps/s390/multiarch/ifunc-impl-list.c
3495 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3496 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3497 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3498 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3499 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3500 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3501 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3502 * sysdeps/s390/ifunc-wcsncat.h: New file.
3503
3504 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3505
3506 * sysdeps/s390/multiarch/Makefile
3507 (sysdep_routines): Remove wcscat variants.
3508 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3509 * sysdeps/s390/multiarch/ifunc-impl-list.c
3510 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3511 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3512 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3513 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3514 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3515 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3516 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3517 * sysdeps/s390/ifunc-wcscat.h: New file.
3518
3519 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3520
3521 * sysdeps/s390/multiarch/Makefile
3522 (sysdep_routines): Remove wcpncpy variants.
3523 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3524 * sysdeps/s390/multiarch/ifunc-impl-list.c
3525 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3526 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3527 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3528 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3529 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3530 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3531 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3532 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3533
3534 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3535
3536 * sysdeps/s390/multiarch/Makefile
3537 (sysdep_routines): Remove wcsncpy variants.
3538 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3539 * sysdeps/s390/multiarch/ifunc-impl-list.c
3540 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3541 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3542 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3543 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3544 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3545 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3546 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3547 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3548
3549 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3550
3551 * sysdeps/s390/multiarch/Makefile
3552 (sysdep_routines): Remove wcpcpy variants.
3553 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3554 * sysdeps/s390/multiarch/ifunc-impl-list.c
3555 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3556 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3557 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3558 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3559 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3560 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3561 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3562 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3563
3564 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3565
3566 * sysdeps/s390/multiarch/Makefile
3567 (sysdep_routines): Remove wcscpy variants.
3568 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3569 * sysdeps/s390/multiarch/ifunc-impl-list.c
3570 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3571 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3572 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3573 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3574 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3575 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3576 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3577 * sysdeps/s390/ifunc-wcscpy.h: New file.
3578
3579 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3580
3581 * sysdeps/s390/multiarch/Makefile
3582 (sysdep_routines): Remove wcsnlen variants.
3583 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3584 * sysdeps/s390/multiarch/ifunc-impl-list.c
3585 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3586 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3587 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3588 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3589 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3590 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3591 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3592 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3593
3594 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3595
3596 * sysdeps/s390/multiarch/Makefile
3597 (sysdep_routines): Remove wcslen variants.
3598 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3599 * sysdeps/s390/multiarch/ifunc-impl-list.c
3600 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3601 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3602 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3603 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3604 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3605 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3606 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3607 * sysdeps/s390/ifunc-wcslen.h: New file.
3608
3609 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3610
3611 * sysdeps/s390/multiarch/Makefile
3612 (sysdep_routines): Remove memrchr variants.
3613 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3614 * sysdeps/s390/multiarch/ifunc-impl-list.c
3615 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3616 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3617 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3618 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3619 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3620 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3621 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3622 * sysdeps/s390/ifunc-memrchr.h: New file.
3623
3624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3625
3626 * sysdeps/s390/multiarch/Makefile
3627 (sysdep_routines): Remove memccpy variants.
3628 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3629 * sysdeps/s390/multiarch/ifunc-impl-list.c
3630 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3631 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3632 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3633 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3634 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3635 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3636 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3637 * sysdeps/s390/ifunc-memccpy.h: New file.
3638
3639 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3640
3641 * sysdeps/s390/multiarch/Makefile
3642 (sysdep_routines): Remove rawmemchr variants.
3643 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3644 * sysdeps/s390/multiarch/ifunc-impl-list.c
3645 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3646 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3647 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3648 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3649 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3650 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3651 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3652 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3653
3654 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3655
3656 * sysdeps/s390/multiarch/Makefile
3657 (sysdep_routines): Remove memchr variants.
3658 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3659 * sysdeps/s390/multiarch/ifunc-impl-list.c
3660 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3661 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3662 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3663 * sysdeps/s390/multiarch/memchr.c: Move to ...
3664 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3665 * sysdeps/s390/ifunc-memchr.h: New file.
3666 * sysdeps/s390/s390-64/memchr.S: Move to ...
3667 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3668 for 31/64bit and ifunc handling.
3669 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3670 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3671 * sysdeps/s390/s390-32/memchr.S: Likewise.
3672
3673 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3674
3675 * sysdeps/s390/multiarch/Makefile
3676 (sysdep_routines): Remove strcspn variants.
3677 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3678 * sysdeps/s390/multiarch/ifunc-impl-list.c
3679 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3680 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3681 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3682 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3683 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3684 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3685 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3686 * sysdeps/s390/ifunc-strcspn.h: New file.
3687
3688 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3689
3690 * sysdeps/s390/multiarch/Makefile
3691 (sysdep_routines): Remove strpbrk variants.
3692 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3693 * sysdeps/s390/multiarch/ifunc-impl-list.c
3694 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3695 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3696 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3697 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3698 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3699 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3700 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3701 * sysdeps/s390/ifunc-strpbrk.h: New file.
3702
3703 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3704
3705 * sysdeps/s390/multiarch/Makefile
3706 (sysdep_routines): Remove strspn variants.
3707 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3708 * sysdeps/s390/multiarch/ifunc-impl-list.c
3709 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3710 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3711 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3712 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3713 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3714 * sysdeps/s390/multiarch/strspn.c: Move to ...
3715 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3716 * sysdeps/s390/ifunc-strspn.h: New file.
3717
3718 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3719
3720 * sysdeps/s390/multiarch/Makefile
3721 (sysdep_routines): Remove strrchr variants.
3722 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3723 * sysdeps/s390/multiarch/ifunc-impl-list.c
3724 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3725 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3726 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3727 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3728 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3729 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3730 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3731 * sysdeps/s390/ifunc-strrchr.h: New file.
3732
3733 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3734
3735 * sysdeps/s390/multiarch/Makefile
3736 (sysdep_routines): Remove strchrnul variants.
3737 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3738 * sysdeps/s390/multiarch/ifunc-impl-list.c
3739 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3740 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3741 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3742 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3743 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3744 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3745 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3746 * sysdeps/s390/ifunc-strchrnul.h: New file.
3747
3748 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3749
3750 * sysdeps/s390/multiarch/Makefile
3751 (sysdep_routines): Remove strchr variants.
3752 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3753 * sysdeps/s390/multiarch/ifunc-impl-list.c
3754 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3755 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3756 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3757 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3758 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3759 * sysdeps/s390/multiarch/strchr.c: Move to ...
3760 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3761 * sysdeps/s390/ifunc-strchr.h: New file.
3762
3763 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3764
3765 * sysdeps/s390/multiarch/Makefile
3766 (sysdep_routines): Remove strncmp variants.
3767 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3768 * sysdeps/s390/multiarch/ifunc-impl-list.c
3769 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3770 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3771 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3772 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3773 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3774 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3775 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3776 * sysdeps/s390/ifunc-strncmp.h: New file.
3777
3778 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3779
3780 * sysdeps/s390/multiarch/Makefile
3781 (sysdep_routines): Remove strcmp variants.
3782 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3783 * sysdeps/s390/multiarch/ifunc-impl-list.c
3784 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3785 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3786 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3787 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3788 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3789 * sysdeps/s390/ifunc-strcmp.h: New file.
3790 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3791 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3792 for 31/64bit and ifunc handling.
3793 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3794 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3795 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3796
3797 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3798
3799 * sysdeps/s390/multiarch/Makefile
3800 (sysdep_routines): Remove strncat variants.
3801 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3802 * sysdeps/s390/multiarch/ifunc-impl-list.c
3803 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3804 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3805 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3806 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3807 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3808 * sysdeps/s390/multiarch/strncat.c: Move to ...
3809 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3810 * sysdeps/s390/ifunc-strncat.h: New file.
3811
3812 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3813
3814 * sysdeps/s390/multiarch/Makefile
3815 (sysdep_routines): Remove strcat variants.
3816 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3817 * sysdeps/s390/multiarch/ifunc-impl-list.c
3818 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3819 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3820 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3821 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3822 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3823 * sysdeps/s390/multiarch/strcat.c: Move to ...
3824 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3825 * sysdeps/s390/ifunc-strcat.h: New file.
3826
3827 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3828
3829 * sysdeps/s390/multiarch/Makefile
3830 (sysdep_routines): Remove stpncpy variants.
3831 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3832 * sysdeps/s390/multiarch/ifunc-impl-list.c
3833 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3834 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3835 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3836 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3837 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3838 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3839 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3840 * sysdeps/s390/ifunc-stpncpy.h: New file.
3841
3842 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3843
3844 * sysdeps/s390/multiarch/Makefile
3845 (sysdep_routines): Remove strncpy variants.
3846 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3847 * sysdeps/s390/multiarch/ifunc-impl-list.c
3848 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3849 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3850 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3851 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3852 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3853 * sysdeps/s390/ifunc-strncpy.h: New file.
3854 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3855 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3856 and adjust ifunc handling.
3857 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3858 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3859 and adjust ifunc handling.
3860 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3861 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3862
3863 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3864
3865 * sysdeps/s390/multiarch/Makefile
3866 (sysdep_routines): Remove stpcpy variants.
3867 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3868 * sysdeps/s390/multiarch/ifunc-impl-list.c
3869 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3870 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3871 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3872 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3873 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3874 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3875 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3876 * sysdeps/s390/ifunc-stpcpy.h: New file.
3877
3878 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3879
3880 * sysdeps/s390/multiarch/Makefile
3881 (sysdep_routines): Remove strcpy variants.
3882 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3883 * sysdeps/s390/multiarch/ifunc-impl-list.c
3884 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3885 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3886 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3887 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3888 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3889 * sysdeps/s390/ifunc-strcpy.h: New file.
3890 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3891 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3892 for 31/64bit and ifunc handling.
3893 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3894 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3895 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3896
3897 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3898
3899 * sysdeps/s390/multiarch/Makefile
3900 (sysdep_routines): Remove strnlen variants.
3901 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3902 * sysdeps/s390/multiarch/ifunc-impl-list.c
3903 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3904 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3905 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3906 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3907 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3908 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3909 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3910 * sysdeps/s390/ifunc-strnlen.h: New file.
3911
3912 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3913
3914 * sysdeps/s390/multiarch/Makefile
3915 (sysdep_routines): Remove strlen variants.
3916 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3917 * sysdeps/s390/multiarch/ifunc-impl-list.c
3918 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3919 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3920 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3921 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3922 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3923 * sysdeps/s390/multiarch/strlen.c: Move to ...
3924 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3925 * sysdeps/s390/ifunc-strlen.h: New file.
3926
3927 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3928
3929 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3930 * sysdeps/s390/multiarch/ifunc-impl-list.c
3931 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3932 * sysdeps/s390/ifunc-memmem.h: New file.
3933 * sysdeps/s390/memmem.c: Likewise.
3934 * sysdeps/s390/memmem-c.c: Likewise.
3935 * sysdeps/s390/memmem-vx.c: Likewise.
3936
3937 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3938
3939 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3940 * sysdeps/s390/multiarch/ifunc-impl-list.c
3941 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3942 * sysdeps/s390/ifunc-strstr.h: New file.
3943 * sysdeps/s390/strstr.c: Likewise.
3944 * sysdeps/s390/strstr-c.c: Likewise.
3945 * sysdeps/s390/strstr-vx.c: Likewise.
3946
3947 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3948
3949 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3950 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3951 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3952 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3953 New defines.
3954 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3955 * sysdeps/s390/memmove-c.c: New file.
3956 * sysdeps/s390/memmove.c: Likewise.
3957 * sysdeps/s390/multiarch/ifunc-impl-list.c
3958 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3959
3960 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3961
3962 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3963 * sysdeps/s390/configure.ac: Add check for z13 support.
3964 * sysdeps/s390/configure: Regenerated.
3965
3966 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3967
3968 * sysdeps/s390/memcopy.h: New file.
3969
3970 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3971
3972 * sysdeps/s390/s390-32/bcopy.S: Remove.
3973 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3974
3975 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3976
3977 * sysdeps/s390/ifunc-memcpy.h: New File.
3978 * sysdeps/s390/memcpy.S: Move to ...
3979 * sysdeps/s390/memcpy-z900.S ... here.
3980 Move implementations from memcpy-s390x.s to here.
3981 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3982 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3983 Remove memcpy/mempcpy variants.
3984 * sysdeps/s390/Makefile (sysdep_routines):
3985 Add memcpy/mempcpy variants.
3986 * sysdeps/s390/multiarch/ifunc-impl-list.c
3987 (__libc_ifunc_impl_list): Adjust ifunc variants for
3988 memcpy and mempcpy.
3989 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3990 to ...
3991 * sysdeps/s390/memcpy.c: ... here.
3992 Adjust ifunc variants for memcpy.
3993 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3994 * sysdeps/s390/mempcpy.c: ... here.
3995 Adjust ifunc variants for mempcpy.
3996 * sysdeps/s390/mempcpy.S: Delete file.
3997
3998 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3999
4000 * sysdeps/s390/s390-64/memcpy.S: Move to ...
4001 * sysdeps/s390/memcpy.S: ... here.
4002 Adjust to be usable for 31/64bit.
4003 * sysdeps/s390/s390-32/memcpy.S: Delete File.
4004 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
4005 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
4006 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4007 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
4008 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
4009 Adjust to be usable for 31/64bit.
4010 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
4011 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
4012 * sysdeps/s390/multiarch/memcpy.c: ... here.
4013 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
4014
4015 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4016
4017 * sysdeps/s390/ifunc-memcmp.h: New File.
4018 * sysdeps/s390/memcmp.S: Move to ...
4019 * sysdeps/s390/memcmp-z900.S ... here.
4020 Move implementations from memcmp-s390x.s to here.
4021 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4022 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4023 Remove memcmp variants.
4024 * sysdeps/s390/Makefile (sysdep_routines):
4025 Add memcmp variants.
4026 * sysdeps/s390/multiarch/ifunc-impl-list.c
4027 (__libc_ifunc_impl_list): Adjust ifunc variants for
4028 memcmp.
4029 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4030 to ...
4031 * sysdeps/s390/memcmp.c: ... here.
4032 Adjust ifunc variants for memcmp.
4033
4034 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4035
4036 * sysdeps/s390/s390-64/memcmp.S: Move to ...
4037 * sysdeps/s390/memcmp.S: ... here.
4038 Adjust to be usable for 31/64bit.
4039 * sysdeps/s390/s390-32/memcmp.S: Delete File.
4040 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4041 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4042 Remove memcmp.
4043 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4044 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4045 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4046 Adjust to be usable for 31/64bit.
4047 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4048 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4049 * sysdeps/s390/multiarch/memcmp.c: ... here.
4050 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4051
4052 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4053
4054 * sysdeps/s390/s390-32/bzero.S: Delete file.
4055 * sysdeps/s390/s390-64/bzero.S: Likewise.
4056 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4057 * sysdeps/s390/bzero.c: New file.
4058 * sysdeps/s390/memset-z900.S: Add bzero entry points.
4059 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4060 * sysdeps/s390/multiarch/ifunc-impl-list.c
4061 (__libc_ifunc_impl_list): Add bzero ifunc variants.
4062
4063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4064
4065 * sysdeps/s390/ifunc-memset.h: New File.
4066 * sysdeps/s390/memset.S: Move to ...
4067 * sysdeps/s390/memset-z900.S ... here.
4068 Move implementations from memset-s390x.s to here.
4069 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4070 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4071 Remove memset variants.
4072 * sysdeps/s390/Makefile (sysdep_routines):
4073 Add memset variants.
4074 * sysdeps/s390/multiarch/ifunc-impl-list.c
4075 (__libc_ifunc_impl_list): Adjust ifunc variants for
4076 memset.
4077 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4078 to ...
4079 * sysdeps/s390/memset.c: ... here.
4080 Adjust ifunc variants for memset.
4081
4082 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4083
4084 * sysdeps/s390/s390-64/memset.S: Move to ...
4085 * sysdeps/s390/memset.S: ... here.
4086 Adjust to be usable for 31/64bit.
4087 * sysdeps/s390/s390-32/memset.S: Delete File.
4088 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4089 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4090 Remove memset.
4091 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4092 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4093 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4094 Adjust to be usable for 31/64bit.
4095 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4096 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4097 * sysdeps/s390/multiarch/memset.c: ... here.
4098 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4099
4100 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4101
4102 * sysdeps/s390/multiarch/ifunc-resolve.h
4103 (s390_libc_ifunc_init, s390_libc_ifunc,
4104 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4105
4106 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4107
4108 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4109 * sysdeps/s390/configure.ac: Add check for z10 support.
4110 * sysdeps/s390/configure: Regenerated.
4111
4112 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
4113
4114 * sysdeps/i386/atomic-machine.h: Merged with ...
4115 * sysdeps/x86_64/atomic-machine.h: To ...
4116 * sysdeps/x86/atomic-machine.h: This. New file.
4117
4118 2018-12-18 Florian Weimer <fweimer@redhat.com>
4119
4120 Rewrite locale/gen-translit.pl in Python.
4121 * locale/Makefile (generated): Add C-translit.h.
4122 (before-compile): Add $(objpfx)C-translit.h.
4123 (C-translit.h): Move to $(objpfx). Create target directory.
4124 Build using Python script.
4125 * locale/gen-translit.py: New file.
4126 * locale/gen-translit.pl: Remove file.
4127 * locale/C-translit.h.in: Change comment character to '#' for
4128 easier parsing without a C preprocessor.
4129 * locale/C-translit.h: Remove generated file.
4130 * manual/install.texi (Tools for Compilation): Do not mention
4131 C-translit.h.
4132 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4133 Remove locale/C-translit.h.
4134 * scripts/update-copyrights: Likewise.
4135 * INSTALL: Regenerate.
4136
4137 2018-12-18 Florian Weimer <fweimer@redhat.com>
4138
4139 [BZ #23995]
4140 * localedata/locales/bi_VU: Remove executable bit from file.
4141
4142 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
4143
4144 * include/time.h
4145 (__localtime64): Add.
4146 * manual/maint.texi: Document Y2038 symbol handling.
4147 * time/localtime.c
4148 (__localtime64): Add.
4149 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4150
4151 2018-12-17 Joseph Myers <joseph@codesourcery.com>
4152
4153 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4154 Do not clobber r12.
4155
4156 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4157 to allow extra macros from first or second sources.
4158 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4159 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4160 (tests-special): Add $(objpfx)tst-mman-consts.out.
4161 ($(objpfx)tst-mman-consts.out): New makefile target.
4162
4163 2018-12-17 Mao Han <han_mao@c-sky.com>
4164
4165 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4166 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4167 without stat64 system call support.
4168 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4169 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4170 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4171 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4172 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4173 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4174 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4175 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4176 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4177 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4178 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4179
4180 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4181
4182 regex: fix storage-exhaustion error
4183 [BZ #18040]
4184 * posix/regexec.c (get_subexp):
4185 Do not continue if storage is exhausted.
4186
4187 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4188
4189 regex: fix heap-use-after-free error
4190 [BZ #18040]
4191 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4192 https://debbugs.gnu.org/32592
4193 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4194 call extend_buffers which reallocates the re_string_t internal buffer.
4195 Local variable 'buf' was not updated in such case, resulting in
4196 use-after-free.
4197 * posix/regexec.c (get_subexp): Update 'buf' after call to
4198 get_subexp_sub.
4199
4200 2018-12-15 Florian Weimer <fweimer@redhat.com>
4201
4202 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4203 (minimum_stride_size): Use it.
4204 (support_blob_repeat_allocate): Likewise.
4205
4206 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4207
4208 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4209 definition.
4210 (acosh): Likewise.
4211 (atanh): Likewise.
4212
4213 2018-12-14 Florian Weimer <fweimer@redhat.com>
4214
4215 * manual/process.texi (Process Creation Concepts): Remove
4216 documentation of process (ID) lifetime. List more process
4217 creation functions. Reference Process Identification section.
4218 (Process Identification): Add information about process ID
4219 lifetime. Describe Linux thread/task IDs.
4220 * manual/signal.texi (Signaling Another Process): Mention that the
4221 signal is always sent to the process.
4222
4223 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4224
4225 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4226 and tst-ldbl-efgcvt.
4227 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4228 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4229 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4230 (fcvt_tests, output_error, output_r_error, do_test): Use the
4231 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4232 select the type of floating-point variables and arguments; to
4233 produce extra tests for double and conversion specifiers for
4234 printf; and to set the names of called functions.
4235 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4236 in tst-efgcvt-template.c.
4237 * misc/tst-ldbl-efgcvt.c: Likewise.
4238
4239 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4240
4241 * nss/Makefile (tst-nss-test3.out): New rule.
4242
4243 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4244
4245 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4246 clobber sp.
4247
4248 2018-12-13 fanjinke <fanjinke@hygon.cn>
4249
4250 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4251 "HygonGenuine".
4252
4253 2018-12-13 Andreas Schwab <schwab@suse.de>
4254
4255 [BZ #23861]
4256 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4257 (__pthread_rwlock_rdlock_full): Update expected value for
4258 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4259 * nptl/tst-rwlock-pwn.c: New file.
4260 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4261
4262 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4263
4264 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4265 definition.
4266
4267 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4268
4269 * benchtests/scripts/compare_bench.py (do_compare): write to
4270 stderr in casestat is not present.
4271 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4272 stderr in case timings field is not present. Also string showing
4273 the output filename goes into the stderr.
4274
4275 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4276
4277 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4278 and ZeroDivisorError exceptions.
4279 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4280 argument to loop through user provided statistics.
4281 * benchtests/scripts/compare_bench.py (main): Include the --stats
4282 argument.
4283
4284 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4285
4286 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4287 instead of return.
4288
4289 2018-12-12 Florian Weimer <fweimer@redhat.com>
4290
4291 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4292 clause to copyright header.
4293
4294 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4295
4296 [BZ #23614]
4297 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4298 registers saved in the stack frame.
4299 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4300 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4301
4302 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4303
4304 * include/bits/monetary-ldbl.h: New file.
4305 * include/bits/printf-ldbl.h: Likewise.
4306 * include/bits/stdio-ldbl.h: Likewise.
4307 * include/bits/stdlib-ldbl.h: Likewise.
4308 * include/bits/syslog-ldbl.h: Likewise.
4309 * include/bits/wchar-ldbl.h: Likewise.
4310
4311 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4312
4313 * libio/libio.h: Remove redirection for _IO_vfprintf.
4314
4315 2018-12-11 Andreas Schwab <schwab@suse.de>
4316
4317 * Makerules: Remove all references to abilist-pattern.
4318 (update-all-abi): Simplify find expression.
4319
4320 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4321
4322 [BZ #23961]
4323 * math/auto-libm-test-in: Add new test case.
4324 * math/auto-libm-test-out-pow: Regenerated.
4325 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4326
4327 2018-12-10 DJ Delorie <dj@redhat.com>
4328
4329 [BZ #23948]
4330 * support/test-container.c: Move postclean step to before we
4331 change namespaces.
4332
4333 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4334
4335 * scripts/gen-as-const.py (main): Handle --python option.
4336 * scripts/gen-py-const.awk: Remove.
4337 * Makerules (py-const-script): Use gen-as-const.py.
4338 ($(py-const)): Likewise.
4339 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4340 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4341 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4342 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4343 ~PTHREAD_MUTEX_NO_ELISION_NP.
4344 * manual/README.pretty-printers: Update reference to
4345 gen-py-const.awk.
4346
4347 * scripts/glibcextract.py: New file.
4348 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4349 or tempfile. Import glibcexctract.
4350 (compute_c_consts): Remove. Moved to glibcextract.py.
4351 (gen_test): Update reference to compute_c_consts.
4352 (main): Likewise.
4353 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4354 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4355 * sysdeps/unix/sysv/linux/Makefile
4356 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4357 Redirect stderr as well as stdout.
4358
4359 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4360
4361 [BZ #19767]
4362 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4363 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4364 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4365 ALWAYS_USE_VSYSCALL.
4366 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4367 ALWAYS_USE_VSYSCALL.
4368 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4369 ALWAYS_USE_VSYSCALL.
4370
4371 2018-12-10 Florian Weimer <fweimer@redhat.com>
4372
4373 [BZ #23972]
4374 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4375 offset instead of count for clarity. Fix typo in comment.
4376 (__old_getdents64): Keep track of previous offset. Use it to call
4377 handle_overflow.
4378 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4379 that d_off is never zero.
4380
4381 2018-12-10 Andreas Schwab <schwab@suse.de>
4382
4383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4384 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4386 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4387 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4388
4389 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4390
4391 * timezone/private.h: Update from tzcode 2018g.
4392 * timezone/tzfile.h: Likewise.
4393 * timezone/tzselect.ksh: Likewise.
4394 * timezone/zdump.c: Likewise.
4395 * timezone/zic.c: Likewise.
4396
4397 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4398
4399 [BZ #23490]
4400 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4401 (do_test): Adjust buffer size and fix format.
4402
4403 2018-12-07 DJ Delorie <dj@redhat.com>
4404
4405 [BZ #23907]
4406 * malloc/tst-tcfree3.c: New.
4407 * malloc/Makefile: Add it.
4408
4409 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4410
4411 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4412
4413 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4414
4415 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4416 used as a mask for the mode argument of __vfscanf_internal and
4417 __vfwscanf_internal.
4418 * stdio-common/vfscanf-internal.c
4419 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4420 (__strtof128_internal): Define to __wcstof128_internal.
4421 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4422 __strtof128_internal or __wcstof128_internal when the format of
4423 long double is the same as _Float128.
4424
4425 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4426
4427 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4428 * posix/confstr.c (confstr): Rename to __confstr.
4429 (__confstr): Add hidden def.
4430 (confstr): Add weak alias for __confstr.
4431 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4432 confstr.
4433
4434 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4435
4436 * NEWS: Mention getcpu.
4437 * include/sched.h (__getcpu): New libc_hidden_proto.
4438 * manual/resource.texi: Document getcpu.
4439 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4440 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4441 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4442 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4443 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4444 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4445 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4446 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4447 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4448 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4449 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4450 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4451 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4452 Likewise.
4453 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4454 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4455 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4456 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4457 Likewise.
4458 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4459 Likewise.
4460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4461 Likewise.
4462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4463 Likewise.
4464 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4465 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4466 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4467 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4468 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4469 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4470 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4471 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4472 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4473 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4474 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4475 Also check getcpu.
4476
4477 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4478
4479 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4480 functions.
4481 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4482
4483 2018-12-07 Florian Weimer <fweimer@redhat.com>
4484
4485 [BZ #17405]
4486 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4487 * posix/Versions (GLIBC_2.29): Export
4488 posix_spawn_file_actions_addfchdir_np.
4489 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4490 * posix/spawn_faction_destroy.c
4491 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4492 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4493 and the field action.fchdir_action.
4494 * posix/tst-spawn-chdir.c (add_chdir): New function.
4495 (do_test): Add do_fchdir loop. Call add_chdir.
4496 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4497 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4498 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4499 posix_spawn_file_actions_addfchdir_np.
4500 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4501 Likewise.
4502 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4503 Likewise.
4504 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4505 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4506 Likewise.
4507 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4508 Likewise.
4509 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4510 Likewise.
4511 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4512 Likewise.
4513 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4514 Likewise.
4515 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4516 Likewise.
4517 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4518 (GLIBC_2.29): Likewise.
4519 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4520 (GLIBC_2.29): Likewise.
4521 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4522 (GLIBC_2.29): Likewise.
4523 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4524 (GLIBC_2.29): Likewise.
4525 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4526 Likewise.
4527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4528 (GLIBC_2.29): Likewise.
4529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4530 (GLIBC_2.29): Likewise.
4531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4532 (GLIBC_2.29): Likewise.
4533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4534 (GLIBC_2.29): Likewise.
4535 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4536 Likewise.
4537 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4538 Likewise.
4539 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4540 Likewise.
4541 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4542 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4543 Likewise.
4544 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4545 Likewise.
4546 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4547 Likewise.
4548 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4549 Likewise.
4550
4551 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4552
4553 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4554 trailing whitespace removed.
4555 * scripts/config.guess: Update to version 2018-11-28.
4556 * scripts/config.sub: Update to version 2018-11-28.
4557 * scripts/install-sh: Update to version 2018-03-11.20.
4558 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4559 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4560
4561 2018-12-07 Florian Weimer <fweimer@redhat.com>
4562
4563 [BZ #23927]
4564 CVE-2018-19591
4565 * inet/tst-if_index-long.c: New file.
4566 * inet/Makefile (tests): Add tst-if_index-long.
4567
4568 2018-12-07 Florian Weimer <fweimer@redhat.com>
4569
4570 * support/check.h (support_record_failure_is_failed): Declare.
4571 * support/descriptors.h: New file.
4572 * support/support_descriptors.c: Likewise.
4573 * support/tst-support_descriptors.c: Likewise.
4574 * support/support_record_failure.c
4575 (support_record_failure_is_failed): New function.
4576 * support/Makefile (libsupport-routines): Add support_descriptors.
4577 (tests): Add tst-support_descriptors.
4578
4579 2018-12-05 Zack Weinberg <zackw@panix.com>
4580 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4581
4582 * stdio-common/vfprintf-internal.c
4583 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4584 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4585 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4586 and __no_long_double.
4587 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4588 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4589 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4590 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4591 and __nldbl_*syslog* functions.
4592 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4593 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4594 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4595 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4596 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4597 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4598 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4599 (__nldbl_vwprintf, __nldbl_wprintf):
4600 Directly call the appropriate __v*printf_internal routine, passing
4601 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4602 variable names.
4603 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4604 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4605 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4606 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4607 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4608 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4609 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4610 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4611 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4612 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4613 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4614 (__nldbl_syslog, __nldbl_vsyslog):
4615 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4616 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4617 appropriate.
4618 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4619 appropriate.
4620
4621 2018-12-05 Zack Weinberg <zackw@panix.com>
4622 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4623
4624 [BZ #11319]
4625 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4626 Moved here from debug/vsprintf_chk.c.
4627 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4628 and completion logic for the strfile to match exactly what
4629 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4630 _IO_str_init_static_internal instead of maxlen-1.
4631 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4632 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4633 __vsprintf_internal.
4634
4635 * debug/vsprintf_chk.c (__vsprintf_chk)
4636 * debug/sprintf_chk.c (__sprintf_chk):
4637 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4638 'flags' argument is positive, and slen as maxlen. No need to lock
4639 the FILE and/or construct a temporary FILE. Minimize and normalize
4640 header inclusions and variable names. Do not libc_hidden_def anything.
4641
4642 * debug/asprintf_chk.c (__asprintf_chk)
4643 * debug/dprintf_chk.c (__dprintf_chk)
4644 * debug/fprintf_chk.c (__fprintf_chk)
4645 * debug/fwprintf_chk.c (__fwprintf_chk)
4646 * debug/printf_chk.c (__printf_chk)
4647 * debug/snprintf_chk.c (__snprintf_chk)
4648 * debug/swprintf_chk.c (__swprintf_chk)
4649 * debug/vasprintf_chk.c (__vasprintf_chk)
4650 * debug/vdprintf_chk.c (__vdprintf_chk)
4651 * debug/vfprintf_chk.c (__vfprintf_chk)
4652 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4653 * debug/vprintf_chk.c (__vprintf_chk)
4654 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4655 * debug/vswprintf_chk.c (__vswprintf_chk)
4656 * debug/vwprintf_chk.c (__vwprintf_chk)
4657 * debug/wprintf_chk.c (__wprintf_chk):
4658 Directly call the corresponding vxxprintf_internal function, passing
4659 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4660 the FILE and/or construct a temporary FILE. Minimize and normalize
4661 header inclusions and variable names. Do not libc_hidden_def anything.
4662
4663 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4664 __obstack_vprintf_internal.
4665 (__obstack_vprintf_chk): Convert into a wrapper that calls
4666 __obstack_vprintf_internal (these two functions already had the
4667 same code) and move to new file...
4668 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4669 file.
4670 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4671 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4672 * debug/Makefile (routines): Add vobprintf_chk.
4673
4674 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4675 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4676 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4677 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4678 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4679 (__nldbl___obstack_vfprintf_chk):
4680 Directly call the corresponding vxxprintf_internal function,
4681 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4682 duplicate comparison of slen with 0 or maxlen from the corresponding
4683 non-__nldbl function.
4684
4685 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4686 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4687 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4688 Remove libc_hidden_proto.
4689
4690 * stdio-common/vfprintf-internal.c
4691 (__vfprintf_internal, __vfwprintf_internal):
4692 Do not check _IO_FLAGS2_FORTIFY.
4693 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4694 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4695 a comment explaining why it has the maxlen argument.
4696 (_IO_acquire_lock_clear_flags2_fct): Remove.
4697 (_IO_acquire_lock_clear_flags2): Remove.
4698 (_IO_release_lock): Remove conditional statement which will
4699 now never execute.
4700 (_IO_acquire_lock): Remove variable which is now unused.
4701 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4702 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4703
4704 * stdio-common/Makefile (tests): Add tst-bz11319 and
4705 tst-bz11319-fortify2.
4706 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4707 * stdio-common/tst-bz11319-fortify2.c: New file.
4708 * stdio-common/tst-bz11319.c: Likewise.
4709
4710 2018-12-05 Zack Weinberg <zackw@panix.com>
4711 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4712
4713 * misc/syslog.c: Include libioP.h, not iolibio.h.
4714 (__vsyslog_internal): New function with the former body of
4715 __vsyslog_chk; takes mode_flags argument same as
4716 __v*printf_internal. Call __vfprintf_internal directly.
4717
4718 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4719 Remove libc_hidden_def.
4720 (__syslog, __syslog_chk): Use __vsyslog_internal.
4721 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4722
4723 * include/sys/syslog.h: Add multiple inclusion guard.
4724 Add prototype for __vsyslog_internal.
4725 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4726
4727 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4728 Use __vsyslog_internal.
4729
4730 2018-12-05 Zack Weinberg <zackw@panix.com>
4731 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4732
4733 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4734 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4735 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4736 New functions.
4737 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4738 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4739
4740 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4741 Include wctype.h here if COMPILE_WPRINTF is defined.
4742 Define __vfprintf_internal or __vfwprintf_internal, depending
4743 on COMPILE_WPRINTF.
4744 Temporarily, on entry to this function, update mode_flags
4745 according to the environmental settings corresponding to
4746 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4747 Throughout, check mode_flags instead of __ldbl_is_dbl and
4748 _IO_FLAGS2_FORTIFY on the destination FILE.
4749 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4750 Include vfprintf-internal.c. Don't include wctype.h.
4751 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4752 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4753 and vfprintf.
4754 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4755 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4756 and vfwprintf.
4757 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4758
4759 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4760 and add mode_flags argument; use __vfprintf_internal.
4761 (__vdprintf): New function. Alias vdprintf to this.
4762 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4763 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4764 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4765 (__obstack_printf): Use __obstack_printf_internal.
4766 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4767 public aliases __vsnprintf and vsnprintf.
4768 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4769 called internally.
4770 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4771 public aliases _IO_vsprintf and vsprintf.
4772 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4773 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4774 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4775 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4776 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4777
4778 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4779 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4780 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4781 * stdio-common/printf.c: Use __vfprintf_internal.
4782
4783 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4784 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4785 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4786
4787 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4788 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4789 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4790 __vfwprintf_internal.
4791
4792 * libio/libio.h: Remove libc_hidden_proto and declaration for
4793 _IO_vfprintf.
4794 Remove declaration of _IO_vfwprintf.
4795 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4796 _IO_vsprintf.
4797 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4798 _IO_obstack_printf.
4799 * include/stdio.h: Add prototype for __vasprintf.
4800 (__vsnprintf): Remove declaration, because there are no more
4801 internal calls.
4802 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4803 declaration, because there are no more internal calls.
4804
4805 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4806 __vsnprintf_internal, instead of _IO_vsnprintf.
4807 * argp/argp-help.c (__argp_error, __argp_failure): Use
4808 __vasprintf_internal, instead of _IO_vasprintf.
4809 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4810 redefine, because there are no more internal calls.
4811
4812 2018-12-05 Zack Weinberg <zackw@panix.com>
4813 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4814
4815 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4816 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4817 Include libio/strfile.h instead of libioP.h.
4818 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4819 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4820 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4821 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4822 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4823 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4824 necessary. Do not set __no_long_double. Normalize variable names.
4825 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4826 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4827 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4828 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4829 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4830 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4831 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4832 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4833 Do not set __no_long_double. Normalize variable names.
4834
4835 2018-12-05 Zack Weinberg <zackw@panix.com>
4836 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4837
4838 * stdio-common/isoc99_scanf.c
4839 * stdio-common/isoc99_fscanf.c
4840 * stdio-common/isoc99_sscanf.c
4841 * stdio-common/isoc99_vscanf.c
4842 * stdio-common/isoc99_vfscanf.c
4843 * stdio-common/isoc99_vsscanf.c
4844 * wcsmbs/isoc99_wscanf.c
4845 * wcsmbs/isoc99_fwscanf.c
4846 * wcsmbs/isoc99_swscanf.c
4847 * wcsmbs/isoc99_vwscanf.c
4848 * wcsmbs/isoc99_vfwscanf.c
4849 * wcsmbs/isoc99_vswscanf.c:
4850 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4851 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4852 No need to lock and unlock the FILE passed to that function.
4853
4854 * stdio-common/vfscanf-internal.c
4855 (__vfscanf_internal, __vfwscanf_internal):
4856 Don't look at _IO_FLAGS2_SCANF_STD.
4857 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4858 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4859 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4860
4861 2018-12-05 Zack Weinberg <zackw@panix.com>
4862 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4863
4864 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4865 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4866 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4867 * libio/strfile.h: Add multiple inclusion guard.
4868 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4869
4870 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4871 consistency with the other version of this file.
4872 (ldbl_compat_symbol): New macro.
4873 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4874 New macro.
4875
4876 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4877 Define __vfscanf_internal or __vfwscanf_internal, depending on
4878 COMPILE_WSCANF; don't define any other public symbols.
4879 Remove errval and code to set errp.
4880 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4881 as the mode_flags argument.
4882 (encode_error, conv_error, input_error): Don't set errval.
4883 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4884 Include vfscanf-internal.c.
4885 * stdio-common/vfscanf.c: New file defining the public entry
4886 point vfscanf, which calls __vfscanf_internal.
4887 * stdio-common/vfwscanf.c: New file defining the public entry
4888 point vfwscanf, which calls __vfwscanf_internal.
4889
4890 * stdio-common/iovfscanf.c: New file.
4891 * stdio-common/iovfwscanf.c: Likewise.
4892
4893 * stdio-common/Makefile (routines): Add vfscanf-internal,
4894 vfwscanf-internal, iovfscanf, iovfwscanf.
4895 * stdio-common/Versions: Mention GLIBC_2.29, so that
4896 it can be used in SHLIB_COMPAT expressions.
4897 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4898 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4899 Call __vfscanf_internal, instead of _IO_vfscanf.
4900 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4901 _IO_vfscanf.
4902 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4903 _IO_vfwscanf.
4904
4905 * libio/iovsscanf.c: Clean up includes, when possible. Use
4906 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4907 __vfscanf_internal or __vfwscanf_internal directly.
4908 * libio/iovswscanf.c: Likewise.
4909 * libio/swscanf.c: Likewise.
4910 * libio/vscanf.c: Likewise.
4911 * libio/vwscanf.c: Likewise.
4912 * libio/wscanf.c: Likewise.
4913 * stdio-common/isoc99_fscanf.c: Likewise.
4914 * stdio-common/isoc99_scanf.c: Likewise.
4915 * stdio-common/isoc99_sscanf.c: Likewise.
4916 * stdio-common/isoc99_vfscanf.c: Likewise.
4917 * stdio-common/isoc99_vscanf.c: Likewise.
4918 * stdio-common/isoc99_vsscanf.c: Likewise.
4919 * stdio-common/scanf.c: Likewise.
4920 * stdio-common/sscanf.c: Likewise.
4921 * wcsmbs/isoc99_fwscanf.c: Likewise.
4922 * wcsmbs/isoc99_swscanf.c: Likewise.
4923 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4924 * wcsmbs/isoc99_vswscanf.c: Likewise.
4925 * wcsmbs/isoc99_vwscanf.c: Likewise.
4926 * wcsmbs/isoc99_wscanf.c: Likewise.
4927
4928 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4929
4930 * include/time.h
4931 (__tz_compute): Replace time_t with __time64_t.
4932 (__tz_convert): Replace time_t* with __time64_t.
4933 (__offtime): Replace time_t* with __time64_t.
4934 * time/gmtime.c
4935 (__gmtime_r): Adjust call to __tz_convert.
4936 (gmtime): Likewise.
4937 * time/localtime.c
4938 (__localtime_r): Likewise.
4939 (localtime): Likewise.
4940 * time/offtime.c: Replace time_t with __time64_t.
4941 * time/tzset.c: Likewise.
4942
4943 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4944
4945 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4946 dynamic linker unless [$(run-built-tests) = yes].
4947
4948 2018-12-03 DJ Delorie <dj@delorie.com>
4949
4950 * support/test-container.c (check_for_unshare_hints): New.
4951 (main): Call it if unshare fails. Add support for "su" scriptlet
4952 command.
4953
4954 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4955
4956 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4957 'START' to indicate that start text should be output.
4958 (gen_test): Likewise.
4959 (main): Generate 'START' for first symbol or '--' line, or at end
4960 of input if not previously generated.
4961
4962 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4963
4964 [BZ #19767]
4965 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4966 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4967 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4968 ALWAYS_USE_VSYSCALL.
4969
4970 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4971
4972 [BZ #23913]
4973 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4974 new_argv by one.
4975
4976 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4977
4978 [BZ #23923]
4979 * locale/programs/localedef.c: Declare boolean hard_links default true.
4980 (options): Add --no-hard-links option.
4981 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4982 * locale/programs/localedef.h: Declare prototype for hard_links.
4983 * locale/programs/locfile.c (write_locale_data): Don't use hard
4984 links if hard_links is false.
4985
4986 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4987
4988 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4989 cpu_features_basic.
4990 (__cache_sysconf): Likewise.
4991 (init_cacheinfo): Likewise.
4992 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4993 populate COMMON_CPUID_INDEX_80000007 and
4994 COMMON_CPUID_INDEX_80000008.
4995 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4996 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4997 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4998 (init_cpu_features): Use _Static_assert on
4999 index_arch_Fast_Unaligned_Load.
5000 __get_cpuid_registers and __get_arch_feature. Updated for
5001 cpu_features_basic. Set stepping in cpu_features.
5002 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
5003 (FEATURE_INDEX_2): New.
5004 (FEATURE_INDEX_MAX): Changed to enum.
5005 (COMMON_CPUID_INDEX_D_ECX_1): New.
5006 (COMMON_CPUID_INDEX_80000007): Likewise.
5007 (COMMON_CPUID_INDEX_80000008): Likewise.
5008 (cpuid_registers): Likewise.
5009 (cpu_features_basic): Likewise.
5010 (CPU_FEATURE_USABLE): Likewise.
5011 (bit_arch_XXX_Usable): Likewise.
5012 (cpu_features): Use cpuid_registers and cpu_features_basic.
5013 (bit_arch_XXX): Reweritten.
5014 (bit_cpu_XXX): Likewise.
5015 (index_cpu_XXX): Likewise.
5016 (reg_XXX): Likewise.
5017 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5018 <support/check.h>.
5019 (CHECK_CPU_FEATURE): New.
5020 (CHECK_CPU_FEATURE_USABLE): Likewise.
5021 (cpu_kinds): Likewise.
5022 (do_test): Print vendor, family, model and stepping. Check
5023 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5024 (TEST_FUNCTION): Removed.
5025 Include <support/test-driver.c> instead of
5026 "../../test-skeleton.c".
5027 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5028 Check POPCNT instead of POPCOUNT.
5029 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5030
5031 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5032
5033 * scripts/gen-as-const.py (main): Avoid emitting empty line when
5034 there is no element in `consts'.
5035
5036 2018-12-01 Florian Weimer <fweimer@redhat.com>
5037
5038 * support/support_capture_subprocess.c
5039 (support_capture_subprocess): Check that pipe descriptors have
5040 expected values. Close original pipe descriptors in subprocess.
5041
5042 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5043
5044 [BZ #23032]
5045 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5046 attr with __pthread_default_barrierattr.
5047 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5048 attr with __pthread_default_condattr.
5049 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5050 attr with __pthread_default_mutexattr.
5051 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5052 attr with __pthread_default_rwlockattr.
5053
5054 2018-12-01 Kemi Wang <kemi.wang@intel.com>
5055
5056 * manual/tunables.texi (POSIX Thread Tunables): New node.
5057 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5058 * nptl/nptl-init.c: Include pthread_mutex_conf.h
5059 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5060 __pthread_tunables_init.
5061 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5062 (max_adaptive_count): Define.
5063 * nptl/pthread_mutex_conf.c: New file.
5064 * nptl/pthread_mutex_conf.h: New file.
5065 * sysdeps/generic/adaptive_spin_count.h: New file.
5066 * sysdeps/nptl/dl-tunables.list: New file.
5067 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5068 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5069 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5070 Likewise.
5071
5072 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5073
5074 [BZ #20544]
5075 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5076 * stdlib/on_exit.c (__on_exit): Likewise.
5077 * stdlib/Makefile (tests): Add tst-bz20544.
5078 * stdlib/tst-bz20544.c: New test.
5079
5080 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
5081
5082 [BZ #19767]
5083 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5084 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5085 New.
5086
5087 2018-11-30 Florian Weimer <fweimer@redhat.com>
5088
5089 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5090 Extend error logging.
5091 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5092 symbol.
5093
5094 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5095
5096 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5097 __sigismember instead of sigismember.
5098 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5099 cancel_handler): New definitions.
5100 (do_system): Use posix_spawn instead of fork and execl and remove
5101 reentracy code.
5102 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5103 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5104 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5105 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5106 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5107 * sysdeps/unix/sysv/linux/system.c: Likewise.
5108
5109 [BZ #22834]
5110 [BZ #17490]
5111 * NEWS: Add new semantic for atfork with popen and system.
5112 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5113 fork and execl.
5114
5115 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5116
5117 [BZ #23690]
5118 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5119 modification order when accessing reloc_result->addr.
5120 * include/link.h (reloc_result): Add field init.
5121 * nptl/Makefile (tests): Add tst-audit-threads.
5122 (modules-names): Add tst-audit-threads-mod1 and
5123 tst-audit-threads-mod2.
5124 Add rules to build tst-audit-threads.
5125 * nptl/tst-audit-threads-mod1.c: New file.
5126 * nptl/tst-audit-threads-mod2.c: Likewise.
5127 * nptl/tst-audit-threads.c: Likewise.
5128 * nptl/tst-audit-threads.h: Likewise.
5129
5130 2018-11-30 Joseph Myers <joseph@codesourcery.com>
5131
5132 * scripts/gen-as-const.py: New file.
5133 * scripts/gen-as-const.awk: Remove.
5134 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5135 gen-as-const.py.
5136 ($(objpfx)test-as-const-%.c): Likewise.
5137
5138 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5139
5140 * elf/dl-exception.c: Include <_itoa.h>.
5141
5142 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5143
5144 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5145 returned by __f_setlk.
5146
5147 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5148 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5149
5150 * elf/Makefile (tests-internal): Add tst-create_format1.
5151 * elf/dl-exception.c (_dl_exception_create_format): Support
5152 %x, %lx and %zx.
5153 * elf/tst-create_format1.c: New file.
5154
5155 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5156
5157 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5158 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5159 gnulib.)
5160 * argp/argp-help.c (__argp_failure): Likewise.
5161
5162 2018-11-29 Mao Han <han_mao@c-sky.com>
5163
5164 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5165 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5166 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5167 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5168 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5169 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5170 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5171 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5172 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5173 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5174 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5175 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5176 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5177 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5178 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5179 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5180 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5181 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5182 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5183 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5184 (R_CKCORE_TLS_TPOFF32): New defines.
5185
5186 2018-11-29 Florian Weimer <fweimer@redhat.com>
5187
5188 * posix/Makefile (before-compile): Remove testcases.h and
5189 ptestcases.h.
5190 (generated): Add testcases.h and ptestcases.h.
5191 (testcases.h, ptestcases.h): Move to $(objpfx).
5192 (runtests.o): Add dependency on testcases.h.
5193 (runptests.o): Add dependency on ptestcases.h.
5194 * posix/testcases.h, posix/ptestcases.h: Remove files.
5195 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5196 not touch posix/testcases.h and posix/ptestcases.h.
5197
5198 2018-11-28 Florian Weimer <fweimer@redhat.com>
5199
5200 support: Add signal support to support_capture_subprocess_check.
5201 * support/capture_subprocess.h (support_capture_subprocess_check):
5202 Adjust comment and rename parameter.
5203 * support/support_capture_subprocess_check.c
5204 (print_actual_status): New function.
5205 (support_capture_subprocess_check): Support negative
5206 status_or_signal. Call print_actual_status.
5207 * support/tst-support_capture_subprocess.c (do_test): Call
5208 support_capture_subprocess_check.
5209 * libio/tst-vtables-common.c (termination_status)
5210 (init_termination_status): Remove.
5211 (check_for_termination): Adjust support_capture_subprocess_check
5212 call.
5213 (do_test): Remove call to init_termination_status.
5214
5215 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5216
5217 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5218 source directory instead of a copy.
5219 (CommandList.create_copy_dir): Remove.
5220
5221 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5222
5223 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5224
5225 2018-11-28 Florian Weimer <fweimer@redhat.com>
5226
5227 * support/support.h (support_quote_string): Do not use str
5228 parameter name.
5229
5230 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5231
5232 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5233 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5234
5235 2018-11-27 Florian Weimer <fweimer@redhat.com>
5236
5237 * support/support.h (support_quote_string): Declare.
5238 * support/support_quote_string.c: New file.
5239 * support/tst-support_quote_string.c: Likewise.
5240 * support/Makefile (libsupport-routines): Add
5241 support_quote_string.
5242 (tests): Add tst-support_quote_string.
5243
5244 2018-11-27 Florian Weimer <fweimer@redhat.com>
5245
5246 [BZ #23927]
5247 CVE-2018-19591
5248 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5249 descriptor leak in case of ENODEV error.
5250
5251 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5252
5253 [BZ #19767]
5254 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5255 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5256 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5257
5258 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5259
5260 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5261 Error for unknown lines.
5262
5263 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5264
5265 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5266 Touch additional files.
5267
5268 2018-11-26 Florian Weimer <fweimer@redhat.com>
5269
5270 [BZ #23907]
5271 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5272 double-frees.
5273
5274 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5275
5276 [BZ #19767]
5277 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5278 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5279 SHARED. Include sysdep.h.
5280 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5281 ALWAYS_USE_VSYSCALL.
5282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5283 ALWAYS_USE_VSYSCALL.
5284
5285 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5286
5287 [BZ #19767]
5288 * nptl/Makefile (tests-static): Add tst-cond11-static.
5289 (tests): Likewise.
5290 * nptl/tst-cond11-static.c: New File.
5291 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5292 tst-affinity-static.
5293 (tests): Likewise.
5294 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5295 instead of SHARED.
5296 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5297 (USE_VSYSCALL): Likewise.
5298 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5299 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5300 instead of SHARED.
5301 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5302 SHARED.
5303 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5304 New.
5305
5306 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5307
5308 [BZ #23915]
5309 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5310 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5311 Undefine.
5312
5313 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5314
5315 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5316 (tst-cet-legacy-1a-ARGS): New.
5317 ($(objpfx)tst-cet-legacy-1a): New target.
5318 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5319
5320 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5321
5322 * conform/conformtest.py (CompileSubTest.__init__): Set
5323 self.run_early to False.
5324 (ExecuteSubTest.__init__): Likewise.
5325 (HeaderTests.run): Try running all non-optional, non-XFAILed
5326 compilation tests in a single execution of the compiler.
5327
5328 * conform/conformtest.py (CompileSubTest): New class.
5329 (ExecuteSubTest): Likewise.
5330 (ElementTest.run): Rename to gen_subtests. Append tests to
5331 self.subtests instead of running them.
5332 (ConstantTest.run): Likewise.
5333 (SymbolTest.run): Likewise.
5334 (TypeTest.run): Likewise.
5335 (TagTest.run): Likewise.
5336 (FunctionTest.run): Likewise.
5337 (VariableTest.run): Likewise.
5338 (MacroFunctionTest.run): Likewise.
5339 (MacroStrTest.run): Likewise.
5340 (HeaderTests.handle_test_line): Generate subtests for tests.
5341 (HeaderTests.run): Run subtests for tests.
5342
5343 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5344
5345 * math/Versions (GLIBC_2.29): Add pow.
5346 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5347 symbol.
5348 * math/w_pow.c: New file.
5349 * sysdeps/i386/fpu/w_pow.c: New file.
5350 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5351 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5352 and add necessary aliases.
5353 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5354 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5355 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5356 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5357 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5358 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5359 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5360 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5361 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5362 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5363 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5364 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5365 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5366 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5367 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5372 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5373 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5374 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5375 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5376 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5377 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5378 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5379 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5380 __pow.
5381 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5382 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5383 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5384
5385 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5386
5387 * math/Versions (GLIBC_2.29): Add log2.
5388 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5389 symbol.
5390 * math/w_log2.c: New file.
5391 * sysdeps/i386/fpu/w_log2.c: New file.
5392 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5393 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5394 and add necessary aliases.
5395 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5396 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5397 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5398 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5399 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5400 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5401 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5402 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5403 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5404 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5405 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5406 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5407 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5408 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5409 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5414 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5415 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5416 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5417 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5418 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5419 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5420 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5421
5422 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5423
5424 * math/Versions (GLIBC_2.29): Add log.
5425 * math/w_log_compat.c (__log_compat): Change to versioned compat
5426 symbol.
5427 * math/w_log.c: New file.
5428 * sysdeps/i386/fpu/w_log.c: New file.
5429 * sysdeps/ia64/fpu/e_log.S: Update.
5430 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5431 and add necessary aliases.
5432 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5433 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5434 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5435 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5436 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5437 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5438 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5439 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5440 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5441 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5442 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5443 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5444 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5445 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5446 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5451 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5452 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5453 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5454 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5455 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5456 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5457 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5458 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5459 __log.
5460 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5461 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5462 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5463 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5464
5465 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5466
5467 * math/Versions (GLIBC_2.29): Add exp and exp2.
5468 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5469 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5470 * math/w_exp_compat.c (__exp_compat): Likewise.
5471 * math/w_exp.c: New file.
5472 * math/w_exp2.c: New file.
5473 * sysdeps/i386/fpu/w_exp.c: New file.
5474 * sysdeps/i386/fpu/w_exp2.c: New file.
5475 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5476 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5477 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5478 and add necessary aliases.
5479 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5480 and add necessary aliases.
5481 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5482 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5483 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5484 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5485 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5486 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5487 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5488 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5489 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5490 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5491 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5492 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5493 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5494 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5495 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5496 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5497 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5502 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5503 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5504 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5505 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5506 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5507 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5508 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5509 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5510 (__ieee754_exp): Rename to __exp.
5511 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5512 (__ieee754_exp): Rename to __exp.
5513 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5514 (__ieee754_exp): Rename to __exp.
5515 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5516 __exp.
5517 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5518
5519 2018-11-20 DJ Delorie <dj@redhat.com>
5520
5521 * malloc/malloc.c (tcache_entry): Add key field.
5522 (tcache_put): Set it.
5523 (tcache_get): Likewise.
5524 (_int_free): Check for double free in tcache.
5525 * malloc/tst-tcfree1.c: New.
5526 * malloc/tst-tcfree2.c: New.
5527 * malloc/Makefile: Run the new tests.
5528 * manual/probes.texi: Document memory_tcache_double_free probe.
5529
5530 * dlfcn/dlerror.c (check_free): Prevent double frees.
5531
5532 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5533
5534 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5535
5536 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5537
5538 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5539 in tests. Use names for format arguments.
5540 (ConstantTest.run): Likewise.
5541 (SymbolTest.run): Likewise.
5542 (TypeTest.run): Likewise.
5543 (TagTest.run): Likewise.
5544 (FunctionTest.run): Likewise.
5545 (VariableTest.run): Likewise.
5546 (MacroFunctionTest.run): Likewise.
5547 (MacroStrTest.run): Likewise.
5548 (HeaderTests.__init__): Set self.num_tests.
5549 (HeaderTests.handle_test_line): Set test.num. Increment
5550 self.num_tests.
5551
5552 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5553
5554 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5555 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5556 SEEK_SET.
5557
5558 2018-11-19 Mao Han <han_mao@c-sky.com>
5559
5560 * scripts/config.guess: Update to version 2018-08-29.
5561 * scripts/config.sub: Update to version 2018-08-29.
5562
5563 2018-11-19 Florian Weimer <fweimer@redhat.com>
5564
5565 support: Print timestamps in timeout handler.
5566 * support/support_test_main.c (print_timestamp): New function.
5567 (signal_handler): Use it to print the termination time and the
5568 time of the last write to standard output.
5569
5570 2018-11-16 Zack Weinberg <zackw@panix.com>
5571 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5572
5573 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5574 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5575 argument.
5576 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5577 and add flags argument. Check flags instead of __ldbl_is_dbl when
5578 deciding whether to set is_long_double.
5579 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5580 passing zero for flags argument.
5581 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5582
5583 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5584 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5585 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5586 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5587 variable names. Remove libc_hidden_def/libc_hidden_proto from
5588 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5589 longer called from within the library.
5590 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5591 for __nldbl___vstrfmon_l, declare it explicitly.
5592
5593 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5594
5595 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5596
5597 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5598 macros
5599 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5600 F_SETLK64, F_SETLKW64, respectively.
5601 * sysdeps/mach/hurd/f_setlk.c: New file.
5602 * sysdeps/mach/hurd/f_setlk.h: New file.
5603 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5604 f_setlk.
5605 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5606 (__libc_fcntl): Move non-flock operations to...
5607 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5608 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5609
5610 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5611
5612 mktime: DEBUG_MKTIME cleanup
5613 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5614 And it’s no longer needed now that glibc and Gnulib both have
5615 their own testing mechanisms for mktime.
5616 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5617
5618 mktime: fix non-EOVERFLOW errno handling
5619 [BZ#23789]
5620 mktime was not properly reporting failures when the underlying
5621 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5622 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5623 The problem could happen on non-glibc platforms, with Gnulib.
5624 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5625 (tm_diff): ... this simpler function, which does not change errno.
5626 All callers changed to deal with errno themselves.
5627 (ranged_convert, __mktime_internal): Return failure immediately if
5628 the underlying function reports any failure other than EOVERFLOW.
5629 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5630 gap code fails.
5631
5632 mktime: fix bug with Y2038 DST transition
5633 [BZ#23789]
5634 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5635 mishandle a DST transition that jumps over the Y2038 boundary.
5636 No such DST transitions are known so this is only a theoretical
5637 bug, but we might as well do things right.
5638
5639 mktime: make more room for overflow
5640 [BZ#23789]
5641 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5642 This is so that we can add tm_diff results to a previous guess,
5643 which will be useful in a later patch.
5644
5645 mktime: simplify offset guess
5646 [BZ#23789]
5647 * time/mktime.c (__mktime_internal): Omit excess precision.
5648
5649 mktime: new test for mktime failure
5650 [BZ#23789]
5651 Based on a test suggested by Albert Aribaud in:
5652 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5653 * time/Makefile (tests): Add bug-mktime4.
5654 * time/bug-mktime4.c: New file.
5655
5656 mktime: fix EOVERFLOW bug
5657 [BZ#23789]
5658 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5659 Include libc-config.h, not config.h, for __set_errno.
5660 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5661
5662 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5663
5664 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5665 __attribute_copy__ to copy attributes from name. Drop static qualifier
5666 to avoid warnings about leaf attribute not having effect on static
5667 functions.
5668
5669 2018-11-13 Florian Weimer <fweimer@redhat.com>
5670
5671 * malloc/malloc.c (fastbin_push_entry): New function.
5672 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5673 (REMOVE_FB): Remove macro.
5674 (_int_malloc): Use fastbin_pop_entry and reindent.
5675 (_int_free): Use fastbin_push_entry.
5676 (malloc_consolidate): Use atomic_exchange_acquire.
5677
5678 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5679
5680 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5681 alias attribute, not with strong_alias.
5682
5683 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5684 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5685 with additional parameter thread.
5686 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5687 in terms of __hidden_ver2.
5688 (hidden_tls_def): New macro.
5689 (libc_hidden_tls_def): Likewise.
5690 (rtld_hidden_tls_def): Likewise.
5691 (libm_hidden_tls_def): Likewise.
5692 (libmvec_hidden_tls_def): Likewise.
5693 (libresolv_hidden_tls_def): Likewise.
5694 (librt_hidden_tls_def): Likewise.
5695 (libdl_hidden_tls_def): Likewise.
5696 (libnss_files_hidden_tls_def): Likewise.
5697 (libnsl_hidden_tls_def): Likewise.
5698 (libnss_nisplus_hidden_tls_def): Likewise.
5699 (libutil_hidden_tls_def): Likewise.
5700 (libutil_hidden_tls_def): Likweise.
5701 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5702 libc_hidden_tls_def.
5703 (__sim_disabled_exceptions_thread): Likewise.
5704 (__sim_round_mode_thread): Likewise.
5705
5706 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5707 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5708 copy attributes from name.
5709
5710 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5711
5712 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5713 Use __attribute_copy__ to copy attributes from name.
5714
5715 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5716 with __hidden_ver1 call.
5717 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5718 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5719 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5720 (__cosf): Do not declare here.
5721 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5722 (__sincosf): Do not declare here.
5723 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5724 (__sinf): Do not declare here.
5725
5726 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5727 (__BIG_ENDIAN): Likewise.
5728 (__BYTE_ORDER): Likewise.
5729 (strong_alias): Likewise.
5730 (_strong_alias): Likewise.
5731
5732 2018-11-12 Florian Weimer <fweimer@redhat.com>
5733
5734 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5735 function. Move after the definition of in_smallbin_range. Do not
5736 use __builtin_expect for paths that lead to a noreturn function.
5737 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5738 because it is unclear whether this is in fact an unlikely
5739 condition.
5740 (_int_malloc, _int_free): Adjust.
5741 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5742 variables.
5743 * malloc/arena.c (heap_trim): Likewise.
5744
5745 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5746
5747 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5748 it, free it if needed.
5749 (reauthenticate): Test and use ccwdir.
5750 (child_init_port): In non-resetids case, test and use ccwdir.
5751 (child_chdir): New nested function to set ccwdir.
5752 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5753 * hurd/hurd/port.h (_hurd_port_move): New function.
5754 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5755 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5756 * hurd/Versions (_hurd_port_move): Export function.
5757 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5758 symbol.
5759 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5760 of dtablesize for allocating dtable_cloexec.
5761
5762 2018-11-09 Martin Sebor <msebor@redhat.com>
5763
5764 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5765 it's already defined.
5766 (_strong_alias): Use __attribute_copy__.
5767 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5768 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5769 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5770 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5771 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5772 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5773 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5774 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5775 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5776 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5777 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5778 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5779 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5780 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5781 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5782 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5783 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5784 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5785 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5786
5787 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5788
5789 * misc/tst-efgcvt.c: Include support/check.h and
5790 support/test-driver.c. Do not include test-skeleton.c.
5791 (error_count): Remove.
5792 (output_error): Replace increments to error_count with calls to
5793 support_record_failure.
5794 (output_r_error): Likewise.
5795 (special): Likewise.
5796 (do_test): Unconditionally return zero.
5797 (TEST_FUNCTION): Remove.
5798
5799 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5800
5801 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5802 not $(@D)/scratch.
5803 ($(linknamespace-header-tests)): Likewise.
5804
5805 * conform/conformtest.py: New file.
5806 * conform/conformtest.pl: Remove.
5807 * conform/GlibcConform.pm: Likewise.
5808 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5809 (KEYWORDS_C99): Likewise.
5810 (KEYWORDS): Likewise.
5811 * conform/Makefile ($(conformtest-header-tests)): Use
5812 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5813 option. Use --header instead of --headers.
5814 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5815 function entries.
5816 * conform/data/spawn.h-data: Likewise.
5817 * conform/data/fcntl.h-data (openat): Add space after function
5818 name.
5819 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5820 (wcscasecmp_l): Likewise.
5821 * conform/data/termios.h-data (c_cc): Add space after element
5822 name.
5823
5824 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5825
5826 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5827 instead of manually comparing and reporting mismatching strings.
5828 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5829 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5830
5831 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5832
5833 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5834 __ASSUME_SOCKETCALL.
5835 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5836 (__ASSUME_SOCKETCALL): Remove.
5837 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5838 (__ASSUME_SOCKETCALL): Likewise.
5839 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5840 (__ASSUME_SOCKETCALL): Likewise.
5841 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5842 (__ASSUME_SOCKETCALL): Likewise.
5843 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5844 (__ASSUME_SOCKETCALL): Likewise.
5845 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5846 (__ASSUME_SOCKETCALL): Likewise.
5847 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5848 (__ASSUME_SOCKETCALL): Likewise.
5849
5850 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5851
5852 [BZ #23509]
5853 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5854 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5855 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5856 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5857 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5858 lc_unknown.
5859
5860 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5861
5862 [BZ #17630]
5863 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5864
5865 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5866
5867 [BZ #23867]
5868 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5869 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5870 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5871 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5872
5873 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5874
5875 * support/support_test_compare_string.c
5876 (support_test_compare_string): Fix printf format.
5877
5878 2018-11-07 Florian Weimer <fweimer@redhat.com>
5879
5880 Implement TEST_COMPARE_STRING.
5881 * support/check.h (TEST_COMPARE_STRING): Define.
5882 (support_test_compare_string): Declare.
5883 * support/Makefile (libsupport-routines): Add
5884 support_test_compare_string.
5885 (tests): Add tst-test_compare_string.
5886 * support/support_test_compare_string.c: New file.
5887 * support/tst-test_compare_string.c: Likewise.
5888
5889 2018-11-07 Andreas Schwab <schwab@suse.de>
5890
5891 [BZ #23864]
5892 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5893 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5894 Undef.
5895
5896 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5897
5898 [BZ #23862]
5899 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5900 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5901 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5902 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5903 Likewise.
5904
5905 2018-11-06 Florian Weimer <fweimer@redhat.com>
5906
5907 [BZ #17405]
5908 * posix/Makefile (routines): Add spawn_faction_addchdir.
5909 (tests): Add tst-spawn-chdir.
5910 * posix/Versions (GLIBC_2.29): Add
5911 posix_spawn_file_actions_addchdir_np.
5912 * posix/spawn_faction_addchdir.c: New file.
5913 * posix/spawn_faction_destroy.c
5914 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5915 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5916 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5917 chdir_action.
5918 * posix/tst-spawn-chdir.c: New file.
5919 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5920 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5921 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5922 posix_spawn_file_actions_addchdir_np.
5923 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5924 Likewise.
5925 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5926 Likewise.
5927 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5928 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5929 Likewise.
5930 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5931 Likewise.
5932 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5933 Likewise.
5934 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5935 Likewise.
5936 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5937 Likewise.
5938 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5939 Likewise.
5940 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5941 (GLIBC_2.29): Likewise.
5942 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5943 (GLIBC_2.29): Likewise.
5944 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5945 (GLIBC_2.29): Likewise.
5946 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5947 (GLIBC_2.29): Likewise.
5948 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5949 Likewise.
5950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5951 (GLIBC_2.29): Likewise.
5952 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5953 (GLIBC_2.29): Likewise.
5954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5955 (GLIBC_2.29): Likewise.
5956 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5957 (GLIBC_2.29): Likewise.
5958 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5959 Likewise.
5960 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5961 Likewise.
5962 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5963 Likewise.
5964 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5965 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5966 Likewise.
5967 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5968 Likewise.
5969 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5970 Likewise.
5971 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5972 Likewise.
5973
5974 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5975
5976 * misc/Makefile (tests): Add tst-ldbl-error.
5977 * misc/tst-ldbl-error.c: New file.
5978
5979 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5980
5981 * misc/Makefile (tests): Add tst-ldbl-warn.
5982 * misc/tst-ldbl-warn.c: New file.
5983
5984 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5985
5986 * argp/Makefile (tests): Add tst-ldbl-argp.
5987 * argp/tst-ldbl-argp.c: New file.
5988
5989 2018-11-05 Arjun Shankar <arjun@redhat.com>
5990
5991 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5992 __gconv_path_elem and call __gconv_get_path unconditionally.
5993
5994 2018-11-05 Andreas Schwab <schwab@suse.de>
5995
5996 [BZ #22927]
5997 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5998 creating the first helper thread failed.
5999
6000 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6001
6002 * sysdeps/mach/hurd/msync.c: New file.
6003
6004 2018-11-02 Florian Weimer <fweimer@redhat.com>
6005
6006 * support/shell-container.c (copy_func): Call
6007 support_copy_file_range instead of copy_file_range to support
6008 cross-device copies.
6009
6010 2018-11-02 Florian Weimer <fweimer@redhat.com>
6011
6012 * support/test-container.c: Include <libc-pointer-arith.h> for
6013 ALIGN_UP.
6014
6015 2018-11-01 Zong Li <zong@andestech.com>
6016
6017 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6018 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6019 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6020 (__FP_FRAC_SET_8): Add implementation for RV32 use.
6021
6022 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6023 variable to avoid overlap arguments.
6024
6025 2018-11-01 Joseph Myers <joseph@codesourcery.com>
6026
6027 * posix/bug-regex22.c (main): Use puts with distinct error
6028 messages for unexpected success of re_compile_pattern, not printf
6029 with NULL argument to %s.
6030
6031 * stdio-common/bug22.c: Include <libc-diag.h>.
6032 (do_test): Disable -Wformat-overflow= warnings around fprintf
6033 calls outputting more than INT_MAX characters.
6034 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6035 around printf call with NULL %s argument.
6036
6037 [BZ #23848]
6038 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6039 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6040 Undefine.
6041 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6042 (__ASSUME_RECVMSG_SYSCALL): Likewise.
6043 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6044 (__ASSUME_SENDTO_SYSCALL): Likewise.
6045 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6046 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6047 [!__arch64__].
6048 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6049 (__ASSUME_CONNECT_SYSCALL): Likewise.
6050 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6051 (__ASSUME_RECVFROM_SYSCALL): Likewise.
6052 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6053 Define.
6054 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6055 Likewise.
6056 [__LINUX_KERNEL_VERSION >= 0x040400]
6057 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6058 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6059 Remove.
6060 (listen): Likewise.
6061 (setsockopt): Likewise.
6062
6063 2018-11-01 Fredrik Noring <noring@nocrew.org>
6064
6065 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6066 with the ISA override.
6067
6068 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
6069
6070 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6071 #endif.
6072
6073 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6074
6075 * manual/errno.texi (EIEIO): Document how translators should
6076 translate the error message.
6077 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
6078 printing trailing whitespaces refused by git.
6079 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6080 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6081 * hurd/Makefile (user-interfaces): Add pci.
6082
6083 2018-10-30 Joseph Myers <joseph@codesourcery.com>
6084
6085 * conform/linknamespace.py: New file.
6086 * conform/linknamespace.pl: Remove file.
6087 * conform/Makefile ($(linknamespace-header-tests)): Use
6088 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
6089 option.
6090
6091 2018-10-30 Florian Weimer <fweimer@redhat.com>
6092
6093 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6094 memory leaks.
6095
6096 2018-10-30 Florian Weimer <fweimer@redhat.com>
6097
6098 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6099
6100 2018-10-30 Florian Weimer <fweimer@redhat.com>
6101
6102 * stdlib/tst-strtod-overflow.c (do_test): Switch to
6103 support_blob_repeat.
6104
6105 2018-10-30 Florian Weimer <fweimer@redhat.com>
6106
6107 Avoid spurious test failures in stdlib/test-bz22786.
6108 * support/Makefile (libsupport-routines): Add blob_repeat.
6109 (tests): Add tst-support_blob_repeat.
6110 * support/blob_repeat.h: New file.
6111 * support/blob_repeat.c: Likewise.
6112 * support/tst-support_blob_repeat.c: Likewise.
6113 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6114 support_blob_repeat_allocate.
6115
6116 2018-10-30 Andreas Schwab <schwab@suse.de>
6117
6118 [BZ #23125]
6119 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6120 Don't use tail call.
6121 * elf/tst-unwind-main.c: New file.
6122 * elf/Makefile (tests): Add tst-unwind-main.
6123 (CFLAGS-tst-unwind-main.c): Define.
6124
6125 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
6126
6127 [BZ #23791]
6128 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6129 n_cs_precedes to 0.
6130 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6131
6132 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6133
6134 * conform/glibcconform.py: Do not import shutil.
6135 (list_exported_functions): Use tempfile.TemporaryDirectory instead
6136 of mkdtemp.
6137
6138 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
6139 critic_missing for versions before 3.4.
6140 * configure: Regenerated.
6141 * manual/install.texi (Tools for Compilation): Document
6142 requirement for Python to build glibc.
6143 * INSTALL: Regenerated.
6144 * Rules [PYTHON]: Make code unconditional.
6145 * benchtests/Makefile [PYTHON]: Likewise.
6146 * conform/Makefile [PYTHON]: Likewise.
6147 * manual/Makefile [PYTHON]: Likewise.
6148 * math/Makefile [PYTHON]: Likewise.
6149
6150 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6151
6152 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6153 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6154 answer to interrupt_operation, return EIEIO instead of EINTR.
6155 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6156 _hurd_intr_rpc_msg_about_to global point to start of controlled
6157 assembly snippet. Make it check canceled flag.
6158 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6159 the _hurd_intr_rpc_msg_about_to point.
6160 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6161 issue, remove cancel flag check.
6162
6163 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6164
6165 * scripts/build-many-glibcs.py: Remove compatibility for missing
6166 os.cpu_count and re.fullmatch.
6167
6168 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6169
6170 [BZ #23822]
6171 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6172 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6173 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6174
6175 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6176
6177 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6178 macro.
6179
6180 2018-10-25 Florian Weimer <fweimer@redhat.com>
6181
6182 [BZ #23562]
6183 [BZ #23821]
6184 XFAIL siginfo_t si_band conform test on sparc64.
6185 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6186 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6187 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6188 (conformtest-xfail-conds): Add sparc64-linux.
6189 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6190 sparc64.
6191 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6192
6193 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6194
6195 * elf/elf.h (NT_MIPS_DSP): New macro.
6196 (NT_MIPS_FP_MODE): Likewise.
6197
6198 2018-10-25 Zong Li <zong@andestech.com>
6199
6200 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6201 name by adding the file extension (.so).
6202
6203 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6204
6205 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6206 (test-xfail-ISO11/threads.h/linknamespace,
6207 test-xfail-ISO11/threads.h/conform): Add.
6208
6209 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6210
6211 * math/gen-libm-test.py: Import os.
6212 (ALL_FLOATS_MANUAL): New constant.
6213 (ALL_FLOATS_SUFFIX): Likewise.
6214 (Ulps.all_functions): New function.
6215 (real_all_ulps): Likewise.
6216 (generate_err_table_sub): Likewise.
6217 (generate_err_table): Likewise.
6218 (main): Handle -s and -m options.
6219 * manual/libm-err-tab.pl: Remove.
6220 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6221 instead of libm-err-tab.pl.
6222 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6223 != no].
6224 * manual/install.texi (Tools for Compilation): Document
6225 requirement for Python to build manual.
6226 * INSTALL: Regenerated.
6227
6228 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6229
6230 * bits/time64.h: New file.
6231 * include/time.h: Replace internal_time_t with __time64_t.
6232 * posix/bits/types (__time64_t): Add.
6233 * stdlib/Makefile: Add bits/time64.h to includes.
6234 * time/tzfile.c: Replace internal_time_t with __time64_t.
6235
6236 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6237
6238 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6239 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6240 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6241 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6242 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6243 prototype.
6244 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6245 * posix/spawn_faction_addclose.c
6246 (__posix_spawn_file_actions_addclose): Add hidden definition.
6247 * posix/spawn_faction_adddup2.c
6248 (__posix_spawn_file_actions_adddup2): Likewise.
6249 * posix/spawn_faction_destroy.c
6250 (__posix_spawn_file_actions_destroy): Likewise.
6251 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6252 Likewise.
6253 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6254 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6255 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6256 Likewise.
6257 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6258 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6259 Likewise.
6260
6261 2018-10-24 Andreas Schwab <schwab@suse.de>
6262
6263 [BZ #18093]
6264 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6265 format cache.
6266 * elf/cache.c (print_cache): Likewise.
6267
6268 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6269
6270 * bits/timesize.h: New file.
6271 * stdlib/Makefile (headers): Add bits/timesize.h.
6272 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6273 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6274 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6275 (__SEM_PAD_AFTER_TIME): Likewise.
6276 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6277 (__SHM_PAD_AFTER_TIME): Likewise.
6278 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6279 (__MSQ_PAD_BEFORE_TIME): Likewise.
6280 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6281 (__SEM_PAD_BEFORE_TIME): Likewise.
6282 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6283 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6284 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6285 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6286 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6287 (__MSQ_PAD_BEFORE_TIME): Likewise.
6288 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6289 (__SEM_PAD_BEFORE_TIME): Likewise.
6290 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6291 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6292 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6293 (__MSQ_PAD_BEFORE_TIME): Likewise.
6294 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6295 (__SEM_PAD_BEFORE_TIME): Likewise.
6296 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6297 (__SHM_PAD_BEFORE_TIME): Likewise.
6298 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6299 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6300 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6301
6302 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6303
6304 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6305 USE_RDTSCP is defined.
6306 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6307 USE_RDTSCP is defined.
6308
6309 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6310
6311 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6312 defined.
6313
6314 [BZ #23709]
6315 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6316 independently of other flags.
6317
6318 2018-10-23 Florian Weimer <fweimer@redhat.com>
6319
6320 * time/tst-mktime2.c (N_STRINGS): Remove.
6321 (set_timezone): New function.
6322 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6323 (mktime_test1): Report localtime failure and check errno value.
6324 Use TEST_COMPARE.
6325 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6326 (do_test): Remove alarm call. Use set_timezone and array_length.
6327
6328 2018-10-23 Andreas Schwab <schwab@suse.de>
6329
6330 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6331 (__start_context): Use END instead of PSEUDO_END.
6332
6333 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6334
6335 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6336 version to 4.19.
6337
6338 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6339 version to 4.19.
6340
6341 [BZ #23793]
6342 * wcsmbs/c32rtomb.c: New file.
6343 * wcsmbs/mbrtoc32.c: Likewise.
6344 * wcsmbs/tst-c32-state.c: Likewise.
6345 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6346 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6347 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6348 (tests): Add tst-c32-state.
6349 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6350 $(gen-locales).
6351
6352 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6353
6354 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6355 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6356
6357 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6358
6359 [BZ #23794]
6360 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6361 pair and return 0 in that case, and use saved character to
6362 interpret following character.
6363 * wcsmbs/tst-c16-surrogate.c: New file.
6364 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6365 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6366 Depend on $(gen-locales)
6367
6368 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6369
6370 [BZ #23562]
6371 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6372 (struct siginfo_t): Use correct type for si_band.
6373
6374 2018-10-19 Florian Weimer <fweimer@redhat.com>
6375
6376 [BZ #23689]
6377 * resource/bits/types/struct_rusage.h (struct rusage): Update
6378 comment on struct. Remove extraneous field comment.
6379
6380 2018-10-18 David S. Miller <davem@davemloft.net>
6381
6382 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6383 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6384 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6385 sysdep_routines in subdir elf.
6386 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6387 version for __vdso_clock_gettime.
6388 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6389 Define.
6390 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6391 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6392
6393 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6394
6395 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6396
6397 * sysdeps/i386/init-arch.h: Removed.
6398 * sysdeps/i386/i586/init-arch.h: Likewise.
6399 * sysdeps/i386/i686/init-arch.h: Likewise.
6400 * sysdeps/i386/i686/hp-timing.h: Likewise.
6401 * sysdeps/x86_64/hp-timing.h: Likewise.
6402 * sysdeps/i386/isa.h: New file.
6403 * sysdeps/i386/i586/isa.h: Likewise.
6404 * sysdeps/i386/i686/isa.h: Likewise.
6405 * sysdeps/x86_64/isa.h: Likewise.
6406 * sysdeps/x86/hp-timing.h: New file.
6407 * sysdeps/x86/init-arch.h: Include <isa.h>.
6408
6409 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6410
6411 * math/libm-test-pow.inc (pow_test_data): Do not allow
6412 divide-by-zero exception for pow(+/- 0, -Inf).
6413
6414 2018-10-17 Zack Weinberg <zackw@panix.com>
6415
6416 * manual/job.texi (Job Control is Optional): Remove node, as
6417 job control has not been optional in quite some time.
6418 (Job Control): Mention briefly that systems older than
6419 POSIX.1-2001 might not support job control.
6420 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6421 defined on systems conforming to POSIX.1-2001.
6422
6423 2018-10-17 Arjun Shankar <arjun@redhat.com>
6424
6425 [BZ #22062]
6426 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6427 indentation.
6428 * (__gconv_read_conf): Mark function static.
6429 * (once): New static variable.
6430 * (__gconv_load_conf): New function.
6431 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6432 * iconv/gconv_db.c (once): Remove static variable.
6433 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6434 __gconv_read_conf.
6435 * (__gconv_find_transform): Likewise.
6436 * iconv/tst-iconv-mt.c: New test.
6437 * iconv/Makefile: Add tst-iconv_mt.
6438
6439 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6440
6441 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6442 bits/shm-pad.h.
6443 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6444 (shmatt_t): Define as __syscall_ulong_t.
6445 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6446 and [__SHM_PAD_AFTER_TIME].
6447 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6448 Define shm_segsz and associated padding based on
6449 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6450 Use __syscall_ulong_t instead of unsigned long int.
6451 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6452 unsigned long int.
6453 [__USE_MISC] (struct shm_info): Likewise.
6454 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6455 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6456 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6457 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6458 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6459 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6460 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6461 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6462 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6463 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6464 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6465
6466 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6467 bits/shmlba.h.
6468 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6469 (SHMLBA): Remove macro.
6470 (__getpagesize): Remove function declaration.
6471 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6472 <bits/shmlba.h>.
6473 (SHMLBA): Remove macro.
6474 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6475 <bits/shmlba.h>.
6476 (SHMLBA): Remove macro.
6477 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6478 <bits/shmlba.h>.
6479 (SHMLBA): Remove macro.
6480 (__getpagesize): Remove function declaration.
6481 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6482 <bits/shmlba.h>.
6483 (SHMLBA): Remove macro.
6484 (__getshmlba): Remove function declaration.
6485 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6486 (SHMLBA): Remove macro.
6487 (__getpagesize): Remove function declaration.
6488 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6489 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6490 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6491 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6492 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6493 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6494 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6495 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6496 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6497 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6498
6499 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6500
6501 [BZ #23275]
6502 * nptl/tst-mutex10.c: New File.
6503 * nptl/Makefile (tests): Add tst-mutex10.
6504 (tst-mutex10-ENV): New variable.
6505 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6506 Ensure that elision path is used if elision is available.
6507 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6508 Likewise.
6509 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6510 Likewise.
6511 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6512 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6513 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6514 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6515 Likewise.
6516 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6517 (__pthread_mutex_cond_lock_adjust): Likewise.
6518 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6519 Likewise.
6520 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6521 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6522 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6523 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6524 Add comments.
6525 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6526 Use atomic_load_relaxed and atomic_store_relaxed.
6527 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6528 Use atomic_store_relaxed.
6529
6530 2018-10-17 Andreas Schwab <schwab@suse.de>
6531
6532 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6533 * crypt/badsalttest.c (TIMEOUT): Likewise.
6534 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6535 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6536 * io/test-lfs.c (TIMEOUT): Likewise.
6537 * libio/tst-atime.c (TIMEOUT): Likewise.
6538 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6539 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6540 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6541 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6542 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6543 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6544 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6545 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6546 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6547 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6548 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6549 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6550 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6551 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6552 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6553 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6554 * nptl/tst-once2.c (TIMEOUT): Likewise.
6555 * nptl/tst-once3.c (TIMEOUT): Likewise.
6556 * nptl/tst-once4.c (TIMEOUT): Likewise.
6557 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6558 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6559 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6560 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6561 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6562 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6563 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6564 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6565 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6566 * posix/tst-chmod.c (TIMEOUT): Likewise.
6567 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6568 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6569 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6570 * posix/tst-regex2.c (TIMEOUT): Likewise.
6571 * posix/tst-waitid.c (TIMEOUT): Likewise.
6572 * rt/tst-aio.c (TIMEOUT): Likewise.
6573 * rt/tst-aio10.c (TIMEOUT): Likewise.
6574 * rt/tst-aio4.c (TIMEOUT): Likewise.
6575 * rt/tst-aio5.c (TIMEOUT): Likewise.
6576 * rt/tst-aio6.c (TIMEOUT): Likewise.
6577 * rt/tst-aio64.c (TIMEOUT): Likewise.
6578 * rt/tst-aio7.c (TIMEOUT): Likewise.
6579 * rt/tst-aio9.c (TIMEOUT): Likewise.
6580 * rt/tst-clock.c (TIMEOUT): Likewise.
6581 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6582 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6583 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6584 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6585 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6586 * rt/tst-timer4.c (TIMEOUT): Likewise.
6587 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6588 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6589 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6590 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6591 * time/tst-ftime.c (TIMEOUT): Likewise.
6592 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6593
6594 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6595
6596 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6597 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6598 for thunderX2.
6599
6600 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6601
6602 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6603 bits/sem-pad.h.
6604 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6605 instead of <bits/wordsize.h>.
6606 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6607 and [__SEM_PAD_AFTER_TIME].
6608 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6609 __syscall_ulong_t instead of unsigned long int.
6610 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6611 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6612 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6613 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6614 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6615 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6616 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6617 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6618 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6619 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6620 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6621
6622 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6623
6624 regex: simplify by using intprops.h
6625 [BZ#23744]
6626 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6627 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6628 intprops.h defines them.
6629
6630 regex: __builtin_expect → __glibc_unlikely
6631 [BZ#23744]
6632 This refactoring was prompted by a problem when the regex code is
6633 used as part of Gnulib and when the builder’s compiler does not grok
6634 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6635 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6636 Although this refactoring does not fix the problem directly,
6637 we might as well have Gawk use the now-preferred glibc style for when
6638 __builtin_expect is unavailable.
6639 * posix/regex_internal.h (BE): Remove.
6640 All uses replaced by __glibc_unlikely or __glibc_likely.
6641
6642 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6643
6644 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6645 bits/msq-pad.h.
6646 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6647 instead of <bits/wordsize.h>.
6648 (msgqnum_t): Define as __syscall_ulong_t.
6649 (msglen_t): Likewise.
6650 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6651 and [__MSQ_PAD_AFTER_TIME].
6652 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6653 __syscall_ulong_t instead of unsigned long int.
6654 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6655 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6656 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6657 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6658 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6659 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6660 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6661 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6662 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6663 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6664 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6665
6666 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6667
6668 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6669 (struct shmid_ds): Condition padding after time fields on
6670 [__WORDSIZE == 32].
6671 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6672 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6673 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6674
6675 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6676 (struct semid_ds): Condition padding after time fields on
6677 [__WORDSIZE == 32].
6678 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6679 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6680 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6681 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6682
6683 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6684 (struct msqid_ds): Condition padding after time fields on
6685 [__WORDSIZE == 32].
6686 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6687 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6688 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6689 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6690
6691 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6692
6693 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6694
6695 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6696
6697 * libio/tst-readline.c (TIMEOUT): Define.
6698
6699 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6700
6701 mktime fix for Gnulib + coreutils
6702 [BZ#23745]
6703 This fix affects only Gnulib. Problem discovered when
6704 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6705 * time/mktime.c:
6706 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6707 Do not define since it is not used. Defining an unused static
6708 function prompts a warning from GCC when Coreutils is configured
6709 with --enable-gcc-warnings.
6710
6711 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6712
6713 * benchtests/scripts/compare_bench.py (main): set float type on
6714 threshold argument.
6715
6716 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6717
6718 [BZ #23740]
6719 * localedata/locales/kl_GL (mon): Update, the relative case.
6720 (alt_mon): Add, fill with month names in the nominative case.
6721 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6722 (d_fmt): Set to "%b %d %Y".
6723
6724 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6725
6726 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6727 <bits/mman-linux.h>.
6728 (PROT_READ): Don't define here.
6729 (PROT_WRITE): Likewise.
6730 (PROT_EXEC): Likewise.
6731 (PROT_NONE): Likewise.
6732 (PROT_GROWSDOWN): Likewise.
6733 (PROT_GROWSUP): Likewise.
6734 (MAP_SHARED): Likewise.
6735 (MAP_PRIVATE): Likewise.
6736 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6737 [__USE_MISC] (MAP_FILE): Likewise.
6738 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6739 [__USE_MISC] (MAP_ANON): Likewise.
6740 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6741 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6742 (MCL_CURRENT): Likewise.
6743 (MCL_FUTURE): Likewise.
6744 (MCL_ONFAULT): Likewise.
6745 [__USE_MISC] (MADV_NORMAL): Likewise.
6746 [__USE_MISC] (MADV_RANDOM): Likewise.
6747 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6748 [__USE_MISC] (MADV_WILLNEED): Likewise.
6749 [__USE_MISC] (MADV_DONTNEED): Likewise.
6750 [__USE_MISC] (MADV_FREE): Likewise.
6751 [__USE_MISC] (MADV_REMOVE): Likewise.
6752 [__USE_MISC] (MADV_DONTFORK): Likewise.
6753 [__USE_MISC] (MADV_DOFORK): Likewise.
6754 [__USE_MISC] (MADV_HWPOISON): Likewise.
6755 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6756 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6757 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6758 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6759 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6760 (__MAP_ANONYMOUS): New macro.
6761 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6762 <bits/mman-linux.h> inclusion.
6763 (MAP_FIXED): Likewise.
6764 (MS_SYNC): Likewise.
6765 (MS_ASYNC): Likewise.
6766 (MS_INVALIDATE): Likewise.
6767 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6768 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6769 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6770 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6771 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6772 [__USE_MISC] (MADV_DODUMP): Likewise.
6773 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6774 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6775
6776 [BZ #23735]
6777 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6778 Define.
6779 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6780 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6781 Add test-nldbl-redirect.
6782 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6783 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6784 $(objpfx)libnldbl_nonshared.a.
6785
6786 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6787
6788 * support/support.h (support_objdir_elf_ldso): New variable.
6789 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6790 * support/Makefile (CFLAGS-support_paths.c): Add definition
6791 for OBJDIR_ELF_LDSO_PATH.
6792 * support/test-container.c (main): Search for the ld.so
6793 which is also used by the testsuite.
6794
6795 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6796
6797 [BZ #20209]
6798 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6799 should be "sap" rather than "sab".
6800 (day): Fix spelling of Sunday, should be "sapaat" rather than
6801 "sabaat".
6802
6803 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6804
6805 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6806
6807 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6808
6809 [BZ #19444]
6810 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6811 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6812 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6813
6814 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6815
6816 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6817
6818 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6819
6820 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6821 Add -mrtm.
6822 (CFLAGS-elision-unlock.c): Likewise.
6823 (CFLAGS-elision-timed.c): Likewise.
6824 (CFLAGS-elision-trylock.c): Likewise.
6825 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6826
6827 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6828
6829 [BZ #21037]
6830 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6831 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6832 new fd_to_filename interface.
6833 * libio/freopen64.c (freopen64): Likewise.
6834 * libio/tst-memstream.h: New file.
6835 * libio/tst-memstream4.c: Likewise.
6836 * libio/tst-wmemstream4.c: Likewise.
6837 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6838 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6839 and remove internal dynamic allocation.
6840
6841 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6842
6843 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6844 (MREMAP_MAYMOVE): Do not define here.
6845 [__USE_GNU] (MREMAP_FIXED): Likewise.
6846 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6847 (MREMAP_MAYMOVE): Define here instead.
6848 [__USE_GNU] (MREMAP_FIXED): Likewise.
6849 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6850 (MREMAP_MAYMOVE): Remove.
6851 [__USE_GNU] (MREMAP_FIXED): Likewise.
6852
6853 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6854
6855 * math/fromfp.h: Do not include <math_private.h>.
6856 * math/s_cacosh_template.c: Likewise.
6857 * math/s_casin_template.c: Likewise.
6858 * math/s_casinh_template.c: Likewise.
6859 * math/s_ccos_template.c: Likewise.
6860 * math/s_cproj_template.c: Likewise.
6861 * math/s_fdim_template.c: Likewise.
6862 * math/s_fmaxmag_template.c: Likewise.
6863 * math/s_fminmag_template.c: Likewise.
6864 * math/s_iseqsig_template.c: Likewise.
6865 * math/s_ldexp_template.c: Likewise.
6866 * math/s_nextdown_template.c: Likewise.
6867 * math/w_log1p_template.c: Likewise.
6868 * math/w_scalbln_template.c: Likewise.
6869 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6870 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6871 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6872 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6873 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6874 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6875 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6876 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6877 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6878 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6879 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6880 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6881 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6882 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6883 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6884 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6885 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6886 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6887 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6888 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6889 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6890 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6891 * sysdeps/ieee754/k_standardf.c: Likewise.
6892 * sysdeps/ieee754/k_standardl.c: Likewise.
6893 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6894 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6895 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6896 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6897 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6898 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6899 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6900 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6901 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6902 * sysdeps/ieee754/s_signgam.c: Likewise.
6903 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6904 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6905 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6906 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6907 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6908 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6909 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6910 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6911 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6912 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6913 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6914 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6915 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6916 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6917 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6918 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6919 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6920 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6921 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6922 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6923 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6924 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6925 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6926 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6927 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6928 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6929 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6930 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6931 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6932 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6933 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6934 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6935 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6936 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6937 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6938 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6939 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6940 <math_private.h>.
6941 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6942
6943 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6944
6945 [BZ #23716]
6946 * sysdeps/i386/dl-cet.c: Removed.
6947 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6948 prototype.
6949 (_dl_runtime_profile_shstk): Likewise.
6950 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6951 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6952
6953 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6954
6955 [BZ #23579]
6956 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6957 do_test_with_invalid_iov): New tests.
6958 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6959 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6960 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6961 errno is ENOSYS.
6962 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6963 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6964 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6965
6966 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6967
6968 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6969 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6970 (MATH_REDIRECT_BINARY_ARGS): New macro.
6971 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6972 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6973 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6974 header inclusion.
6975 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6976 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6977 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6978 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6979 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6980 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6981 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6982 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6983 Likewise.
6984 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6985 Likewise.
6986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6987 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6988 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6989 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6990 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6991 Likewise.
6992 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6993 Likewise.
6994 * sysdeps/generic/math_private_calls.h
6995 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6996 Do not declare and define as an inline function.
6997 * math/divtc3.c (__divtc3): Use copysign functions instead of
6998 __copysign variants.
6999 * math/multc3.c (__multc3): Likewise.
7000 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
7001 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
7002 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7003 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7004 Likewise.
7005 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7006 (__ieee754_yn): Likewise.
7007 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7008 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
7009 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7010 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7011 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
7012 (__sin): Likewise.
7013 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
7014 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7015 Likewise.
7016 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7017 Likewise.
7018 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7019 Likewise.
7020 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7021 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7022 Likewise.
7023 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7024 (__ieee754_ynf): Likewise.
7025 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7026 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7027 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7028 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7029 Likewise.
7030 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7031 (__ieee754_ynl): Likewise.
7032 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7033 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7034 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7035 Likewise.
7036 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7037 (__ieee754_ynl): Likewise.
7038 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7039 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7040 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7041 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7042 Likewise.
7043 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7044 (__ieee754_ynl)
7045 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7046 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7047 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7048 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7049 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7050
7051 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7052 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7053 using MATH_REDIRECT.
7054 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7055 header inclusion.
7056 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7057 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7058 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7059 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7060 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7061 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7062 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7063 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7064 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7065 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7066 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7067 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7068 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7069 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7070 (round): Redirect to __round.
7071 (__roundl): Call round instead of __round.
7072 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7073 Remove macro.
7074 [_ARCH_PWR5X] (__roundf): Likewise.
7075 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7076 functions instead of __round variants.
7077 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7078 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7079 Likewise.
7080 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7081 Likewise.
7082 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7083 Likewise.
7084 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7085 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7086 __lroundl.
7087 (__ieee754_expl): Call roundl instead of __roundl.
7088
7089 2018-09-27 Andreas Schwab <schwab@suse.de>
7090
7091 [BZ #23717]
7092 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7093 (do_test): Make st1 static.
7094
7095 2018-09-26 Andreas Schwab <schwab@suse.de>
7096
7097 [BZ #23707]
7098 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7099 * elf/Makefile (tests): Add tst-unwind-ctor.
7100 (modules-names): Add tst-unwind-ctor-lib.
7101 ($(objpfx)tst-unwind-ctor): Depend on
7102 $(objpfx)tst-unwind-ctor-lib.so.
7103
7104 2018-09-26 Joseph Myers <joseph@codesourcery.com>
7105
7106 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7107 file. Most contents moved from ....
7108 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
7109 and include <bits/mman-map-flags-generic.h>.
7110 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7111 (sysdep_headers): Add bits/mman-map-flags-generic.h.
7112 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7113 <bits/mman-map-flags-generic.h>.
7114 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7115 macros defined in <bits/mman-map-flags-generic.h>.
7116 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7117 <bits/mman-map-flags-generic.h>.
7118 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7119 defined in <bits/mman-map-flags-generic.h>.
7120
7121 2018-09-26 Andreas Schwab <schwab@suse.de>
7122
7123 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7124 output.
7125
7126 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
7127 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7128 Fangrui Song <maskray@google.com>
7129
7130 [BZ #20480]
7131 * config.make.in (have-textrel_ifunc): New define.
7132 * configure.ac: Add check if linker supports textrel relocation with
7133 ifunc.
7134 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7135 tst-ifunc-textrel.
7136 (CFLAGS-tst-ifunc-textrel.c): New rule.
7137 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7138 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7139 * elf/tst-ifunc-textrel.c: New file.
7140
7141 2018-09-25 Joseph Myers <joseph@codesourcery.com>
7142
7143 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7144 <bits/procfs-prregset.h>.
7145 (prgregset_t): Define using __prgregset_t.
7146 (prfpregset_t): Define using __prfpregset_t.
7147 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7148 (sysdep_headers): Add bits/procfs-prregset.h.
7149 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7150 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7151 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7152 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7153
7154 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7155 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7156 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7157 pr_uid and pr_gid.
7158 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7159 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7160 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7161 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7162 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7163 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7164 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7165 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7166 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7167 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7168 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7169 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7170 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7171 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7172 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7173 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7174 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7175 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7176 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7177 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7178 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7179 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7180 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7181 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7182
7183 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7184 AArch64 version. Include <bits/procfs.h>.
7185 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7186 (sysdep_headers): Add bits/procfs.h.
7187 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7188 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7189 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7190 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7191 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7192 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7193 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7194 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7195 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7196 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7197 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7198 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7199 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7200 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7201 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7202 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7203 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7204
7205 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7206
7207 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7208 Use libsupport.
7209
7210 2018-09-25 Arjun Shankar <arjun@redhat.com>
7211
7212 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7213 (__gconv_max_path_elem_len): Likewise.
7214 (__gconv_nmodules): Likewise.
7215 (__gconv_get_path): Likewise.
7216 (path_elem): Move to ...
7217 * iconv/gconv_conf.c: ... here.
7218 (__gconv_get_path): Mark function static.
7219 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7220 * iconv/gconv_open.c: ... here.
7221
7222 2018-09-24 Andreas Schwab <schwab@suse.de>
7223
7224 * scripts/haveversions.awk: New file.
7225 * Makerules ($(common-objpfx)Versions.def)
7226 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7227 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7228 Move rules ...
7229 * Makeconfig ($(common-objpfx)Versions.def)
7230 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7231 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7232 ... here.
7233 ($(common-objpfx)Versions.mk): New rule. Include it.
7234 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7235 Emit error if build-obsolete-nsl = yes.
7236 * manual/install.texi (Configuring and compiling): Describe
7237 --enable-obsolete-nsl as unavaiable after version 2.28.
7238 * INSTALL: Regenerate.
7239
7240 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7241
7242 * NEWS: Add note about new TLE support on powerpc64le.
7243 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7244 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7245 __ununsed1.
7246 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7247 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7248 * sysdeps/powerpc/powerpc32/sysdep.h,
7249 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7250 ABORT_TRANSACTION): Remove macros.
7251 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7252 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7253 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7255 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7256 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7257 usage.
7258 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7259
7260 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7261
7262 [BZ #10425]
7263 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7264 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7265 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7266 which is the same as in it_IT.
7267 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7268 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7269
7270 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7271
7272 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7273 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7274 using MATH_REDIRECT.
7275 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7276 header inclusion.
7277 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7278 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7279 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7280 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7281 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7282 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7283 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7284 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7287 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7288 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7289 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7290 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7291 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7292 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7293 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7294 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7295 (ceil): Redirect to __ceil.
7296 (floor): Redirect to __floor.
7297 (trunc): Redirect to __trunc.
7298 (__truncl): Call trunc instead of __trunc.
7299 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7300 Remove macro.
7301 [_ARCH_PWR5X] (__truncf): Likewise.
7302 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7303 trunc functions instead of __trunc variants.
7304 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7305 Likewise.
7306 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7307 Likewise.
7308 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7309 Likewise.
7310 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7311 Likewise.
7312
7313 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7314 [__i586__ || __pentium__].
7315 [__i486__]: Handle explicitly.
7316 (HAS_CPUID): Define to 1 if above macros are undefined.
7317 (HAS_I586): Likewise.
7318 (HAS_I686): Likewise.
7319
7320 2018-09-20 Florian Weimer <fweimer@redhat.com>
7321
7322 * misc/tst-gethostid.c: New file.
7323 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7324 (tst-gethostid): Link with -ldl.
7325
7326 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7327
7328 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7329 value from gethostbyname_r.
7330
7331 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7332
7333 * stdlib/tst-setcontext9.c (f1): Rename to...
7334 (f1a): ... this.
7335 (f1b): New function implementing lower half of f1 in alternate stack.
7336
7337 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7338
7339 Fix mktime localtime offset confusion
7340 [BZ #23603]
7341 * include/time.h (__mktime_internal): The localtime offset is now
7342 of type long int instead of time_t. This is the longstanding type
7343 in glibc, and it is more than enough to represent difference
7344 between localtime and gmtime even if it is 32 bits and time_t is
7345 64. Changing it now will let us avoid an unnecessary change when
7346 time_t is widened to 64 bits on 32-bit platforms.
7347 * time/mktime-internal.h (mktime_offset_t): Now long int.
7348
7349 Merge mktime, timegm from upstream Gnulib
7350 [BZ #23603][BZ #16346]
7351 This fixes some obscure problems with integer overflow.
7352 Although it looks scary, it is almost all a byte-for-byte copy
7353 from Gnulib, and the Gnulib code has been tested reasonably well.
7354 * include/intprops.h: New file, copied from Gnulib.
7355 * include/verify.h, time/mktime-internal.h:
7356 New tiny files, simplified from Gnulib.
7357 * time/mktime.c: Copy from Gnulib. This has the following changes:
7358 Do not include config.h if DEBUG_MKTIME is nonzero.
7359 Include stdbool.h, intprops.h, verify.h.
7360 Include string.h only if needed.
7361 Include stdlib.h on MS-Windows.
7362 Include mktime-internal.h.
7363 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7364 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7365 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7366 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7367 simplify later conditionals; default the others to zero. Use
7368 these conditionals to express only the code needed on the current
7369 platform. In uses of these conditionals, explicitly spell out how
7370 _LIBC affects things, so it’s easier to review from a glibc
7371 viewpoint.
7372 (WRAPV): Remove; no longer needed now that we have
7373 systematic overflow checking.
7374 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7375 compartmentalize tzset issues. Move system-dependent tzsettish
7376 code here from mktime.
7377 (verify): Remove; now done by verify.h. All uses changed.
7378 (long_int): Use a more-conservative definition, to avoid
7379 integer overflow.
7380 (SHR): Remove, replacing with ...
7381 (shr): New function, which means we needn’t worry about side
7382 effects in args, and conversion analysis is simpler.
7383 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7384 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7385 (time_t_avg, time_t_add_ok): Remove.
7386 (mktime_min, mktime_max): New constants.
7387 (leapyear, isdst_differ): Use bool for booleans.
7388 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7389 Use long_int, not time_t, for mktime differences.
7390 (long_int_avg): New function, replacing time_t_avg.
7391 INT_ADD_WRAPV replaces time_t_add_ok.
7392 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7393 All uses changed.
7394 (convert_time): New function.
7395 (ranged_convert): Use it.
7396 (__mktime_internal): Last arg now points to mktime_offset_t, not
7397 time_t. All uses changed. This is a no-op on glibc, where
7398 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7399 offset guess. Directly check for integer overflow instead of
7400 using a heuristic that works only 99.9...% of the time.
7401 Access *OFFSET only once, to avoid an unlikely race if the
7402 compiler delays a load and if this cascades into a signed integer
7403 overflow.
7404 (mktime): Move tzsettish code to my_tzset, and move
7405 localtime_offset to within mktime so that it doesn’t
7406 need a separate ifdef.
7407 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7408 instead of localtime.
7409 * time/timegm.c: Copy from Gnulib. This has the following changes:
7410 Include mktime-internal.h.
7411 [!_LIBC]: Include config.h and time.h. Do not include
7412 timegm.h or time_r.h. Make __mktime_internal a macro,
7413 and include mktime-internal.h to get its declaration.
7414 (timegm): Temporary is now mktime_offset_t, not time_t.
7415 This affects only Gnulib.
7416
7417 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7418
7419 [BZ #23637]
7420 * string/test-strstr.c (pr23637): New function.
7421 (test_main): Add tests with longer needles.
7422 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7423 * string/strstr.c (AVAILABLE): Likewise.
7424
7425 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7426
7427 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7428
7429 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7430
7431 * NEWS: Mention pow improvements.
7432 * math/Makefile (type-double-routines): Add e_pow_log_data.
7433 * sysdeps/generic/math_private.h (__exp1): Remove.
7434 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7435 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7436 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7437 contraction.
7438 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7439 (exp_inline): Remove.
7440 (__ieee754_exp): Only single double input is handled.
7441 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7442 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7443 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7444 (__pow_log_data): Define.
7445 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7446 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7447 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7448 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7449 contraction.
7450 (CFLAGS-e_pow-fma4.c): Likewise.
7451
7452 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7453
7454 Simplify tzfile fstat failure code
7455 [BZ #21716]
7456 * time/tzfile.c (__tzfile_read): Simplify slightly.
7457
7458 Fix tzfile low-memory assertion failure
7459 [BZ #21716]
7460 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7461 when registering time zone abbreviations.
7462
7463 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7464
7465 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7466 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7467 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7468 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7469 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7470 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7471 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7472 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7473 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7474
7475 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7476 __ceil.
7477 (__ceill): Call ceil instead of __ceil.
7478 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7479 __floor.
7480 (__floorl): Call floor instead of __floor.
7481
7482 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7483
7484 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7485 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7486 using MATH_REDIRECT.
7487 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7488 header inclusion.
7489 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7490 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7491 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7492 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7493 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7494 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7495 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7496 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7497 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7499 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7500 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7501 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7502 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7503 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7504 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7505 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7506 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7507 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7508 Remove macro.
7509 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7510 functions instead of __ceil variants.
7511 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7512 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7513 Likewise.
7514 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7515 Likewise.
7516 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7517 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7518 Likewise.
7519 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7520 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7521
7522 [BZ #21286]
7523 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7524 constant.
7525 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7526 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7527 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7528 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7529 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7530 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7531 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7532 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7533 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7534 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7535 (ILL_BADIADDR): Remove constant.
7536 (TRAP_BRANCH): Likewise.
7537 (TRAP_HWBKPT): Likewise.
7538
7539 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7540
7541 [BZ #23656]
7542 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7543 Remove [_MIPS_SIM = _ABIN32] conditional case.
7544 (struct elf_prpsinfo): Likewise.
7545
7546 [BZ #23649]
7547 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7548 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7549 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7550 Likewise.
7551 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7552 elf_prpsinfo): Likewise.
7553 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7554 elf_prpsinfo): Likewise.
7555 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7556 Likewise.
7557
7558 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7559 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7560 using MATH_REDIRECT.
7561 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7562 header inclusion.
7563 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7564 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7565 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7566 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7567 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7568 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7569 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7570 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7571 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7572 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7573 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7574 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7575 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7576 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7577 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7578 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7579 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7580 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7581 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7583 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7584 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7585 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7586 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7587 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7588 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7589 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7590 __rint variants.
7591 * math/e_scalbf.c (invalid_fn): Likewise.
7592 * math/e_scalbl.c (invalid_fn): Likewise.
7593 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7594 Likewise.
7595 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7596 Likewise.
7597 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7598 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7599 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7600 Likewise.
7601 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7602 Likewise.
7603 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7604 Likewise.
7605 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7606 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7607
7608 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7609 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7610 New macro.
7611 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7612 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7613 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7614 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7615 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7616 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7617 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7618 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7619 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7620 && !NO_MATH_REDIRECT] (floor): Likewise.
7621 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7622 header inclusion.
7623 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7624 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7625 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7626 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7627 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7628 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7629 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7630 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7631 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7633 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7634 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7635 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7636 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7637 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7638 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7639 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7640 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7641 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7642 Remove macro.
7643 [_ARCH_PWR5X] (__floorf): Likewise.
7644 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7645 inline function.
7646 [__SSE4_1__] (__floorf): Likewise.
7647 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7648 instead of __floor variants.
7649 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7650 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7651 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7652 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7653 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7654 * math/w_tgamma_compat.c (__tgamma): Likewise.
7655 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7656 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7657 * math/w_tgammal_compat.c (__tgammal): Likewise.
7658 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7659 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7660 Likewise.
7661 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7662 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7663 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7664 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7665 Likewise.
7666 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7667 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7668 Likewise.
7669 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7670 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7671 Likewise.
7672 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7673 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7674 Likewise.
7675 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7676 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7677 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7678 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7679 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7680 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7681
7682 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7683
7684 * elf/Makefile (modules-names-tests): New variable.
7685
7686 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7687
7688 * NEWS: Mention log2 improvements.
7689 * math/Makefile (type-double-routines): Add e_log2_data.
7690 * sysdeps/i386/fpu/e_log2_data.c: New file.
7691 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7692 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7693 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7694 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7695 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7696 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7697
7698 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7699
7700 * NEWS: Mention log improvement.
7701 * math/Makefile (type-double-routines): Add e_log_data.
7702 * sysdeps/i386/fpu/e_log_data.c: New file.
7703 * sysdeps/ia64/fpu/e_log_data.c: New file.
7704 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7705 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7706 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7707 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7708 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7709 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7710
7711 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7712 Xuepeng Guo <xuepeng.guo@intel.com>
7713
7714 [BZ #23606]
7715 * sysdeps/i386/start.S: Include <sysdep.h>
7716 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7717 enabled. Add cfi_undefined (eip).
7718
7719 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7720
7721 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7722 (MOVQ): Likewise.
7723 (EXTRACT_WORDS64): Likewise.
7724 (INSERT_WORDS64): Likewise.
7725 (GET_FLOAT_WORD): Likewise.
7726 (SET_FLOAT_WORD): Likewise.
7727
7728 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7729 argument.
7730 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7731 build, but not for second build if --full-gcc. Use
7732 --enable-languages=all for second build if --full-gcc.
7733 (get_parser): Add --full-gcc option.
7734 (main): Update call to Context.
7735
7736 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7737
7738 [BZ #10797]
7739 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7740 Single Quotation Mark).
7741 (thousands_sep): Likewise.
7742 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7743 * localedata/locales/it_IT (thousands_sep): Use ".".
7744 (grouping): Use "3;3".
7745
7746 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7747
7748 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7749 x86_64 and i686 configs using --enable-obsolete-rpc
7750 --enable-obsolete-nsl.
7751
7752 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7753
7754 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7755
7756 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7757
7758 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7759 Increment size of new_argv by one.
7760
7761 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7762
7763 [BZ #17426]
7764 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7765 * localedata/locales/ar_IN (d_fmt): Likewise.
7766 * localedata/locales/bhb_IN (d_fmt): Likewise.
7767 * localedata/locales/bho_IN (d_fmt): Likewise.
7768 * localedata/locales/bn_BD (d_fmt): Likewise.
7769 * localedata/locales/bn_IN (d_fmt): Likewise.
7770 * localedata/locales/doi_IN (d_fmt): Likewise.
7771 * localedata/locales/gu_IN (d_fmt): Likewise.
7772 * localedata/locales/hi_IN (d_fmt): Likewise.
7773 * localedata/locales/hne_IN (d_fmt): Likewise.
7774 * localedata/locales/kn_IN (d_fmt): Likewise.
7775 * localedata/locales/mag_IN (d_fmt): Likewise.
7776 * localedata/locales/mai_IN (d_fmt): Likewise.
7777 * localedata/locales/mjw_IN (d_fmt): Likewise.
7778 * localedata/locales/ml_IN (d_fmt): Likewise.
7779 * localedata/locales/mni_IN (d_fmt): Likewise.
7780 * localedata/locales/mr_IN (d_fmt): Likewise.
7781 * localedata/locales/pa_IN (d_fmt): Likewise.
7782 * localedata/locales/raj_IN (d_fmt): Likewise.
7783 * localedata/locales/sat_IN (d_fmt): Likewise.
7784 * localedata/locales/sd_IN (d_fmt): Likewise.
7785 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7786 * localedata/locales/ta_IN (d_fmt): Likewise.
7787 * localedata/locales/ta_LK (d_fmt): Likewise.
7788 * localedata/locales/tcy_IN (d_fmt): Likewise.
7789 * localedata/locales/ur_IN (d_fmt): Likewise.
7790
7791 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7792 * localedata/locales/ks_IN (d_fmt): Likewise.
7793 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7794
7795 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7796 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7797 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7798 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7799
7800 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7801
7802 * NEWS: Mention exp and exp2 improvements.
7803 * math/Makefile (libm-support): Remove t_exp.
7804 (type-double-routines): Add math_err and e_exp_data.
7805 * sysdeps/aarch64/libm-test-ulps: Update.
7806 * sysdeps/arm/libm-test-ulps: Update.
7807 * sysdeps/i386/fpu/e_exp_data.c: New file.
7808 * sysdeps/i386/fpu/math_err.c: New file.
7809 * sysdeps/i386/fpu/t_exp.c: Remove.
7810 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7811 * sysdeps/ia64/fpu/math_err.c: New file.
7812 * sysdeps/ia64/fpu/t_exp.c: Remove.
7813 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7814 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7815 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7816 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7817 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7818 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7819 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7820 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7821 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7822 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7823 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7824 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7825 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7826 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7827 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7828 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7829
7830 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7831
7832 * sysdeps/alpha/fpu/math_private.h: Remove.
7833
7834 * sysdeps/generic/math_private.h
7835 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7836 Move this inline function ....
7837 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7838 * include/math.h [!_ISOMAC]: To here....
7839
7840 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7841
7842 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7843 code ....
7844 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7845 * include/fenv.h [!_ISOMAC]: ... to here.
7846 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7847 (feraiseexcept): Likewise.
7848 * math/fromfp.h: Do not include <fenv_private.h>.
7849 * math/s_cexp_template.c: Likewise.
7850 * math/s_csin_template.c: Likewise.
7851 * math/s_csinh_template.c: Likewise.
7852 * math/s_ctan_template.c: Likewise.
7853 * math/s_ctanh_template.c: Likewise.
7854 * math/s_iseqsig_template.c: Likewise.
7855 * math/w_acos_compat.c: Likewise.
7856 * math/w_acosf_compat.c: Likewise.
7857 * math/w_acosl_compat.c: Likewise.
7858 * math/w_asin_compat.c: Likewise.
7859 * math/w_asinf_compat.c: Likewise.
7860 * math/w_asinl_compat.c: Likewise.
7861 * math/w_j0_compat.c: Likewise.
7862 * math/w_j0f_compat.c: Likewise.
7863 * math/w_j0l_compat.c: Likewise.
7864 * math/w_j1_compat.c: Likewise.
7865 * math/w_j1f_compat.c: Likewise.
7866 * math/w_j1l_compat.c: Likewise.
7867 * math/w_jn_compat.c: Likewise.
7868 * math/w_jnf_compat.c: Likewise.
7869 * math/w_log10_compat.c: Likewise.
7870 * math/w_log10f_compat.c: Likewise.
7871 * math/w_log10l_compat.c: Likewise.
7872 * math/w_log2_compat.c: Likewise.
7873 * math/w_log2f_compat.c: Likewise.
7874 * math/w_log2l_compat.c: Likewise.
7875 * math/w_log_compat.c: Likewise.
7876 * math/w_logf_compat.c: Likewise.
7877 * math/w_logl_compat.c: Likewise.
7878 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7879 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7880 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7881 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7882 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7883 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7884 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7885 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7886 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7887 * sysdeps/ieee754/k_standardl.c: Likewise.
7888 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7889 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7890 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7891 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7892 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7893 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7894 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7895 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7896 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7897 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7898 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7899 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7900 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7901 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7902 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7903 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7904 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7905 * math/w_ilogb_template.c: Include <fenv.h> instead of
7906 <fenv_private.h>.
7907 * math/w_llogb_template.c: Likewise.
7908 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7909 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7910
7911 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7912
7913 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7914 * math/fromfp.h: Include <fenv_private.h>.
7915 * math/math-narrow.h: Likewise.
7916 * math/s_cexp_template.c: Likewise.
7917 * math/s_csin_template.c: Likewise.
7918 * math/s_csinh_template.c: Likewise.
7919 * math/s_ctan_template.c: Likewise.
7920 * math/s_ctanh_template.c: Likewise.
7921 * math/s_iseqsig_template.c: Likewise.
7922 * math/w_acos_compat.c: Likewise.
7923 * math/w_acosf_compat.c: Likewise.
7924 * math/w_acosl_compat.c: Likewise.
7925 * math/w_asin_compat.c: Likewise.
7926 * math/w_asinf_compat.c: Likewise.
7927 * math/w_asinl_compat.c: Likewise.
7928 * math/w_ilogb_template.c: Likewise.
7929 * math/w_j0_compat.c: Likewise.
7930 * math/w_j0f_compat.c: Likewise.
7931 * math/w_j0l_compat.c: Likewise.
7932 * math/w_j1_compat.c: Likewise.
7933 * math/w_j1f_compat.c: Likewise.
7934 * math/w_j1l_compat.c: Likewise.
7935 * math/w_jn_compat.c: Likewise.
7936 * math/w_jnf_compat.c: Likewise.
7937 * math/w_llogb_template.c: Likewise.
7938 * math/w_log10_compat.c: Likewise.
7939 * math/w_log10f_compat.c: Likewise.
7940 * math/w_log10l_compat.c: Likewise.
7941 * math/w_log2_compat.c: Likewise.
7942 * math/w_log2f_compat.c: Likewise.
7943 * math/w_log2l_compat.c: Likewise.
7944 * math/w_log_compat.c: Likewise.
7945 * math/w_logf_compat.c: Likewise.
7946 * math/w_logl_compat.c: Likewise.
7947 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7948 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7949 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7950 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7951 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7952 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7953 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7954 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7955 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7956 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7957 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7958 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7959 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7960 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7961 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7962 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7963 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7964 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7965 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7966 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7967 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7968 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7969 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7970 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7971 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7972 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7973 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7974 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7975 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7976 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7977 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7978 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7979 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7980 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7981 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7982 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7983 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7984 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7985 * sysdeps/ieee754/k_standardl.c: Likewise.
7986 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7987 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7988 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7989 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7990 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7991 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7992 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7993 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7994 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7995 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7996 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7997 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7998 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7999 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8000 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8001 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8002 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8003 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
8004 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8005 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8006 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8007 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8008 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8009 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8010 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8011 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8012 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8013 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8014 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8015 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8016 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8017 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8018 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8019 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8020 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8021 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8022 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8023 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8024 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8025 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8026 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8027 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8028 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8029 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8030 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8031 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8032 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8033 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8034 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8035 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8036 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8037 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8038 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8039 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8040 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8041 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8042 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8043 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8044 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8045 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8046 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8047 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8048 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8049 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8050 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8051 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8052 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8053 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8054 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8055 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8056 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8057
8058 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8059
8060 [BZ #20271]
8061 * include/stdio.h (__libc_fatal): Mention newline in comment.
8062 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8063 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8064 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8065 * nss/nsswitch.c (__nss_next2): Likewise.
8066 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8067 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8068 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8069 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8070 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8071 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8072 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8073 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8074 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8075 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8076 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8077 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8078 (__netlink_assert_response): Likewise.
8079
8080 2018-08-31 Joseph Myers <joseph@codesourcery.com>
8081
8082 * conform/glibcconform.py: New file.
8083 * conform/list-header-symbols.py: Likewise.
8084 * conform/list-header-symbols.pl: Remove.
8085 * conform/Makefile (tests-special): Only add linknamespace tests
8086 if [PYTHON].
8087 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8088
8089 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
8090
8091 [BZ #23597]
8092 * support/Makefile (libsupport-routines): Add
8093 support_copy_file_range and xcopy_file_range.
8094 * support/support.h: Include <sys/types.h>.
8095 (support_copy_file_range): New prototype.
8096 * support/support_copy_file_range.c: New file. Copied and
8097 modified from io/copy_file_range-compat.c.
8098 * support/test-container.c (copy_one_file): Call xcopy_file_rang
8099 instead of copy_file_range.
8100 * support/xcopy_file_range.c: New file.
8101 * support/xunistd.h (xcopy_file_range): New prototype.
8102
8103 2018-08-30 Carlos O'Donell <carlos@redhat.com>
8104
8105 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8106 xpthread_create and xpthread_join.
8107
8108 2018-08-30 Florian Weimer <fweimer@redhat.com>
8109
8110 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8111
8112 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
8113
8114 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8115 if malloc fails.
8116
8117 2018-08-29 Joseph Myers <joseph@codesourcery.com>
8118
8119 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8120 and minus_oflow as non-finite.
8121
8122 2018-08-28 Joseph Myers <joseph@codesourcery.com>
8123
8124 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
8125 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
8126 moved to fenv_private.h except for ...
8127 (TOINT_INTRINSICS): Kept in math_private.h.
8128 (roundtoint): Likewise.
8129 (converttoint): Likewise.
8130 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8131 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8132 * sysdeps/arm/math_private.h: Remove.
8133 * sysdeps/generic/fenv_private.h: New file. Contents moved from
8134 ....
8135 * sysdeps/generic/math_private.h: ... this file. Include
8136 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
8137 Include <fenv_private.h>. Remove functions and macros moved to
8138 fenv_private.h.
8139 * sysdeps/i386/fpu/math_private.h: Remove.
8140 * sysdeps/mips/math_private.h: Move to ....
8141 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
8142 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
8143 [__mips_hard_float] conditional. Include next <fenv_private.h>.
8144 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8145 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8146 * sysdeps/powerpc/fpu/math_private.h: Do not include
8147 <fenv_private.h>.
8148 * sysdeps/riscv/rvf/math_private.h: Move to ....
8149 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
8150 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
8151 <fenv_private.h>.
8152 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8153 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8154 * sysdeps/sparc/fpu/math_private.h: Remove.
8155 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8156 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8157 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8158 <fenv_private.h>.
8159 * sysdeps/x86_64/fpu/math_private.h: Do not include
8160 <sysdeps/i386/fpu/fenv_private.h>.
8161
8162 2018-08-28 Florian Weimer <fweimer@redhat.com>
8163
8164 [BZ #23578]
8165 * posix/tst-regcomp-truncated.c: New file.
8166 * posix/Makefile (tests): Add it.
8167 (tst-regcomp-truncated.out): Depend on generated locales.
8168
8169 2018-08-28 Florian Weimer <fweimer@redhat.com>
8170
8171 * support/test-container.c (main): Treat unshare failure with
8172 EPERM as an unsupported test.
8173
8174 2018-08-28 Florian Weimer <fweimer@redhat.com>
8175
8176 [BZ #23520]
8177 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8178 * nscd/netgroupcache.c
8179 (addgetnetgrentX): Add tofreep parameter. Do not free
8180 heap-allocated buffer.
8181 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8182 (addgetnetgrentX_ignore): New function.
8183 (addgetnetgrent): Call it.
8184 (readdgetnetgrent): Likewise.
8185
8186 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8187
8188 * string/memmem.c: Use memcmp for first match.
8189
8190 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8191
8192 [BZ #17426]
8193 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8194
8195 2018-08-27 DJ Delorie <dj@redhat.com>
8196
8197 * support/Makefile (others): Don't list programs explicitly as a
8198 dependency of "others".
8199
8200 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8201
8202 * sysdeps/generic/math-tests-trap-force.h: New file.
8203 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8204 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8205 * sysdeps/powerpc/math-tests.h: Remove file.
8206 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8207
8208 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8209 Torvald Riegel <triegel@redhat.com>
8210
8211 [BZ #23538]
8212 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8213 Update r to include the set wake-request flag if waiters are
8214 remaining after spinning.
8215
8216 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8217
8218 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8219
8220 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8221
8222 [BZ #23578]
8223 regex: fix uninitialized memory access
8224 I introduced this bug into gnulib in commit
8225 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8226 eventually it was merged into glibc. The bug was found by
8227 project-repo <bugs@feusi.co> and reported here:
8228 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8229 Diagnosis and draft fix reported by Assaf Gordon here:
8230 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8231 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8232 * posix/regex_internal.c (build_wcs_upper_buffer):
8233 Fix bug when mbrtowc returns 0.
8234
8235 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8236
8237 * po/be.po: Update translation.
8238
8239 2018-08-24 DJ Delorie <dj@delorie.com>
8240
8241 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8242 $(libunwind).
8243
8244 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8245
8246 [BZ #23400]
8247 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8248 create temporary files in source tree.
8249
8250 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8251
8252 * sysdeps/generic/math-tests-trap.h: New file.
8253 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8254 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8255 * sysdeps/aarch64/math-tests.h: Remove file.
8256 * sysdeps/arm/math-tests.h: Likewise.
8257 * sysdeps/riscv/math-tests.h: Likewise.
8258 * sysdeps/aarch64/math-tests-trap.h: New file.
8259 * sysdeps/arm/math-tests-trap.h: Likewise.
8260 * sysdeps/riscv/math-tests-trap.h: Likewise.
8261
8262 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8263
8264 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8265 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8266 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8267 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8268 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8269 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8270 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8271 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8272 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8273 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8274 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8275 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8276 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8277 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8278 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8279 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8280 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8281 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8282
8283 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8284
8285 * sysdeps/generic/math-tests-exceptions.h: New file.
8286 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8287 (EXCEPTION_TESTS_float): Do not define here.
8288 (EXCEPTION_TESTS_double): Likewise.
8289 (EXCEPTION_TESTS_long_double): Likewise.
8290 (EXCEPTION_TESTS_float128): Likewise.
8291 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8292 Likewise.
8293 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8294 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8295 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8296 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8297 * sysdeps/mips/math-tests.h: Likewise.
8298 * sysdeps/nios2/math-tests.h: Likewise.
8299 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8300 (EXCEPTION_TESTS_float): Do not define here.
8301 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8302 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8303 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8304
8305 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8306
8307 * NEWS: Move optimized sinf entry to 2.29.
8308
8309 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8310
8311 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8312
8313 2018-08-22 DJ Delorie <dj@redhat.com>
8314
8315 * Makefile (testroot.pristine): New rules to initialize the
8316 test-in-container "testroot".
8317 * Makerules (all-testsuite): Add tests-container.
8318 * Rules (tests-expected): Add tests-container.
8319 (binaries-all-tests): Likewise.
8320 (tests-container): New, run these tests in the testroot container.
8321 * support/Makefile (others): Add *-container, support_paths.c,
8322 xmkdirp, and links-dso-program.
8323 * support/links-dso-program-c.c: New.
8324 * support/links-dso-program.cc: New.
8325 * support/test-container.c: New.
8326 * support/shell-container.c: New.
8327 * support/echo-container.c: New.
8328 * support/true-container.c: New.
8329 * support/xmkdirp.c: New.
8330 * support/xsymlink.c: New.
8331 * support/support_paths.c: New.
8332 * support/support.h: Add support paths prototypes.
8333 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8334
8335 * nss/tst-nss-test3.c: Convert to test-in-container.
8336 * nss/tst-nss-test3.root/: New.
8337
8338 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8339
8340 regex: port Gnulib code to z/OS POSIX environment
8341 Problem reported by Arnold Robbins in:
8342 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8343 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8344 Undef.
8345
8346 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8347
8348 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8349 (ROUNDING_TESTS_double): Remove.
8350 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8351 (ROUNDING_TESTS_double): Remove.
8352 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8353 (ROUNDING_TESTS_double): Remove.
8354 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8355 (ROUNDING_TESTS_float): Remove.
8356 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8357 (ROUNDING_TESTS_float): Remove.
8358 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8359 (ROUNDING_TESTS_float): Remove.
8360 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8361 !TEST_MATHVEC here.
8362 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8363 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8364
8365 * sysdeps/generic/math-tests-rounding.h: New file.
8366 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8367 (ROUNDING_TESTS_float): Do not define here.
8368 (ROUNDING_TESTS_double): Likewise.
8369 (ROUNDING_TESTS_long_double): Likewise.
8370 (ROUNDING_TESTS_float128): Likewise.
8371 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8372 (ROUNDING_TESTS_double): Undefine before defining.
8373 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8374 (ROUNDING_TESTS_double): Undefine before defining.
8375 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8376 (ROUNDING_TESTS_double): Undefine before defining.
8377 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8378 (ROUNDING_TESTS_float): Undefine before defining.
8379 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8380 (ROUNDING_TESTS_float): Undefine before defining.
8381 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8382 (ROUNDING_TESTS_float): Undefine before defining.
8383 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8384 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8385 not define here.
8386 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8387 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8388 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8389 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8390 (ROUNDING_TESTS_float): Do not define here.
8391 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8392 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8393 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8394 (ROUNDING_TESTS_float): Likewise.
8395 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8396 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8397 * sysdeps/mips/math-tests.h [__mips_soft_float]
8398 (ROUNDING_TESTS_float): Likewise.
8399 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8400 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8401 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8402 (ROUNDING_TESTS_double): Likewise.
8403 (ROUNDING_TESTS_long_double): Likewise.
8404
8405 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8406
8407 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8408 (PF_XDP): New macro.
8409 (AF_XDP): New macro.
8410 (SOL_XDP): New macro.
8411
8412 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8413
8414 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8415 (TCP_INQ): Likewise.
8416 (TCP_CM_INQ): Likewise.
8417 (TCP_REPAIR_ON): Likewise.
8418 (TCP_REPAIR_OFF): Likewise.
8419 (TCP_REPAIR_OFF_NO_WP): Likewise.
8420 (struct tcp_zerocopy_receive): New type.
8421
8422 2018-08-21 Florian Weimer <fweimer@redhat.com>
8423
8424 * support/support.h (support_descriptor_supports_holes): Declare.
8425 * support/Makefile (libsupport-routines): Add
8426 support_descriptor_supports_holes.
8427 * support/support_descriptor_supports_holes.c: New file.
8428 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8429 and stop testing if holes are not supported.
8430 * io/test-lfs.c (do_prepare): Likewise.
8431 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8432 Likewise.
8433 * timezone/tst-tzset.c (create_tz_file): Likewise.
8434 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8435 variable.
8436 (do_prepare): Set it.
8437 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8438
8439 2018-08-21 Florian Weimer <fweimer@redhat.com>
8440
8441 [BZ #17248]
8442 * Makeconfig (+cflags): Do not sort (and deduplicate).
8443
8444 2018-08-21 Florian Weimer <fweimer@redhat.com>
8445
8446 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8447 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8448
8449 2018-08-20 Florian Weimer <fweimer@redhat.com>
8450
8451 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8452 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8453
8454 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8455
8456 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8457 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8458 and ssi_arch members.
8459
8460 * elf/elf.c (NT_VMCOREDD): New macro.
8461 (AT_MINSIGSTKSZ): Likewise.
8462
8463 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8464
8465 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8466 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8467 s_cosf-ppc64 and s_cosf-power8.
8468 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8469 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8470 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8471 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8478 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8479 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8480
8481 2018-08-17 Florian Weimer <fweimer@redhat.com>
8482
8483 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8484
8485 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8486
8487 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8488
8489 2018-08-16 Florian Weimer <fweimer@redhat.com>
8490
8491 * configure.ac: Add --with-nonshared-cflags option.
8492 * config.make.in (extra-nonshared-cflags): Set variable.
8493 * Makeconfig (CFLAGS-.oS): Use it.
8494 * manual/install.texi (Configuring and compiling): Document
8495 --with-nonshared-cflags.
8496 * configure: Regenerate.
8497 * INSTALL: Likewise.
8498
8499 2018-08-16 Florian Weimer <fweimer@redhat.com>
8500
8501 * Makeconfig (ASFLAGS): Always append required assembler flags.
8502
8503 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8504
8505 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8506 (malloc_consolidate): Likewise.
8507
8508 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8509
8510 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8511
8512 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8513
8514 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8515 every strlen call.
8516
8517 * benchtests/bench-strlen.c: Print performance numbers in json.
8518
8519 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8520
8521 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8522 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8523 only for little endian.
8524 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8525 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8526 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8527 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8528 Add check for little endian.
8529 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8530 (__strcmp_power9): Add check for little endian.
8531 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8532 Add check for little endian.
8533 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8534 (__strncmp_power9): Add check for little endian.
8535 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8536 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8537 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8538 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8539 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8540
8541 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8542
8543 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8544 [!STRLEN](STRLEN): Set to __strlen.
8545 * sysdeps/aarch64/multiarch/strlen.c: New file.
8546 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8547 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8548 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8549 (__libc_ifunc_impl_list): Add strlen.
8550 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8551 strlen_generic and strlen_asimd.
8552
8553 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8554
8555 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8556 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8557 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8558
8559 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8560
8561 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8562
8563 2018-08-14 Florian Weimer <fweimer@redhat.com>
8564
8565 [BZ #23519]
8566 * include/stdio.h (__vfxprintf): Declare.
8567 * stdio-common/fxprintf.c (__vfxprintf): New function.
8568 (__fxprintf): Call it.
8569 * misc/err.c (convert_and_print): Remove function.
8570 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8571 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8572 * misc/Makefile (tests): Add tst-warn-wide.
8573 * misc/tst-warn-wide.c: New file.
8574
8575 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8576 Szabolcs Nagy <szabolcs.nagy@arm.com>
8577
8578 * NEWS: Mention sinf, cosf, sincosf.
8579 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8580 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8581 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8582 constants rather than including generic sincosf.h.
8583 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8584 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8585 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8586 (reduced_cos): Remove.
8587 (sinf_poly): New function.
8588 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8589
8590 2018-08-14 Florian Weimer <fweimer@redhat.com>
8591
8592 [BZ #23521]
8593 [BZ #23522]
8594 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8595 processing, bail out if no room, and close the stream before
8596 returning ERANGE.
8597 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8598 (tst-nss-files-alias-leak): Link with libdl.
8599 (tst-nss-files-alias-leak.out): Depend on nss_files.
8600
8601 * nss/tst-nss-files-alias-leak.c: New file.
8602
8603 2018-08-14 Florian Weimer <fweimer@redhat.com>
8604
8605 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8606 server_user, stat_user.
8607
8608 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8609
8610 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8611 version to 4.18.
8612 (io_pgetevents): New syscall.
8613 (rseq): Likewise.
8614
8615 * manual/install.texi (Configuring and compiling): Do not list
8616 tools used for testing pretty printers here.
8617 (Tools for Compilation): List Python, PExpect and GDB here.
8618 Update descriptions of uses of Perl and Python.
8619 * INSTALL: Regenerate.
8620
8621 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8622 version to 4.18.
8623
8624 2018-08-13 Florian Weimer <fweimer@redhat.com>
8625
8626 * misc/error.c (error): Add missing va_end call.
8627 (error_at_line): Likewise.
8628
8629 2018-08-13 Florian Weimer <fweimer@redhat.com>
8630
8631 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8632
8633 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8634
8635 * benchtests/scripts/benchout.schema.json (properties): Add
8636 new properties.
8637
8638 * benchtests/bench-skeleton.c (main): Add duration and
8639 iterations attributes.
8640
8641 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8642
8643 regex: Gnulib unibyte RRI uses bytes not chars
8644 Adjust the non-glibc code to agree with what Gawk needs for
8645 rational range interpretation (RRI) for regular expression ranges.
8646 In unibyte locales, Gawk wants ranges to use the underlying byte
8647 rather than the character code point. This change does not affect
8648 glibc proper.
8649 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8650 In unibyte locales, use the byte value rather than
8651 running it through btowc.
8652
8653 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8654
8655 * sysdeps/generic/math-tests-snan.h: New file.
8656 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8657 (SNAN_TESTS_float): Do not define here.
8658 (SNAN_TESTS_double): Likewise.
8659 (SNAN_TESTS_long_double): Likewise.
8660 (SNAN_TESTS_float128): Likewise.
8661 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8662 * sysdeps/i386/fpu/math-tests.h: Remove file.
8663 * sysdeps/ia64/math-tests-snan.h: New file.
8664 * sysdeps/ia64/math-tests.h: Remove file.
8665 * sysdeps/x86/math-tests.h: Likewise.
8666 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8667
8668 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8669 Szabolcs Nagy <szabolcs.nagy@arm.com>
8670
8671 * math/Makefile: Add s_sincosf_data.c.
8672 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8673 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8674 (sincosf_poly): Likewise.
8675 (reduce_small): Likewise.
8676 (reduce_large): Likewise.
8677 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8678 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8679 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8680 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8681
8682 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8683 Szabolcs Nagy <szabolcs.nagy@arm.com>
8684
8685 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8686 (converttoint): Use lround.
8687 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8688 document the semantics when TOINT_INTRINSICS is set.
8689 (converttoint): Likewise.
8690 (TOINT_RINT): Remove.
8691 (TOINT_SHIFT): Remove.
8692 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8693 path.
8694
8695 2018-08-10 Florian Weimer <fweimer@redhat.com>
8696
8697 [BZ #23497]
8698 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8699 function.
8700 (__old_getdents64): Use getdents64. Convert entries without
8701 moving them.
8702 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8703 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8704 tst-readdir64-compat.
8705
8706 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8707
8708 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8709 Fix unwind.
8710
8711 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8712
8713 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8714 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8715 code to s390x-mcount.h and #include it.
8716 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8717 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8718 (__fentry__): Add.
8719
8720 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8721
8722 * stdlib/Versions: Remove __fentry__.
8723 * sysdeps/i386/Versions: Add __fentry__.
8724 * sysdeps/x86_64/Versions: Add __fentry__.
8725
8726 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8727
8728 * sysdeps/s390/Makefile: Register the new tests.
8729 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8730 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8731 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8732 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8733 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8734 * sysdeps/s390/tst-dl-runtime.c: New file.
8735
8736 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8737
8738 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8739 Do not clobber R0.
8740
8741 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8742
8743 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8744 Do not clobber R0.
8745
8746 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8747
8748 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8749 Do not clobber R0.
8750
8751 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8752
8753 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8754 Do not clobber R0.
8755
8756 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8757
8758 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8759 Use symbolic offsets for stack variables.
8760
8761 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8762
8763 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8764 Use symbolic offsets for stack variables.
8765
8766 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8767
8768 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8769 Use symbolic offsets for stack variables.
8770
8771 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8772
8773 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8774 Use symbolic offsets for stack variables.
8775
8776 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8777
8778 * math/gen-libm-test.py: New file.
8779 * math/gen-libm-test.pl: Remove.
8780 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8781 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8782 gen-libm-test.pl.
8783 ($(libm-test-c-noauto-obj)): Likewise.
8784 ($(libm-test-c-auto-obj)): Likewise.
8785 ($(libm-test-c-narrow-obj)): Likewise.
8786 (regen-ulps): Likewise.
8787 * math/README.libm-test: Update references to gen-libm-test.pl.
8788 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8789 referencing gen-libm-test.pl.
8790 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8791 * math/libm-test-support.c: Likewise.
8792 * math/libm-test-support.h: Likewise.
8793 * sysdeps/generic/libm-test-ulps: Likewise.
8794
8795 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8796
8797 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8798 Fix value.
8799
8800 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8801
8802 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8803 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8804
8805 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8806
8807 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8808 symbols.
8809 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8810 __pthread_setspecific): Add hidden proto.
8811 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8812 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8813
8814 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8815
8816 * benchtests/bench-string.h (buf1_size, buf2_size): New
8817 variables.
8818 (init_sizes): New function.
8819 (test_init): Use it.
8820 (alloc_buf, exit_error): New functions.
8821 (alloc_bufs): Use ALLOC_BUF.
8822 (realloc_bufs): Remove.
8823 * benchtests/bench-memcmp.c (do_test): Adjust.
8824 * benchtests/bench-memset-large.c (do_test): Likewise.
8825 * benchtests/bench-memset-walk.c (do_test): Likewise.
8826 * benchtests/bench-memset.c (do_test): Likewise.
8827 * benchtests/bench-strncmp.c (do_test): Likewise.
8828
8829 2018-08-06 Andreas Schwab <schwab@suse.de>
8830
8831 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8832 of CONST_THREAD_AREA.
8833
8834 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8835
8836 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8837 (STATE_SAVE_MASK): Likewise.
8838 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8839 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8840 (STATE_SAVE_MASK): Likewise.
8841 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8842 instead of <cpu-features.h>.
8843
8844 2018-08-03 DJ Delorie <dj@redhat.com>
8845
8846 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8847 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8848
8849 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8850
8851 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8852
8853 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8854 after TEST_* calls.
8855 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8856 * math/libm-test-logb.inc (logb_test_data): Likewise.
8857
8858 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8859
8860 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8861 * string/strstr.c (AVAILABLE): Likewise.
8862
8863 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8864
8865 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8866 <init-arch.h>.
8867 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8868 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8869 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8870
8871 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8872
8873 * po/be.po: Update translation.
8874
8875 * po/be.po: Update translation.
8876
8877 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8878
8879 * sysdeps/x86/cpu-features-offsets.sym
8880 (rtld_global_ro_offsetof): Removed.
8881 (CPU_FEATURES_SIZE): Likewise.
8882 (CPUID_OFFSET): Likewise.
8883 (CPUID_SIZE): Likewise.
8884 (CPUID_EAX_OFFSET): Likewise.
8885 (CPUID_EBX_OFFSET): Likewise.
8886 (CPUID_ECX_OFFSET): Likewise.
8887 (CPUID_EDX_OFFSET): Likewise.
8888 (FAMILY_OFFSET): Likewise.
8889 (MODEL_OFFSET): Likewise.
8890 (FEATURE_OFFSET): Likewise.
8891 (FEATURE_SIZ): Likewise.
8892 (COMMON_CPUID_INDEX_1): Likewise.
8893 (COMMON_CPUID_INDEX_7): Likewise.
8894 (FEATURE_INDEX_1): Likewise.
8895 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8896
8897 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8898
8899 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8900 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8901 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8902 (install-locales): Depend on install-locale-archive.
8903 (install-locale-archive): Define.
8904 (install-locale-files): Define.
8905 (build-one-locale): Define macro.
8906 * manual/install.texi (Running make install): Document.
8907 * manual/INSTALL: Regenerate.
8908
8909 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8910
8911 * benchtests/scripts/compare_strings.py: Import traceback.
8912 (parse_file): Pretty-print error.
8913
8914 * NEWS: Mention the change.
8915 * elf/dl-tunables.list: Rename tune namespace to cpu.
8916 * sysdeps/powerpc/dl-tunables.list: Likewise.
8917 * sysdeps/x86/dl-tunables.list: Likewise.
8918 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8919 cpu.name.
8920 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8921 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8922 * manual/README.tunables: Likewise.
8923 * manual/tunables.texi: Likewise.
8924 * sysdeps/powerpc/cpu-features.c: Likewise.
8925 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8926 (init_cpu_features): Likewise.
8927 * sysdeps/x86/cpu-features.c: Likewise.
8928 * sysdeps/x86/cpu-features.h: Likewise.
8929 * sysdeps/x86/cpu-tunables.c: Likewise.
8930 * sysdeps/x86_64/Makefile: Likewise.
8931 * sysdeps/x86/dl-cet.c: Likewise.
8932
8933 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8934
8935 [BZ #23479]
8936 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8937 [__mips_hard_float].
8938 (FE_UNDERFLOW): Likewise.
8939 (FE_OVERFLOW): Likewise.
8940 (FE_DIVBYZERO): Likewise.
8941 (FE_INVALID): Likewise.
8942 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8943 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8944 (FE_UPWARD): Likewise.
8945 (FE_DOWNWARD): Likewise.
8946 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8947 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8948 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8949 [__mips_hard_float].
8950 (FP_ROUNDMODE): Likewise.
8951 (FP_RND_NEAREST): Likewise.
8952 (FP_RND_ZERO): Likewise.
8953 (FP_RND_PINF): Likewise.
8954 (FP_RND_MINF): Likewise.
8955 (FP_EX_INVALID): Likewise.
8956 (FP_EX_OVERFLOW): Likewise.
8957 (FP_EX_UNDERFLOW): Likewise.
8958 (FP_EX_DIVZERO): Likewise.
8959 (FP_EX_INEXACT): Likewise.
8960 (FP_INIT_ROUNDMODE): Likewise.
8961 * sysdeps/mips/nofpu/fesetenv.c: New file.
8962 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8963
8964 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8965
8966 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8967 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8968 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8969 conditional on [FE_UPWARD].
8970
8971 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8972
8973 regex: fix memory leak in Gnulib
8974 Problem and fix reported by Assaf Gordon in:
8975 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8976 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8977 range_ends members too, as they are defined in 'struct
8978 re_charset_t' even if not _LIBC. This affects only Gnulib.
8979
8980 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8981
8982 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8983 ...
8984 (get_common_indices): This.
8985 (init_cpu_features): Updated.
8986
8987 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8988
8989 * sysdeps/generic/math-tests-snan-payload.h: New file.
8990 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8991 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8992 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8993 * sysdeps/generic/math-tests.h: Include
8994 <math-tests-snan-payload.h>.
8995 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8996 * sysdeps/hppa/math-tests.h: Remove file.
8997 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8998 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8999 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
9000 Likewise.
9001
9002 * sysdeps/generic/math-tests-snan-cast.h: New file.
9003 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
9004 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
9005 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
9006 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
9007
9008 2018-08-01 Carlos O'Donel <carlos@redhat.com>
9009
9010 * version.h (RELEASE): Set to "development".
9011 (VERSION): Set to "2.28.9000".
9012 * NEWS (2.29): New section.
9013
9014 * version.h (RELEASE): Set to "stable".
9015 (VERSION): Set to "2.28".
9016 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9017 * NEWS: Add the list of bugs fixed in 2.28.
9018
9019 * po/ca.po: Update to latest version.
9020 * po/cs.po: Likewise
9021 * po/da.po: Likewise
9022 * po/el.po: Likewise
9023 * po/eo.po: Likewise
9024 * po/es.po: Likewise
9025 * po/fi.po: Likewise
9026 * po/fr.po: Likewise
9027 * po/gl.po: Likewise
9028 * po/hu.po: Likewise
9029 * po/ia.po: Likewise
9030 * po/id.po: Likewise
9031 * po/it.po: Likewise
9032 * po/ja.po: Likewise
9033 * po/ko.po: Likewise
9034 * po/lt.po: Likewise
9035 * po/nb.po: Likewise
9036 * po/nl.po: Likewise
9037 * po/pt_BR.po: Likewise
9038 * po/ru.po: Likewise
9039 * po/rw.po: Likewise
9040 * po/sk.po: Likewise
9041 * po/sl.po: Likewise
9042 * po/tr.po: Likewise
9043 * po/zh_CN.po: Likewise
9044 * po/zh_TW.po: Likewise
9045
9046 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
9047
9048 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9049 initialization...
9050 (init): ... before initializing libpthread.
9051
9052 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9053 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9054 (__mach_setup_tls): ... new function.
9055 (mach_setup_tls): New alias.
9056 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9057 __mach_setup_thread.
9058 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9059 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9060 * mach/Versions [libc] (mach_setup_tls): Add symbol.
9061 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9062
9063 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9064
9065 * manual/install.texi: Update versions.
9066 * INSTALL: Regenerate.
9067
9068 * manual/contrib.texi (Contributors): Update contributions.
9069
9070 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9071
9072 * po/be.po: Update translations.
9073
9074 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9075
9076 * sysdeps/sh/libm-test-ulps: Update.
9077
9078 2018-07-30 Carlos O'Donell <carlos@redhat.com>
9079
9080 * po/bg.po: Update translations.
9081 * po/de.po: Likewise.
9082 * po/hr.po: Likewise.
9083 * po/pt_BR.po: Likewise.
9084 * po/sv.po: Likewise.
9085 * po/vi.po: Likewise.
9086
9087 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9088
9089 [BZ #23467]
9090 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9091 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9092 (CFLAGS-tst-cet-property-1.o): New.
9093 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9094 ($(objpfx)tst-cet-property-2): Likewise.
9095 ($(objpfx)tst-cet-property-2.out): Likewise.
9096 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9097 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9098 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9099 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9100 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9101
9102 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9103
9104 [BZ #23458]
9105 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9106
9107 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9108
9109 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9110 __sbrk): Do not set attribute_hidden.
9111 * sysdeps/mach/hurd/not-errno.h: New file.
9112 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9113 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9114
9115 2018-07-27 Carlos O'Donell <carlos@redhat.com>
9116
9117 * po/uk.po: Update translations.
9118 * po/cs.po: Likewise.
9119 * po/pl.po: Likewise.
9120
9121 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
9122
9123 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9124 parse beyond the note end.
9125
9126 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9127
9128 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9129 kernel does not support OFD locks.
9130 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9131
9132 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9133
9134 * sysdeps/mach/hurd/Versions (libc): Make __access and
9135 __access_noerrno external so they can override the ld symbols.
9136 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9137 __writev, __open64, __access_noerrno extern so they can be overrided.
9138 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9139 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9140
9141 2018-07-26 Carlos O'Donell <carlos@redhat.com>
9142
9143 * po/libc.pot: Regenerate.
9144
9145 2018-07-26 Joseph Myers <joseph@codesourcery.com>
9146
9147 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9148
9149 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9150
9151 [BZ #23459]
9152 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9153 function.
9154 (init_cpu_features): Call get_extended_indices for both Intel
9155 and AMD CPUs.
9156 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9157 Remove "for AMD" comment.
9158
9159 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9160
9161 [BZ # 23456]
9162 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9163 COMMON_CPUID_INDEX_80000001.
9164
9165 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9166
9167 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9168 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9169
9170 2018-07-26 Florian Weimer <fweimer@redhat.com>
9171
9172 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9173 aliases for symbols not in the implementation namespace.
9174
9175 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9176
9177 [BZ #23393]
9178 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9179 lowercase in LATIN script.
9180 * localedata/Makefile (test-input): Add en_US.UTF-8.
9181 * localedata/en_US.UTF-8.in: New file.
9182 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9183 and restore old tests.
9184 * posix/tst-regexloc.c (do_test): Add back range expression test.
9185
9186 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9187
9188 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9189
9190 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9191
9192 * nptl/threads.h: Move to ...
9193 * sysdeps/nptl/threads.h: ... here.
9194 * sysdeps/hurd/stdc-predef.h: New file.
9195
9196 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9197
9198 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9199 tst-cet-setcontext-1 if CET is enabled.
9200 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9201 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9202
9203 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9204
9205 * include/threads.h: Move to ...
9206 * sysdeps/nptl/threads.h: ... here.
9207 * sysdeps/htl/threads.h: New file.
9208 * conform/Makefile (linknamespace-libs-ISO11): Use
9209 static-thread-library instead of linking libpthread.
9210 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9211
9212 2018-07-25 Florian Weimer <fweimer@redhat.com>
9213
9214 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9215 nanoseconds into seconds.
9216 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9217 (do_test): Likewise.
9218 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9219 (do_test): Likewise. Avoid nanosecond overflow and spurious
9220 timeouts due to system load.
9221 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9222 (child_wait): Increment it.
9223 (do_test): Wait as long as necessary until all expected threads
9224 have arrived.
9225
9226 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9227 H.J. Lu <hongjiu.lu@intel.com>
9228
9229 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9230 __ssp.
9231 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9232 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9233 (__push___start_context): New.
9234 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9235 <asm/prctl.h>.
9236 (__getcontext): Record the current shadow stack base. Save the
9237 caller's shadow stack pointer and base.
9238 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9239 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9240 (__push___start_context): New prototype.
9241 (__makecontext): Call __push___start_context to allocate a new
9242 shadow stack, push __start_context onto the new stack as well
9243 as the new shadow stack.
9244 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9245 <asm/prctl.h>.
9246 (__setcontext): Restore the target shadow stack.
9247 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9248 <asm/prctl.h>.
9249 (__swapcontext): Record the current shadow stack base. Save
9250 the caller's shadow stack pointer and base. Restore the target
9251 shadow stack.
9252 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9253 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9254 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9255
9256 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9257
9258 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9259 tst-setcontext8 and tst-setcontext9.
9260 * stdlib/tst-setcontext6.c: New file.
9261 * stdlib/tst-setcontext7.c: Likewise.
9262 * stdlib/tst-setcontext8.c: Likewise.
9263 * stdlib/tst-setcontext9.c: Likewise.
9264
9265 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9266
9267 * stdlib/Makefile ((tests): Add tst-setcontext5.
9268 * stdlib/tst-setcontext5.c: New file.
9269
9270 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9271
9272 * stdlib/Makefile (tests): Add tst-setcontext4.
9273 * stdlib/tst-setcontext4.c: New file.
9274
9275 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9276
9277 * stdlib/Makefile (tests): Add tst-swapcontext1.
9278 * stdlib/tst-swapcontext1.c: New test.
9279
9280 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9281
9282 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9283 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9284 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9285 and tst-cet-legacy-4c.
9286 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9287 and tst-cet-legacy-mod-4.
9288 (CFLAGS-tst-cet-legacy-2.c): New.
9289 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9290 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9291 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9292 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9293 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9294 ($(objpfx)tst-cet-legacy-1): Likewise.
9295 ($(objpfx)tst-cet-legacy-2): Likewise.
9296 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9297 ($(objpfx)tst-cet-legacy-2a): Likewise.
9298 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9299 ($(objpfx)tst-cet-legacy-4): Likewise.
9300 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9301 ($(objpfx)tst-cet-legacy-4a): Likewise.
9302 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9303 (tst-cet-legacy-4a-ENV): Likewise.
9304 ($(objpfx)tst-cet-legacy-4b): Likewise.
9305 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9306 (tst-cet-legacy-4b-ENV): Likewise.
9307 ($(objpfx)tst-cet-legacy-4c): Likewise.
9308 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9309 (tst-cet-legacy-4c-ENV): Likewise.
9310 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9311 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9312 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9313 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9314 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9315 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9316 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9317 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9318 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9319 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9320 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9321
9322 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9323
9324 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9325 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9326 with ssp_base.
9327 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9328 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9329 with ssp_base.
9330
9331 2018-07-25 Andreas Schwab <schwab@suse.de>
9332
9333 [BZ #23442]
9334 * locale/weightwc.h (findidx): Handle the case where usrc is a
9335 prefix of cp but one character too short.
9336
9337 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9338
9339 * NEWS: Add ISO C threads addition.
9340
9341 2018-07-24 Florian Weimer <fweimer@redhat.com>
9342
9343 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9344 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9345 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9346 4.13.
9347
9348 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9349
9350 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9351 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9352 <sys/prctl.h> and <asm/prctl.h>.
9353 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9354 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9355 and <asm/prctl.h>.
9356 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9357 ARCH_CET_LEGACY_BITMAP.
9358 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9359 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9360 * sysdeps/x86/libc-start.c: Include <startup.h>.
9361
9362 2018-07-24 Florian Weimer <fweimer@redhat.com>
9363
9364 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9365 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9366
9367 2018-07-24 Rical Jasan <rj@2c3t.io>
9368 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9369 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9370
9371 [BZ #14092]
9372 * manual/debug.texi: Update adjacent chapter name.
9373 * manual/probes.texi: Likewise.
9374 * manual/threads.texi (ISO C Threads): New section.
9375 (POSIX Threads): Convert to a section.
9376
9377 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9378 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9379
9380 [BZ# 14092]
9381 * nptl/Makefile (tests): Add new test files.
9382 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9383 * nptl/tst-cnd-basic.c: Likewise.
9384 * nptl/tst-cnd-broadcast.c: Likewise.
9385 * nptl/tst-cnd-timedwait.c: Likewise.
9386 * nptl/tst-mtx-basic.c: Likewise.
9387 * nptl/tst-mtx-recursive.c: Likewise.
9388 * nptl/tst-mtx-timedlock.c: Likewise.
9389 * nptl/tst-mtx-trylock.c: Likewise.
9390 * nptl/tst-thrd-basic.c: Likewise.
9391 * nptl/tst-thrd-detach.c: Likewise.
9392 * nptl/tst-thrd-sleep.c: Likewise.
9393 * nptl/tst-tss-basic.c: Likewise.
9394
9395 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9396
9397 [BZ #14092]
9398 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9399 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9400 symbols.
9401 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9402 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9403 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9404 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9405 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9406 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9407 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9408 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9409 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9410 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9411 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9412 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9414 Likewise.
9415 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9416 Likewise.
9417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9418 Likewise.
9419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9420 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9421 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9422 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9423 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9424 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9425 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9426 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9427 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9428 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9429 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9430 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9431 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9432 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9433 Likewise.
9434 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9435 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9436 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9437 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9438 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9439 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9440 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9441 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9442 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9443 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9444 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9445 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9446 ikewise.
9447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9449 Likewise.
9450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9451 Likewise.
9452 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9453 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9454 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9455 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9456 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9457 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9458 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9459 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9460
9461 [BZ #14092]
9462 * conform/data/threads.h-data (thread_local): New macro.
9463 (TSS_DTOR_ITERATIONS): Likewise.
9464 (tss_t): New type.
9465 (tss_dtor_t): Likewise.
9466 (tss_create): New function.
9467 (tss_get): Likewise.
9468 (tss_set): Likewise.
9469 (tss_delete): Likewise.
9470 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9471 tss_get, and tss_set objects.
9472 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9473 * nptl/tss_create.c: New file.
9474 * nptl/tss_delete.c: Likewise.
9475 * nptl/tss_get.c: Likewise.
9476 * nptl/tss_set.c: Likewise.
9477 * sysdeps/nptl/threads.h (thread_local): New define.
9478 (TSS_DTOR_ITERATIONS): Likewise.
9479 (tss_t): New typedef.
9480 (tss_dtor_t): Likewise.
9481 (tss_create): New prototype.
9482 (tss_get): Likewise.
9483 (tss_set): Likewise.
9484 (tss_delete): Likewise.
9485
9486 [BZ #14092]
9487 * conform/data/threads.h-data (cnd_t): New type.
9488 (cnd_init): New function.
9489 (cnd_signal): Likewise.
9490 (cnd_broadcast): Likewise.
9491 (cnd_wait): Likewise.
9492 (cnd_timedwait): Likewise.
9493 (cnd_destroy): Likewise.
9494 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9495 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9496 object.
9497 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9498 * nptl/cnd_broadcast.c: New file.
9499 * nptl/cnd_destroy.c: Likewise.
9500 * nptl/cnd_init.c: Likewise.
9501 * nptl/cnd_signal.c: Likewise.
9502 * nptl/cnd_timedwait.c: Likewise.
9503 * nptl/cnd_wait.c: Likewise.
9504 * sysdeps/nptl/threads.h (cnd_t): New type.
9505 (cnd_init): New prototype.
9506 (cnd_signa): Likewise.
9507 (cnd_broadcast): Likewise.
9508 (cnd_wait): Likewise.
9509 (cnd_timedwait): Likewise.
9510 (cnd_destroy): Likewise.
9511
9512 [BZ #14092]
9513 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9514 (once_flag): New type.
9515 (call_once): New function.
9516 * nptl/Makefile (libpthread-routines): Add call_once object.
9517 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9518 * nptl/call_once.c: New file.
9519 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9520 (once_flag): New type.
9521 (call_once): New prototype.
9522
9523 [BZ #14092]
9524 * conform/data/threads.h-data (mtx_plain): New constant.
9525 (mtx_recursive): Likewise.
9526 (mtx_timed): Likewise.
9527 (mtx_t): New type.
9528 (mtx_init): New function.
9529 (mtx_lock): Likewise.
9530 (mtx_timedlock): Likewise.
9531 (mtx_trylock): Likewise.
9532 (mtx_unlock): Likewise.
9533 (mtx_destroy): Likewise.
9534 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9535 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9536 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9537 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9538 * nptl/mtx_destroy.c: New file.
9539 * nptl/mtx_init.c: Likewise.
9540 * nptl/mtx_lock.c: Likewise.
9541 * nptl/mtx_timedlock.c: Likewise.
9542 * nptl/mtx_trylock.c: Likewise.
9543 * nptl/mtx_unlock.c: Likewise.
9544 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9545 (mtx_recursive): Likewise.
9546 (mtx_timed): Likewise.
9547 (mtx_t): New type.
9548 (mtx_init): New prototype.
9549 (mtx_lock): Likewise.
9550 (mtx_timedlock): Likewise.
9551 (mtx_trylock): Likewise.
9552 (mtx_unlock): Likewise.
9553 (mtx_destroy): Likewise.
9554
9555 [BZ #14092]
9556 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9557 (linknamespace-libs-ISO11): Add libpthread.a.
9558 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9559 functions.
9560 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9561 * nptl/Makefile (headers): Add threads.h.
9562 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9563 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9564 thrd_yield.
9565 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9566 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9567 thrd_join, thrd_sleep, and thrd_yield symbols.
9568 * nptl/descr.h (struct pthread): Add c11 field.
9569 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9570 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9571 routine with expected function prototype.
9572 (__pthread_create_2_1): Add C11 threads check based on attribute
9573 value.
9574 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9575 * nptl/thrd_create.c: New file.
9576 * nptl/thrd_current.c: Likewise.
9577 * nptl/thrd_detach.c: Likewise.
9578 * nptl/thrd_equal.c: Likewise.
9579 * nptl/thrd_exit.c: Likewise.
9580 * nptl/thrd_join.c: Likewise.
9581 * nptl/thrd_priv.h: Likewise.
9582 * nptl/thrd_sleep.c: Likewise.
9583 * nptl/thrd_yield.c: Likewise.
9584 * include/threads.h: Likewise.
9585
9586 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9587
9588 * bits/indirect-return.h: New file.
9589 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9590 * sysdeps/x86/bits/indirect-return.h: Likewise.
9591 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9592 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9593 (swapcontext): Add __INDIRECT_RETURN.
9594 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9595 (prepare_test_buffer): Use it.
9596
9597 2018-07-24 Andreas Schwab <schwab@suse.de>
9598
9599 [BZ #23448]
9600 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9601 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9602
9603 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9604
9605 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9606 Redefine if shadow stack is enabled.
9607 (SYSCALL_ERROR_LABEL): Likewise.
9608 (__vfork): Pop shadow stack and jump back to to caller directly
9609 when shadow stack is in use.
9610 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9611 Redefine if shadow stack is enabled.
9612 (SYSCALL_ERROR_LABEL): Likewise.
9613 (__vfork): Pop shadow stack and jump back to to caller directly
9614 when shadow stack is in use.
9615
9616 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9617
9618 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9619 enabled.
9620 (foo): Likewise.
9621 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9622 (foo): Likewise.
9623
9624 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9625
9626 * scripts/build-many-glibcs.py (Context.checkout): Default
9627 binutils version to 2.31 branch.
9628
9629 2018-07-20 Zong Li <zong@andestech.com>
9630
9631 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9632 URL of gcc's tarball.
9633
9634 2018-07-20 Florian Weimer <fweimer@redhat.com>
9635
9636 [BZ #23396]
9637 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9638 not compare an extra byte after the end of the weights.
9639
9640 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9641
9642 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9643 to 1.
9644 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9645 hidden prototypes.
9646 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9647 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9648 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9649 list of libraries whose stack executability is expected.
9650 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9651 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9652 variable.
9653 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9654 libc.so libpthread.so.
9655
9656 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9657
9658 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9659 SOCK_NONBLOCK.
9660 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9661 and SOCK_NONBLOCK.
9662 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9663 implement __pipe2.
9664 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9665
9666 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9667
9668 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9669 library to improve command line parsing.
9670 (__main__): make schema file as optional parameter (--schema),
9671 defaulting to benchtests/scripts/benchout.schema.json.
9672 (main): move out of the parsing stuff to __main_  and leave it
9673 only as caller of main comparison functions.
9674
9675 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9676
9677 * NEWS: Add a note for Intel CET status.
9678 * manual/install.texi: Likewise.
9679 * INSTALL: Regenerated.
9680
9681 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9682
9683 [BZ #23140]
9684 * localedata/locales/oc_FR (mon): Rename to...
9685 (alt_mon): This, then update October (typo fix).
9686 (mon): New content (genitive case, month names preceded by
9687 "de" or "d’").
9688
9689 [BZ #23422]
9690 * localedata/locales/oc_FR (abday): Update all items.
9691 (day): Update Wednesday and Saturday (typo fixes).
9692 (abmon): Update all items, except May.
9693 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9694 (LC_IDENTIFICATION): Bump the revision number and date.
9695 Keep the "category" entries in alphabetic order.
9696 (LC_ADDRESS): Remove no longer needed comment.
9697 (LC_COLLATE): Use “copy "ca_ES"”.
9698 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9699 "name_mrs".
9700
9701 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9702
9703 * grp/tst_fgetgrent.c: Include <unistd.h>.
9704 (main): Use mkstemp instead of tmpnam.
9705 * io/test-utime.c (main): Likewise.
9706 * posix/annexc.c (macrofile): Change to modifiable array.
9707 (main): Remove macrofile here.
9708 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9709 macrofile here.
9710 (check_header): Do not remove macrofile here.
9711 * posix/bug-getopt1.c: Include <stdlib.h>.
9712 (do_test): Use mkstemp instead of tmpnam.
9713 * posix/bug-getopt2.c: Include <stdlib.h>.
9714 (do_test): Use mkstemp instead of tmpnam.
9715 * posix/bug-getopt3.c: Include <stdlib.h>.
9716 (do_test): Use mkstemp instead of tmpnam.
9717 * posix/bug-getopt4.c: Include <stdlib.h>.
9718 (do_test): Use mkstemp instead of tmpnam.
9719 * posix/bug-getopt5.c: Include <stdlib.h>.
9720 (do_test): Use mkstemp instead of tmpnam.
9721 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9722 (main): Use mkstemp instead of tmpnam.
9723 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9724 (main): Use mkstemp instead of tmpnam.
9725 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9726 (main): use mkstemp instead of tmpnam.
9727 * stdlib/isomac.c (macrofile): Change to modifiable array.
9728 (main): Remove macrofile here.
9729 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9730 macrofile here.
9731 (check_header): Do not remove macrofile here.
9732
9733 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9734
9735 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9736 glibc.tune.x86_shstk.
9737
9738 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9739
9740 * NEWS: Mention --enable-cet.
9741 * manual/install.texi: Document --enable-cet.
9742 * INSTALL: Regenerated.
9743
9744 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9745
9746 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9747 Add _CET_NOTRACK before indirect jump to jump table.
9748
9749 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9750
9751 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9752 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9753 to jump table.
9754
9755 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9756
9757 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9758 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9759 to jump table.
9760
9761 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9762
9763 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9764 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9765 to jump table.
9766
9767 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9768
9769 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9770 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9771 to jump table.
9772
9773 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9774
9775 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9776 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9777 to jump table.
9778 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9779
9780 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9781
9782 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9783 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9784 to jump table.
9785
9786 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9787
9788 * sysdeps/i386/i686/multiarch/memset-sse2.S
9789 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9790 to jump table.
9791
9792 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9793
9794 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9795 indirect jump to jump table.
9796
9797 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9798
9799 * sysdeps/x86_64/multiarch/memcpy-ssse3.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/memcpy-ssse3-back.S
9807 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9808 to jump table.
9809 (MEMCPY): Likewise.
9810
9811 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9812
9813 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9814 _CET_NOTRACK before indirect jump to jump table.
9815
9816 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9817
9818 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9819 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9820 to jump table.
9821
9822 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9823
9824 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9825 indirect jump to jump table.
9826
9827 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9828
9829 [BZ #22241]
9830 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9831 (LOCALES): Likewise.
9832 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9833 * localedata/locales/sah_RU: New file.
9834 * localedata/sah_RU.UTF-8.in: New file.
9835
9836 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9837
9838 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9839 "sysdep.h".
9840 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9841 _CET_ENDBR to indirect jump targets and adjust jump destination
9842 for _CET_ENDBR.
9843 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9844 "sysdep.h".
9845 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9846 _CET_ENDBR to indirect jump targets and adjust jump destination
9847 for _CET_ENDBR.
9848 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9849 "sysdep.h".
9850 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9851 _CET_ENDBR to indirect jump targets and adjust jump destination
9852 for _CET_ENDBR.
9853
9854 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9855
9856 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9857 _CET_ENDBR.
9858
9859 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9860
9861 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9862 _CET_ENDBR.
9863 (_dl_tlsdesc_undefweak): Likewise.
9864 (_dl_tlsdesc_dynamic): Likewise.
9865 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9866 (_dl_tlsdesc_resolve_rel): Likewise.
9867 (_dl_tlsdesc_resolve_rela): Likewise.
9868 (_dl_tlsdesc_resolve_hold): Likewise.
9869 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9870 (_dl_tlsdesc_undefweak): Likewise.
9871 (_dl_tlsdesc_dynamic): Likewise.
9872 (_dl_tlsdesc_resolve_rela): Likewise.
9873 (_dl_tlsdesc_resolve_hold): Likewise.
9874
9875 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9876
9877 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9878 (_fini): Likewise.
9879 * sysdeps/x86_64/crti.S (_init): Likewise.
9880 (_fini): Likewise.
9881
9882 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9883
9884 [BZ #23140]
9885 * localedata/locales/os_RU (mon): Rename to...
9886 (alt_mon): This.
9887 (mon): Import from CLDR (genitive case).
9888
9889 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9890
9891 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9892 cet-tunables.h> when CET is enabled.
9893
9894 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9895
9896 [BZ #21598]
9897 * configure.ac: Add --enable-cet.
9898 * configure: Regenerated.
9899 * elf/Makefille (all-built-dso): Add a comment.
9900 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9901 Include <dl-prop.h>.
9902 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9903 segment.
9904 * elf/dl-open.c: Include <dl-prop.h>.
9905 (dl_open_worker): Call _dl_open_check.
9906 * elf/rtld.c: Include <dl-prop.h>.
9907 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9908 _rtld_main_check.
9909 * sysdeps/generic/dl-prop.h: New file.
9910 * sysdeps/i386/dl-cet.c: Likewise.
9911 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9912 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9913 * sysdeps/x86/cet-tunables.h: Likewise.
9914 * sysdeps/x86/check-cet.awk: Likewise.
9915 * sysdeps/x86/configure: Likewise.
9916 * sysdeps/x86/configure.ac: Likewise.
9917 * sysdeps/x86/dl-cet.c: Likewise.
9918 * sysdeps/x86/dl-procruntime.c: Likewise.
9919 * sysdeps/x86/dl-prop.h: Likewise.
9920 * sysdeps/x86/libc-start.h: Likewise.
9921 * sysdeps/x86/link_map.h: Likewise.
9922 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9923 _CET_ENDBR.
9924 (_dl_runtime_profile): Likewise.
9925 (_dl_runtime_resolve_shstk): New.
9926 (_dl_runtime_profile_shstk): Likewise.
9927 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9928 if CET is enabled.
9929 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9930 (CFLAGS-.os): Likewise.
9931 (CFLAGS-.op): Likewise.
9932 (CFLAGS-.oS): Likewise.
9933 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9934 is enabled.
9935 (tests-special): Add $(objpfx)check-cet.out.
9936 (cet-built-dso): New.
9937 (+$(cet-built-dso:=.note)): Likewise.
9938 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9939 ($(objpfx)check-cet.out): New.
9940 (generated): Add check-cet.out.
9941 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9942 <cet-tunables.h>.
9943 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9944 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9945 (init_cpu_features): Call get_cet_status to check CET status
9946 and update dl_x86_feature_1 with CET status. Call
9947 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9948 (set_x86_shstk). Disable and lock CET in libc.a.
9949 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9950 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9951 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9952 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9953 (_CET_ENDBR): Define if not defined.
9954 (ENTRY): Add _CET_ENDBR.
9955 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9956 x86_shstk.
9957 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9958 _CET_ENDBR.
9959 (_dl_runtime_profile): Likewise.
9960
9961 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9962
9963 [BZ #21895]
9964 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9965 restore r2 on longjmp.
9966 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9967 test list.
9968 Added rules to build test tst-setjmp-bug21895-static.
9969 Added module setjmp-bug21895 and rules to build a shared object from it.
9970 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9971 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9972
9973 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9974
9975 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9976 * benchtests/bench-strstr.c: Likewise.
9977 * string/memmem.c (FASTSEARCH): Define.
9978 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9979 Add support for FASTSEARCH.
9980 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9981 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9982 (FASTSEARCH): Define.
9983 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9984 * string/test-strstr.c: Likewise.
9985
9986 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9987
9988 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9989 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9990
9991 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9992 H.J. Lu <hongjiu.lu@intel.com>
9993
9994 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9995 (__longjmp): Restore shadow stack pointer if shadow stack is
9996 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9997 isn't defined for __longjmp_cancel.
9998 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9999 (_setjmp): Save shadow stack pointer if shadow stack is enabled
10000 and SHADOW_STACK_POINTER_OFFSET is defined.
10001 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
10002 (setjmp): Save shadow stack pointer if shadow stack is enabled
10003 and SHADOW_STACK_POINTER_OFFSET is defined.
10004 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
10005 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10006 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10007 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
10008 <jmp_buf-ssp.h>.
10009 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10010 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10011 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
10012 Remove jmp_buf-ssp.sym.
10013 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10014 <jmp_buf-ssp.h>.
10015 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10016 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10017 * sysdeps/x86/Makefile (gen-as-const-headers): Add
10018 jmp_buf-ssp.sym.
10019 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10020 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10021 (__longjmp): Restore shadow stack pointer if shadow stack is
10022 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10023 isn't defined for __longjmp_cancel.
10024 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10025 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10026 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10027
10028 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
10029
10030 [BZ #22563]
10031 * nptl/pthread_create.c: Include <tls-setup.h>.
10032 (__pthread_create_2_1): Call tls_setup_tcbhead.
10033 * sysdeps/generic/tls-setup.h: New file.
10034 * sysdeps/x86/nptl/tls-setup.h: Likewise.
10035 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10036 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10037 Likewise.
10038 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10039 to feature_1.
10040 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10041 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10042 (X86_FEATURE_1_SHSTK): Likewise.
10043 (CET_ENABLED): Likewise.
10044 (IBT_ENABLED): Likewise.
10045 (SHSTK_ENABLED): Likewise.
10046
10047 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
10048
10049 [BZ #23208]
10050 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10051 (LOCALES): Likewise.
10052 * localedata/dsb_DE.UTF-8.in: New file.
10053 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10054
10055 2018-07-12 Florian Weimer <fweimer@redhat.com>
10056
10057 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10058 __mprotect, not mprotect.
10059
10060 2018-07-11 Florian Weimer <fweimer@redhat.com>
10061
10062 * io/Makefile (headers): Add bits/statx.h.
10063
10064 2018-07-10 Mike FABIAN <mfabian@redhat.com>
10065
10066 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10067 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10068 and headers.
10069 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10070 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10071 for utf8_gen.py
10072
10073 2018-07-10 Florian Weimer <fweimer@redhat.com>
10074
10075 * io/Makefile (routines): Add statx.
10076 (tests-internal): Add tst-statx.
10077 * io/Versions (GLIBC_2.28): Export statx.
10078 * io/bits/statx.h: New file.
10079 * io/sys/stat.h [__USE_GNU]: Include it.
10080 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10081 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10082 Define.
10083 * io/statx.c: New file.
10084 * io/statx_generic.: Likewise.
10085 * io/tst-statx.: Likewise.
10086 * include/bits/statx.h: Likewise.
10087 * sysdeps/unix/sysv/linux/kernel-features.h
10088 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10089 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10090 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10091 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10092 Undefine.
10093 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10094 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10095 * sysdeps/unix/sysv/linux/statx.c: New file.
10096 * manual/filesys.texi: Note that statx is undocumented.
10097 * sysdeps/**/libc*.abilist: Update.
10098
10099 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10100
10101 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10102 a kernel issue which lead to test failure in some cases.
10103
10104 2018-07-10 Florian Weimer <fweimer@redhat.com>
10105
10106 [BZ #23036]
10107 * posix/regexec.c (check_node_accept_bytes): When comparing
10108 weights, do not compare an extra byte after the end of the
10109 weights.
10110
10111 2018-07-10 Florian Weimer <fweimer@redhat.com>
10112
10113 * libio/readline.c: Fix copyright year.
10114 * libio/tst-readline.c Likewise.
10115 * nss/tst-nss-files-hosts-getent.c: Likewise.
10116
10117 2018-07-06 Florian Weimer <fweimer@redhat.com>
10118
10119 [BZ #18991]
10120 * nss/nss_files/files-XXX.c (internal_getent): Use
10121 __libc_readline_unlocked. Seek back to the start of the line if
10122 parsing failes with ERANGE.
10123 (get_contents_ret, get_contents): Remove.
10124 * nss/tst-nss-files-hosts-getent.c: New file.
10125 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10126 (tst-nss-files-hosts-getent): Link with -ldl.
10127
10128 2018-07-06 Florian Weimer <fweimer@redhat.com>
10129
10130 * include/stdio.h (__libc_readline_unlocked): Declare.
10131 (__ftello64, __fseeko64): Declare aliases.
10132 * libio/readline.c: New file.
10133 * libio/tst-readline.c: Likewise.
10134 (routines): Add readline.
10135 (tests-internal): Add tst-readlime.
10136 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10137 __libc_readline_unlocked.
10138 * libio/fseeko.c (__fseeko): Rename from fseeko.
10139 (fseeko): Add alias.
10140 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10141 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10142 (fseeko64): Add alias.
10143 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10144 * libio/ftello64.c (__ftello64): Rename from ftello64.
10145 (ftello64): Add alias.
10146
10147 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10148
10149 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10150 HWCAP_ATOMICS.
10151
10152 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10153
10154 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10155 Use dl_hwcap without masking.
10156 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10157 Remove HWCAP_CPUID.
10158
10159 2018-07-06 Florian Weimer <fweimer@redhat.com>
10160
10161 * conform/conformtest.pl (checknamespace): Escape literal braces
10162 in regular expressions.
10163
10164 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10165
10166 * sysdeps/x86/cpu-features.c (get_common_indeces):
10167 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10168 * sysdeps/x86/cpu-features.c (init_cpu_features):
10169 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10170
10171 2018-07-05 Florian Weimer <fweimer@redhat.com>
10172
10173 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10174 protector.
10175 (CFLAGS-elf-init.oS): Likewise.
10176
10177 2018-07-05 Florian Weimer <fweimer@redhat.com>
10178 Carlos O'Donell <carlos@redhat.com>
10179
10180 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10181 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10182 with stack protector enabled because there is no risk of infinite
10183 recursion.
10184
10185 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10186
10187 [BZ #19818]
10188 [BZ #23307]
10189 * libc-abis (ABSOLUTE): New ABI.
10190 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10191 * NEWS: Mention the new ABI.
10192
10193 2018-07-05 Florian Weimer <fweimer@redhat.com>
10194
10195 [BZ # 17662]
10196 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10197 (RENAME_WHITEOUT): Define.
10198 [__USE_GNU] (renameat2): Declare.
10199 * stdio-common/Makefile (routines): Add renameat2.
10200 (tests): Add tst-renameat2.
10201 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10202 * stdio-common/renameat2.c: New file.
10203 * stdio-common/tst-renameat2.c: Likewise.
10204 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10205 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10206 undocumented.
10207 * sysdeps/unix/sysv/linux/kernel-features.h
10208 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10209 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10210 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10211 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10212 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10213 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10214 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10215 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10216 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10217 * include/stdio.h (__renameat): Add alias for renameat.
10218 * stdio-common/renameat.c (__renameat): Rename from renameat.
10219 Add hidden definition and alias.
10220 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10221 * sysdeps/mach/hurd/renameat.c: Likewise.
10222 * sysdeps/**/libc*.abilist: Add renameat2.
10223
10224 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10225
10226 * posix/bug-regex33.c: Fix build after regex sync.
10227
10228 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10229
10230 [BZ #23164]
10231 * localedata/tst-langinfo-setlocale.c: New file.
10232 * localedata/tst-langinfo-setlocale-static.c: New file.
10233 * localedata/tst-langinfo-newlocale.c: New file.
10234 * localedata/tst-langinfo-newlocale-static.c: New file.
10235 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10236 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10237 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10238 (tests-static): Remove tst-langinfo-static. Add
10239 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10240 (tests-special): Remove $(objpfx)tst-langinfo.out,
10241 $(objpfx)tst-langinfo-static.out. Add
10242 $(objpfx)tst-langinfo-setlocale.out,
10243 $(objpfx)tst-langinfo-newlocale.out,
10244 $(objpfx)tst-langinfo-setlocale-static.out,
10245 $(objpfx)tst-langinfo-newlocale-static.out.
10246 ($(objpfx)tst-langinfo.out): Remove.
10247 ($(objpfx)tst-langinfo-static.out): Remove.
10248 ($(objpfx)tst-langinfo-newlocale.out): New target.
10249 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10250 (test-xfail-tst-langinfo-newlocale-static): Add.
10251 ($(objpfx)tst-langinfo-setlocale.out): New target.
10252 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10253 * localedata/tst-langinfo.c: Call test_locale.
10254 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10255 data.
10256
10257 2018-07-04 Florian Weimer <fweimer@redhat.com>
10258
10259 testrun.sh: Implement --tool=strace, --tool=valgrind
10260 * Makefile (testrun-script): Define variable.
10261 (testrun.sh): Use variable.
10262 * manual/install.texi (Tools for Compilation): make 4.0 or later
10263 is required.
10264 * configure.ac: Check for make 4.0 or later.
10265 * INSTALL: Regenerate.
10266 * configure: Likewise.
10267
10268 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10269
10270 [BZ #23233]
10271 [BZ #21163]
10272 [BZ #18986]
10273 [BZ #13762]
10274 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10275 * posix/PCRE.tests: Remove invalid test.
10276 * posix/bug-regex28.c: Fix expected values for used syntax.
10277 * posix/bug-regex37.c: New file.
10278 * posix/bug-regex38.c: Likewise.
10279 * posix/regcomp.c: Sync with gnulib.
10280 * posix/regex.c: Likewise.
10281 * posix/regex.h: Likewise.
10282 * posix/regex_internal.c: Likewise.
10283 * posix/regex_internal.h: Likewise.
10284 * posix/regexec.c: Likewise.
10285
10286 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10287
10288 [BZ #23308]
10289 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10290 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10291 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10292 * localedata/unicode-gen/PropList.txt: likewise.
10293 * localedata/unicode-gen/UnicodeData.txt: likewise.
10294 * localedata/charmaps/UTF-8: Regenerate.
10295 * localedata/locales/i18n_ctype: likewise.
10296 * localedata/locales/tr_TR: likewise.
10297 * localedata/locales/translit_circle: likewise.
10298 * localedata/locales/translit_cjk_compat: likewise.
10299 * localedata/locales/translit_combining: likewise.
10300 * localedata/locales/translit_compat: likewise.
10301 * localedata/locales/translit_font: likewise.
10302 * localedata/locales/translit_fraction: likewise.
10303
10304 2018-07-03 Florian Weimer <fweimer@redhat.com>
10305
10306 [BZ #23363]
10307 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10308 * stdio-common/tst-printf.sh: Adjust expected output.
10309 * LICENSES: Update.
10310
10311 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10312
10313 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10314 symbol.
10315
10316 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10317
10318 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10319 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10320 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10321 * stdio-common/tst-printfsz-islongdouble.c: New file.
10322 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10323 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10324 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10325 [subdir == stdio-common] (tests-internal): Add
10326 test-printf-size-ieee128, and test-printf-size-ibm128.
10327 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10328 (CFLAGS-test-printf-size-ibm128.c): New variables.
10329 [subdir == stdio-common] (tests-special): Add
10330 $(objpfx)test-printf-size-ieee128.out and
10331 $(objpfx)test-printf-size-ibm128.out.
10332 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10333 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10334 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10335 __printf_sizeieee128.
10336 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10337 New file.
10338 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10339 Likewise.
10340 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10341 Likewise.
10342
10343 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10344
10345 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10346 (exp2f_inline): Likewise.
10347 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10348 (__math_uflowf): Likewise.
10349 (__math_may_uflowf): Likewise.
10350 (__math_divzerof): Likewise.
10351 (__math_invalidf): Likewise.
10352 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10353 (__math_oflowf): Likewise.
10354 (__math_uflowf): Likewise.
10355 (__math_may_uflowf): Likewise.
10356 (__math_divzerof): Likewise.
10357 (__math_invalidf): Likewise.
10358
10359 2018-06-29 DJ Delorie <dj@redhat.com>
10360 Carlos O'Donell <carlos@redhat.com>
10361
10362 [BZ #23329]
10363 * include/libc-symbols.h: Comment the freeres framework.
10364 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10365 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10366 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10367 * dlfcn/dlerror.c: Include libc-symbols.h
10368 (__dlerror_main_freeres): New function.
10369 * dlfcn/dlfreeres.c: New file.
10370 * dlfcn/sdlfreeres.c: New file.
10371 * include/dlfcn.h: Declare __dlerror_main_freeres.
10372 * malloc/set-freeres.c: Declare __libdl_freeres, and
10373 __libpthread_freeres.
10374 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10375 the releavant libraries are loaded.
10376 * malloc/thread-freeres.c: Add comments.
10377 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10378 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10379 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10380 (__free_stacks): Rename to...
10381 (free_stacks): ...this. Mark static.
10382 (queue_stack): Call free_stacks.
10383 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10384 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10385 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10386 ptr_freeres element from struct.
10387 (pthread_functions): Remove .ptr_freeres from struct initializer.
10388 [SHARED] (nptl_freeres): Remove.
10389 * nptl/nptlfreeres.c: New file.
10390 * nptl/pthreadP.h
10391 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10392 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10393 attribute_hidden.
10394 (__free_stacks): Rename to...
10395 (__nptl_stacks_freeres): ...this.
10396 (__shm_directory_freeres): Declare.
10397 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10398 (__nptl_unwind_freeres): ...this.
10399 * resolv/res-close.c: Add comment.
10400 * resolv/resolv_conf.c: Include libc-symbols.h.
10401 * string/strerror_l.c: Include libc-symbols.h.
10402 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10403 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10404 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10405 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10406
10407 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10408
10409 * stdlib/tst-strfmon_l.c: Add tests for long double.
10410
10411 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10412
10413 [BZ #23208]
10414 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10415 * localedata/locales/dsb_DE: New file.
10416
10417 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10418
10419 [BZ #23140]
10420 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10421 genitive case).
10422 (alt_mon): New entry, import from CLDR (nominative case).
10423
10424 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10425
10426 [BZ #22996]
10427 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10428
10429 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10430
10431 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10432 Use vector registers.
10433
10434 * sysdeps/aarch64/multiarch/memmove_falkor.S
10435 (__memcpy_falkor): Use vector registers.
10436
10437 2018-06-29 Martin Sebor <msebor@redhat.com>
10438
10439 * manual/stdio.texi (Customizing Printf): Mention interaction
10440 with GCC built-ins.
10441
10442 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10443
10444 [BZ #23307]
10445 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10446 `st_value' is 0 if `st_shndx' is SHN_ABS.
10447 * elf/tst-absolute-zero.c: New file.
10448 * elf/tst-absolute-zero-lib.c: New file.
10449 * elf/tst-absolute-zero-lib.lds: New file.
10450 * elf/Makefile (tests): Add `tst-absolute-zero'.
10451 (modules-names): Add `tst-absolute-zero-lib'.
10452 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10453 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10454 ($(objpfx)tst-absolute-zero: New dependency.
10455
10456 2018-06-29 Zack Weinberg <zackw@panix.com>
10457
10458 * configure.ac: New command-line option --disable-crypt.
10459 Force --disable-nss-crypt when --disable-crypt is given, with a
10460 warning if it was explicitly enabled.
10461 * configure: Regenerate.
10462 * config.make.in: New boolean substitution variable $(build-crypt).
10463 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10464 when $(build-crypt).
10465 * manual/install.texi: Document --disable-crypt.
10466 * INSTALL: Regenerate.
10467
10468 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10469 which is never set.
10470 * conform/Makefile: Only include libcrypt.a in
10471 linknamespace-libs-xsi and linknamespace-libs-XPG4
10472 when $(build-crypt).
10473 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10474 USE_CRYPT to 1 when $(build-crypt).
10475 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10476 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10477 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10478
10479 2018-06-29 Zack Weinberg <zackw@panix.com>
10480
10481 * crypt/crypt.h, posix/unistd.h: Update comments and
10482 prototypes for crypt and crypt_r.
10483
10484 * manual/crypt.texi (Cryptographic Functions): New initial
10485 exposition.
10486 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10487 (Unpredictable Bytes): Improve initial exposition. Clarify error
10488 behavior of getentropy and getrandom.
10489 * manual/examples/genpass.c: Generate a salt using getentropy
10490 instead of the current time. Use hash $5$ (SHA-2-256).
10491 * manual/examples/testpass.c: Demonstrate validation against
10492 hashes generated with three different one-way functions.
10493
10494 * manual/intro.texi: crypt.texi does not need an overview
10495 anymore.
10496
10497 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10498 * manual/terminal.texi: Consistently refer to "passphrases"
10499 * instead of "passwords", and to the "user database" instead
10500 * of the "password database".
10501 * manual/users.texi: Similarly. Add notes about how actual
10502 passphrase hashes are now stored in the shadow database.
10503 Remove 20-year-old junk todo note.
10504
10505 2018-06-29 Zack Weinberg <zackw@panix.com>
10506
10507 * manual/crypt.texi: Use a normal top-level @node declaration.
10508 Move most of the introductory text to the 'crypt' section.
10509 Move the example programs below the @deftypefun for 'crypt_r'.
10510 Move the 'getpass' section...
10511 * manual/terminal.texi: ...here.
10512
10513 2018-06-29 Zack Weinberg <zackw@panix.com>
10514 Florian Weimer <fweimer@redhat.com>
10515
10516 * posix/unistd.h: Do not declare encrypt.
10517 (_XOPEN_CRYPT): Remove macro definition.
10518 (crypt): Declare only for _USE_MISC.
10519 * stdlib/stdlib.h: Do not declare setkey.
10520 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10521 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10522
10523 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10524 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10525 into compat symbols. Don't define initial_perm if it's not
10526 going to be used.
10527 * crypt/cert.c: Link explicitly with the expected versions for
10528 setkey and encrypt. If they are not available at all, mark
10529 the test as unsupported.
10530
10531 * sunrpc/des_crypt.c: Unconditionally block linkage with
10532 cbc_crypt and ecb_crypt for new binaries.
10533 * sunrpc/des_soft.c: Unconditionally block linkage with
10534 des_setparity for new binaries.
10535
10536 * manual/crypt.texi: Remove the entire "DES Encryption"
10537 section. Also remove the paragraph talking about FIPS 140-2
10538 from the introduction.
10539 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10540 of libgcrypt for "real" encryption, not DES.
10541 * manual/conf.texi (Constants for Sysconf): Mention that
10542 _XOPEN_CRYPT is no longer impelemented.
10543
10544 * conform/data/unistd.h-data: Remove crypt function declaration.
10545
10546 2018-06-29 Florian Weimer <fweimer@redhat.com>
10547
10548 [BZ #23351]
10549 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10550 (disallow_malloc_check): Remove variable.
10551 (__malloc_check_init): Adjust.
10552 (malloc_set_state): Update comment.
10553 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10554 declarations.
10555
10556 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10557
10558 [BZ #23140]
10559 * localedata/locales/ast_ES (mon): Rename to...
10560 (alt_mon): This.
10561 (mon): Import from CLDR (genitive case).
10562
10563 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10564 Jakub Sitnicki <jkbs@redhat.com>
10565
10566 [BZ #21812]
10567 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10568 on NLM_F_DUMP_INTR.
10569
10570 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10571
10572 * manual/llio.texi: Remove spurious space.
10573
10574 2018-06-28 Florian Weimer <fweimer@redhat.com>
10575
10576 [BZ #23349]
10577 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10578 _STRUCT_TIMESPEC.
10579
10580 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10581
10582 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10583 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10584 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10585 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10586 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10587 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10588 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10589
10590 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10591
10592 [BZ #23266]
10593 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10594 Copy and null-terminate entries that are not terminated, in
10595 addition to empty ones.
10596
10597 2018-06-27 Florian Weimer <fweimer@redhat.com>
10598
10599 [BZ #18023]
10600 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10601 (extend_alloca_account): Remove.
10602 * manual/stdio.texi (Variable Arguments Output): Update comment.
10603
10604 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10605
10606 * nptl/sockperf.c: Remove file.
10607
10608 2018-06-27 Florian Weimer <fweimer@redhat.com>
10609
10610 [BZ #18023]
10611 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10612 scratch_buffer instead of extend_alloca.
10613
10614 2018-06-27 Florian Weimer <fweimer@redhat.com>
10615
10616 [BZ #18023]
10617 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10618 scratch_buffer instead of extend_alloca. Update comments.
10619
10620 2018-06-27 Florian Weimer <fweimer@redhat.com>
10621
10622 [BZ #18023]
10623 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10624 instead of extend_alloca.
10625
10626 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10627
10628 [BZ #13888]
10629 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10630 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10631 /tmp.
10632 * scripts/test-installation.pl: Put temporary files in build
10633 directory, not /tmp.
10634 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10635 (CFLAGS-bug4.c): Likewise.
10636 (CFLAGS-bug5.c): Likewise.
10637 (CFLAGS-test-fseek.c): Likewise.
10638 (CFLAGS-test-popen.c): Likewise.
10639 (CFLAGS-test_rdwr.c): Likewise.
10640 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10641 /tmp.
10642 * stdio-common/bug4.c (main): Likewise.
10643 * stdio-common/bug5.c (main): Likewise.
10644 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10645 * stdio-common/test-popen.c (do_test): Likewise.
10646 * stdio-common/test_rdwr.c (main): Likewise.
10647
10648 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10649
10650 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10651 (sem_open): Set sem.newsem.pad to zero for valgrind.
10652
10653 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10654
10655 [BZ #20251]
10656 * NEWS: Mention fcntl64 addition.
10657 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10658 * login/utmp_file.c: Likewise.
10659 * sysdeps/posix/fdopendir.c: Likewise.
10660 * sysdeps/posix/opendir.c: Likewise.
10661 * sysdeps/unix/pt-fcntl.c: Likewise.
10662 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10663 __fcntl64_nocancel_adjusted): New prototype.
10664 (__fcntl_nocancel_adjusted): Remove prototype.
10665 * io/Makefile (routines): Add fcntl64.
10666 (CFLAGS-fcntl64.c): New rule.
10667 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10668 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10669 * io/fcntl.h (fcntl64): Add prototype and redirect if
10670 __USE_FILE_OFFSET64 is defined.
10671 * io/fcntl64.c: New file.
10672 * manual/llio.text: Add a note for which commands fcntl acts a
10673 cancellation point.
10674 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10675 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10676 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10677 New symbols.
10678 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10679 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10680 non-LFS case.
10681 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10682 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10683 to __fcntl64_nocancel.
10684 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10685 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10686 to __fcntl64_nocancel.
10687 * sysdeps/generic/not-cancel.h: Likewise.
10688 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10689 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10690 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10691 (fcntl64): New symbol.
10692 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10693 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10694 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10697 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10698 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10699 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10700 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10701 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10702 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10703 fcntl64): Likewise.
10704 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10705 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10706 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10707 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10708 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10709 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10710 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10711 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10712 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10714 Likewise.
10715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10716 Likewise.
10717 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10718 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10719 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10720
10721 2018-06-26 Florian Weimer <fweimer@redhat.com>
10722
10723 Run thread shutdown functions in an explicit order.
10724 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10725 definition.
10726 (__libc_thread_freeres): Call thread shutdown functions
10727 explicitly.
10728 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10729 * include/string.h (__strerror_thread_freeres): Declare.
10730 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10731 arena_thread_freeres. No longer static. Remove thread shutdown
10732 hook registration.
10733 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10734 Declare.
10735 * resolv/res-close.c (__res_thread_freeres): Renamed from
10736 res_thread_freeres. No longer static. Remove thread shutdown
10737 hook registration.
10738 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10739 * resolv/resolv_conf.c (freeres): Remove incorrect section
10740 attribute and use libc_freeres_fn.
10741 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10742 strerror_thread_freeres. No longer static. Remove thread
10743 shutdown hook registration.
10744 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10745 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10746 shutdown hook registration.
10747 * Makerules (shlib.lds): Do not provide section boundary symbols
10748 for __libc_thread_subfreeres.
10749 * manual/memory.texi (Basic Allocation): Update comment.
10750
10751 2018-06-26 Florian Weimer <fweimer@redhat.com>
10752
10753 Remove always-defined _RPC_THREAD_SAFE_ macro.
10754 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10755 Do not define _RPC_THREAD_SAFE_.
10756 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10757 conditional.
10758 * sunrpc/clnt_perr.c: Likewise.
10759 * sunrpc/clnt_raw.c: Likewise.
10760 * sunrpc/clnt_simp.c: Likewise.
10761 * sunrpc/key_call.c: Likewise.
10762 * sunrpc/rpc_common.c: Likewise.
10763 * sunrpc/rpc_main.c: Likewise.
10764 * sunrpc/rpc_thread.c: Likewise.
10765 * sunrpc/svc.c: Likewise.
10766 * sunrpc/svc_raw.c: Likewise.
10767 * sunrpc/svc_simple.c: Likewise.
10768 * sumrpc/svcauth_des.c: Likewise.
10769
10770 2018-06-26 Florian Weimer <fweimer@redhat.com>
10771
10772 * libio/Makefile (tests-internal): Add tst-vtables,
10773 tst-vtables-interposed.
10774 * libio/tst-vtables.c: New file.
10775 * libio/tst-vtables-common.c: Likewise.
10776 * libio/tst-vtables-interposed.c: Likewise.
10777
10778 2018-06-26 Florian Weimer <fweimer@redhat.com>
10779
10780 * support/support_test_main.c (support_test_main): Only call
10781 setvbuf if not disables.
10782 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10783 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10784
10785 2018-06-26 Florian Weimer <fweimer@redhat.com>
10786
10787 [BZ #23313]
10788 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10789
10790 2018-06-25 Florian Weimer <fweimer@redhat.com>
10791
10792 [BZ #18023]
10793 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10794 Use struct scratch_buffer instead of extend_alloca.
10795
10796 2018-06-25 Florian Weimer <fweimer@redhat.com>
10797
10798 [BZ #18023]
10799 * nss/getent.c (initgroups_keys): Use dynarray instead of
10800 extend_alloca.
10801
10802 2018-06-25 Florian Weimer <fweimer@redhat.com>
10803
10804 [BZ #18023]
10805 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10806 Use struct scratch_buffer instead of extend_alloca.
10807
10808 2018-06-25 Florian Weimer <fweimer@redhat.com>
10809
10810 [BZ #18023]
10811 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10812 back to malloc directly, without stack allocations.
10813
10814 2018-06-25 Florian Weimer <fweimer@redhat.com>
10815
10816 [BZ #18023]
10817 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10818 of extend_alloca.
10819
10820 2018-06-25 Florian Weimer <fweimer@redhat.com>
10821
10822 [BZ #18023]
10823 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10824 of extend_alloca.
10825 * nscd/hstcache.c (addhstbyX): Likewise.
10826 * nscd/pwdcache.c (addpwbyX): Likewise.
10827 * nscd/servicescache.c (addservbyX): Likewise.
10828
10829 2018-06-25 Florian Weimer <fweimer@redhat.com>
10830
10831 [BZ #18023]
10832 * nscd/connections.c (read_cmdline): New function.
10833 (restart): Use it. Update comment.
10834
10835 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10836
10837 [BZ #23140]
10838 * localedata/locales/csb_PL (mon): Rename to...
10839 (alt_mon): This.
10840 (abmon): Rename to...
10841 (ab_alt_mon): This.
10842 (mon): Add with proper genitive forms, copy from Wikipedia.
10843 (abmon): Likewise.
10844
10845 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10846
10847 [BZ #19485]
10848 * localedata/locales/csb_PL (mon): Fix typos:
10849 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10850 (yesstr): Add, value is "jo".
10851 (nostr): Add, value is "nié".
10852
10853 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10854
10855 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10856 all log1p and significand functions on m680x0.
10857 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10858 of s_significand.c..
10859 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10860 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10861 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10862 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10863 s_log1p.c and include it..
10864
10865 2018-06-21 Vincent Chen <vincentc@andestech.com>
10866
10867 * elf/elf.h (R_NDS32_NONE): New define.
10868 (R_NDS32_32_RELA): Likewise.
10869 (R_NDS32_COPY): Likewise.
10870 (R_NDS32_GLOB_DAT): Likewise.
10871 (R_NDS32_JUMP_SLOT): Likewise.
10872 (R_NDS32_RELATIVE): Likewise.
10873 (R_NDS32_TLS_TPOFF): Likewise.
10874 (R_NDS32_TLS_DESC): Likewise.
10875
10876 2018-06-21 Mark Wielaard <mark@klomp.org>
10877
10878 * elf/elf.h (R_BPF_MAP_FD): Removed.
10879 (R_BPF_64_64, R_BPF_64_32): New.
10880
10881 2018-06-21 Florian Weimer <fweimer@redhat.com>
10882
10883 [BZ #23253]
10884 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10885 Renamed from libc_feholdsetround_ctx.
10886 (default_libc_feresetround_ctx): Renamed from
10887 libc_feresetround_ctx.
10888 (default_libc_feholdsetround_noex_ctx): Renamed from
10889 libc_feholdsetround_noex_ctx.
10890 (default_libc_feresetround_noex_ctx): Renamed from
10891 libc_feresetround_noex_ctx.
10892 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10893 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10894 forwardning to the old implementations under the new names.
10895 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10896 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10897 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10898 (libc_feresetround_ctx): Forward to default implements for i386
10899 and MATH_SET_BOTH_ROUNDING_MODES.
10900 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10901 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10902
10903 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10904
10905 * string/tst-cmp.c: Include <libc-diag.h>.
10906 (strncmp_max): Disable -Wstringop-overflow= around call to
10907 strncmp.
10908 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10909 strncasecmp.
10910
10911 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10912 (main): Disable -Wunused-value around call to strpbrk.
10913 * string/bug-strspn1.c: Include <libc-diag.h>.
10914 (main): Disable -Wunused-value around call to strspn.
10915
10916 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10917 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10918
10919 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10920 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10921
10922 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10923
10924 * math/Makefile (libm-calls): Move s_significandF to...
10925 (gen-libm-calls): ... here.
10926 * math/s_significand_template.c: New file.
10927 * math/s_significand.c: Removed.
10928 * math/s_significandf.c: Removed.
10929 * math/s_significandl.c: Removed.
10930 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10931 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10932
10933 * math/e_exp2_template.c (declare_mgen_finite_alias,
10934 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10935 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10936 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10937
10938 2018-06-20 Florian Weimer <fweimer@redhat.com>
10939
10940 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10941
10942 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10943
10944 [BZ #23280]
10945 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10946 floating-point number to strtod functions rather than possibly
10947 negating result of those functions.
10948 * stdio-common/tst-scanf-round.c: New file.
10949 * stdio-common/Makefile (tests): Add tst-scanf-round.
10950 ($(objpfx)tst-scanf-round): Depend on $(libm).
10951
10952 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10953
10954 * sysdeps/mach/hurd/localplt.data: Move to...
10955 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10956 R_386_GLOB_DAT like on Linux i386.
10957
10958 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10959
10960 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10961 (SHM_STAT_ANY): New macro.
10962 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10963 (SHM_STAT_ANY): Likewise.
10964 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10965 (SHM_STAT_ANY): Likewise.
10966 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10967 (SHM_STAT_ANY): Likewise.
10968 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10969 (SHM_STAT_ANY): Likewise.
10970 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10971 (SHM_STAT_ANY): Likewise.
10972 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10973 (SHM_STAT_ANY): Likewise.
10974 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10975 (SHM_STAT_ANY): Likewise.
10976 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10977 (SHM_STAT_ANY): Likewise.
10978 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10979 (SHM_STAT_ANY): Likewise.
10980 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10981 (SHM_STAT_ANY): Likewise.
10982 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10983 (SHM_STAT_ANY): Likewise.
10984
10985 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10986 (SEM_STAT_ANY): New macro.
10987 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10988 (SEM_STAT_ANY): Likewise.
10989 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10990 (SEM_STAT_ANY): Likewise.
10991 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10992 (SEM_STAT_ANY): Likewise.
10993 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10994 (SEM_STAT_ANY): Likewise.
10995 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10996 (SEM_STAT_ANY): Likewise.
10997 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10998 (SEM_STAT_ANY): Likewise.
10999 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
11000 (SEM_STAT_ANY): Likewise.
11001 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
11002 (SEM_STAT_ANY): Likewise.
11003 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
11004 (SEM_STAT_ANY): Likewise.
11005
11006 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
11007 (MSG_STAT_ANY): New macro.
11008 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
11009 (MSG_STAT_ANY): Likewise.
11010 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
11011 (MSG_STAT_ANY): Likewise.
11012 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
11013 (MSG_STAT_ANY): Likewise.
11014 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11015 (MSG_STAT_ANY): Likewise.
11016 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11017 (MSG_STAT_ANY): Likewise.
11018 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11019 (MSG_STAT_ANY): Likewise.
11020 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11021 (MSG_STAT_ANY): Likewise.
11022 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11023 (MSG_STAT_ANY): Likewise.
11024 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11025 (MSG_STAT_ANY): Likewise.
11026
11027 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11028 (MAP_TYPE): Change value to 0x2b.
11029
11030 2018-06-18 Florian Weimer <fweimer@redhat.com>
11031
11032 [BZ #15722]
11033 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11034 socket with SOCK_CLOEXEC.
11035
11036 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11037
11038 [BZ #23303]
11039 * sysdeps/powerpc/powerpc64/le/Makefile
11040 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11041 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11042 (gnulib-tests): Also add $(f128-loader-link) for
11043 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11044
11045 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11046
11047 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11048 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11049 of sendfile.
11050 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11051 (sendfile64): New strong alias.
11052 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11053 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11054 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11055 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11056 attribute.
11057 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11058 ___pthread_get_cleanup_stack.
11059 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11060 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11061 * mach/shortcut.awk: Make syscall stubs include
11062 <mach-shortcuts-hidden.h> and add hidden definition.
11063 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11064 (__mach_msg): Add hidden prototype.
11065 * mach/msg.c: Include <mach.h>.
11066 (__mach_msg): Add hidden definition.
11067 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11068 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11069 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11070 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11071 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11072 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11073 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11074 prototype and definition.
11075 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11076 hidden target for _hurd_self_sigstate.
11077
11078 2018-06-15 Joseph Myers <joseph@codesourcery.com>
11079
11080 [BZ #23007]
11081 * stdlib/tst-strtod-nan-sign-main.c: New file.
11082 * stdlib/tst-strtod-nan-sign.c: Likewise.
11083 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11084 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11085 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11086 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11087 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11088
11089 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
11090
11091 [BZ #23007]
11092 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11093 appropriate sign.
11094
11095 2018-06-14 Florian Weimer <fweimer@redhat.com>
11096
11097 [BZ #23290]
11098 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11099 that the result stays within the ISO-8859-1 range.
11100 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11101 characters are defined in IBM273.
11102
11103 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11104
11105 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11106 __mach_task_self): Remove attribute_hidden.
11107
11108 2018-06-14 Joseph Myers <joseph@codesourcery.com>
11109
11110 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11111 ignore -Wrestrict for one test.
11112
11113 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
11114 Szabolcs Nagy <szabolcs.nagy@arm.com>
11115
11116 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11117
11118 2018-06-14 Florian Weimer <fweimer@redhat.com>
11119
11120 * scripts/update-abilist.sh: Accept empty list of files to patch.
11121
11122 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
11123
11124 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11125 test-xfail-check-abi-libmachuser): Add.
11126 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11127 __libc_read and __libc_write to __read and __write.
11128 * sysdeps/hurd/include/hurd/port.h: New file.
11129 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11130 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11131 __thread_switch, __evc_wait): Move declarations to...
11132 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11133 attribute_hidden.
11134 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11135 use PLT to call _hurd_self_sigstate.
11136
11137 2018-06-13 Joseph Myers <joseph@codesourcery.com>
11138
11139 [BZ #23279]
11140 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11141 MAX_EXP as overflowing.
11142 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11143 overflow flag.
11144 (round_str): Output also whether result overflows in each rounding
11145 mode.
11146 * stdlib/tst-strtod-round-data: Add more tests.
11147 * stdlib/tst-strtod-round-data.h: Regenerated.
11148 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11149 (TEST): Handle extra arguments for overflow flags.
11150 (struct test_overflow): New type.
11151 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11152 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11153 (test_in_one_mode): Take argument with overflow information.
11154 (do_test): Update calls to test_in_one_mode.
11155
11156 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11157
11158 * elf/dl-load (_dl_dst_substitute): Correct comment.
11159 (_dl_dst_count): Likewise.
11160
11161 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11162 lll_futex_timed_wait.
11163
11164 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11165
11166 [BZ #23277]
11167 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11168 attribute.
11169 * math/test-nan-const.c: New file.
11170 * math/Makefile (tests): Add test-nan-const.
11171 (CFLAGS-test-nan-const.c): New variable.
11172
11173 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11174
11175 * benchtests/scripts/compare_strings.py (process_results): Add
11176 funcs argument. Compare only functions which are selected.
11177 (main): Check if base function is among selected functions.
11178 Pass selected functions to process_results.
11179 (__main__): Add -f/--functions argument.
11180
11181 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11182 Hongbo Zhang <hongbo.zhang@linaro.org>
11183
11184 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11185 __memcpy_falkor for phecda core.
11186 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11187 __memmove_falkor for phecda core.
11188 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11189 __memset_falkor for phecda core.
11190 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11191 for phecda core.
11192 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11193 macro to identify phecda core.
11194
11195 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11196 Andreas Schwab <schwab@suse.de>
11197 Dmitry V. Levin <ldv@altlinux.org>
11198 Florian Weimer <fweimer@redhat.com>
11199
11200 [BZ #23102]
11201 [BZ #21942]
11202 [BZ #18018]
11203 [BZ #23259]
11204 CVE-2011-0536
11205 * elf/dl-dst.h: Remove DL_DST_COUNT.
11206 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11207 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11208 (is_dst): Comment. Support ELF gABI.
11209 (_dl_dst_count): Comment. Simplify and count DSTs.
11210 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11211 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11212 locals.
11213
11214 2018-06-12 Zack Weinberg <zackw@panix.com>
11215
11216 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11217 * sysdeps/unix/sysv/linux/dl-sysdep.c
11218 Include not-cancel.h. Use __close_nocancel instead of __close,
11219 __open64_nocancel instead of __open, __read_nocancel instead of
11220 __libc_read, and __write_nocancel instead of __libc_write.
11221
11222 * csu/check_fds.c (check_one_fd)
11223 * sysdeps/posix/fdopendir.c (__fdopendir)
11224 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11225 instead of __fcntl and/or __libc_fcntl.
11226
11227 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11228 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11229 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11230 Use __open64_nocancel instead of __open_nocancel.
11231
11232 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11233 hidden_proto declarations to the end and issue them if either
11234 IS_IN(libc) or IS_IN(rtld).
11235 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11236 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11237 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11238 read_nocancel, waitpid_nocancel, write_nocancel.
11239
11240 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11241 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11242 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11243
11244 * nptl/pt-fcntl.c: New file.
11245 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11246 (libpthread-routines): Add pt-fcntl.
11247 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11248 (__libc_fcntl): Remove attribute_hidden.
11249 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11250 __fcntl_nocancel_adjusted, not fcntl_common.
11251 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11252 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11253 to fcntl_nocancel.c.
11254 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11257 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11258
11259 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11260 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11261 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11262 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11263 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11264 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11265 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11266 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11267 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11268 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11269 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11270 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11271 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11272 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11273 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11274 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11275 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11276 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11277 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11278 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11279
11280 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11281 libpthread-routines.
11282 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11283 defines nothing.
11284
11285 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11286 __libc_read, and __write instead of __libc_write. Define
11287 __open64 in addition to __open.
11288
11289 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11290
11291 [BZ #23250]
11292 [BZ #10686]
11293 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11294 to _private_tm[3] and add __glibc_reserved2.
11295 Add _Static_assert of offset of __private_ss == 0x30.
11296 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11297 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11298
11299 2018-06-12 Florian Weimer <fweimer@redhat.com>
11300
11301 x86: Make strncmp usable from rtld.
11302 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11303 __strncmp_ia32 if in libc (and not in rtld).
11304 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11305 strncmp if not in libc (and not to __strncmp_sse2).
11306
11307 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11308
11309 [BZ #23140]
11310 * localedata/locales/gd_GB (mon): Rename to...
11311 (alt_mon): This.
11312 (mon): Import from CLDR (genitive case).
11313 * localedata/locales/hsb_DE (mon): Rename to...
11314 (alt_mon): This.
11315 (mon): Import from CLDR (genitive case).
11316 * localedata/locales/wa_BE (mon): Rename to...
11317 (alt_mon): This.
11318 (mon): Add, fill with the proper genitive forms, but CLDR data
11319 is incomplete; completed according to the comments in this file.
11320 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11321
11322 * localedata/locales/wa_BE (country_name): Reword
11323 "Beljike" -> "Beldjike".
11324
11325 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11326
11327 [BZ #23272]
11328 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11329 cases of non-finite arguments.
11330 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11331
11332 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11333
11334 [BZ #23174]
11335 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11336
11337 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11338
11339 [BZ #23264]
11340 * include/unistd.h (__execvpex): New prototype.
11341 * posix/Makefile (tests): Add tst-spawn4.
11342 (tests-internal): Add tst-spawn4-compat.
11343 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11344 * posix/tst-spawn4-compat.c: New file.
11345 * posix/tst-spawn4.c: Likewise.
11346 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11347 binaries as shell scripts.
11348 * sysdeps/posix/spawni.c (__spawni): Likewise.
11349
11350 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11351
11352 [BZ #23145]
11353 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11354 ($(all-built-dso:=.dynsym): New target.
11355 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11356 ($(objpfx)check-initfini.out): New target.
11357 (generated): Add check-initfini.out.
11358 * scripts/check-initfini.awk: New file.
11359 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11360 (_fini): Likewise.
11361 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11362 (_fini): Likewise.
11363 * sysdeps/arm/crti.S (_init): Mark as hidden.
11364 (_fini): Likewise.
11365 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11366 (_fini): Likewise.
11367 * sysdeps/i386/crti.S (_init): Mark as hidden.
11368 (_fini): Likewise.
11369 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11370 (_fini): Likewise.
11371 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11372 (_fini): Likewise.
11373 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11374 (_fini): Likewise.
11375 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11376 (_fini): Likewise.
11377 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11378 (_fini): Likewise.
11379 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11380 (_fini): Likewise.
11381 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11382 (_fini): Likewise.
11383 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11384 (_fini): Likewise.
11385 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11386 (_fini): Likewise.
11387 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11388 (_fini): Likewise.
11389 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11390 (_fini): Likewise.
11391 * sysdeps/sh/crti.S (_init): Mark as hidden.
11392 (_fini): Likewise.
11393 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11394 (_fini): Likewise.
11395 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11396 (_fini): Likewise.
11397
11398 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11399
11400 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11401 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11402 and TF redirection to KFtype and KF only when the default
11403 long double type is not the IEEE 128-bit floating point type.
11404
11405 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11406
11407 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11408 macro.
11409 (HWCAP_USCAT): Likewise.
11410 (HWCAP_ILRCPC): Likewise.
11411 (HWCAP_FLAGM): Likewise.
11412 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11413 Increase to 28.
11414 (_dl_aarch64_cap_flags): Add new flag names.
11415
11416 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11417 (MAP_FIXED_NOREPLACE): New macro.
11418 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11419 (MAP_FIXED_NOREPLACE): Likewise.
11420 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11421 (MAP_FIXED_NOREPLACE): Likewise.
11422 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11423 (MAP_FIXED_NOREPLACE): Likewise.
11424 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11425 (MAP_FIXED_NOREPLACE): Likewise.
11426 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11427 (MAP_FIXED_NOREPLACE): Likewise.
11428 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11429 (MAP_FIXED_NOREPLACE): Likewise.
11430 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11431 (MAP_FIXED_NOREPLACE): Likewise.
11432 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11433 (MAP_FIXED_NOREPLACE): Likewise.
11434 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11435 (MAP_FIXED_NOREPLACE): Likewise.
11436 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11437 (MAP_FIXED_NOREPLACE): Likewise.
11438 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11439 (MAP_FIXED_NOREPLACE): Likewise.
11440 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11441 (MAP_FIXED_NOREPLACE): Likewise.
11442 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11443 (MAP_FIXED_NOREPLACE): Likewise.
11444 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11445 (MAP_FIXED_NOREPLACE): Likewise.
11446
11447 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11448 version to 4.17.
11449
11450 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11451
11452 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11453 version to 4.17
11454
11455 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11456
11457 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11458 int.
11459 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11460
11461 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11462
11463 * benchtests/scripts/compare_string.py: (process_results) Catch
11464 exception in non-existent base_func and catch exception in
11465 non-existent attribute.
11466 (parse_file) Catch exception if input file does not exist.
11467
11468 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11469
11470 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11471 options to avoid diff calculation and omit header, respectively.
11472 (main): process --no-diff and --no-header
11473
11474 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11475 H.J. Lu <hongjiu.lu@intel.com>
11476
11477 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11478 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11479 wcsncmp-sse2.
11480 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11481 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11482 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11483 and __wcsncmp_sse2.
11484 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11485 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11486 AVX unaligned load is fast and vzeroupper is preferred.
11487 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11488 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11489 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11490 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11491 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11492 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11493 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11494 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11495 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11496 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11497 is undefined.
11498
11499 2018-06-01 Florian Weimer <fweimer@redhat.com>
11500
11501 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11502 configuring with --disable-multi-arch, building with
11503 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11504 Haswell-era CPU.
11505
11506 2018-06-01 Florian Weimer <fweimer@redhat.com>
11507
11508 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11509 results from building with “-march=x86-64 -mtune=generic
11510 -mfpmath=sse” and running on a Haswell-era CPU.
11511
11512 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11513
11514 [BZ #18473]
11515 * soft-fp/sqrttf2.c: Remove file.
11516 * soft-fp/sqrtdf2.c: Move to ....
11517 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11518 <shlib-compat.h>.
11519 (__sqrtdf2): Make conditional on
11520 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11521 symbol.
11522 * soft-fp/sqrtsf2.c: Move to ....
11523 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11524 <shlib-compat.h>.
11525 (__sqrtsf2): Make conditional on
11526 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11527 symbol.
11528 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11529 (gcc-double-routines): Remove sqrtdf2.
11530 (gcc-quad-routines): Remove sqrttf2.
11531 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11532 Do not filter out sqrtsf2 and sqrtdf2.
11533 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11534 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11535
11536 2018-06-01 Florian Weimer <fweimer@redhat.com>
11537
11538 * sysdeps/generic/libcidn.abilist: Remove file.
11539
11540 2018-06-01 Florian Weimer <fweimer@redhat.com>
11541
11542 [BZ #23236]
11543 * libio/strfile.h (struct _IO_str_fields): Rename members to
11544 discourage their use and add comment.
11545 (_IO_STR_DYNAMIC): Remove unused macro.
11546 * libio/strops.c (_IO_str_init_static_internal): Do not use
11547 callback pointers. Call malloc and free.
11548 (_IO_str_overflow): Do not use callback pointers. Call malloc
11549 and free.
11550 (enlarge_userbuf): Likewise.
11551 (_IO_str_finish): Call free.
11552 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11553 _allocate_buffer_unused.
11554 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11555 and free.
11556 (enlarge_userbuf): Likewise.
11557 (_IO_wstr_finish): Call free.
11558 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11559 _allocate_buffer_unused, _free_buffer_unused.
11560 * libio/memstream.c (__open_memstream): Likewise.
11561 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11562 * libio/wmemstream.c (open_wmemstream): Likewise.
11563
11564 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11565
11566 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11567 AMD Ryzen 7 1800X.
11568
11569 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11570
11571 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11572 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11573 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11574 New file.
11575 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11576 Likewise.
11577 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11578
11579 2018-05-29 Florian Weimer <fweimer@redhat.com>
11580
11581 * support/Makefile (libsupport-routines): Add
11582 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11583 xpthread_barrierattr_setpshared.
11584 * support/xpthread_barrierattr_destroy.c: New file.
11585 * support/xpthread_barrierattr_init.c: Likewise.
11586 * support/xpthread_barrierattr_setpshared.c: Likewise.
11587
11588 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11589
11590 [BZ #23206]
11591 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11592 _r_debug and update DT_DEBUG for debugger.
11593
11594 2018-05-29 Florian Weimer <fweimer@redhat.com>
11595
11596 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11597 (tst-strtod5i.out): Likewise.
11598
11599 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11600
11601 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11602 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11603 (sparc64-quad-routines): New variable. Moved from ....
11604 [$(subdir) = soft-fp] (sysdep_routines): Add
11605 $(sparc64-quad-routines). Moved from ....
11606 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11607 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11608 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11609 moved from ....
11610 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11611 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11612 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11613 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11614 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11615 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11616 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11617 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11618 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11619 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11620 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11621 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11622 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11623 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11624 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11625 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11626 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11627 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11628 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11629 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11630 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11631 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11632 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11633 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11634 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11635 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11636 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11637 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11638 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11639 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11640 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11641 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11642 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11643 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11644 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11645 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11646 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11647 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11648 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11649 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11650 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11651 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11652 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11653 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11654 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11655 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11656 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11657 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11658 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11659 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11660 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11661 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11662 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11663 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11664 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11665 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11666 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11667 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11668
11669 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11670 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11671 (sparc32-quad-routines): New variable. Moved from ....
11672 [$(subdir) = soft-fp] (sysdep_routines): Add
11673 $(sparc32-quad-routines). Moved from ....
11674 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11675 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11676 moved from ....
11677 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11678 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11679 * sysdeps/sparc/sparc32/q_add.c: ... here.
11680 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11681 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11682 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11683 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11684 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11685 * sysdeps/sparc/sparc32/q_div.c: ... here.
11686 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11687 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11688 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11689 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11690 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11691 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11692 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11693 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11694 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11695 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11696 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11697 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11698 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11699 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11700 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11701 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11702 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11703 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11704 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11705 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11706 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11707 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11708 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11709 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11710 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11711 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11712 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11713 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11714 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11715 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11716 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11717 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11718 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11719 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11720 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11721 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11722 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11723 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11724 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11725 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11726 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11727 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11728 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11729 * sysdeps/sparc/sparc32/q_util.c: ... here.
11730 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11731 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11732 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11733 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11734
11735 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11736 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11737
11738 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11739 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11740 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11741 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11742
11743 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11744
11745 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11746 powerpc/soft-fp.
11747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11748 Likewise.
11749 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11750 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11751
11752 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11753
11754 [BZ #23171]
11755 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11756 double version.
11757
11758 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11759
11760 * sysdeps/sh/Implies: Remove sh/soft-fp.
11761 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11762 * sysdeps/sh/sfp-machine.h: ... here.
11763
11764 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11765
11766 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11767 (__mempcpy_erms): Skip zero length.
11768 (__memmove_erms): Likewise.
11769 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11770 (__memset_erms): Likewise.
11771
11772 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11773
11774 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11775 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11776 Add functions moved from ....
11777 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11778 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11779 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11780 from ....
11781 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11782 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11783 * sysdeps/alpha/e_sqrtl.c: ... here.
11784 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11785 * sysdeps/alpha/local-soft-fp.h: ... here.
11786 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11787 * sysdeps/alpha/ots_add.c: ... here.
11788 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11789 * sysdeps/alpha/ots_cmp.c: ... here.
11790 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11791 * sysdeps/alpha/ots_cmpe.c: ... here.
11792 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11793 * sysdeps/alpha/ots_cvtqux.c: ... here.
11794 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11795 * sysdeps/alpha/ots_cvtqx.c: ... here.
11796 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11797 * sysdeps/alpha/ots_cvttx.c: ... here.
11798 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11799 * sysdeps/alpha/ots_cvtxq.c: ... here.
11800 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11801 * sysdeps/alpha/ots_cvtxt.c: ... here.
11802 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11803 * sysdeps/alpha/ots_div.c: ... here.
11804 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11805 * sysdeps/alpha/ots_mul.c: ... here.
11806 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11807 * sysdeps/alpha/ots_nintxq.c: ... here.
11808 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11809 * sysdeps/alpha/ots_sub.c: ... here.
11810 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11811 * sysdeps/alpha/sfp-machine.h: ... here.
11812
11813 2018-05-23 Florian Weimer <fweimer@redhat.com>
11814
11815 [BZ #19728]
11816 [BZ #19729]
11817 [BZ #22247]
11818 CVE-2016-6261
11819 CVE-2016-6263
11820 CVE-2017-14062
11821 Switch to extern IDNA implementation (libidn2).
11822 * libidn: Remove subdirectory.
11823 * LICENSES: Do not mention licensing conditions for the removed
11824 libidn code.
11825 * config.h.in (HAVE_LIBIDN): Remove.
11826 * include/dlfcn.h (__libc_dlopen): Update comment.
11827 * include/idna.h: Remove file.
11828 * inet/Makefile (routines): Add idna.
11829 (tests-static, tests-internal): Add tst-idna_name_classify.
11830 (LOCALES): Generate locales for tests.
11831 (tst-idna_name_classify.out): Depend on generated locales.
11832 * inet/idna_name_classify.c: New file.
11833 * inet/tst-idna_name_classify.c: Likewise.
11834 * inet/net-internal.h (__idna_to_dns_encoding)
11835 (__idna_from_dns_encoding): Declare.
11836 * inet/net-internal.h (enum idna_name_classification): Define.
11837 (__idna_name_classify): Declare.
11838 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11839 __idna_from_dns_encoding.
11840 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11841 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11842 name as a fallback in case of encoding errors.
11843 (getnameinfo): Use DEPRECATED_NI_IDN.
11844 * inet/idna.c: New file.
11845 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11846 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11847 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11848 (modules-names): Add tst-no-libidn2.
11849 (extra-test-objs): Add tst-no-libidn2.os.
11850 (LDFLAGS-tst-no-libidn2.so): Set soname.
11851 (LOCALES): Set, and generate locales.
11852 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11853 (tst-resolv-ai_idn-latin1): Likewise.
11854 (tst-resolv-ai_idn-nolibidn2): Likewise.
11855 (tst-resolv-ai_idn.out): Depend on locales.
11856 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11857 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11858 tst-no-libidn2.so.
11859 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11860 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11861 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11862 * resolv/tst-resolv-ai_idn.c: New file.
11863 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11864 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11865 * resolv/tst-no-libidn2.c: Likewise.
11866 * support/support_format_addrinfo.c (format_ai_flags): Do not
11867 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11868 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11869 (gaih_inet): Call __idna_to_dns_encoding and
11870 __idna_from_dns_encoding, and use the original (punycode) name if
11871 __idna_from_dns_encoding fails due to an encoding error.
11872 (getaddrinfo): Use DEPRECATED_AI_IDN.
11873 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11874 * sysdeps/unix/inet/configure: Remove file.
11875 * sysdeps/unix/inet/configure.ac: Likewise.
11876
11877 2018-05-23 Florian Weimer <fweimer@redhat.com>
11878
11879 Implement allocate_once.
11880 * include/allocate_once.h: New file.
11881 * misc/allocate_once.c: Likewise.
11882 * misc/tst-allocate_once.c: Likewise.
11883 * misc/Makefile (routines): Add allocate_once.
11884 (tests-internal): Add tst-allocate_once.
11885 (generated): Add tst-allocate_once.mtrace,
11886 tst-allocate_once-mem.out.
11887 (tests-special): Add tst-allocate_once-mem.out.
11888 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11889 (tst-allocate_once-mem.out): Call mtrace.
11890 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11891
11892 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11893
11894 [BZ #23196]
11895 * string/test-memcpy.c (do_test1): New function.
11896 (test_main): Call it.
11897
11898 2018-05-23 Andreas Schwab <schwab@suse.de>
11899
11900 [BZ #23196]
11901 CVE-2018-11237
11902 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11903 (L(preloop_large)): Save initial destination pointer in %r11 and
11904 use it instead of %rax after the loop.
11905 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11906
11907 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11908
11909 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11910 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11911 -I../soft-fp. Moved from ....
11912 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11913 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11914 * sysdeps/aarch64/e_sqrtl.c: ... here.
11915 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11916 * sysdeps/aarch64/sfp-machine.h: ... here.
11917
11918 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11919 -Wmaybe-uninitialized around access to fq[0].
11920 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11921 Likewise.
11922
11923 [BZ #18471]
11924 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11925 aliases for non-libc case of versioned symbols.
11926 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11927 (llseek): Define as compat symbol if
11928 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11929 with link warning.
11930 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11931 Make into a compat symbol, disabled for minimum symbol version
11932 GLIBC_2.28 and later.
11933 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11934
11935 2018-05-22 Florian Weimer <fweimer@redhat.com>
11936
11937 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11938 not add -mpreferred-stack-boundary=4.
11939 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11940 (stack-align-test-flags): Likewise.
11941 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11942 Likewise.
11943 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11944 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11945 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11946 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11947 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11948 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11949 (CFLAGS-tst-align2.c): Likewise.
11950
11951 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11952
11953 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11954 (index_arch_Prefer_FSRM): Likewise.
11955 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11956 Also check Prefer_FSRM.
11957 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11958 Also return OPTIMIZE (erms) for Prefer_FSRM.
11959
11960 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11961
11962 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11963 (index_cpu_FSRM): Likewise.
11964 (reg_FSRM): Likewise.
11965
11966 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11967
11968 * math/gen-tgmath-tests.py: Import sys.
11969 (Tests.__init__): Initialize macros_seen.
11970 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11971 if requested to do so for this macro.
11972 (Tests.add_all_tests): Take argument for macro for which to
11973 generate tests.
11974 (Tests.check_macro_list): New function.
11975 (main): Handle check-list argument and argument specifying macro
11976 for which to generate tests.
11977 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11978 [PYTHON] (tgmath3-macro-tests): Likewise.
11979 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11980 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11981 not test-tgmath3.c.
11982 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11983 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11984 to CFLAGS.
11985 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11986 [PYTHON] ($(foreach
11987 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11988 rule.
11989 [PYTHON] (tests-special): Add
11990 $(objpfx)test-tgmath3-macro-list.out.
11991 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11992
11993 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11994 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11995 later.
11996
11997 [BZ #22639]
11998 * time/tzset.c (SECSPERDAY): Cast to time_t.
11999 * time/tst-y2039.c: New file.
12000 * time/Makefile (tests): Add tst-y2039.
12001
12002 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12003
12004 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12005 (PREFETCH_ONE_SET): Remove duplicate line.
12006
12007 2018-05-17 Florian Weimer <fweimer@redhat.com>
12008
12009 * sysdeps/generic/math-type-macros-double.h: Include
12010 <math-nan-payload-double.h> after <libm-alias-double.h>.
12011 * sysdeps/generic/math-type-macros-float.h: Include
12012 <math-nan-payload-float.h> after <libm-alias-float.h>.
12013 * sysdeps/generic/math-type-macros-float128.h: Include
12014 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12015 * sysdeps/generic/math-type-macros-ldouble.h: Include
12016 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12017
12018 2018-05-17 Andreas Schwab <schwab@suse.de>
12019
12020 * resolv/res_send.c (__res_context_send): Don't set errno when
12021 returing error after malloc failure.
12022
12023 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
12024
12025 * nptl/allocatestack.c (allocate_stack): Remove the
12026 !__ASSUME_PRIVATE_FUTEX paths.
12027 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12028 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12029 Likewise.
12030 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12031 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12032 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12033 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12034 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12035 !__ASSUME_PRIVATE_FUTEX path.
12036 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12037 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12038 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12039 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12040 !__ASSUME_PRIVATE_FUTEX macros.
12041 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12042 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12043 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12044 * sysdeps/unix/sysv/linux/kernel-features.h
12045 (__ASSUME_PRIVATE_FUTEX): Removed.
12046
12047 2018-05-17 Joseph Myers <joseph@codesourcery.com>
12048
12049 * math/Makefile (libm-narrow-fns): Add div.
12050 (libm-test-funcs-narrow): Likewise.
12051 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12052 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12053 * math/gen-auto-libm-tests.c (test_functions): Add div.
12054 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12055 (NARROW_DIV_ROUND_TO_ODD): Likewise.
12056 (NARROW_DIV_TRIVIAL): Likewise.
12057 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12058 macro.
12059 (__ddivl): Likewise.
12060 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12061 ddiv.
12062 (CFLAGS-nldbl-ddiv.c): New variable.
12063 (CFLAGS-nldbl-fdiv.c): Likewise.
12064 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12065 __nldbl_ddivl.
12066 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12067 prototype.
12068 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12069 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12070 * math/auto-libm-test-in: Add tests of div.
12071 * math/auto-libm-test-out-narrow-div: New generated file.
12072 * math/libm-test-narrow-div.inc: New file.
12073 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12074 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12075 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12076 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12077 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12078 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12079 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12080 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12081 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12082 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12083 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12084 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12085 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12086 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12087 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12088 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12089 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12090 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12091 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12092 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12094 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12095 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12096 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12102 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12103 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12104 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12109 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12110 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12111 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12112 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12117
12118 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12119
12120 [BZ #23178]
12121 * nscd/nscd-client.h (sendfileall): Remove prototype.
12122 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12123 (handle_request): Use writeall instead of sendfileall.
12124 * nscd/aicache.c (addhstaiX): Likewise.
12125 * nscd/grpcache.c (cache_addgr): Likewise.
12126 * nscd/hstcache.c (cache_addhst): Likewise.
12127 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12128 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12129 * nscd/pwdcache.c (cache_addpw): Likewise.
12130 * nscd/servicescache.c (cache_addserv): Likewise.
12131 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12132 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12133 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12134 Remove define.
12135
12136 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
12137
12138 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12139 Include <string/strncat.c>.
12140 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12141 alias.
12142 (__GI___strncat): New hidden alias.
12143
12144 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12145
12146 * sysdeps/mips/mips32/libm-test-ulps: Update.
12147 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12148
12149 2018-05-16 Florian Weimer <fweimer@redhat.com>
12150
12151 * support/Makefile (libsupport-routines): Add support_quote_blob,
12152 support_test_compare_blob.
12153 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12154 * support/check.h (TEST_COMPARE_BLOB): Define.
12155 (support_test_compare_blob): Declare.
12156 * support/support.h (support_quote_blob): Declare.
12157 * support/support_quote_blob.c: New file.
12158 * support/support_test_compare_blob.c: Likewise.
12159 * support/tst-support_quote_blob.c: Likewise.
12160 * support/tst-test_compare_blob.c: Likewise.
12161
12162 2018-05-16 Florian Weimer <fweimer@redhat.com>
12163
12164 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12165 of <strtod_nan_double.h>.
12166 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12167 instead of SET_MANTISSA.
12168 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12169 of include <strtod_nan_float.h>.
12170 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12171 instead of <strtod_nan_ldouble.h>.
12172 * stdlib/strtod_nan_double.h: Move to ...
12173 * sysdeps/generic/math-nan-payload-double.h: ... here.
12174 (FLOAT): Remove definition.
12175 (SET_MANTISSA): Rename to ...
12176 (SET_NAN_PAYLOAD): ... this.
12177 * stdlib/strtod_nan_float.h: Move to ...
12178 * sysdeps/generic/math-nan-payload-float.h: ... here.
12179 (FLOAT): Remove definition.
12180 (SET_MANTISSA): Rename to ...
12181 (SET_NAN_PAYLOAD): ... this.
12182 * sysdeps/generic/math-type-macros-double.h: Include
12183 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12184 instead of <math-svid-compat.h>.
12185 * sysdeps/generic/math-type-macros-float.h: Include
12186 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12187 instead of <math-svid-compat.h>.
12188 * sysdeps/generic/math-type-macros-float128.h: Include
12189 <math-nan-payload-float128.h>.
12190 * sysdeps/generic/math-type-macros-ldouble.h: Include
12191 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12192 instead of <math-svid-compat.h>.
12193 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12194 check for definition.
12195 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12196 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12197 Include <ieee754_float128.h>.
12198 (FLOAT): Remove definition.
12199 (SET_MANTISSA): Rename to ...
12200 (SET_NAN_PAYLOAD): ... this.
12201 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12202 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12203 Do not include <float128_private.h>.
12204 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12205 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12206 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12207 (FLOAT): Remove definition.
12208 (SET_MANTISSA): Rename to ...
12209 (SET_NAN_PAYLOAD): ... this.
12210 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12211 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12212 (FLOAT): Remove definition.
12213 (SET_MANTISSA): Rename to ...
12214 (SET_NAN_PAYLOAD): ... this.
12215 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12216 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12217 (FLOAT): Remove definition.
12218 (SET_MANTISSA): Rename to ...
12219 (SET_NAN_PAYLOAD): ... this.
12220 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12221 of "../stdlib/strtod_nan_double.h".
12222 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12223 of "../stdlib/strtod_nan_float.h".
12224 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12225 instead of "../stdlib/strtod_nan_ldouble.h".
12226 * manual/arith.texi (Parsing of Floats): Adjust comment.
12227
12228 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12229
12230 * math/Makefile (libm-narrow-fns): Add mul.
12231 (libm-test-funcs-narrow): Likewise.
12232 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12233 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12234 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12235 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12236 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12237 (NARROW_MUL_TRIVIAL): Likewise.
12238 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12239 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12240 macro.
12241 (__dmull): Likewise.
12242 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12243 dmul.
12244 (CFLAGS-nldbl-dmul.c): New variable.
12245 (CFLAGS-nldbl-fmul.c): Likewise.
12246 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12247 __nldbl_dmull.
12248 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12249 prototype.
12250 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12251 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12252 * math/auto-libm-test-in: Add tests of mul.
12253 * math/auto-libm-test-out-narrow-mul: New generated file.
12254 * math/libm-test-narrow-mul.inc: New file.
12255 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12256 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12257 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12258 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12259 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12260 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12261 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12262 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12263 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12264 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12265 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12266 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12267 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12268 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12269 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12270 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12271 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12272 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12273 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12274 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12299
12300 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12301
12302 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12303 with *%eax in call.
12304
12305 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12306
12307 * sysdeps/i386/ldsodefs.h: Removed.
12308 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12309 * sysdeps/x86/ldsodefs.h: This.
12310 (La_i86_regs): New.
12311 (La_i86_retval): Likewise.
12312 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12313 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12314
12315 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12316
12317 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12318 unnecessary testl.
12319
12320 2018-05-13 Alan Modra <amodra@gmail.com>
12321
12322 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12323 R_PARISC_TLS_DTPOFF32 reloc addend.
12324
12325 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12326
12327 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12328 * math/math.h: Restrict the prototype definition for the functions
12329 issignaling(_Float128) and iszero(_Float128); and template
12330 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12331 __HAVE_FLOAT128_UNLIKE_LDBL.
12332 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12333 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12334 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12335 __f128() constants; define the type _Float128 as long double;
12336 and reuse long double in __CFLOAT128.
12337
12338 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12339
12340 * sysdeps/generic/math_private.h: Do not include
12341 <math-barriers.h>.
12342 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12343 <math_private.h>.
12344 * math/fromfp.h: Include <math-barriers.h>.
12345 * math/math-narrow.h: Likewise.
12346 * math/s_nextafter.c: Likewise.
12347 * math/s_nexttowardf.c: Likewise.
12348 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12349 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12350 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12351 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12352 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12353 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12354 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12355 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12356 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12357 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12358 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12359 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12360 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12361 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12362 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12363 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12364 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12365 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12366 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12367 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12368 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12369 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12370 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12371 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12372 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12373 * sysdeps/ieee754/k_standardl.c: Likewise.
12374 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12375 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12376 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12377 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12378 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12379 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12380 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12381 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12382 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12383 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12384 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12385 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12386 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12387 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12388 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12389 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12390 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12391 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12392 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12393 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12394 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12395 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12396
12397 2018-05-11 Florian Weimer <fweimer@redhat.com>
12398
12399 Use 64-bit epoch values in the time zone file parser.
12400 * include/time.h (internal_time_t): Define.
12401 (__tzfile_compute): Use it.
12402 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12403 member.
12404 (transitions): Switch to internal_time_t.
12405 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12406 types.
12407 (__tzfile_compute): Use internal_time_t for timer argument. Check
12408 for truncation before calling __offtime.
12409
12410 2018-05-11 Florian Weimer <fweimer@redhat.com>
12411
12412 [BZ #23166]
12413 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12414 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12415 Likewise.
12416 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12417 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12418 export without --enable-obsolete-rpc.
12419 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12420 symbol. This should not have been exported, ever.
12421
12422 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12423
12424 [BZ #23152]
12425 * localedata/locales/gd_GB (abmon): Fix typo in May:
12426 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12427
12428 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12429
12430 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12431 Use multiple registers to copy data in loop tail.
12432
12433 * sysdeps/aarch64/multiarch/memmove_falkor.S
12434 (__memmove_falkor): Use multiple registers to move data in
12435 loop tail.
12436
12437 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12438
12439 * math/math-underflow.h: New file.
12440 * sysdeps/generic/math_private.h: Do not include <float.h>.
12441 (fabs_tg): Remove macro. Moved to math-underflow.h.
12442 (min_of_type_f): Likewise.
12443 (min_of_type_): Likewise.
12444 (min_of_type_l): Likewise.
12445 (min_of_type_f128): Likewise.
12446 (min_of_type): Likewise.
12447 (math_check_force_underflow): Likewise.
12448 (math_check_force_underflow_nonneg): Likewise.
12449 (math_check_force_underflow_complex): Likewise.
12450 * math/e_exp2_template.c: Include <math-underflow.h>.
12451 * math/k_casinh_template.c: Likewise.
12452 * math/s_catan_template.c: Likewise.
12453 * math/s_catanh_template.c: Likewise.
12454 * math/s_ccosh_template.c: Likewise.
12455 * math/s_cexp_template.c: Likewise.
12456 * math/s_clog10_template.c: Likewise.
12457 * math/s_clog_template.c: Likewise.
12458 * math/s_csin_template.c: Likewise.
12459 * math/s_csinh_template.c: Likewise.
12460 * math/s_csqrt_template.c: Likewise.
12461 * math/s_ctan_template.c: Likewise.
12462 * math/s_ctanh_template.c: Likewise.
12463 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12464 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12465 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12466 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12467 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12468 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12469 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12470 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12471 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12472 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12473 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12474 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12475 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12476 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12477 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12478 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12479 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12480 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12481 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12482 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12483 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12484 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12485 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12486 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12487 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12488 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12489 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12490 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12491 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12492 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12493 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12494 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12495 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12496 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12497 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12498 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12499 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12500 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12501 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12502 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12503 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12504 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12505 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12506 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12507 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12508 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12509 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12510 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12511 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12512 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12513 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12514 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12515 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12516 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12517 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12518 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12519 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12520 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12521 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12522 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12523 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12524 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12525 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12526 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12527 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12528 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12529 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12530 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12531 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12532 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12533 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12534 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12535 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12536 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12537 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12538 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12539 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12540 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12541 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12542 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12543 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12544 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12545 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12546 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12547
12548 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12549
12550 * sysdeps/generic/math-barriers.h: New file.
12551 * sysdeps/generic/math_private.h [!math_opt_barrier]
12552 (math_opt_barrier): Move to math-barriers.h.
12553 [!math_opt_barrier] (math_force_eval): Likewise.
12554 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12555 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12556 math-barriers.h.
12557 (math_force_eval): Likewise.
12558 * sysdeps/alpha/fpu/math-barriers.h: New file.
12559 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12560 math-barriers.h.
12561 (math_force_eval): Likewise.
12562 * sysdeps/x86/fpu/math-barriers.h: New file.
12563 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12564 math-barriers.h.
12565 (math_force_eval): Likewise.
12566 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12567 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12568 multiple-include guard for rename.
12569 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12570 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12571 math-barriers.h.
12572 (math_force_eval): Likewise.
12573
12574 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12575
12576 [BZ #22786]
12577 CVE-2018-11236
12578 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12579 computation.
12580 * stdlib/Makefile (test-bz22786): New test.
12581 * stdlib/test-bz22786.c: New test.
12582
12583 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12584
12585 * include/math-narrow-eval.h: New file. Contents moved from ....
12586 * sysdeps/generic/math_private.h: ... here.
12587 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12588 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12589 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12590 * stdlib/strtod_l.c: Likewise.
12591 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12592 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12593 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12594 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12595 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12596 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12597 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12598 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12599 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12600 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12601 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12602 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12603 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12604 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12605 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12606 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12607 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12608 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12609 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12610 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12611 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12612 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12613 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12614 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12615 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12616 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12617 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12618 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12619 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12620
12621 2018-05-08 Andreas Schwab <schwab@suse.de>
12622
12623 * sysdeps/nptl/internaltypes.h: Fix comment.
12624
12625 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12626
12627 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12628 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12629 hidden.
12630
12631 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12632
12633 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12634 of I into loop header.
12635 * benchtests/bench-memmove-walk.c
12636 (test_main): Likewise.
12637
12638 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12639
12640 Revert:
12641 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12642 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12643
12644 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12645
12646 [BZ #20419]
12647 * elf/dl-load.c (open_verify): Fix stack overflow.
12648 * elf/Makefile (tst-big-note): New test.
12649 * elf/tst-big-note-lib.S: New.
12650 * elf/tst-big-note.c: New.
12651
12652 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12653
12654 * scripts/abilist.awk: Ignore absolute symbols.
12655 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12656 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12657 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12658 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12659 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12660 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12661 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12662 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12663 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12664 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12665 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12666 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12668 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12669 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12670 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12671 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12674 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12675 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12676 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12677 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12678 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12683 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12690 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12691 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12697 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12698 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12699 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12700 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12704 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12705 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12706 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12707 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12726 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12727 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12740 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12741 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12747 Likewise.
12748 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12755 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12761 Likewise.
12762 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12765 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12774 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12775 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12779 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12789 Likewise.
12790 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12795 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12810 Likewise.
12811 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12822 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12823 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12826 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12827 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12828 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12829 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12832 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12833 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12834 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12835 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12836 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12837 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12843 Likewise.
12844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12847 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12849 Likewise.
12850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12851 Likewise.
12852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12854 Likewise.
12855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12857 Likewise.
12858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12859 Likewise.
12860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12863 Likewise.
12864 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12865 Likewise.
12866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12867 Likewise.
12868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12872 Likewise.
12873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12879 Likewise.
12880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12882 Likewise.
12883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12884 Likewise.
12885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12886 Likewise.
12887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12888 Likewise.
12889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12892 Likewise.
12893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12894 Likewise.
12895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12896 Likewise.
12897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12898 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12899 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12900 Likewise.
12901 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12902 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12903 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12904 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12905 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12906 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12907 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12908 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12909 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12910 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12911 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12912 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12913 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12914 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12915 Likewise.
12916 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12917 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12918 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12919 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12920 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12921 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12922 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12923 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12924 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12925 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12926 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12927 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12928 Likewise.
12929 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12930 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12931 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12932 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12933 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12934 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12935 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12936 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12937 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12938 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12939 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12940 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12941 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12942 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12943 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12944 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12945 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12946 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12947 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12948 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12949 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12950 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12951 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12952 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12953 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12954 Likewise.
12955 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12956 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12957 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12958 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12959 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12960 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12961 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12962 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12963 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12964 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12965 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12966 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12967 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12968 Likewise.
12969 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12970 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12971 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12972 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12973 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12974 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12975 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12976 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12977 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12978 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12979 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12980 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12981 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12982 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12983 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12984 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12985 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12986 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12987 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12988 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12989 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12990 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12991 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12992 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12993 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12994 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12995 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12996 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12997 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12998 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12999 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
13000 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13001 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
13002 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13003 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
13004 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
13005 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
13006 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
13007
13008 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
13009
13010 [BZ #23137]
13011 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
13012 Use atomic_load_acquire to load __tid.
13013
13014 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13015
13016 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13017 Restore the pointer into %rdx, after syscall and use %rdx,
13018 instead of %rsi, to restore context.
13019
13020 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13021
13022 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13023 Pop the pointer into %rdx after syscall and use %rdx, instead
13024 of %rsi, to restore context.
13025
13026 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13027
13028 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13029 handlers after setjmp.
13030 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13031 defined.
13032 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13033 <libc-pointer-arith.h>.
13034 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13035 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13036 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13037 _JUMP_BUF_SIGSET_BITS_PER_WORD.
13038 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13039 * sysdeps/x86/__longjmp_cancel.S: New file.
13040 * sysdeps/x86/longjmp.c: Likewise.
13041 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13042
13043 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13044
13045 * NEWS: Add ustat.h deprecation entry.
13046 * bits/ustat.h: Remove file.
13047 * misc/sys/ustat.h: Likewise.
13048 * misc/ustat.h: Likewise.
13049 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13050 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13051 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13052 compatibility mode.
13053 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13054 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13055 generic Linux implementation.
13056
13057 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13058
13059 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13060 * math/w_expl_compat.c: Likewise.
13061 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
13062
13063 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13064
13065 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13066
13067 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13068
13069 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13070 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13071 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13072 Remove.
13073 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13075 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13076 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13077 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13078 and SYSCALL_LL64.
13079
13080 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13081
13082 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13083
13084 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13085 * math/w_asin_template.c: Likewise.
13086 * math/w_atanh_template.c: Likewise.
13087
13088 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13089
13090 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13091 to powerpc/powerpc64/be for big-endian.
13092 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13093 little-endian.
13094
13095 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13096 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13097 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13098 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13099 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13100 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13101 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13102 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13103 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13104 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13105 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13106 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13107 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13108 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13109 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13110 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13111 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13112 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13113 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13114 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13115 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13116 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13117 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13118 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13119 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13120 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13121 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13122 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13123 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13124 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13125 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13126 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13127
13128 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13129 adjusted to imply powerpc64 and older processors on powerpc64/be.
13130 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13131 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13132 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13133 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13134 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13135 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13136 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13137 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13138 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13139 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13140 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13141 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13142 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13143 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13144 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13145 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13146 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13147 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13148 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13149 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13150 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13151 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13152 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13153 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13154 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13155 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13156 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13157 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13158 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13159 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13160 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13161
13162 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13163 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13164 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13165 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13166
13167 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13168 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13169 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13170 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13171
13172 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13173 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13174 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13175 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13176 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13177 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13178 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13179 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13180 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13181 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13182 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13183
13184 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13185 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13186 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13187 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13188 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13189 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13190 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13191 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13192 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13193 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13194 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13195
13196 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13197 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13198 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13199 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13200 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13201 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13202 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13203 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13204 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13205 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13206 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13207 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13208
13209 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13210 and adjusted to imply olders processors.
13211 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13212 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13213 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13214 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13215 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13216 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13217 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13218 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13219 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13220 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13221 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13222
13223 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13224 powerpc64/le.
13225 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13226 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13227
13228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13229 powerpc64le.
13230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13232
13233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13234 powerpc64/be.
13235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13238
13239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13240 powerpc64 and adjusted.
13241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13244 Likewise.
13245
13246 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13247
13248 * sysdeps/tile: Remove.
13249 * sysdeps/unix/sysv/linux/tile: Likewise.
13250 * README (tilegx-*-linux-gnu): Remove from list of supported
13251 configurations.
13252 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13253 contribution of support for generic Linux kernel syscall
13254 interface.
13255 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13256 tilegx configurations.
13257 (Config.install_linux_headers): Do not handle tile.
13258 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13259 in comment.
13260 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13261 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13262 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13263 conditional undefine and redefine.
13264 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13265 in comment.
13266 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13267 conditional undefine and redefine.
13268
13269 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13270
13271 * signal/tst-sigaction.c: New file to test BZ #23069.
13272 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13273
13274 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13275
13276 [BZ #22766]
13277 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13278 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13279 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13280 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13281
13282 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13283
13284 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13285 _DIRENT_MATCHES_DIRENT64 is not defined.
13286 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13287 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13288 is defined.
13289 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13290 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13291
13292 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13293
13294 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13295 version to GCC 8 branch.
13296
13297 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13298
13299 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13300 (check_no_hidden): Use type of original function when declaring
13301 alias.
13302
13303 * sysdeps/unix/sysv/linux/sys/ptrace.h
13304 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13305 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13306 (struct __ptrace_seccomp_metadata): New type.
13307 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13308 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13309 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13310 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13311 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13312 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13313 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13314 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13315 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13316 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13317 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13318 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13319 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13320 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13321 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13322 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13323
13324 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13325
13326 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13327 defined.
13328 * dirent/versionsort.c (versionsort): Likewise.
13329 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13330 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13331 * dirent/versionsort64.c (versionsort64): Likewise.
13332 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13333 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13334 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13335 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13336 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13337 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13338 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13339 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13340 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13341 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13342 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13344 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13345 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13346
13347 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13348
13349 * elf/elf.h (NT_PPC_PKEY): New macro.
13350
13351 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13352
13353 [BZ #23094]
13354 * localedata/locales/hr_HR: fix thousands_sep and
13355 mon_thousands_sep
13356
13357 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13358
13359 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13360 (XTABS): Define to TAB3.
13361
13362 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13363
13364 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13365
13366 * dirent/scandir-tail-common.c: New file.
13367 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13368 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13369 * dirent/scandir.c: Use scandir-tail-common.c.
13370 * dirent/scandirat.c: Likewise.
13371 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13372 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13373 if _DIRENT_MATCHES_DIRENT64 is defined.
13374 * dirent/scandirat64.c (scandirat64): Likewise.
13375 * include/dirent.h (__scandir_tail): Only define iff
13376 _DIRENT_MATCHES_DIRENT64 is not defined.
13377 (__scandir64_tail): Define regardless.
13378 (__scandirat, scandirat64): Remove libc_hidden_proto.
13379 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13380 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13382 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13383 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13384 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13385 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13386
13387 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13388
13389 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13390 New macro.
13391 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13392 Increase to 24.
13393 (_dl_aarch64_cap_flags): Add asimdfhm.
13394
13395 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13396
13397 * sysdeps/nios2/libm-test-ulps: Update.
13398
13399 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13400
13401 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13402 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13403
13404 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13405 requirements.
13406 (_DIRENT_MATCHES_DIRENT64): Undef
13407 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13408 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13409 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13410 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13411 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13412 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13413 use getdents64 syscalls as base.
13414 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13415 symbol if required.
13416 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13417 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13418 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13419 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13420 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13421 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13422 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13423 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13424 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13425 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13426 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13427
13428 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13429
13430 * scripts/test_printers_common.py (init_test): Disable lock elision.
13431
13432 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13433
13434 * math/test-tgmath.c (count_double, count_float,
13435 count_ldouble, count_cdouble, count_cfloat,
13436 count_cldouble): Use volatile int.
13437
13438 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13439
13440 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13441 (conformtest-xfail-conds): Add i386-gnu.
13442 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13443 i386-gnu.
13444 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13445 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13446 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13447 msqid_ds.msg_lrpid): Likewise.
13448 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13449 Likewise.
13450 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13451 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13452 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13453 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13454 unsigned int.
13455 (struct statvfs64): Likewise.
13456 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13457 Likewise.
13458 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13459 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13460 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13461 instead of wait_queue.
13462 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13463 instead of vm_area_struct.
13464 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13465 struct sched_param definition to it.
13466 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13467 * bits/types/struct_sched_param.h: New file.
13468 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13469 <bits/types/struct_sched_param.h> instead of <sched.h>.
13470 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13471 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13472 generic version but include <bits/pthreadtypes.h> to make struct
13473 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13474 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13475 non-compliant.
13476 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13477 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13478 [__USE_XOPEN] (OFDEL): New macro.
13479 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13480 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13481 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13482 prototypes.
13483 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13484 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13485 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13486 non-compliant.
13487 * sysdeps/i386/sys/ucontext.h: Likewise.
13488 * sysdeps/m68k/sys/ucontext.h: Likewise.
13489 * sysdeps/mips/sys/ucontext.h: Likewise.
13490 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13491 * sysdeps/mach/hurd/i386/Makefile
13492 (test-xfail-POSIX/fcntl.h/conform): Add.
13493 (test-xfail-POSIX/signal.h/conform): Add.
13494 (test-xfail-POSIX/semaphore.h/conform): Add.
13495 (test-xfail-POSIX/regex.h/conform): Add.
13496 (test-xfail-POSIX/aio.h/conform): Add.
13497 (test-xfail-POSIX/mqueue.h/conform): Add.
13498 (test-xfail-POSIX/sys/types.h/conform): Add.
13499 (test-xfail-UNIX98/fcntl.h/conform): Add.
13500 (test-xfail-UNIX98/netdb.h/conform): Add.
13501 (test-xfail-UNIX98/signal.h/conform): Add.
13502 (test-xfail-UNIX98/semaphore.h/conform): Add.
13503 (test-xfail-UNIX98/regex.h/conform): Add.
13504 (test-xfail-UNIX98/aio.h/conform): Add.
13505 (test-xfail-UNIX98/ftw.h/conform): Add.
13506 (test-xfail-UNIX98/mqueue.h/conform): Add.
13507 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13508 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13509 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13510 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13511 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13512 (test-xfail-UNIX98/sys/types.h/conform): Add.
13513 (test-xfail-UNIX98/stdlib.h/conform): Add.
13514 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13515 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13516 (test-xfail-POSIX2008/netdb.h/conform): Add.
13517 (test-xfail-POSIX2008/signal.h/conform): Add.
13518 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13519 (test-xfail-POSIX2008/regex.h/conform): Add.
13520 (test-xfail-POSIX2008/aio.h/conform): Add.
13521 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13522 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13523 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13524 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13525 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13526 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13527 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13528 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13529 (test-xfail-XOPEN2K/signal.h/conform): Add.
13530 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13531 (test-xfail-XOPEN2K/regex.h/conform): Add.
13532 (test-xfail-XOPEN2K/aio.h/conform): Add.
13533 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13534 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13535 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13536 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13537 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13538 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13539 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13540 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13541 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13542 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13543 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13544 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13545 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13546 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13547 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13548 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13549 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13550 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13551 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13552 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13553 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13554 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13555 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13556 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13557 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13558 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13559 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13560 i386-gnu.
13561 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13562 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13563
13564 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13565
13566 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13567 --enable-obsolete for powerpc-linux-gnuspe.
13568
13569 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13570
13571 * conform/data/sys/un.h-data: Allow sun_ prefix.
13572 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13573 prototypes.
13574 * sysdeps/mach/include/mach.h: Likewise.
13575 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13576 * sysdeps/mach/include/mach_error.h: Likewise.
13577
13578 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13579
13580 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13581 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13582 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13583 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13584
13585 2018-04-16 Andreas Schwab <schwab@suse.de>
13586
13587 [BZ #19527]
13588 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13589
13590 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13591
13592 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13593 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13594
13595 2018-04-12 DJ Delorie <dj@redhat.com>
13596
13597 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13598 version to 4.16.
13599
13600 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13601
13602 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13603 (struct kernel_sigaction): Use the same definition on 31bit as is used
13604 on 64bit.
13605
13606 2018-04-09 Florian Weimer <fweimer@redhat.com>
13607
13608 [BZ #23037]
13609 * resolv/res_send.c (send_dg): Use designated initializers instead
13610 of assignment to zero-initialize other fields of struct mmsghdr.
13611
13612 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13613
13614 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13615 __READDIR_ALIAS): Undefine after usage.
13616 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13617 __READDIR_R_ALIAS): Likewise.
13618 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13619 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13620 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13621 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13622 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13623 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13624 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13625 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13626 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13627 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13628 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13629 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13630 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13631 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13632 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13633 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13634 * sysdeps/unix/sysv/linux/readdir.c: New file.
13635 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13636 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13637 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13638
13639 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13640
13641 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13642
13643 * manual/charset.texi (Converting a Character): Fix typo.
13644
13645 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13646
13647 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13648
13649 * sysdeps/arm/libm-test-ulps: Update.
13650
13651 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13652 as base implementation.
13653 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13654 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13655 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13656 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13657 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13658 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13659 remove unrequired definitions and update comments.
13660 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13661 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13662 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13663 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13664 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13665 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13666 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13667 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13668 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13669 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13670 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13671 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13672 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13673 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13674 and RESET_SA_RESTORER hooks.
13675
13676 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13677
13678 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13679
13680 2018-04-05 Florian Weimer <fweimer@redhat.com>
13681
13682 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13683 integer overflow, memory leak on error, and indeterminate errno
13684 value. Add a null wide character to terminate the result string.
13685 * manual/charset.texi (Converting a Character): Mention embedded
13686 null bytes in the mbrtowc input string. Explain what happens in
13687 the -2 result case. Do not claim that mbrtowc is simple or
13688 obvious to use. Adjust the description of the code example. Use
13689 @code, not @var, for concrete variables.
13690
13691 2018-04-05 Florian Weimer <fweimer@redhat.com>
13692
13693 * manual/examples/mbstouwcs.c: New file.
13694 * manual/charset.texi (Converting a Character): Include it.
13695
13696 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13697
13698 * include/dirent.h (dirfd): Add hidden proto.
13699 * dirent/dirfd.c (dirfd): Add hidden def.
13700 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13701 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13702
13703 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13704
13705 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13706 sin, cos and sincos to 1 ULP.
13707
13708 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13709
13710 [BZ #19818]
13711 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13712 symbols.
13713 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13714 * elf/tst-absolute-sym.c: New file.
13715 * elf/tst-absolute-sym-lib.c: New file.
13716 * elf/tst-absolute-sym-lib.lds: New file.
13717 * elf/Makefile (tests): Add `tst-absolute-sym'.
13718 (modules-names): Add `tst-absolute-sym-lib'.
13719 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13720 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13721 ($(objpfx)tst-absolute-sym): New dependency.
13722
13723 [BZ #19818]
13724 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13725 parameter.
13726 (SYMBOL_ADDRESS): New macro.
13727 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13728 SYMBOL_ADDRESS for symbol address calculation.
13729 * elf/dl-runtime.c (_dl_fixup): Likewise.
13730 (_dl_profile_fixup): Likewise.
13731 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13732 * elf/rtld.c (dl_main): Likewise.
13733 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13734 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13735 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13736 (elf_machine_rela): Likewise.
13737 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13738 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13739 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13740 (elf_machine_rela): Likewise.
13741 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13742 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13743 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13744 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13745 Likewise.
13746 (elf_machine_reloc): Likewise.
13747 (elf_machine_got_rel): Likewise.
13748 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13749 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13750 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13751 Likewise.
13752 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13753 Likewise.
13754 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13755 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13756 Likewise.
13757 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13758 Likewise.
13759 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13760 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13761 Likewise.
13762 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13763 Likewise.
13764 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13765 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13766
13767 2018-04-04 Zack Weinberg <zackw@panix.com>
13768
13769 * sysdeps/generic/internal-signals.h: Include signal.h,
13770 sigsetops.h, and stdbool.h.
13771 (__libc_signal_block_all): Actually block all signals.
13772 (__libc_signal_block_app): Likewise.
13773 (__libc_signal_restore_set): Actually restore the signal mask.
13774
13775 2018-04-04 Florian Weimer <fweimer@redhat.com>
13776
13777 inet: Actually build and run tst-deadline.
13778 * inet/Makefile (tests-internal): Add tst-deadline and do not
13779 overwrite the variable.
13780 (tests-static-internal): Remove variable.
13781
13782 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13783
13784 [BZ #22947]
13785 * bits/uio-ext.h (RWF_APPEND): New.
13786 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13787 * manual/llio.texi: Document RWF_APPEND.
13788 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13789 (RWF_SUPPORTED): Add RWF_APPEND.
13790
13791 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13792
13793 [BZ #22391]
13794 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13795 check for internal nptl signals.
13796 * nptl/sigaction.c (__sigaction): Likewise.
13797 * signal/sigaddset.c (sigaddset): Likewise.
13798 * signal/sigdelset.c (sigdelset): Likewise.
13799 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13800 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13801 value.
13802 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13803 to filter out internal nptl signals.
13804 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13805 also check realtime signals using standard macros.
13806 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13807 __is_internal_signal, __libc_signal_block_all,
13808 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13809 * sysdeps/nptl/sigfillset.c: Remove file.
13810 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13811 Change return to bool.
13812 (__clear_internal_signals): Remove SIGTIMER clean since it is
13813 equal to SIGCANEL on Linux.
13814 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13815 signal set was constructed using standard functions.
13816
13817 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13818
13819 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13820 ifname is too long.
13821 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13822 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13823 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13824 hidden def.
13825 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13826 * signal/sigaddset.c: Include <sigsetopts.h>.
13827 * signal/sigdelset.c: Likewise.
13828
13829 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13830
13831 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13832 (__cos): Likewise.
13833 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13834 logic as sin and cos.
13835
13836 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13837
13838 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13839 inputs. Return correct sign.
13840 (do_sincos): Remove small input check before do_sin, let do_sin set
13841 the sign.
13842 (__sin): Likewise.
13843 (__cos): Likewise.
13844
13845 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13846
13847 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13848 (do_cos_slow): Likewise.
13849 (do_sin_slow): Likewise.
13850 (reduce_and_compute): Likewise.
13851 (slow): Likewise.
13852 (slow1): Likewise.
13853 (slow2): Likewise.
13854 (sloww): Likewise.
13855 (sloww1): Likewise.
13856 (sloww2): Likewise.
13857 (bslow): Likewise.
13858 (bslow1): Likewise.
13859 (bslow2): Likewise.
13860 (cslow2): Likewise.
13861
13862 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13863
13864 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13865 (do_cos): Remove corp parameter and calculations.
13866 (do_sin): Likewise.
13867 (do_sincos): Remove cor variable.
13868 (__sin): Use do_sincos for huge inputs.
13869 (__cos): Likewise.
13870 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13871 (reduce_and_compute_sincos): Remove unused function.
13872
13873 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13874
13875 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13876 reduce_sincos, improve accuracy to 136 bits.
13877 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13878 (__sin): Use improved reduction and simplified do_sincos calculation.
13879 (__cos): Likewise.
13880 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13881
13882 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13883
13884 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13885 (do_sincos_2): Likewise.
13886 (__sin): Remove middle range reduction case.
13887 (__cos): Likewise.
13888 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13889 reduction case.
13890
13891 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13892
13893 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13894 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13895 inputs.
13896 (__cos): Likewise.
13897 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13898
13899 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13900
13901 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13902 version to 4.16
13903
13904 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13905
13906 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13907 Remove definitions.
13908 (opendir_oflags): Use O_DIRECTORY regardless.
13909 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13910 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13911
13912 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13913
13914 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13915 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13916 macros.
13917 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13918 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13919 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13920 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13921 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13922 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13923
13924 * htl/Makefile: Bump licence to LGPL 2.1+.
13925 * htl/alloca_cutoff.c: Likewise.
13926 * htl/cthreads-compat.c: Likewise.
13927 * htl/lockfile.c: Likewise.
13928 * htl/pt-alloc.c: Likewise.
13929 * htl/pt-cancel.c: Likewise.
13930 * htl/pt-cleanup.c: Likewise.
13931 * htl/pt-create.c: Likewise.
13932 * htl/pt-dealloc.c: Likewise.
13933 * htl/pt-detach.c: Likewise.
13934 * htl/pt-exit.c: Likewise.
13935 * htl/pt-getattr.c: Likewise.
13936 * htl/pt-initialize.c: Likewise.
13937 * htl/pt-internal.h: Likewise.
13938 * htl/pt-join.c: Likewise.
13939 * htl/pt-self.c: Likewise.
13940 * htl/pt-setcancelstate.c: Likewise.
13941 * htl/pt-setcanceltype.c: Likewise.
13942 * htl/pt-sigmask.c: Likewise.
13943 * htl/pt-spin-inlines.c: Likewise.
13944 * htl/pt-testcancel.c: Likewise.
13945 * htl/pt-yield.c: Likewise.
13946 * htl/tests/test-1.c: Likewise.
13947 * htl/tests/test-10.c: Likewise.
13948 * htl/tests/test-11.c: Likewise.
13949 * htl/tests/test-12.c: Likewise.
13950 * htl/tests/test-13.c: Likewise.
13951 * htl/tests/test-14.c: Likewise.
13952 * htl/tests/test-15.c: Likewise.
13953 * htl/tests/test-16.c: Likewise.
13954 * htl/tests/test-17.c: Likewise.
13955 * htl/tests/test-2.c: Likewise.
13956 * htl/tests/test-3.c: Likewise.
13957 * htl/tests/test-4.c: Likewise.
13958 * htl/tests/test-5.c: Likewise.
13959 * htl/tests/test-6.c: Likewise.
13960 * htl/tests/test-7.c: Likewise.
13961 * htl/tests/test-8.c: Likewise.
13962 * htl/tests/test-9.c: Likewise.
13963 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13964 * sysdeps/htl/bits/cancelation.h: Likewise.
13965 * sysdeps/htl/bits/pthread-np.h: Likewise.
13966 * sysdeps/htl/bits/pthread.h: Likewise.
13967 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13968 * sysdeps/htl/bits/semaphore.h: Likewise.
13969 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13970 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13971 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13972 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13973 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13974 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13975 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13976 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13977 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13978 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13979 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13980 * sysdeps/htl/old_pt-atfork.c: Likewise.
13981 * sysdeps/htl/pt-atfork.c: Likewise.
13982 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13983 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13984 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13985 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13986 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13987 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13988 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13989 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13990 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13991 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13992 * sysdeps/htl/pt-attr-init.c: Likewise.
13993 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13994 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13995 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13996 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13997 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13998 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13999 * sysdeps/htl/pt-attr-setstack.c: Likewise.
14000 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
14001 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
14002 * sysdeps/htl/pt-attr.c: Likewise.
14003 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
14004 * sysdeps/htl/pt-barrier-init.c: Likewise.
14005 * sysdeps/htl/pt-barrier-wait.c: Likewise.
14006 * sysdeps/htl/pt-barrier.c: Likewise.
14007 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
14008 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
14009 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
14010 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
14011 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
14012 * sysdeps/htl/pt-cond-destroy.c: Likewise.
14013 * sysdeps/htl/pt-cond-init.c: Likewise.
14014 * sysdeps/htl/pt-cond-signal.c: Likewise.
14015 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14016 * sysdeps/htl/pt-cond-wait.c: Likewise.
14017 * sysdeps/htl/pt-cond.c: Likewise.
14018 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14019 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14020 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14021 * sysdeps/htl/pt-condattr-init.c: Likewise.
14022 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14023 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14024 * sysdeps/htl/pt-destroy-specific.c: Likewise.
14025 * sysdeps/htl/pt-equal.c: Likewise.
14026 * sysdeps/htl/pt-getconcurrency.c: Likewise.
14027 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14028 * sysdeps/htl/pt-getschedparam.c: Likewise.
14029 * sysdeps/htl/pt-getspecific.c: Likewise.
14030 * sysdeps/htl/pt-init-specific.c: Likewise.
14031 * sysdeps/htl/pt-key-create.c: Likewise.
14032 * sysdeps/htl/pt-key-delete.c: Likewise.
14033 * sysdeps/htl/pt-key.h: Likewise.
14034 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14035 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14036 * sysdeps/htl/pt-mutex-init.c: Likewise.
14037 * sysdeps/htl/pt-mutex-lock.c: Likewise.
14038 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14039 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14040 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14041 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14042 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14043 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14044 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14045 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14046 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14047 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14048 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14049 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14050 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14051 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14052 * sysdeps/htl/pt-mutexattr.c: Likewise.
14053 * sysdeps/htl/pt-once.c: Likewise.
14054 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14055 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14056 * sysdeps/htl/pt-rwlock-init.c: Likewise.
14057 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14058 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14059 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14060 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14061 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14062 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14063 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14064 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14065 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14066 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14067 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14068 * sysdeps/htl/pt-setconcurrency.c: Likewise.
14069 * sysdeps/htl/pt-setschedparam.c: Likewise.
14070 * sysdeps/htl/pt-setschedprio.c: Likewise.
14071 * sysdeps/htl/pt-setspecific.c: Likewise.
14072 * sysdeps/htl/pt-spin.c: Likewise.
14073 * sysdeps/htl/pt-startup.c: Likewise.
14074 * sysdeps/htl/pthread.h: Likewise.
14075 * sysdeps/htl/sem-close.c: Likewise.
14076 * sysdeps/htl/sem-destroy.c: Likewise.
14077 * sysdeps/htl/sem-getvalue.c: Likewise.
14078 * sysdeps/htl/sem-init.c: Likewise.
14079 * sysdeps/htl/sem-open.c: Likewise.
14080 * sysdeps/htl/sem-post.c: Likewise.
14081 * sysdeps/htl/sem-timedwait.c: Likewise.
14082 * sysdeps/htl/sem-trywait.c: Likewise.
14083 * sysdeps/htl/sem-unlink.c: Likewise.
14084 * sysdeps/htl/sem-wait.c: Likewise.
14085 * sysdeps/hurd/htl/pt-kill.c: Likewise.
14086 * sysdeps/i386/htl/pt-machdep.h: Likewise.
14087 * sysdeps/mach/htl/pt-block.c: Likewise.
14088 * sysdeps/mach/htl/pt-spin.c: Likewise.
14089 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14090 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14091 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14092 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14093 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14094 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14095 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14096 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14097 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14098 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14099 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14100 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14101 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14102 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14103 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14104 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14105 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14106 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14107 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14108 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14109 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14110 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14111 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14112 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14113 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14114 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14115 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14116 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14117 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14118 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14119 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14120 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14121 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14122 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14123 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14124 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14125 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14126 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14127 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14128 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14129 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14130 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14131 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14132
14133 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14134 * README: Remove the mention of out-of-tree patches needed for
14135 GNU/Hurd.
14136
14137 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14138 (UTIME_NOW, UTIME_OMIT): Define macros.
14139
14140 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14141 instead of pthread_detach.
14142 (__cthread_fork): Call __pthread_create instead of pthread_create.
14143 (__cthread_keycreate): Call __pthread_key_create instead of
14144 pthread_key_create.
14145 (__cthread_getspecific): Call __pthread_getspecific instead of
14146 pthread_getspecific.
14147 (__cthread_setspecific): Call __pthread_setspecific instead of
14148 pthread_setspecific.
14149 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14150 __pthread_mutex_unlock instead of pthread_mutex_lock and
14151 pthread_mutex_unlock.
14152 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14153 ___pthread_get_cleanup_stack.
14154 (__pthread_get_cleanup_stack): New strong alias.
14155 * htl/pt-create.c: Include <pthreadP.h>.
14156 (entry_point): Call __pthread_exit instead of pthread_exit.
14157 (pthread_create): Rename to __pthread_create.
14158 (pthread_create): New strong alias.
14159 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14160 (pthread_detach): New strong alias.
14161 (__pthread_detach): Call __pthread_cond_broadcast instead of
14162 pthread_cond_broadcast.
14163 * htl/pt-exit.c: Include <pthreadP.h>.
14164 (__pthread_exit): Call __pthread_setcancelstate and
14165 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14166 __pthread_get_cleanup_stack.
14167 * htl/pt-testcancel.c: Include <pthreadP.h>.
14168 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14169 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14170 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14171 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14172 pthread_attr_getstacksize.
14173 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14174 Rename to __pthread_attr_getstackaddr.
14175 (pthread_attr_getstackaddr): New strong alias.
14176 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14177 Rename to __pthread_attr_getstacksize.
14178 (pthread_attr_getstacksize): New strong alias.
14179 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14180 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14181 (pthread_attr_setstack): New strong alias.
14182 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14183 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14184 pthread_attr_getstacksize, pthread_attr_setstacksize and
14185 pthread_attr_setstackaddr.
14186 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14187 Rename to __pthread_attr_setstackaddr.
14188 (pthread_attr_setstackaddr): New strong alias.
14189 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14190 Rename to __pthread_attr_setstacksize.
14191 (pthread_attr_setstacksize): New strong alias.
14192 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14193 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14194 pthread_exit.
14195 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14196 (__pthread_key_create): New hidden def.
14197 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14198 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14199 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14200 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14201 __pthread_setspecific, __pthread_setcancelstate,
14202 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14203 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14204 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14205 declarations.
14206 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14207 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14208 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14209 (pthread_attr_setstackaddr): New strong alias.
14210 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14211 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14212 (pthread_attr_setstacksize): New strong alias.
14213 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14214 (call_exit): Call __pthread_exit instead of pthread_exit.
14215 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14216 (_pthread_mutex_init): New hidden definition.
14217 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14218 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14219 instead of pthread_attr_init and pthread_attr_setstack.
14220
14221 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14222 __vm_deallocate instead of vm_allocate and vm_deallocate.
14223 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14224 setenv.
14225 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14226 of geteuid.
14227 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14228 strdup.
14229 * hurd/siginfo.c: Include <libioP.h>.
14230 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14231 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14232 munmap.
14233 * mach/devstream.c: Include <libioP.h>.
14234 (dealloc_ref): Call __mach_port_deallocate instead of
14235 mach_port_deallocate.
14236 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14237 Call __mach_port_deallocate instead of mach_port_deallocate.
14238 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14239 pathconf.
14240 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14241 munmap.
14242 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14243 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14244 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14245 of munmap.
14246 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14247 of close.
14248 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14249 instead of sysconf.
14250 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14251 __clock_gettime instead of clock_gettime.
14252 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14253 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14254 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14255 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14256 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14257 tcgetattr.
14258 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14259 __clock_gettime and __nanosleep instead of clock_gettime and
14260 nanosleep.
14261 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14262 __hurd_catch_signal.
14263 (hurd_catch_signal): New strong alias.
14264 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14265 __hurd_catch_signal instead of hurd_catch_signal.
14266 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14267 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14268 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14269 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14270 (_hurd_thread_sigstate): Add hidden def.
14271 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14272 mutex_unlock.
14273 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14274 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14275 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14276 __hurd_file_name_path_lookup.
14277 (hurd_file_name_path_lookup): New strong alias.
14278 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14279 hurd_file_name_path_lookup.
14280 * mach/errstring.c (mach_error_type): Add hidden def.
14281 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14282 * mach/mutex-init.c (__mutex_init): Add hidden def.
14283 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14284 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14285 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14286 * sysdeps/mach/hurd/getcwd.c
14287 (_hurd_canonicalize_directory_name_internal): Rename to
14288 __hurd_canonicalize_directory_name_internal.
14289 (_hurd_canonicalize_directory_name_internal): New strong alias.
14290 (__canonicalize_directory_name_internal, __getcwd): Call
14291 __hurd_canonicalize_directory_name_internal instead of
14292 _hurd_canonicalize_directory_name_internal.
14293 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14294 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14295 hidden defs.
14296 * sysdeps/hurd/include/hurd.h: New file.
14297 * sysdeps/hurd/include/hurd/fd.h: New file.
14298 * sysdeps/hurd/include/hurd/signal.h: New file.
14299 * sysdeps/mach/include/lock-intern.h: New file.
14300 * sysdeps/mach/include/mach.h: New file.
14301 * sysdeps/mach/include/mach/mig_support.h: New file.
14302 * sysdeps/mach/include/mach_error.h: New file.
14303 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14304 prototype.
14305 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14306 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14307 _HEADER_H_HIDDEN_DEF macro.
14308 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14309 _hurd_fd_error_signal): Add hidden prototype.
14310 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14311 hidden def.
14312 * libio/iolibio.h (_IO_puts): New hidden prototype.
14313 * libio/ioputs.c (_IO_puts): New hidden def.
14314 * sysdeps/mach/hurd/localplt.data: New file.
14315
14316 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14317 Amos Jeffries <squid3@treenet.co.nz>
14318 David Michael <fedora.dm0@gmail.com>
14319 Marco Gerards <marco@gnu.org>
14320 Marcus Brinkmann <marcus@gnu.org>
14321 Neal H. Walfield <neal@gnu.org>
14322 Pino Toscano <toscano.pino@tiscali.it>
14323 Richard Braun <rbraun@sceen.net>
14324 Roland McGrath <roland@gnu.org>
14325 Samuel Thibault <samuel.thibault@ens-lyon.org>
14326 Thomas DiModica <ricinwich@yahoo.com>
14327 Thomas Schwinge <tschwinge@gnu.org>
14328
14329 * htl: New directory.
14330 * sysdeps/htl: New directory.
14331 * sysdeps/hurd/htl: New directory.
14332 * sysdeps/i386/htl: New directory.
14333 * sysdeps/mach/htl: New directory.
14334 * sysdeps/mach/hurd/htl: New directory.
14335 * sysdeps/mach/hurd/i386/htl: New directory.
14336 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14337 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14338 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14339
14340 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14341
14342 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14343 signals in thread created for runing timers.
14344
14345 2018-04-01 Florian Weimer <fweimer@redhat.com>
14346
14347 * support/support_format_addrinfo.c (support_format_addrinfo):
14348 Include unknown error number in formatted result.
14349
14350 2018-03-29 Florian Weimer <fweimer@redhat.com>
14351
14352 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14353 capture SIGBUS.
14354
14355 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14356
14357 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14358 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14359 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14360 (__ASSUME_CLONE_BACKWARDS): Define.
14361
14362 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14363
14364 [BZ #23024]
14365 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14366 early when linux sentinel value is set.
14367
14368 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14369
14370 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14371
14372 2018-03-27 Andreas Schwab <schwab@suse.de>
14373
14374 [BZ #23005]
14375 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14376 allocation of private copy of nsaddr_list fails.
14377
14378 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14379
14380 [BZ #16552]
14381 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14382 * sysdeps/unix/sysv/linux/umount.c: ... here.
14383 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14384 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14385 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14386 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14388 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14389 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14390
14391 2018-03-26 Andreas Schwab <schwab@suse.de>
14392
14393 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14394 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14395 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14396 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14397 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14398 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14399 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14400 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14401 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14402 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14403 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14404 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14405 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14406 (R_RISCV_NUM): Define.
14407
14408 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14409
14410 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14411 TLS declaration of errno.
14412 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14413 __libc_setup_tls.
14414 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14415 (ARCH_SETUP_TLS): Likewise.
14416 * sysdeps/mach/hurd/libc-start.h: New file copied from
14417 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14418 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14419 instead of __libc_setup_tls.
14420 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14421 __libc_setup_tls before initializing libpthread and running _hurd_init
14422 which starts the signal thread.
14423 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14424 Declare function.
14425 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14426
14427 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14428
14429 [BZ #22998]
14430 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14431 after it is defined.
14432
14433 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14434 Max Horn <max@quendi.de>
14435
14436 [BZ #22644]
14437 CVE-2017-18269
14438 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14439 branch conditions.
14440 * string/test-memmove.c (do_test2): New testcase.
14441
14442 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14443
14444 * sysdeps/generic/frame.h: Remove file.
14445 * sysdeps/arm/frame.h: Likewise.
14446 * sysdeps/hppa/frame.h: Likewise.
14447 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14448 macro.
14449 (GET_FRAME): Likewise.
14450 (GET_STACK): Likewise.
14451 (CALL_SIGHANDLER): Likewise.
14452 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14453 Likewise.
14454 (GET_FRAME): Likewise.
14455 (GET_STACK): Likewise.
14456 (CALL_SIGHANDLER): Likewise.
14457 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14458 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14459 (GET_FRAME): Likewise.
14460 (GET_STACK): Likewise.
14461 (CALL_SIGHANDLER): Likewise.
14462 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14463 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14464 (GET_FRAME): Likewise.
14465 (GET_STACK): Likewise.
14466 (ADVANCE_STACK_FRAME): Likewise.
14467 (CALL_SIGHANDLER): Likewise.
14468 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14469 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14470 (GET_FRAME): Likewise.
14471 (GET_STACK): Likewise.
14472 (CALL_SIGHANDLER): Likewise.
14473 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14474 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14475 (GET_FRAME): Likewise.
14476 (GET_STACK): Likewise.
14477 (CALL_SIGHANDLER): Likewise.
14478 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14479 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14480 (GET_FRAME): Likewise.
14481 (GET_STACK): Likewise.
14482 (CALL_SIGHANDLER): Likewise.
14483 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14484 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14485 (GET_FRAME): Likewise.
14486 (GET_STACK): Likewise.
14487 (CALL_SIGHANDLER): Likewise.
14488 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14489 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14490 (GET_FRAME): Likewise.
14491 (GET_STACK): Likewise.
14492 (CALL_SIGHANDLER): Likewise.
14493 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14494 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14495 (GET_FRAME): Likewise.
14496 (GET_STACK): Likewise.
14497 (CALL_SIGHANDLER): Likewise.
14498 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14499 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14500 (GET_FRAME): Likewise.
14501 (GET_STACK): Likewise.
14502 (CALL_SIGHANDLER): Likewise.
14503 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14504 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14505 (GET_FRAME): Likewise.
14506 (GET_STACK): Likewise.
14507 (CALL_SIGHANDLER): Likewise.
14508 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14509 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14510 (GET_FRAME): Likewise.
14511 (GET_STACK): Likewise.
14512 (CALL_SIGHANDLER): Likewise.
14513 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14514 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14515 (FIRST_FRAME_POINTER): Likewise.
14516 (ADVANCE_STACK_FRAME): Likewise.
14517 (GET_STACK): Likewise.
14518 (GET_FRAME): Likewise.
14519 (CALL_SIGHANDLER): Likewise.
14520 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14521 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14522 (ADVANCE_STACK_FRAME): Likewise.
14523 (GET_STACK): Likewise.
14524 (GET_FRAME): Likewise.
14525 (CALL_SIGHANDLER): Likewise.
14526 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14527 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14528 (GET_FRAME): Likewise.
14529 (GET_STACK): Likewise.
14530 (CALL_SIGHANDLER): Likewise.
14531 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14532 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14533 (GET_FRAME): Likewise.
14534 (GET_STACK): Likewise.
14535 (CALL_SIGHANDLER): Likewise.
14536
14537 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14538
14539 * sysdeps/x86_64/backtrace.c: Move to ....
14540 * debug/backtrace.c: ... here.
14541 * sysdeps/aarch64/backtrace.c: Remove file.
14542 * sysdeps/alpha/backtrace.c: Likewise.
14543 * sysdeps/hppa/backtrace.c: Likewise.
14544 * sysdeps/ia64/backtrace.c: Likewise.
14545 * sysdeps/mips/backtrace.c: Likewise.
14546 * sysdeps/nios2/backtrace.c: Likewise.
14547 * sysdeps/riscv/backtrace.c: Likewise.
14548 * sysdeps/sh/backtrace.c: Likewise.
14549 * sysdeps/tile/backtrace.c: Likewise.
14550
14551 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14552
14553 [BZ #22987]
14554 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14555 function.
14556 (fdimf): Likewise.
14557 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14558
14559 [BZ #17343]
14560 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14561 possibly overflowing computations.
14562
14563 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14564
14565 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14566 values from Linux-specific section now that it is in the GNU section.
14567 * sysdeps/gnu/errlist.c: Regenerate.
14568
14569 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14570
14571 * math/Makefile (libm-narrow-fns): Add sub.
14572 (libm-test-funcs-narrow): Likewise.
14573 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14574 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14575 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14576 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14577 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14578 (NARROW_SUB_TRIVIAL): Likewise.
14579 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14580 macro.
14581 (__dsubl): Likewise.
14582 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14583 dsub.
14584 (CFLAGS-nldbl-dsub.c): New variable.
14585 (CFLAGS-nldbl-fsub.c): Likewise.
14586 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14587 __nldbl_dsubl.
14588 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14589 prototype.
14590 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14591 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14592 * math/auto-libm-test-in: Add tests of sub.
14593 * math/auto-libm-test-out-narrow-sub: New generated file.
14594 * math/libm-test-narrow-sub.inc: New file.
14595 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14596 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14597 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14598 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14599 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14600 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14601 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14602 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14603 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14604 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14605 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14606 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14607 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14608 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14609 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14610 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14611 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14612 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14613 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14614 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14615 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14617 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14618 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14620 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14624 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14625 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14626 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14631 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14632 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14633 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14634 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14635 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14638 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14641
14642 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14643
14644 [BZ #20079]
14645 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14646
14647 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14648
14649 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14650
14651 2018-03-18 Richard Braun <rbraun@sceen.net>
14652
14653 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14654 thread reference.
14655
14656 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14657
14658 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14659 (__libc_cleanup_fct): Define function.
14660 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14661 __libc_cleanup_end): Rewrite implementation using
14662 __attribute__ ((__cleanup__)).
14663 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14664 * hurd/Makefile (routines): Add hurdlock.
14665 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14666 interface.
14667 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14668 * hurd/hurdpid.c: Include <lowlevellock.h>
14669 (_S_msg_proc_newids): Use lll_wait to synchronize.
14670 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14671 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14672 * mach/Makefile (lock-headers): Remove machine-lock.h.
14673 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14674 <machine-lock.h>.
14675 (__spin_lock_t): New type.
14676 (__SPIN_LOCK_INITIALIZER): New macro.
14677 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14678 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14679 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14680 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14681 (__mutex_init): Initialize with lll.
14682 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14683 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14684 needing lll.
14685 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14686 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14687 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14688 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14689 (__setpgid): Use lll for synchronization.
14690 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14691 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14692 instead of <cthreads.h>.
14693 (_IO_lock_inexpensive): New macro
14694 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14695 (__libc_lock_self0): New declaration.
14696 (__libc_lock_owner_self): New macro.
14697 (__libc_key_t): Remove type.
14698 (_LIBC_LOCK_INITIALIZER): New macro.
14699 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14700 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14701 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14702 __libc_lock_define_initialized_recursive,
14703 __rtld_lock_define_initialized_recursive,
14704 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14705 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14706 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14707 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14708 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14709 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14710 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14711 New macros.
14712 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14713 * hurd/hurdlock.c: New file.
14714 * hurd/hurdlock.h: New file.
14715 * mach/lowlevellock.h: New file
14716
14717 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14718
14719 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14720 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14721 when opening a symlink with O_NOFOLLOW.
14722 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14723 path when flags contains O_NOFOLLOW.
14724 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14725 if flags contains O_DIRECTORY and the result is a directory.
14726 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14727 oneself when the pointer given in D is nul (as set by ext2fs).
14728 * sysdeps/mach/hurd/mlockall.c: New file.
14729 * sysdeps/mach/hurd/munlockall.c: New file.
14730
14731 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14732
14733 * hurd/hurdsig.c: Include <pthread.h>.
14734 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14735 get the signal thread stack layout.
14736 * hurd/Makefile (headers): Remove threadvar.h.
14737 (inline-headers): Remove threadvar.h.
14738 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14739 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14740 __hurd_threadvar_max, __hurd_errno_location.
14741 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14742 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14743 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14744 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14745 unless TLS is not initialized yet, in which case we do not need a
14746 critical section yet anyway.
14747 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14748 <machine-sp.h>.
14749 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14750 declarations.
14751 (__hurd_threadvar_index): Remove enum.
14752 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14753 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14754 inlines.
14755 (__hurd_reply_port0): New variable declaration.
14756 (__hurd_local_reply_port): New macro.
14757 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14758 (interrupted_reply_port_location): Add thread_t parameter. Use it
14759 with THREAD_TCB to access thread-local variables.
14760 (_hurdsig_abort_rpcs): Pass ss->thread to
14761 interrupted_reply_port_location.
14762 (_hurd_internal_post_signal): Likewise.
14763 (_hurdsig_init): Use presence of cthread_fork instead of
14764 __hurd_threadvar_stack_mask to start signal thread by hand.
14765 Remove signal thread threadvar initialization.
14766 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14767 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14768 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14769 of threadvar.
14770 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14771 __libc_lock_self0.
14772 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14773 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14774 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14775 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14776 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14777 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14778 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14779 define variables.
14780 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14781 <hurd/threadvar.h>.
14782 [IS_IN(rtld)] (rtld_errno): New variable.
14783 [IS_IN(rtld)] (__errno_location): New weak function.
14784 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14785 * sysdeps/mach/hurd/errno.c: Remove file.
14786 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14787 (__fork): Remove THREADVAR_SPACE macro and its use.
14788 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14789 variable.
14790 (init): Do not initialize threadvar.
14791 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14792 symbol.
14793 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14794 __hurd_local_reply_port instead of threadvar.
14795 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14796 _hurd_sigstate fields.
14797 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14798 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14799 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14800 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14801 instead of threadvar.
14802 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14803 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14804 (use_threadvar, global_reply_port): Remove variables.
14805 (__hurd_reply_port0): New variable.
14806 (__mig_get_reply_port): Use __hurd_local_reply_port and
14807 __hurd_reply_port0 instead of threadvar.
14808 (__mig_dealloc_reply_port): Likewise.
14809 (__mig_init): Do not initialize threadvar.
14810 * sysdeps/mach/hurd/profil.c: Fix comment.
14811 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14812 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14813 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14814 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14815 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14816 __cthread_setspecific.
14817 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14818 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14819 __cthread_t instead of cthread_fork, cthread_detach,
14820 pthread_getattr_np, pthread_attr_getstack.
14821 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14822 __cthread_keycreate.
14823 (cthread_getspecific): Rename to __cthread_getspecific.
14824 (cthread_setspecific): Rename to __cthread_setspecific.
14825 (__libc_getspecific): Use __cthread_getspecific instead of
14826 cthread_getspecific.
14827 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14828 __cthread_keycreate instead of cthread_keycreate.
14829 (__libc_setspecific): Use __cthread_setspecific instead of
14830 cthread_setspecific.
14831 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14832 Likewise.
14833 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14834 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14835 testing whether it is defined.
14836
14837 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14838
14839 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14840 Define macro.
14841 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14842 * sysdeps/mach/i386/thread_state.h
14843 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14844 i386_THREAD_STATE.
14845 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14846 i386_THREAD_STATE.
14847 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14848
14849 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14850 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14851
14852 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14853 macros.
14854 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14855 descriptor instead of creating a new one.
14856 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14857
14858 * mach/setup-thread.c: Include <ldsodefs.h>.
14859 (__mach_setup_thread): Call _dl_allocate_tls, pass
14860 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14861 MACHINE_THREAD_STATE_FLAVOR, before getting
14862 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14863 MACHINE_THREAD_STATE_FLAVOR with the result.
14864 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14865 MACHINE_THREAD_STATE_FIX_NEW.
14866 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14867 too. Add original thread parameter.
14868
14869 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14870
14871 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14872 Remove inline function.
14873
14874 * sysdeps/i386/fpu/libm-test-ulps: Update.
14875 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14876
14877 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14878
14879 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14880 commit.
14881
14882 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14883
14884 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14885 (__sincos_code): Remove define and undefine.
14886 [__FAST_MATH__] (__sincos): Remove inline function.
14887 [__FAST_MATH__] (__sincosf): Remove inline function.
14888 [__FAST_MATH__] (__sincosl): Remove inline function.
14889 (__atan2l): Remove inline functions.
14890 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14891 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14892 function.
14893 (floor): Remove inline function.
14894 (ceil): Likewise.
14895 [__FAST_MATH__] (__ldexp_code): Remove macro.
14896 [__FAST_MATH__] (ldexp): Remove inline function.
14897 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14898 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14899 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14900 [__USE_ISOC99] (__lrint_code): Remove macro.
14901 [__USE_ISOC99] (__llrint_code): Likewise.
14902 [__USE_ISOC99] (lrintf): Remove inline function.
14903 [__USE_ISOC99] (lrint): Likewise.
14904 [__USE_ISOC99] (lrintl): Likewise.
14905 [__USE_ISOC99] (llrint): Likewise.
14906 [__USE_ISOC99] (llrintf): Likewise.
14907 [__USE_ISOC99] (llrintl): Likewise.
14908
14909 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14910
14911 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14912 (__ieee754_sqrtf): Remove.
14913 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14914 (__ieee754_sqrtf): Remove.
14915 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14916 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14917 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14918 (__ieee754_sqrtf): Remove.
14919 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14920 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14921 (sqrtf): Remove.
14922 (sqrtl): Remove.
14923 (__ieee754_sqrt): Remove.
14924 (__ieee754_sqrtf): Remove.
14925 (__ieee754_sqrtl): Remove.
14926 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14927 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14928 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14929 (__ieee754_sqrtf): Remove.
14930 (__ieee754_sqrtl): Remove.
14931
14932 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14933
14934 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14935 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14936 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14937 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14938 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14939 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14940 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14941 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14942 Likewise.
14943 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14944 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14945 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14946 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14947 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14948 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14949 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14950 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14951 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14952 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14953 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14954 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14955 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14956 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14957 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14958 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14959 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14960 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14961 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14962 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14963 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14964 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14965 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14966 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14967 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14968 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14969 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14970 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14971 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14972 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14973 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14974 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14975 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14976 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14977 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14978 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14979 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14980 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14981 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14982 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14983
14984 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14985
14986 * include/math.h (sqrt): Declare with asm redirect.
14987 (sqrtf): Likewise.
14988 (sqrtl): Likewise.
14989 (sqrtf128): Likewise.
14990 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14991 nonlib and libnldbl with -fmath-errno.
14992 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14993 * math/w_sqrt_template.c: Likewise.
14994 * math/w_sqrtf_compat.c: Likewise.
14995 * math/w_sqrtl_compat.c: Likewise.
14996 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14997 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14998 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14999 complex.h.
15000
15001 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15002
15003 * benchtests/Makefile: Define _ISOMAC.
15004 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
15005 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
15006 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
15007 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
15008 * benchtests/bench-timing.h: Define attribute_hidden.
15009
15010 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
15011
15012 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
15013 mov + lsr.
15014
15015 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15016
15017 [BZ #22963]
15018 * localedata/locales/cs_CZ (mon): Rename to...
15019 (alt_mon): This.
15020 (mon): Import from CLDR (genitive case).
15021
15022 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15023
15024 [BZ #22937]
15025 * localedata/locales/el_CY (abmon): Rename to...
15026 (ab_alt_mon): This.
15027 (abmon): Import from CLDR (abbreviated genitive case).
15028 * localedata/locales/el_GR (abmon): Rename to...
15029 (ab_alt_mon): This.
15030 (abmon): Import from CLDR (abbreviated genitive case).
15031
15032 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15033
15034 [BZ #22932]
15035 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15036
15037 2018-03-15 Robert Buj <robert.buj@gmail.com>
15038
15039 [BZ #22848]
15040 * localedata/locales/ca_ES (abmon): Rename to...
15041 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15042 (mon): Rename to...
15043 (alt_mon): This.
15044 (abmon): Import from CLDR (genitive case, month names preceded by
15045 "de" or "d’").
15046 (mon): Likewise.
15047 (abday): Synchronize with CLDR.
15048 (d_t_fmt): Likewise.
15049 (d_fmt): Likewise.
15050 (am_pm): Likewise.
15051
15052 (LC_TIME): Improve indentation.
15053 (LC_TELEPHONE): Likewise.
15054 (LC_NAME): Likewise.
15055 (LC_ADDRESS): Likewise.
15056
15057 2018-03-14 Joseph Myers <joseph@codesourcery.com>
15058
15059 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15060 (lrintf): Remove definitions used only with old GCC.
15061 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15062 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15063 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15064 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15065 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15066 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15067 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15068 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15069 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15070 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15071 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15072 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15073 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15074 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15075 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15076 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15077 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15078 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15079 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15080 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15081 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15082 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15083 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15084 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15085 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15086 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15087 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15088 [__FAST_MATH__] (__M_SQRT2): Remove macro.
15089
15090 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15091
15092 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15093 instruction to unbreak builds with binutils 2.26 and older.
15094
15095 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15096
15097 * sysdeps/aarch64/strncmp.S (count): New macro.
15098 (strncmp): Store misaligned length in SRC1 in COUNT.
15099 (mutual_align): Adjust.
15100 (misaligned8): Load dword at a time when it is safe.
15101
15102 2018-03-12 Zack Weinberg <zackw@panix.com>
15103
15104 [BZ #1190]
15105 [BZ #19476]
15106 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15107 if the _IO_EOF_SEEN bit is already set; update commentary.
15108 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15109 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15110
15111 * support/support_openpty.c, support/tty.h: New files.
15112 * support/Makefile (libsupport-routines): Add support_openpty.
15113
15114 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15115 New test cases.
15116 * libio/Makefile (tests): Add tst-fgetc-after-eof.
15117 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15118
15119 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
15120
15121 * po/pt_BR.po: Update translations.
15122
15123 2018-03-12 David Michael <fedora.dm0@gmail.com>
15124
15125 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15126 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15127 get a port to the startup server.
15128
15129 2018-03-11 Zack Weinberg <zackw@panix.com>
15130
15131 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15132 before nldbl-compat.h.
15133
15134 2018-03-10 Zack Weinberg <zackw@panix.com>
15135
15136 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15137 math.h or math_private.h.
15138
15139 * sysdeps/alpha/fpu/s_isnan.c
15140 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15141 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15142 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15143 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15144 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15145 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15146 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15147 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15148 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15149 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15150 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15151 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15152 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15153 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15154 Include math_private.h.
15155
15156 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15157 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15158 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15159 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15160 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15161 * sysdeps/powerpc/power7/fpu/s_logb.c:
15162 Include math.h and math_private.h.
15163
15164 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15165 uses of $at in .set noat / .set at.
15166
15167 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15168
15169 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15170 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15171 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15172 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15173 Likewise.
15174
15175 2018-03-09 Florian Weimer <fweimer@redhat.com>
15176
15177 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15178 in comment.
15179
15180 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15181
15182 [BZ #22919]
15183 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15184 Add nop before __startcontext, add explaining comments.
15185
15186 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15187
15188 [BZ #22926]
15189 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15190 empty for __SPE__.
15191 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15192 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15193 Do not build hardware transactional code for __SPE__.
15194 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15195 (__lll_trylock_elision): Likewise.
15196 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15197 (__lll_unlock_elision): Likewise.
15198
15199 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15200 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15201 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15202 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15203 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15204 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15205 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15206 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15207 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15208 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15209 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15210 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15211 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15212 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15213 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15214 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15215 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15216 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15217 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15218 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15219 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15220 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15221 (__ASSUME_CLONE_BACKWARDS): Define.
15222 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15223 __clone2 if __NR_clone2 is defined.
15224 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15225 (__ASSUME_CLONE_BACKWARDS): Likewise.
15226 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15227 (__ASSUME_CLONE_BACKWARDS): Likewise.
15228 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15229 (__ASSUME_CLONE2): Likewise.
15230 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15231 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15232 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15233 variants and the define architecture can use.
15234 (__ASSUME_CLONE_DEFAULT): Define as default.
15235 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15236 (__ASSUME_CLONE_BACKWARDS): Likewise.
15237 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15238 (__ASSUME_CLONE_BACKWARDS): Likewise.
15239 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15240 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15241
15242 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15243
15244 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15245
15246 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15247 time.
15248
15249 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15250 (do_test_limit): Likewise.
15251
15252 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15253 for every implementation.
15254 (do_test): Likewise.
15255
15256 * benchtests/bench-strncmp.c: Convert output to json.
15257
15258 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15259
15260 * io/futimens.c: Add missing start-of-file descriptive comment.
15261 * io/utime.c: Likewise.
15262 * misc/futimesat.c: Likewise.
15263 * misc/utimes.c: Likewise.
15264 * sysdeps/mach/hurd/futimesat.c: Likewise.
15265 * sysdeps/mach/hurd/utimes.c: Likewise.
15266 * sysdeps/posix/utime.c: Likewise.
15267 * sysdeps/posix/utimes.c: Likewise.
15268 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15269 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15270 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15271 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15272
15273 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15274
15275 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15276 hurd_futimes.
15277 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15278 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15279 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15280 (__futimens): Move implementation to...
15281 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15282 utime_tvalue_from_tspec): ... new helper functions.
15283 (hurd_futimens): New function.
15284 * sysdeps/mach/hurd/futimesat.c: New file.
15285 * sysdeps/mach/hurd/utimensat.c: New file.
15286
15287 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15288
15289 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15290 UTIME_OMIT): New macros.
15291 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15292 before reverting to converting time spec to time value and calling
15293 __file_utimes.
15294 * sysdeps/mach/hurd/utime-helper.c: New file.
15295 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15296 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15297 reverting to utime_tvalue_from_tval and __file_utimes.
15298 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15299 (__lutimes): Just call hurd_futimens after lookup.
15300 * sysdeps/mach/hurd/utimes.c: Likewise.
15301
15302 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15303
15304 * bits/sigaction.h: Add include guard.
15305 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15306 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15307 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15308 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15309 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15310 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15311 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15312 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15313 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15314
15315 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15316
15317 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15318 -Wmaybe-uninitialized for -Os.
15319 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15320 this disabling.
15321
15322 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15323
15324 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15325 __INO_T_MATCHES_INO64_T is defined.
15326 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15327 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15328 of definition.
15329 * dirent/alphasort64.c: Likewise.
15330 * dirent/scandir.c: Likewise.
15331 * dirent/scandir64-tail.c: Likewise.
15332 * dirent/scandir64.c: Likewise.
15333 * dirent/scandirat.c: Likewise.
15334 * dirent/scandirat64.c: Likewise.
15335 * dirent/versionsort.c: Likewise.
15336 * dirent/versionsort64.c: Likewise.
15337 * include/dirent.h: Likewise.
15338
15339 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15340 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15341 for socketpair endpoint.
15342 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15343 WRITE_BUFFER_SIZE as buffer size for sending socket.
15344 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15345 issue on system where send is implemented with sendto syscall.
15346 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15347 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15348 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15349 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15350
15351 [BZ #21269]
15352 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15353 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15354 sa_restorer for vDSO case.
15355 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15356
15357 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15358
15359 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15360 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15361 * hurd/hurd/ioctl.h: Include <mach/port.h>
15362 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15363 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15364 <mach/mach_types.h> and <mach/message.h>.
15365 (headers): Move mach/param.h to bits/mach/param.h.
15366 * sysdeps/mach/i386/mach/param.h: Move file to ...
15367 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15368 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15369 of <mach/param.h>.
15370 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15371 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15372 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15373 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15374 trivial, for C++ conformity.
15375 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15376 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15377 Process mig output through $(migheadersed).
15378 * hurd/Makefile (migheadersed): Define variable.
15379 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15380 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15381 headers.
15382 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15383 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15384 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15385 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15386 <bits/types/sigset_t.h>.
15387 [!defined __USE_GNU]: Do not #error out.
15388 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15389 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15390 Include <stddef.h> and <bits/types/sigset_t.h>
15391 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15392 instead of sighandler_t.
15393 * stdlib/errno.h (error_t): Move definition to...
15394 * bits/types/error_t.h: ... new header.
15395 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15396 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15397 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15398 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15399 * hurd/hurd.h: Include <bits/types/error_t.h>
15400 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15401 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15402 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15403 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15404 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15405 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15406 * sysdeps/mach/hurd/futimens.c: New file.
15407
15408 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15409
15410 [BZ #22918]
15411 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15412 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15413 * nscd/gai.c (__nss_hosts_database): Readd definition.
15414 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15415 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15416 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15417
15418 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15419
15420 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15421 (ifunc_one): Likewise.
15422
15423 2018-03-01 DJ Delorie <dj@delorie.com>
15424
15425 [BZ #22342]
15426 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15427 key value.
15428
15429 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15430
15431 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15432 `match_pid' parameter.
15433 (td_ta_thr_iter): Update accordingly.
15434
15435 2018-03-01 Florian Weimer <fweimer@redhat.com>
15436
15437 * nptl/Makefile (install-lib-ldscripts): Remove.
15438 (install): Remove rule.
15439 ($(inst_libdir)/libpthread.so): Likewise.
15440
15441 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15442
15443 [BZ #22896]
15444 * localedata/locales/an_ES: update month and day names,
15445 improve d_fmt, improve postal_fmt, add country_post,
15446 add country_isbn
15447
15448 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15449
15450 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15451 Ukrainian instead of Bulgarian.
15452
15453 2018-03-01 Florian Weimer <fweimer@redhat.com>
15454
15455 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15456 reference.
15457
15458 2018-03-01 Florian Weimer <fweimer@redhat.com>
15459
15460 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15461 * nptl/Makefile (routines): Add pthread_atfork.
15462 (static-only-routines): Set to pthread_atfork.
15463 (libpthread-routines): Remove pthread_atfork.
15464 (libpthread-static-only-routines): Remove.
15465 (install): Update comment.
15466 (libpthread.so): Do not install libpthread_nonshared.a.
15467 (tests): Do not link with libpthread_nonshared.a.
15468 (generated): Remove libpthread_nonshared.a.
15469 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15470 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15471 with libpthread_nonshared.a.
15472
15473 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15474
15475 [BZ #22902]
15476 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15477 (libc_feholdexcept_setroundf128): New macro.
15478 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15479
15480 [BZ #15105]
15481 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15482 libc_hidden_def.
15483 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15484 * include/inttypes.h: New file.
15485
15486 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15487
15488 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15489 -Os in two more places.
15490
15491 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15492
15493 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15494 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15495 be sorted correctly at the moment because of a bug.
15496
15497 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15498
15499 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15500 treat ñ as a primary different character, sync the collation
15501 for Spanish with CLDR.
15502 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15503 * localedata/Makefile: Add new test files.
15504 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15505 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15506 collation order.
15507 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15508 * localedata/am_ET.UTF-8.in: New test file.
15509 * localedata/az_AZ.UTF-8.in: Likewise.
15510 * localedata/be_BY.UTF-8.in: Likewise.
15511 * localedata/ber_DZ.UTF-8.in: Likewise.
15512 * localedata/ber_MA.UTF-8.in: Likewise.
15513 * localedata/bg_BG.UTF-8.in: Likewise.
15514 * localedata/br_FR.UTF-8.in: Likewise.
15515 * localedata/cmn_TW.UTF-8.in: Likewise.
15516 * localedata/crh_UA.UTF-8.in: Likewise.
15517 * localedata/csb_PL.UTF-8.in: Likewise.
15518 * localedata/cv_RU.UTF-8.in: Likewise.
15519 * localedata/cy_GB.UTF-8.in: Likewise.
15520 * localedata/dz_BT.UTF-8.in: Likewise.
15521 * localedata/eo.UTF-8.in: Likewise.
15522 * localedata/es_ES.UTF-8.in: Likewise.
15523 * localedata/fa_IR.UTF-8.in: Likewise.
15524 * localedata/fi_FI.UTF-8.in: Likewise.
15525 * localedata/fil_PH.UTF-8.in: Likewise.
15526 * localedata/fur_IT.UTF-8.in: Likewise.
15527 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15528 * localedata/ha_NG.UTF-8.in: Likewise.
15529 * localedata/ig_NG.UTF-8.in: Likewise.
15530 * localedata/ik_CA.UTF-8.in: Likewise.
15531 * localedata/kk_KZ.UTF-8.in: Likewise.
15532 * localedata/ku_TR.UTF-8.in: Likewise.
15533 * localedata/ky_KG.UTF-8.in: Likewise.
15534 * localedata/ln_CD.UTF-8.in: Likewise.
15535 * localedata/mi_NZ.UTF-8.in: Likewise.
15536 * localedata/ml_IN.UTF-8.in: Likewise.
15537 * localedata/mn_MN.UTF-8.in: Likewise.
15538 * localedata/mr_IN.UTF-8.in: Likewise.
15539 * localedata/mt_MT.UTF-8.in: Likewise.
15540 * localedata/nb_NO.UTF-8.in: Likewise.
15541 * localedata/om_KE.UTF-8.in: Likewise.
15542 * localedata/os_RU.UTF-8.in: Likewise.
15543 * localedata/ps_AF.UTF-8.in: Likewise.
15544 * localedata/ro_RO.UTF-8.in: Likewise.
15545 * localedata/ru_RU.UTF-8.in: Likewise.
15546 * localedata/sc_IT.UTF-8.in: Likewise.
15547 * localedata/se_NO.UTF-8.in: Likewise.
15548 * localedata/sq_AL.UTF-8.in: Likewise.
15549 * localedata/sv_SE.UTF-8.in: Likewise.
15550 * localedata/szl_PL.UTF-8.in: Likewise.
15551 * localedata/tg_TJ.UTF-8.in: Likewise.
15552 * localedata/tk_TM.UTF-8.in: Likewise.
15553 * localedata/tt_RU.UTF-8.in: Likewise.
15554 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15555 * localedata/ug_CN.UTF-8.in: Likewise.
15556 * localedata/uz_UZ.UTF-8.in: Likewise.
15557 * localedata/vi_VN.UTF-8.in: Likewise.
15558 * localedata/yi_US.UTF-8.in: Likewise.
15559 * localedata/yo_NG.UTF-8.in: Likewise.
15560 * localedata/zh_CN.UTF-8.in: Likewise.
15561 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15562 file and fix bugs in the collation.
15563 * localedata/locales/az_AZ: Likewise.
15564 * localedata/locales/be_BY: Likewise.
15565 * localedata/locales/ber_DZ: Likewise.
15566 * localedata/locales/ber_MA: Likewise.
15567 * localedata/locales/bg_BG: Likewise.
15568 * localedata/locales/br_FR: Likewise.
15569 * localedata/locales/br_FR@euro: Likewise.
15570 * localedata/locales/ca_ES: Likewise.
15571 * localedata/locales/cns11643_stroke: Likewise.
15572 * localedata/locales/crh_UA: Likewise.
15573 * localedata/locales/cs_CZ: Likewise.
15574 * localedata/locales/csb_PL: Likewise.
15575 * localedata/locales/cv_RU: Likewise.
15576 * localedata/locales/cy_GB: Likewise.
15577 * localedata/locales/da_DK: Likewise.
15578 * localedata/locales/dz_BT: Likewise.
15579 * localedata/locales/en_CA: Likewise.
15580 * localedata/locales/eo: Likewise.
15581 * localedata/locales/es_CU: Likewise.
15582 * localedata/locales/es_EC: Likewise.
15583 * localedata/locales/es_ES: Likewise.
15584 * localedata/locales/es_US: Likewise.
15585 * localedata/locales/et_EE: Likewise.
15586 * localedata/locales/fa_IR: Likewise.
15587 * localedata/locales/fi_FI: Likewise.
15588 * localedata/locales/fil_PH: Likewise.
15589 * localedata/locales/fur_IT: Likewise.
15590 * localedata/locales/gez_ER@abegede: Likewise.
15591 * localedata/locales/ha_NG: Likewise.
15592 * localedata/locales/hr_HR: Likewise.
15593 * localedata/locales/hsb_DE: Likewise.
15594 * localedata/locales/hu_HU: Likewise.
15595 * localedata/locales/ig_NG: Likewise.
15596 * localedata/locales/ik_CA: Likewise.
15597 * localedata/locales/is_IS: Likewise.
15598 * localedata/locales/iso14651_t1_pinyin: Likewise.
15599 * localedata/locales/kk_KZ: Likewise.
15600 * localedata/locales/ku_TR: Likewise.
15601 * localedata/locales/ky_KG: Likewise.
15602 * localedata/locales/ln_CD: Likewise.
15603 * localedata/locales/lt_LT: Likewise.
15604 * localedata/locales/lv_LV: Likewise.
15605 * localedata/locales/mi_NZ: Likewise.
15606 * localedata/locales/ml_IN: Likewise.
15607 * localedata/locales/mn_MN: Likewise.
15608 * localedata/locales/mr_IN: Likewise.
15609 * localedata/locales/mt_MT: Likewise.
15610 * localedata/locales/nb_NO: Likewise.
15611 * localedata/locales/om_KE: Likewise.
15612 * localedata/locales/os_RU: Likewise.
15613 * localedata/locales/pl_PL: Likewise.
15614 * localedata/locales/ps_AF: Likewise.
15615 * localedata/locales/ro_RO: Likewise.
15616 * localedata/locales/ru_RU: Likewise.
15617 * localedata/locales/ru_UA: Likewise.
15618 * localedata/locales/sc_IT: Likewise.
15619 * localedata/locales/se_NO: Likewise.
15620 * localedata/locales/si_LK: Likewise.
15621 * localedata/locales/sq_AL: Likewise.
15622 * localedata/locales/sv_FI: Likewise.
15623 * localedata/locales/sv_FI@euro: Likewise.
15624 * localedata/locales/sv_SE: Likewise.
15625 * localedata/locales/szl_PL: Likewise.
15626 * localedata/locales/tg_TJ: Likewise.
15627 * localedata/locales/ti_ER: Likewise.
15628 * localedata/locales/tk_TM: Likewise.
15629 * localedata/locales/tl_PH: Likewise.
15630 * localedata/locales/tr_TR: Likewise.
15631 * localedata/locales/tt_RU: Likewise.
15632 * localedata/locales/tt_RU@iqtelif: Likewise.
15633 * localedata/locales/ug_CN: Likewise.
15634 * localedata/locales/uk_UA: Likewise.
15635 * localedata/locales/uz_UZ: Likewise.
15636 * localedata/locales/uz_UZ@cyrillic: Likewise.
15637 * localedata/locales/vi_VN: Likewise.
15638 * localedata/locales/yi_US: Likewise.
15639 * localedata/locales/yo_NG: Likewise.
15640
15641 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15642
15643 * gen-locales.mk: Make test files which contain @ modifiers in their
15644 name work.
15645 * localedata/gen-locale.sh: Likewise.
15646
15647 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15648
15649 * posix/tst-fnmatch.input: Fix results for range expressions
15650 for non C locales.
15651 * posix/tst-regexloc.c: Do not use a range expression for
15652 de_DE.ISO-8859-1 locale.
15653
15654 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15655
15656 * posix/bug-regex5.c: Fix test case because with the new
15657 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15658 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15659 file.
15660
15661 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15662
15663 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15664 downloaded from ISO, the collation order of @-. and space has changed.
15665 Therefore, this test file needed to be adapted.
15666 * localedata/fr_CA.UTF-8.in: Likewise.
15667 * localedata/fr_FR.UTF-8.in: Likewise.
15668 * localedata/uk_UA.UTF-8.in: Likewise.
15669
15670 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15671
15672 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15673 order of ȥ in the new iso14651_t1_common file.
15674 * localedata/pl_PL.UTF-8.in: Likewise.
15675
15676 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15677
15678 * localedata/locales/iso14651_t1_common: Add sections for various
15679 scripts to the iso14651_t1_common file.
15680
15681 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15682
15683 * localedata/locales/iso14651_t1_common: Use the code point of a
15684 character in the fourth collation level instead of IGNORE for all
15685 entries which have IGNORE on all 4 levels.
15686
15687 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15688
15689 * localedata/locales/iso14651_t1_common: Add some convenient collation
15690 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15691 rules similar to those in CLDR.
15692
15693 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15694
15695 * localedata/locales/iso14651_t1_common: The new version of this
15696 file downloaded from ISO contained several syntax errors which
15697 are fixed by this patch.
15698
15699 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15700
15701 * localedata/locales/iso14651_t1_common: replace all <U.....>
15702 with <U000.....> because glibc understands only 4 digit or 8 digit
15703
15704 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15705
15706 * localedata/locales/iso14651_t1_common: Necessary changes
15707 to make the file downloaded from ISO usable by glibc.
15708
15709 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15710
15711 [BZ #14095]
15712 * localedata/locales/iso14651_t1_common: Update file to
15713 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15714
15715 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15716
15717 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15718 of <nptl/pthreadP.h>
15719 (thread_attr_compare): Move function to...
15720 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15721 * sysdeps/nptl/timer_routines.h: ... new header.
15722 * sysdeps/mach/hurd/gai_misc.h: New file.
15723
15724 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15725
15726 * string/strcoll_l.c: Include <libc-diag.h>.
15727 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15728 declarations of seq1 and seq2.
15729
15730 [BZ #15105]
15731 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15732 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15733
15734 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15735
15736 [BZ #22433]
15737 [BZ #22807]
15738 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15739 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15740 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15741 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15742 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15743 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15744
15745 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15746
15747 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15748 macros used in __ptrace_request.
15749
15750 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15751
15752 [BZ #22792]
15753 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15754 to $(CC).
15755 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15756 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15757 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15758 <tcb-offsets.h>.
15759
15760 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15761
15762 [BZ #15105]
15763 * ctype/ctype.c (tolower): Use libc_hidden_def.
15764 (toupper): Likewise.
15765 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15766 [!_ISOMAC] (toupper): Likewise.
15767
15768 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15769
15770 * localedata/Makefile: Remove --quiet argument when
15771 installing locales
15772
15773 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15774
15775 [BZ #17438]
15776 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15777 in d_fmt.
15778 * localedata/locales/pt_PT (LC_TIME): likewise
15779
15780 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15781
15782 [BZ #22646]
15783 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15784 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15785 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15786
15787 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15788
15789 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15790
15791 * nptl/Makefile (routines): Remove unregister-atfork.
15792 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15793 (fork_handler_alloc): Remove function.
15794 (fork_handlers, fork_handler_init): New variables.
15795 (__fork_lock): Rename to atfork_lock.
15796 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15797 to use a dynamic array to add/remove atfork handlers.
15798 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15799 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15800 Remove declaration.
15801 (fork_handler): Remove next, refcntr, and need_signal member.
15802 (__run_fork_handler_type): New enum.
15803 (__run_fork_handlers): New prototype.
15804 * nptl/register-atfork.c: Remove file.
15805 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15806
15807 * sysdeps/nptl/nptl-signals.h: Move to ...
15808 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15809 comments.
15810 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15811 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15812 unnecessary check for SIGTIMER.
15813 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15814 remove unnecessary removal of SIGTIMER.
15815 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15816 include-signals.h rename.
15817 * nptl/pthreadP.h: Likewise.
15818 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15819 __is_internal_signal instead of __nptl_is_internal_signal.
15820
15821 2018-02-22 Andrew Waterman <andrew@sifive.com>
15822
15823 [BZ # 22884]
15824 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15825 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15826 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15827 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15828
15829 2018-02-22 DJ Delorie <dj@delorie.com>
15830
15831 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15832
15833 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15834
15835 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15836 do_misaligned, not misaligned8.
15837
15838 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15839
15840 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15841 Add memcpy_thunderx2.
15842 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15843 Increment to 4.
15844 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15845 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15846 and IS_THUNDERX2PA checks.
15847 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15848 Use macro to set name appropriately.
15849 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15850 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15851 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15852 New macro.
15853 (IS_THUNDERX2): New macro.
15854
15855 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15856
15857 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15858
15859 2018-02-21 Zack Weinberg <zackw@panix.com>
15860
15861 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15862 Define here, unconditionally.
15863 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15864 * libio/libioP.h: Remove #if 0 blocks.
15865 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15866 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15867 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15868
15869 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15870 Assume weak_alias is always defined.
15871
15872 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15873 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15874 Remove #if 0 and #ifdef TODO blocks.
15875 Assume text_set_element is always defined.
15876
15877 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15878 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15879 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15880
15881 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15882 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15883 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15884 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15885 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15886 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15887 Reformat bit flags for _flags field to make occupancy clearer.
15888 Update commentary.
15889 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15890 Keep definitions consistent with those in libio/libio.h.
15891
15892 * libio/libio.h (_IO_file_flags): Remove macro.
15893 All uses changed to _flags.
15894
15895 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15896 (__HAVE_COLUMN, _IO_BE): Don't define.
15897 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15898 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15899 * libio/libioP.h (EOF): Don't define.
15900 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15901 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15902 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15903 testing _IO_UNIFIED_JUMPTABLES.
15904
15905 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15906 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15907 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15908 (_IO_size_t): Delete; all uses changed to size_t.
15909 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15910 (_IO_off_t): Delete; all uses changed to off_t.
15911 (_IO_off64_t): Delete; all uses changed to off64_t.
15912 (_IO_pid_t): Delete; all uses changed to pid_t.
15913 (_IO_uid_t): Delete; all uses changed to uid_t.
15914 (_IO_wint_t): Delete; all uses changed to wint_t.
15915 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15916 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15917 (_IO_cookie_io_functions_t): Delete; all uses changed to
15918 cookie_io_functions_t.
15919 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15920 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15921 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15922 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15923
15924 * libio/iofopncook.c: Remove unnecessary forward declarations.
15925 * libio/iolibio.h: Correct outdated commentary.
15926 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15927 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15928 Remove unnecessary casts.
15929 * stdio-common/getline.c: Use _IO_getdelim directly.
15930 Don't redefine ssize_t.
15931 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15932 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15933 Remove outdated comments.
15934 * stdio-common/vfscanf.c: Don't redefine va_list.
15935
15936 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15937 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15938 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15939 which are always true, and __cplusplus, which is always false.
15940
15941 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15942
15943 [BZ #15105]
15944 [BZ #19463]
15945 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15946 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15947 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15948 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15949 libc_hidden_proto.
15950 [!_ISOMAC] (putc_unlocked): Likewise.
15951 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15952 define inline if [__USE_EXTERN_INLINES].
15953 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15954 putc_unlocked.
15955
15956 [BZ #15105]
15957 [BZ #19463]
15958 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15959 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15960 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15961 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15962 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15963 getc_unlocked.
15964 * time/tzfile.c (__tzfile_read): Likewise.
15965
15966 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15967
15968 [BZ #22517]
15969 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15970
15971 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15972
15973 * io/fcntl.h: Fix a typo in a comment.
15974
15975 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15976
15977 [BZ #22862]
15978 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15979 define _DEFAULT_SOURCE.
15980 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15981
15982 2018-02-21 Florian Weimer <fweimer@redhat.com>
15983
15984 [BZ #20890]
15985 * elf/cache.c (save_cache): Call fsync on temporary file before
15986 renaming it.
15987 (save_aux_cache): Call fdatasync on temporary file before renaming
15988 it.
15989
15990 2018-02-21 Florian Weimer <fweimer@redhat.com>
15991
15992 [BZ #22787]
15993 * include/caller.h: Remove file.
15994 * elf/dl-caller.c: Likewise.
15995 * elf/Makefile (dl-routines): Remove dl-caller.
15996 (shared-only-routines): Do not add dl-caller.
15997 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15998 __check_caller.
15999 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
16000 member.
16001 (dl_open_worker): Do not call __check_caller.
16002 (_dl_open): Do not set caller_dl_open member.
16003 * elf/rtld.c (_rtld_global_ro): Do not initialize
16004 _dl_check_caller member.
16005 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
16006 _dl_check_caller member.
16007 (_dl_check_caller): Remove declaration.
16008 * sysdeps/unix/sysv/linux/dl-execstack.c
16009 (_dl_make_stack_executable): Do not call __check_caller.
16010
16011 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
16012
16013 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
16014 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16015
16016 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16017
16018 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16019 description.
16020
16021 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16022
16023 [BZ #16335]
16024 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16025 of 199606L, 200112L, and 200809L.
16026 (_XOPEN_SOURCE): Document special values of 600 and 700.
16027 (_ISOC11_SOURCE): Document macro.
16028 (_ATFILE_SOURCE): Likewise.
16029 (_FORTIFY_SOURCE): Likewise.
16030
16031 2018-02-19 Joseph Myers <joseph@codesourcery.com>
16032
16033 [BZ #15105]
16034 [BZ #19463]
16035 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16036 and define as weak alias of __ferror_unlocked. Use
16037 libc_hidden_weak.
16038 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16039 libc_hidden_proto.
16040 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16041 function if [__USE_EXTERN_INLINES].
16042 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16043 ferror_unlocked.
16044
16045 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
16046
16047 [BZ #6889]
16048 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16049
16050 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16051
16052 [BZ #22818]
16053 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16054 the GLIBC_2.1 version.
16055
16056 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16057
16058 [BZ #21508]
16059 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16060 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16061 intl/tst-gettext-de.po from po/de.po by removing the
16062 POT-Creation-Date line.
16063 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16064 ../po/de.po.
16065 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16066 ../po/de.po.
16067
16068 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16069
16070 * mach/Makefile (headers): Add mach/param.h.
16071 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16072 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16073 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16074 (__ptsname_r): Move implementation to...
16075 (__ptsname_internal): ... new function. Add filling the STP
16076 structure.
16077
16078 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
16079
16080 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16081 idouble to 1 ULP.
16082
16083 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
16084
16085 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16086 syntax.
16087
16088 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
16089
16090 * nptl/Makefile (tst-mutex8-ENV): Delete.
16091 * nptl/tst-mutex8.c (check_type):
16092 Add runtime check if mutex will be elided.
16093
16094 2018-02-15 Joseph Myers <joseph@codesourcery.com>
16095
16096 [BZ #20980]
16097 [BZ #21234]
16098 * manual/install.texi (Configuring and compiling): Describe
16099 passing CC and CFLAGS on configure command line, not as
16100 environment variables. Use @code markup on those variables.
16101 Specify what options go in CC and what go in CFLAGS. Note the
16102 requirement to compile with optimization.
16103 * INSTALL: Regenerated.
16104
16105 [BZ #18124]
16106 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16107 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16108 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16109 __sigprocmask instead of sigprocmask.
16110 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16111 Likewise.
16112 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16113 __sigsetjmp and sigprocmask.
16114
16115 [BZ #15105]
16116 * include/argz.h (argz_next): Use libc_hidden_proto.
16117 (__argz_next): Likewise.
16118 * string-argz-next.c (__argz_next): Use libc_hidden_def.
16119 (argz_next): Use libc_hidden_weak.
16120
16121 [BZ #15105]
16122 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16123 libc_hidden_proto.
16124 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16125 libc_hidden_def.
16126
16127 [BZ #15105]
16128 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16129 libc_hidden_proto.
16130 * libio/iofputs.c (fputs): Use libc_hidden_weak.
16131
16132 [BZ #15105]
16133 [BZ #19463]
16134 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16135 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
16136 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16137 (__feof_unlocked): New declaration, and inline function if
16138 [__USE_EXTERN_INLINES].
16139 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16140 instead of feof_unlocked.
16141 * intl/localealias.c [_LIBC] (FEOF): Likewise.
16142 * nss/nsswitch.c (nss_parse_file): Likewise.
16143 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16144 Likewise.
16145 * time/getdate.c (__getdate_r): Likewise.
16146 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16147 Define as macro to call __feof_unlocked.
16148
16149 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16150
16151 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16152
16153 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16154
16155 * math/Makefile: Remove mpexp.c and mplog.c
16156 * sysdeps/i386/fpu/mpexp.c: Delete file.
16157 * sysdeps/i386/fpu/mplog.c: Likewise.
16158 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16159 * sysdeps/ia64/fpu/mplog.c: Likewise.
16160 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16161 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16162 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16163 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16164 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16165 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16166 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16167 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16168 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16169 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16170 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16171 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16172 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16173 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16174 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16175 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16176
16177 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16178
16179 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16180
16181 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16182
16183 * sysdeps/sh/libm-test-ulps: Update.
16184
16185 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16186
16187 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16188 idouble to 1 ULP.
16189
16190 2018-02-12 Zack Weinberg <zackw@panix.com>
16191
16192 [BZ #19239]
16193 * posix/sys/types.h: Don't include sys/sysmacros.h.
16194 * misc/sys/sysmacros.h: Remove the conditional deprecation
16195 warnings for the macros defined by this header.
16196
16197 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16198
16199 * manual/probes.texi: Remove slowexp probes.
16200 * math/Makefile: Remove slowexp.
16201 * sysdeps/generic/math_private.h (__slowexp): Remove.
16202 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16203 document error bounds.
16204 * sysdeps/i386/fpu/slowexp.c: Remove.
16205 * sysdeps/ia64/fpu/slowexp.c: Remove.
16206 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16207 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16208 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16209 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16210 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16211 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16212 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16213 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16214 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16215 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16216 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16217
16218 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16219
16220 [BZ #13932]
16221 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16222 * benchtests/pow-inputs: Update comment for slow path cases.
16223 * manual/probes.texi (slowpow_p10): Delete removed probe.
16224 (slowpow_p10): Likewise.
16225 * math/Makefile: Remove halfulp.c and slowpow.c.
16226 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16227 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16228 (__halfulp): Remove.
16229 (__slowpow): Remove.
16230 * sysdeps/i386/fpu/halfulp.c: Delete file.
16231 * sysdeps/i386/fpu/slowpow.c: Likewise.
16232 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16233 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16234 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16235 improve comments and add error analysis.
16236 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16237 (power1): Remove function:
16238 (log1): Remove error argument, add error analysis.
16239 (my_log2): Remove function.
16240 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16241 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16242 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16243 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16244 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16245 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16246 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16247 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16248 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16249 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16250 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16251 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16252 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16253 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16254
16255 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16256
16257 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16258 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16259
16260 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16261
16262 [BZ #22433]
16263 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16264 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16265 and PTRACE_SETHBPREGS.
16266
16267 2018-02-10 Zack Weinberg <zackw@panix.com>
16268
16269 [BZ #22830]
16270 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16271 correctly.
16272 * malloc/tst-malloc-stats-cancellation.c: New test case.
16273 * malloc/Makefile: Add new test case.
16274
16275 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16276
16277 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16278
16279 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16280
16281 * math/Makefile (libm-narrow-fns): Add add.
16282 (libm-test-funcs-narrow): Likewise.
16283 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16284 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16285 * math/gen-auto-libm-tests.c (test_functions): Add add.
16286 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16287 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16288 (NARROW_ADD_TRIVIAL): Likewise.
16289 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16290 macro.
16291 (__daddl): Likewise.
16292 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16293 dadd.
16294 (CFLAGS-nldbl-dadd.c): New variable.
16295 (CFLAGS-nldbl-fadd.c): Likewise.
16296 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16297 __nldbl_daddl.
16298 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16299 prototype.
16300 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16301 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16302 * math/auto-libm-test-in: Add tests of add.
16303 * math/auto-libm-test-out-narrow-add: New generated file.
16304 * math/libm-test-narrow-add.inc: New file.
16305 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16306 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16307 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16308 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16309 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16310 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16311 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16312 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16313 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16314 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16315 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16316 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16317 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16318 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16319 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16320 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16321 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16322 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16323 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16324 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16325 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16326 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16327 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16328 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16329 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16330 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16331 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16332 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16333 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16334 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16335 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16336 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16339 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16341 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16342 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16343 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16344 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16345 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16346 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16347 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16348 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16349 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16350 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16351
16352 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16353 (f128-pairs): New variable.
16354 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16355 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16356 to CFLAGS.
16357 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16358 Also make tests add $(f128-loader-link) to gnulib-tests.
16359
16360 2018-02-09 DJ Delorie <dj@redhat.com>
16361
16362 [BZ #22827]
16363 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16364 64-bit ELF type for 64-bit ELF objects.
16365
16366 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16367
16368 * math/libm-test-driver.c (snan_tests_arg): New variable.
16369 * math/libm-test-support.h (snan_tests_arg): New declaration.
16370 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16371
16372 * math/Makefile (test-type-pairs): New variable.
16373 (test-type-pairs-f64xf128-yes): Likewise.
16374 (tests): Add test-narrow-macros.
16375 (libm-test-funcs-narrow): New variable.
16376 (libm-test-c-narrow): Likewise.
16377 (generated): Add $(libm-test-c-narrow).
16378 (libm-tests-base-narrow): New variable.
16379 (libm-tests-narrow): Likewise.
16380 (libm-tests): Add $(libm-tests-narrow).
16381 (libm-tests-for-type): Handle $(libm-tests-narrow).
16382 (libm-test-c-narrow-obj): New variable.
16383 ($(libm-test-c-narrow-obj)): New rule.
16384 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16385 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16386 $(o-iterator) to set dependencies and CFLAGS.
16387 * math/gen-auto-libm-tests.c: Document use for narrowing
16388 functions.
16389 (output_for_one_input_case): Take argument NARROW.
16390 (generate_output): Likewise. Update call to
16391 output_for_one_input_case.
16392 (main): Take --narrow option. Update call to generate_output.
16393 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16394 (apply_lit): Update call to _apply_lit.
16395 (apply_arglit): New function.
16396 (parse_args): Handle "a" arguments.
16397 (parse_auto_input): Handle format names using ":".
16398 * math/README.libm-test: Document "a" parameter type.
16399 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16400 (ARG_TYPE_TRUE_MIN): Likewise.
16401 (ARG_TYPE_MAX): Likwise.
16402 (ARG_MIN_EXP): Likewise.
16403 (ARG_MAX_EXP): Likewise.
16404 (ARG_MANT_DIG): Likewise.
16405 (TEST_COND_arg_ibm128): Likewise.
16406 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16407 (TEST_COND_arg_fmt): New macro.
16408 (init_max_error): Update prototype.
16409 * math/libm-test-support.c (test_ibm128): New variable.
16410 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16411 instead of using [TEST_COND_ibm128] conditional.
16412 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16413 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16414 [TEST_NARROW] (TEST_MSG): New definition.
16415 (arg_plus_zero): New macro.
16416 (arg_minus_zero): Likewise.
16417 (arg_plus_infty): Likewise.
16418 (arg_minus_infty): Likewise.
16419 (arg_qnan_value_pl): Likewise.
16420 (arg_qnan_value): Likewise.
16421 (arg_snan_value_pl): Likewise.
16422 (arg_snan_value): Likewise.
16423 (arg_max_value): Likewise.
16424 (arg_min_value): Likewise.
16425 (arg_min_subnorm_value): Likewise.
16426 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16427 (RUN_TEST_LOOP_aa_f): New macro.
16428 (TEST_SUFF): New macro.
16429 (TEST_SUFF_STR): Likewise.
16430 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16431 (TEST_COND_any_ibm128): New macro.
16432 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16433 this_func. Update call to init_max_error.
16434 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16435 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16436 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16437 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16438 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16439 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16440 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16441 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16442 * math/test-math-vector.h (TEST_NARROW): Likewise.
16443 * math/test-arg-double.h: New file.
16444 * math/test-arg-float128.h: Likewise.
16445 * math/test-arg-float32x.h: Likewise.
16446 * math/test-arg-float64.h: Likewise.
16447 * math/test-arg-float64x.h: Likewise.
16448 * math/test-arg-ldouble.h: Likewise.
16449 * math/test-math-narrow.h: Likewise.
16450 * math/test-narrow-macros.c: Likewise.
16451 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16452 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16453 test-narrow-macros-ldbl-64.
16454 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16455
16456 * math/bits/mathcalls-narrow.h: New file.
16457 * include/bits/mathcalls-narrow.h: Likewise.
16458 * math/math-narrow.h: Likewise.
16459 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16460 (__MATHCALL_NARROW_ARGS_2): Likewise.
16461 (__MATHCALL_NARROW_ARGS_3): Likewise.
16462 (__MATHCALL_NARROW_NORMAL): Likewise.
16463 (__MATHCALL_NARROW_REDIR): Likewise.
16464 (__MATHCALL_NARROW): Likewise.
16465 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16466 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16467 defined.
16468 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16469 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16470 (libm-narrow-fns): New variable.
16471 (libm-narrow-types-basic): Likewise.
16472 (libm-narrow-types-ldouble-yes): Likewise.
16473 (libm-narrow-types-float128-yes): Likewise.
16474 (libm-narrow-types-float128-alias-yes): Likewise.
16475 (libm-narrow-types): Likewise.
16476 (libm-routines): Add narrowing functions.
16477 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16478 (libc_feholdexcept_setroundf128): New macro.
16479 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16480 * sysdeps/ieee754/float128/float128_private.h: Include
16481 <math/math-narrow.h>.
16482 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16483 Undefine and redefine.
16484 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16485 (libm_alias_float_ldouble): Undefine and redefine.
16486 (libm_alias_double_ldouble): Likewise.
16487
16488 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16489
16490 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16491
16492 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16493 FPCR/FPSR.
16494
16495 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16496
16497 * manual/creature.texi: Convert references to gcc.info to gcc.
16498 * manual/stdio.texi: Likewise.
16499 * manual/string.texi: Likewise.
16500
16501 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16502
16503 [BZ #17979]
16504 * posix/bits/types.h (__int_least8_t): New typedef.
16505 (__uint_least8_t): Likewise.
16506 (__int_least16_t): Likewise.
16507 (__uint_least16_t): Likewise.
16508 (__int_least32_t): Likewise.
16509 (__uint_least32_t): Likewise.
16510 (__int_least64_t): Likewise.
16511 (__uint_least64_t): Likewise.
16512 * sysdeps/generic/stdint.h (int_least8_t): Define using
16513 __int_least8_t.
16514 (int_least16_t): Define using __int_least16_t.
16515 (int_least32_t): Define using __int_least32_t.
16516 (int_least64_t): Define using __int_least64_t.
16517 (uint_least8_t): Define using __uint_least8_t.
16518 (uint_least16_t): Define using __uint_least16_t.
16519 (uint_least32_t): Define using __uint_least32_t.
16520 (uint_least64_t): Define using __uint_least64_t.
16521 * wcsmbs/uchar.h: Include <bits/types.h>.
16522 (char16_t): Define using __uint_least16_t conditional only on
16523 [!__USE_ISOCXX11].
16524 (char32_t): Define using __uint_least32_t conditional only on
16525 [!__USE_ISOCXX11].
16526 * wcsmbs/test-char-types.c: New file.
16527 * wcsmbs/Makefile (tests): Add test-char-types.
16528
16529 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16530 version to 4.0.1.
16531
16532 2018-02-07 Zack Weinberg <zackw@panix.com>
16533
16534 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16535 Delete all contents except for definitions of _G_HAVE_MMAP and
16536 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16537 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16538 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16539 change as above.
16540
16541 * libio/libio.h: Don't include bits/_G_config.h here.
16542 Include stddef.h with __need_wchar_t defined. Include
16543 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16544 Define _IO_iconv_t here, directly.
16545 Don't define _IO_HAVE_ST_BLKSIZE.
16546 * libio/libioP.h: Include _G_config.h here. Move include of
16547 shlib-compat.h up with rest of includes. Simplify conditionals
16548 controlling definition of _IO_JUMPS_OFFSET.
16549
16550 * csu/init.c: Remove always-true #if around entire file.
16551 Don't include stdio.h. Set _IO_stdin_used to hardwired
16552 constant 0x20001, and update commentary.
16553 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16554 Replace all uses of _G_va_list with __gnuc_va_list.
16555 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16556 instead of #if _IO_HAVE_ST_BLKSIZE.
16557 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16558 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16559 not #ifdef.
16560
16561 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16562 multiple-include guard to match.
16563 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16564 into this file.
16565 Remove preprocessor conditionals that are always true and/or
16566 redundant to other preprocessor conditionals in the same nest.
16567 Include shlib-compat.h unconditionally.
16568 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16569 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16570 defined after including stdio.h.
16571 Use __BEGIN_DECLS/__END_DECLS.
16572
16573 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16574 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16575 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16576
16577 2018-02-07 Zack Weinberg <zackw@panix.com>
16578
16579 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16580 New single-type headers split from _G_config.h.
16581 * libio/bits/types/cookie_io_functions_t.h
16582 * libio/bits/types/struct_FILE.h
16583 New single-type headers split from libio.h.
16584
16585 * libio/Makefile: Install the above new headers. Don't install
16586 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16587 bits/libio-ldbl.h.
16588 * libio/_G_config.h, libio/libio.h: Delete file.
16589
16590 * libio/bits/libio.h: Remove improper-inclusion guard.
16591 Include stdio.h and don't repeat anything that it does.
16592 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16593 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16594 __io_read_fn as cookie_read_function_t,
16595 __io_write_fn as cookie_write_function_t,
16596 __io_seek_fn as cookie_seek_function_t,
16597 __io_close_fn as cookie_close_function_t,
16598 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16599 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16600 here, in the "compatibility defines" section. Remove an #if 0
16601 block. Use the "body" macros from bits/types/struct_FILE.h to
16602 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16603 and _IO_ferror_unlocked.
16604 Move prototypes of __uflow and __overflow...
16605
16606 * libio/stdio.h: ...here. Don't include bits/libio.h.
16607 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16608 directly from stdarg.h. Include bits/types/__fpos_t.h,
16609 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16610 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16611 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16612 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16613 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16614 __ssize_t, not _IO_ssize_t. Unconditionally define
16615 BUFSIZ as 8192 and EOF as (-1).
16616
16617 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16618 macros from bits/types/struct_FILE.h instead of _IO_* macros
16619 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16620 instead of _IO_ssize_t.
16621 * libio/bits/stdio2.h: Similarly.
16622
16623 * libio/iolibio.h: Add multiple-include guard.
16624 Include bits/libio.h after stdio.h.
16625 * libio/libioP.h: Add multiple-include guard.
16626 Include stdio.h and bits/libio.h before iolibio.h.
16627
16628 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16629 * include/bits/types/cookie_io_functions_t.h
16630 * include/bits/types/struct_FILE.h: New wrappers.
16631
16632 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16633 Get definitions of _G_fpos_t and _G_fpos64_t from
16634 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16635 respectively. Remove improper-inclusion guards.
16636
16637 * conform/data/stdio.h-data: Update expectations of va_list.
16638 * scripts/check-installed-headers.sh: Remove special case for
16639 libio.h and _G_config.h.
16640
16641 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16642
16643 [BZ #15105]
16644 [BZ #19463]
16645 * include/sys/sysmacros.h [!_ISOMAC]
16646 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16647 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16648 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16649 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16650 libc_hidden_proto.
16651 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16652 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16653 Likewise.
16654 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16655 Undefine and redefine to add use __gnu_dev_ prefix.
16656 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16657 Likewise.
16658 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16659 and define as hidden inline function.
16660 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16661 Likewise.
16662 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16663 Likewise.
16664 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16665 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16666 (gnu_dev_minor): Likewise.
16667 (gnu_dev_makedev): Likewise.
16668 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16669 makedev.
16670 * posix/wordexp.c (exec_comm_child): Likewise.
16671 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16672 instead of minor and __gnu_dev_major instead of major.
16673 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16674 __gnu_dev_major instead of major.
16675 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16676 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16677 instead of gnu_dev_minor.
16678 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16679 (SLAVE_P): Likewise.
16680 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16681 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16682 instead of major.
16683
16684 [BZ #21313]
16685 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16686 in another place.
16687 * locale/weightwc.h (findidx): Likewise.
16688
16689 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16690
16691 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16692 (slowlog_inexact): Likewise
16693 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16694 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16695
16696 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16697
16698 [BZ #22797]
16699 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16700 missing second underscore to parameter name.
16701
16702 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16703
16704 [BZ #14508]
16705 [BZ #15512]
16706 [BZ #17082]
16707 [BZ #20530]
16708 * bits/byteswap.h: Update file comment. Do not include
16709 <bits/byteswap-16.h>.
16710 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16711 constant.
16712 (__bswap_16): Define as inline function.
16713 (__bswap_constant_32): Reformat definition.
16714 (__bswap_32): Always define as inline function, not macro, using
16715 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16716 otherwise __bswap_constant_32.
16717 (__bswap_constant_64): Reformat definition. Do not use
16718 __extension__ here.
16719 (__bswap_64): Always define as inline function, not macro. Use
16720 __extension__ on function definition. Use __builtin_bswap64 if
16721 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16722 * string/test-endian-file-scope.c: New file.
16723 * string/test-endian-sign-conversion.c: Likewise.
16724 * string/Makefile (headers): Remove bits/byteswap-16.h.
16725 (tests): Add test-endian-file-scope and
16726 test-endian-sign-conversion.
16727 (CFLAGS-test-endian-sign-conversion.c): New variable.
16728 * bits/byteswap-16.h: Remove file.
16729 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16730 * sysdeps/ia64/bits/byteswap.h: Likewise.
16731 * sysdeps/m68k/bits/byteswap.h: Likewise.
16732 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16733 * sysdeps/s390/bits/byteswap.h: Likewise.
16734 * sysdeps/tile/bits/byteswap.h: Likewise.
16735 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16736 * sysdeps/x86/bits/byteswap.h: Likewise.
16737
16738 [BZ #17721]
16739 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16740 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16741 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16742 199901L] (__restrict): Define to restrict.
16743
16744 [BZ #19667]
16745 * string/testcopy.c: Include <support/support.h>. Do not include
16746 <malloc.h>. Use <support/test-driver.c>.
16747 (main): Rename to do_test. Make static. Use xmalloc instead of
16748 malloc.
16749
16750 [BZ #13575]
16751 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16752 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16753 (SSIZE_MAX): Define to INT_MAX.
16754 * posix/test-ssize-max.c: New file.
16755 * posix/Makefile (tests): Add test-ssize-max.
16756
16757 [BZ #19668]
16758 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16759 <support/support.h>. Do not include <malloc.h>.
16760 (query_auxv): Use xmalloc instead of malloc.
16761
16762 [BZ #14553]
16763 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16764 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16765 instead of loff_t.
16766
16767 2018-02-06 Florian Weimer <fweimer@redhat.com>
16768
16769 [BZ #18023]
16770 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16771 Use scratch_buffer instead of extend_alloca.
16772
16773 2018-02-06 Zack Weinberg <zackw@panix.com>
16774
16775 * libio/stdio.h: Don't define getc or putc as macros.
16776 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16777 not _IO_getc and _IO_putc.
16778
16779 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16780 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16781
16782 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16783
16784 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16785 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16786
16787 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16788
16789 [BZ #14890]
16790 * elf/elf.h (NT_PRFPREG): New macro.
16791 (NT_S390_VXRS_LOW): Likewise.
16792 (NT_S390_VXRS_HIGH): Likewise.
16793 (NT_S390_GS_CB): Likewise.
16794 (NT_S390_GS_BC): Likewise.
16795 (NT_S390_RI_CB): Likewise.
16796
16797 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16798 (MAP_SYNC): New macro.
16799 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16800 Likewise.
16801 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16802 (MAP_SYNC): Likewise.
16803 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16804 (MAP_SYNC): Likewise.
16805 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16806 (MAP_SYNC): Likewise.
16807 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16808 (MAP_SYNC): Likewise.
16809 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16810 (MAP_SYNC): Likewise.
16811 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16812 (MAP_SYNC): Likewise.
16813 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16814 Likewise.
16815 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16816 Likewise.
16817
16818 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16819 (MAP_SHARED_VALIDATE): New macro.
16820 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16821 (MAP_SHARED_VALIDATE): Likewise.
16822
16823 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16824
16825 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16826 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16827 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16828
16829 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16830
16831 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16832 (DT_NUM): Updated to 35.
16833
16834 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16835
16836 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16837 __builtin_expect with __glibc_likely and __glibc_unlikely.
16838 (elf_machine_rela): Likewise.
16839 (elf_machine_lazy_rel): Likewise.
16840
16841 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16842
16843 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16844 __builtin_expect with __glibc_likely and __glibc_unlikely.
16845 (elf_machine_lazy_rel): Likewise.
16846
16847 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16848
16849 [BZ #22638]
16850 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16851 SHARED.
16852 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16853
16854 2018-02-05 Andreas Schwab <schwab@suse.de>
16855
16856 [BZ #22761]
16857 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16858 string.
16859
16860 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16861
16862 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16863 not check against PTHREAD_STACK_MIN.
16864
16865 2018-02-02 Sean McKean <smckean83@gmail.com>
16866
16867 [BZ #22735]
16868 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16869
16870 2018-02-02 Florian Weimer <fweimer@redhat.com>
16871
16872 [BZ #22753]
16873 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16874 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16875 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16876 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16877 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16878 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16879 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16880 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16881 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16882 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16883 * misc/tst-preadvwritev2.c (do_test): Call it.
16884 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16885
16886 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16887
16888 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16889
16890 * benchtests/bench-memcmp.c: Print json instead of plain text.
16891
16892 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16893 every test run.
16894
16895 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16896
16897 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16898 version to 4.15.
16899 (s390_sthyi): New syscall.
16900
16901 * sysdeps/generic/ldbl-classify-compat.h: New file.
16902 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16903 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16904 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16905 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16906 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16907 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16908 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16909 <ldbl-classify-compat.h>.
16910 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16911 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16912 <ldbl-classify-compat.h>.
16913 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16914 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16915 <ldbl-classify-compat.h>.
16916 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16917 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16918 <ldbl-classify-compat.h>.
16919 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16920 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16921 <ldbl-classify-compat.h>.
16922 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16923 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16924 <ldbl-classify-compat.h>.
16925 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16926 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16927 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16928 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16929 * sysdeps/microblaze/math_private.h: Likewise.
16930 * sysdeps/nios2/math_private.h: Likewise.
16931 * sysdeps/sh/math_private.h: Likewise.
16932
16933 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16934 * sysdeps/m68k/coldfire/math_private.h: ... here.
16935 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16936 * sysdeps/tile/math_private.h: Likewise.
16937 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16938 Remove macro.
16939 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16940 Likewise.
16941
16942 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16943 Remove macro.
16944 (libc_fetestexcept): Likewise.
16945 (libc_feupdateenv_test): Likewise.
16946 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16947 (libc_fetestexcept): Likewise.
16948 (libc_feupdateenv_test): Likewise.
16949 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16950 (libc_fetestexcept): Likewise.
16951 (libc_feupdateenv_test): Likewise.
16952 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16953 (libc_fetestexcept): Likewise.
16954 (libc_feupdateenv_test): Likewise.
16955
16956 * sysdeps/generic/math_private.h
16957 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16958 New inline function.
16959 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16960 Likewise.
16961
16962 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16963 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16964 * sysdeps/generic/math_private.h
16965 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16966 inline function.
16967 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16968 Likewise.
16969 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16970 Likewise.
16971 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16972 Likewise.
16973 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16974 Likewise.
16975 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16976 Likewise.
16977 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16978 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16979 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16980 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16981 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16982 (__fegetenv): Likewise.
16983 (fesetenv): Likewise.
16984 (__fesetenv): Likewise.
16985 (feupdateenv): Likewise.
16986 (__feupdateenv): Likewise.
16987 (fegetround): Likewise.
16988 (__fegetround): Likewise.
16989 (fesetround): Likewise.
16990 (__fesetround): Likewise.
16991
16992 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16993 (feraiseexcept): New macro.
16994 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16995 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16996 Remove macro.
16997 (__feraiseexcept): Likewise.
16998 (feclearexcept): Likewise.
16999 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
17000 (__feraiseexcept): Likewise.
17001 (feclearexcept): Likewise.
17002 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
17003 (__feraiseexcept): Likewise.
17004 (feclearexcept): Likewise.
17005 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
17006 (__feraiseexcept): Likewise.
17007 (feclearexcept): Likewise.
17008 (fetestexcept): Likewise.
17009
17010 * sysdeps/m68k/coldfire/math-tests.h: New file.
17011
17012 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
17013 * sysdeps/m68k/bits/fenv.h: ... here.
17014 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17015 not define.
17016 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17017 Likewise.
17018 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17019 Likewise.
17020 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17021 Likewise.
17022 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17023 Likewise.
17024 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17025 Define to 0.
17026 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17027 (__FE_UNDEFINED): New enum constant.
17028 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17029 Do not define.
17030 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17031 Likewise.
17032 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17033 Likewise.
17034 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17035 to match generic bits/fenv.h.
17036 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17037 Do not define.
17038
17039 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17040 packed on bits.
17041 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17042 * soft-fp/half.h (union _FP_UNION_H): Likewise.
17043 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17044 * soft-fp/single.h (union _FP_UNION_S): Likewise.
17045
17046 2018-02-01 Carlos O'Donell <carlos@redhat.com>
17047 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
17048 Joseph Myers <joseph@codesourcery.com>
17049
17050 [BZ #21314]
17051 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17052 (__log1p): Disable -Wmaybe-uninitialized for -Os around
17053 computation using c.
17054 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17055 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17056 computation using c.
17057
17058 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17059
17060 * version.h (RELEASE): Set to "development".
17061 (VERSION): Set to "2.27.9000".
17062 * NEWS (2.28): New section.
17063
17064 * version.h (RELEASE): Set to "stable".
17065 (VERSION): Set to "2.27".
17066 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17067
17068 * NEWS: Add the list of bugs fixed in 2.27.
17069
17070 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17071
17072 * stdlib/test-atexit-race-common.c (do_test): Check stack size
17073 against PTHREAD_STACK_MIN.
17074
17075 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17076
17077 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17078 New entries.
17079 (Rafal Luzynski, Andreas Schwab): Update.
17080
17081 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
17082
17083 [BZ #10871]
17084 * NEWS: List the languages which actually use the alternative
17085 months feature in this release. Also explain that "alt_mon" and
17086 "ab_alt_mon" are optional.
17087
17088 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
17089
17090 [BZ #22765]
17091 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17092
17093 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
17094
17095 * manual/install.texi (Tools for Compilation): Update the newest
17096 versions of gcc, binutils, texinfo, gawk, bison, and sed.
17097 * INSTALL: Regenerated.
17098
17099 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17100
17101 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17102 instead of __builtin_expect.
17103
17104 2018-01-30 Florian Weimer <fweimer@redhat.com>
17105
17106 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17107 data.
17108 * nss/tst-nss-getpwent.c (do_test): Likewise.
17109
17110 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
17111
17112 [BZ #10871]
17113 * localedata/locales/hr_HR (mon): Rename to...
17114 (alt_mon): This.
17115 (mon): Import from CLDR (genitive case).
17116 (d_t_fmt): Update the comment.
17117
17118 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
17119
17120 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17121 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17122 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17123
17124 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17125
17126 * mach/Versions: Fix version when __mach_host_self_ was added.
17127 * hurd/Versions: Fix version when _hurd_exec_paths was added.
17128 * sysdeps/mach/hurd/i386/ld.abilist: New file.
17129 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17130 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17131 * sysdeps/mach/hurd/i386/libc.abilist: New file.
17132 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17133 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17134 * sysdeps/mach/hurd/i386/libm.abilist: New file.
17135 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17136 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17137 * sysdeps/mach/hurd/i386/librt.abilist: New file.
17138 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17139 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17140 || to respect codestyle.
17141 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17142 (do_test_bz20181): Rename accordingly.
17143 * malloc/malloc.c: Include <assert.h>.
17144 (assert): Do not define.
17145 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17146 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17147 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17148 * sysdeps/mach/hurd/hp-timing.h: New file.
17149 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17150
17151 2018-01-29 Darius Rad <darius@bluespec.com>
17152
17153 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17154
17155 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17156
17157 * sysdeps/init_array/crti.S (.section .init_array): Add
17158 PREINIT_FUNCTION when defined.
17159 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17160 * config.h.in: Regenerate.
17161 * manual/platform.texi: Add RISC-V documenation for
17162 __riscv_flush_icache.
17163 * sysdeps/riscv/__longjmp.S: New file.
17164 * sysdeps/riscv/backtrace.c: Likewise.
17165 * sysdeps/riscv/bits/endian.h: Likewise.
17166 * sysdeps/riscv/bits/setjmp.h: Likewise.
17167 * sysdeps/riscv/bits/wordsize.h: Likewise.
17168 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17169 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17170 * sysdeps/riscv/dl-trampoline.S: Likewise.
17171 * sysdeps/riscv/gccframe.h: Likewise.
17172 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17173 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17174 * sysdeps/riscv/machine-gmon.h: Likewise.
17175 * sysdeps/riscv/memusage.h: Likewise.
17176 * sysdeps/riscv/setjmp.S: Likewise.
17177 * sysdeps/riscv/sys/asm.h: Likewise.
17178 * sysdeps/riscv/tls-macros.h: Likewise.
17179 * sysdeps/riscv/dl-tls.h: New file.
17180 * sysdeps/riscv/libc-tls.c: Likewise.
17181 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17182 * sysdeps/riscv/nptl/tls.h: Likewise.
17183 * sysdeps/riscv/stackinfo.h: Likewise.
17184 * sysdeps/riscv/bits/fenv.h: New file.
17185 * sysdeps/riscv/e_sqrtl.c: Likewise.
17186 * sysdeps/riscv/fpu_control.h: Likewise.
17187 * sysdeps/riscv/math-tests.h: Likewise.
17188 * sysdeps/riscv/nofpu/Implies: Likewise.
17189 * sysdeps/riscv/sfp-machine.h: Likewise.
17190 * sysdeps/riscv/tininess.h: Likewise.
17191 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17192 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17193 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17194 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17195 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17196 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17197 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17198 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17199 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17200 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17201 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17202 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17203 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17204 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17205 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17206 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17207 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17208 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17209 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17210 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17211 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17212 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17213 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17214 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17215 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17216 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17217 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17218 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17219 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17220 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17221 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17222 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17223 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17224 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17225 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17226 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17227 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17228 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17229 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17230 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17231 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17232 * sysdeps/riscv/rvf/math_private.h: Likewise.
17233 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17234 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17235 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17236 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17237 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17238 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17239 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17240 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17241 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17242 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17243 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17244 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17245 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17246 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17247 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17248 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17249 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17250 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17251 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17252 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17253 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17254 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17255 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17256 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17257 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17258 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17259 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17260 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17261 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17262 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17263 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17264 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17265 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17266 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17267 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17268 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17269 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17270 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17271 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17272 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17273 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17274 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17275 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17276 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17277 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17278 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17279 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17280 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17281 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17282 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17283 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17284 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17285 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17286 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17287 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17288 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17289 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17290 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17291 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17292 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17293 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17294 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17295 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17296 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17297 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17298 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17299 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17300 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17301 * sysdeps/riscv/Implies: New file.
17302 * sysdeps/riscv/Makefile: Likewise.
17303 * sysdeps/riscv/configure: Likewise.
17304 * sysdeps/riscv/configure.ac: Likewise.
17305 * sysdeps/riscv/nptl/Makefile: Likewise.
17306 * sysdeps/riscv/preconfigure: Likewise.
17307 * sysdeps/riscv/rv64/Implies-after: Likewise.
17308 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17309 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17310 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17311 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17312 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17313 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17314 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17315 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17316 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17317 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17318 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17319 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17320 (Config): Likewise.
17321
17322 2018-01-29 Florian Weimer <fweimer@redhat.com>
17323
17324 [BZ #22701]
17325 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17326 libnsl_hidden_proto.
17327 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17328 libnsl_hidden_proto.
17329 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17330 * nis/Makefile (libnsl-routines): Add nss-default only for
17331 build-obsolete-nsl.
17332 * nis/nis_defaults.c (__nis_default_ttl): Add
17333 libnsl_hidden_nolink_def.
17334 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17335 declaration.
17336 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17337 * nis/ypclnt.c (yp_maplist): Likewise.
17338
17339 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17340
17341 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17342 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17343
17344 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17345
17346 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17347 clean -dxfq for git updates when replacing sources.
17348
17349 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17350 --disable-libcilkrts unconditionally, not just for the final GCC
17351 build for Hurd.
17352
17353 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17354 version to 4.15.
17355
17356 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17357
17358 [BZ #10871]
17359 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17360 case).
17361
17362 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17363
17364 [BZ #10871]
17365 * localedata/locales/be_BY (mon): Rename to...
17366 (alt_mon): This, then synchronize with CLDR (nominative case).
17367 (abmon): Rename to...
17368 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17369 (mon): Import from CLDR (genitive case).
17370 (abmon): Likewise.
17371 * localedata/locales/be_BY@latin (mon): Rename to...
17372 (alt_mon): This.
17373 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17374
17375 * localedata/locales/be_BY@latin (lang_name): Reworded to
17376 "biełaruskaja mova".
17377
17378 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17379
17380 [BZ #10871]
17381 * localedata/locales/el_CY (mon): Renamed to...
17382 (alt_mon): This.
17383 (mon): Import from CLDR (genitive case).
17384 * localedata/locales/el_GR: Likewise.
17385
17386 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17387
17388 [BZ #10871]
17389 * localedata/locales/ru_RU (mon): Rename to...
17390 (alt_mon): This.
17391 (abmon): Rename to...
17392 (ab_alt_mon): This.
17393 (mon): Import from CLDR (genitive case).
17394 (abmon): Copy from the old content except the 5th month which is
17395 now in the genitive case, even when abbreviated.
17396 * localedata/locales/ru_UA: Likewise.
17397 * time/tst-strptime.c (day_tests): Add an actual example of
17398 a difference between %b and %Ob in Russian.
17399
17400 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17401
17402 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17403 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17404 a `c' variable.
17405 * resolv/res-close.c: Include <stdlib.h>.
17406 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17407 <sys/wait.h>, <time.h>, <sys/uio.h>.
17408 (NOT_CANCEL_H): Add inclusion guard.
17409 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17410 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17411 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17412 return 0.
17413 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17414 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17415 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17416 instead of void *.
17417 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17418 timer_ptr2id to cast struct timer_node * to void *.
17419 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17420 --disable-libcilkrts to gcc configure.
17421 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17422 and make them the default for now.
17423 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17424 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17425 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17426 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17427 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17428 MACH_IPC_COMPAT.
17429 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17430 __task_terminate would ever return successfully.
17431 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17432 to global scope.
17433 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17434 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17435 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17436 critical section to make code simpler and avoid warning.
17437 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17438 critical section to make code simpler and avoid warning.
17439 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17440 const char * instead of char *.
17441 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17442 __hurd_file_name_split, hurd_file_name_split,
17443 __hurd_directory_name_split, hurd_directory_name_split,
17444 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17445 hurd_file_name_path_lookup): Make lookup function parameter take a
17446 const char *name instead of char *name.
17447 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17448 __hurd_directory_name_split): Likewise.
17449 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17450 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17451 * sysdeps/mach/hurd/check_native.c: New file.
17452 * sysdeps/mach/hurd/check_pf.c: New file.
17453 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17454 (__freeifaddrs): Define macro to freeifaddrs.
17455 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17456 * sysdeps/mach/libmachuser.abilist: New file.
17457 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17458 (do_test_bz20181): Rename accordingly.
17459 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17460 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17461 <sys/mount.h>.
17462 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17463 version only if __USE_EXTERN_INLINES is defined.
17464 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17465 __hurd_sockfail): Likewise.
17466 (_hurd_fd_get): Always declare functions, and provide inline versions
17467 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17468 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17469 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17470 _hurd_port_set): Always declare functions, and provide inline versions
17471 only if __USE_EXTERN_INLINES and _LIBC are defined and
17472 IS_IN(libc).
17473 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17474 _hurd_critical_section_unlock): Likewise.
17475 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17476 * __hurd_threadvar_location): Likewise.
17477 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17478 _hurd_userlink_clear): Likewise.
17479 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17480 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17481 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17482 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17483 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17484 __spin_lock_locked): Likewise.
17485 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17486 __spin_lock_locked): Likewise.
17487 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17488 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17489 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17490 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17491 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17492 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17493 _POSIX_NO_TRUNC): Define to 0.
17494 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17495 check size against PTHREAD_STACK_MIN.
17496 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17497 IS_IN(libpthread)]: Include <sigsetops.h>.
17498 * mach/Makefile (user-interfaces): Add mach/gnumach.
17499 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17500 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17501 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17502 instead of invalid -1.
17503 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17504 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17505 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17506 <net/ppp_defs.h>.
17507
17508 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17509
17510 * hurd/fcntl-internal.h: New file.
17511
17512 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17513
17514 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17515
17516 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17517
17518 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17519
17520 [BZ #22701]
17521 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17522 Build only shared objects.
17523
17524 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17525
17526 * README: Update for hppa.
17527
17528 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17529
17530 * sysdeps/sparc/fpu/libm-test-ulps: Update
17531 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17532
17533 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17534
17535 Revert:
17536
17537 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17538
17539 [BZ #22563]
17540 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17541 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17542 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17543 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17544 to feature_1.
17545
17546 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17547
17548 [BZ #22563]
17549 * bits/types/__cancel_jmp_buf_tag.h: New file.
17550 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17551 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17552 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17553 * nptl/Makefile (headers): Add
17554 bits/types/__cancel_jmp_buf_tag.h.
17555 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17556 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17557 * sysdeps/nptl/pthread.h: Include
17558 <bits/types/__cancel_jmp_buf_tag.h>.
17559 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17560 __cancel_jmp_buf.
17561 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17562
17563 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17564
17565 [BZ #10871]
17566 * localedata/locales/uk_UA (mon): Renamed to...
17567 (alt_mon): This.
17568 (alt_digits): "0" removed and then renamed to...
17569 (mon): This.
17570 (date_fmt): Definition changed not to use the alternative
17571 digits hack.
17572
17573 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17574
17575 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17576 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17577 * elf/elf.h (EF_RISCV_RVC): New define.
17578 (EF_RISCV_FLOAT_ABI): Likewise.
17579 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17580 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17581 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17582 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17583 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17584 define.
17585 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17586
17587 2018-01-25 Andreas Schwab <schwab@suse.de>
17588
17589 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17590 single quotes.
17591 * sysdeps/gnu/configure: Regenerate.
17592 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17593 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17595 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17596 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17597 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17598 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17599 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17600
17601 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17602
17603 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17604 URL, and run autoconf, make it the default for now.
17605
17606 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17607
17608 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17609 soft-float ColdFire configuration.
17610
17611 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17612 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17613 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17614
17615 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17616 MicroBlaze file.
17617
17618 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17619 ....
17620 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17621 ... here.
17622 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17623 New file.
17624
17625 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17626 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17627 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17628 file.
17629
17630 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17631
17632 [BZ #22742]
17633 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17634 Rename to __reserved and add comment.
17635 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17636 Rename to __reserved.
17637
17638 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17639
17640 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17641 i686-gnu configurations.
17642 (Context.run_builds): Include mig, gnumach and hurd in components
17643 considered.
17644 (Context.checkout): Add mig, gnumach and hurd to components.
17645 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17646 hurd.
17647 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17648 (Config.build): Install gnumach headers, build mig and install
17649 hurd headers for 'gnu' OS.
17650 (Config.install_gnumach_headers): New function.
17651 (Config.install_hurd_headers): Likewise.
17652 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17653 when building for 'gnu' OS.
17654
17655 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17656
17657 * manual/tunables.texi (Hardware Capability Tunables): Fix
17658 spelling.
17659
17660 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17661
17662 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17663 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17664 (ALTMON_11, ALTMON_12): Improve documentation.
17665 * manual/time.texi (strftime): Likewise.
17666
17667 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17668
17669 [BZ #10871]
17670 * localedata/locales/pl_PL: Alternative month names added,
17671 primary month names are genitive now.
17672 * time/tst-strptime.c (day_tests): Actually use a genitive case
17673 of a month name in Polish language.
17674
17675 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17676
17677 [BZ #10871]
17678 * manual/locale.texi: Document ALTMON_1..12 constants for
17679 nl_langinfo. Specify when to use ALTMON instead of MON.
17680 * manual/time.texi (strftime, strptime): Document GNU extension
17681 permitting O modifier with %B and %b. Specify when to use
17682 %OB instead of %B.
17683
17684 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17685
17686 [BZ #10871]
17687 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17688 names, define them as the same as abbreviated month names explicitly.
17689 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17690 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17691 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17692 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17693 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17694 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17695 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17696 _NL_WABALTMON_12): New enum constants.
17697 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17698 wab_alt_mon, and ab_alt_mon_defined members.
17699 (time_output): Output ab_alt_mon and wab_alt_mon members.
17700 (time_read): Read them, initialize them as copies of abmon and wabmon
17701 respectively if they are missing, initialize ab_alt_mon_defined.
17702 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17703 * locale/programs/locfile-kw.h: Regenerate.
17704 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17705 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17706 and ru_RU.UTF-8.
17707 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17708 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17709 (__strftime_internal): Handle %Ob and %Oh formats.
17710 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17711 (__strptime_internal): Handle %Ob and %Oh formats.
17712 * time/tst-strptime.c (day_tests): Add more tests to parse different
17713 forms of month names including the new %Ob format specifier.
17714
17715 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17716
17717 [BZ #10871]
17718 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17719 define them as the same as primary full month names explicitly.
17720 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17721 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17722 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17723 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17724 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17725 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17726 _NL_WALTMON_12): New enum constants.
17727 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17728 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17729 macros.
17730 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17731 walt_mon, and alt_mon_defined members.
17732 (time_output): Output alt_mon and walt_mon members.
17733 (time_read): Read them, initialize them as copies of mon and wmon
17734 respectively if they are missing, initialize alt_mon_defined.
17735 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17736 * locale/programs/locfile-kw.h: Regenerate.
17737 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17738 * localedata/tst-langinfo.c (map): Add tests for the new constants
17739 ALTMON_1 .. ALTMON_12.
17740 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17741 and pl_PL.UTF-8.
17742 * time/strftime_l.c (f_altmonth): New macro.
17743 (__strftime_internal): Handle %OB format.
17744 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17745 (__strptime_internal): Handle %OB format.
17746 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17747 of month names including the new %OB format specifier.
17748
17749 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17750
17751 [BZ #22685]
17752 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17753 from ABORT_TRANSACTION.
17754 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17755 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17756 ABORT_TRANSACTION_IMPL): Likewise.
17757 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17758 Linux code, but remove the code that aborts transactions.
17759
17760 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17761
17762 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17763
17764 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17765
17766 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17767 in date: "2004-14-09" should be "2004-09-14".
17768 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17769 "2003-15-09" should be "2003-09-15".
17770
17771 2018-01-18 Arjun Shankar <arjun@redhat.com>
17772
17773 [BZ #22343]
17774 [BZ #22774]
17775 CVE-2018-6485
17776 CVE-2018-6551
17777 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17778 after padding.
17779 (_int_memalign): check for integer overflow before calling
17780 _int_malloc.
17781 * malloc/tst-malloc-too-large.c: New test.
17782 * malloc/Makefile: Add tst-malloc-too-large.
17783
17784 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17785
17786 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17787 in date: "2017-24-07" should be "2017-07-24".
17788 * localedata/locales/mai_IN: Likewise.
17789 * localedata/locales/mai_NP: Likewise.
17790
17791 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17792
17793 * po/ru.po: Update translations.
17794
17795 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17796
17797 [BZ #22719]
17798 * sysdeps/hppa/backtrace.c: New file.
17799
17800 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17801
17802 [BZ #22715]
17803 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17804 align La_x86_64_retval to VEC_SIZE.
17805
17806 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17807
17808 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17809 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17810
17811 2018-01-16 Florian Weimer <fweimer@redhat.com>
17812
17813 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17814 Move tst-thread-exit-clobber ...
17815 [$(CXX)] (tests-unsupported): ... to here.
17816
17817 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17818
17819 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17820 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17821 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17822 (_dl_aarch64_cap_flags): Update.
17823 (_DL_HWCAP_COUNT): Update.
17824
17825 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17826
17827 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17828 (_DL_HWCAP_LAST): Remove.
17829 (_DL_HWCAP_COUNT): Move to ...
17830 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17831 (_DL_HWCAP_COUNT): ... here.
17832
17833 2018-01-16 Florian Weimer <fweimer@redhat.com>
17834
17835 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17836 mode with GNU extensions.
17837
17838 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17839
17840 * elf/elf.h (NT_ARM_SVE): Define.
17841
17842 2018-01-15 Florian Weimer <fweimer@redhat.com>
17843
17844 [BZ #22636]
17845 * nptl/tst-minstack-throw.cc: New file.
17846 * nptl/Makefile (tests): Add tst-minstack-throw.
17847 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17848 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17849
17850 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17851
17852 * scripts/build-many-glibcs.py (Context.checkout): Default
17853 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17854 version to 1.1.0.
17855
17856 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17857
17858 [BZ #22707]
17859 * elf/elf.h (DF_1_STUB): Define.
17860 (DF_1_PIE): Define.
17861
17862 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17863
17864 [BZ #22697]
17865 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17866 Do not add 0.5 to integer or out-of-range arguments.
17867
17868 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17869
17870 * po/bg.po: Update translations.
17871 * po/cs.po: Likewise.
17872 * po/de.po: Likewise.
17873 * po/ko.po: Likewise.
17874 * po/pl.po: Likewise.
17875 * po/sv.po: Likewise.
17876 * po/uk.po: Likewise.
17877 * po/vi.po: Likewise.
17878
17879 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17880
17881 * aarch64/start.S (_start): Use __wrap_main.
17882 (__wrap_main): New local symbol.
17883
17884 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17885
17886 [BZ #22679]
17887 CVE-2018-1000001
17888 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17889 generic_getcwd if the path returned by getcwd syscall is not absolute.
17890 * io/tst-getcwd-abspath.c: New test.
17891 * io/Makefile (tests): Add tst-getcwd-abspath.
17892
17893 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17894
17895 * malloc/malloc.c (malloc_consolidate): Add size check.
17896
17897 2018-01-12 Florian Weimer <fweimer@redhat.com>
17898
17899 * support/write_message.c (write_message): Preserve errno.
17900 * support/check.c (print_failure): Likewise.
17901 * support/support_test_verify_impl.c (support_test_verify_impl):
17902 Likewise.
17903 * support/support_test_compare_failure.c
17904 (support_test_compare_failure): Likewise.
17905
17906 2018-01-12 Florian Weimer <fweimer@redhat.com>
17907
17908 [BZ #22701]
17909 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17910 Prevent installation of libnsl.so.
17911 (libnsl-inhibit-o): Do not build (or install) static libraries.
17912
17913 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17914
17915 [BZ #22657]
17916 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17917 before the day number which may produce a double space.
17918 (date_fmt): Likewise.
17919
17920 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17921
17922 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17923 instead of fegetenv.
17924
17925 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17926
17927 [BZ #22702]
17928 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17929 comment to say exceptions are discarded.
17930 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17931 __fegetenv.
17932 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17933 be enabled.
17934
17935 2018-01-11 Florian Weimer <fweimer@redhat.com>
17936
17937 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17938 and error message.
17939
17940 2018-01-11 Florian Weimer <fweimer@redhat.com>
17941
17942 [BZ #22636]
17943 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17944 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17945
17946 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17947
17948 [BZ #22693]
17949 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17950 negative arguments in test for NaN or infinity argument.
17951
17952 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17953
17954 * po/libc.pot: Regenerate.
17955
17956 2018-01-10 Florian Weimer <fweimer@redhat.com>
17957
17958 [BZ #22636]
17959 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17960 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17961
17962 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17963
17964 * hurd/hurd/fd.h: Include <fcntl.h>
17965 (__hurd_at_flags): New function.
17966 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17967 with call to __hurd_at_flags.
17968 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17969 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17970 __faccessat
17971 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17972 (__access_noerrno): Use __faccessat_common instead of access_common.
17973 (__access): Likewise.
17974 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17975 with a call to __faccessat.
17976 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17977 (__faccessat_common): ... this. Move implementation of __access into it when
17978 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17979 reauthenticate_cwdir_at helper to implement AT mechanism.
17980 (__faccessat_noerrno): New function, just calls __faccessat_common.
17981 (__faccessat): New function, just calls __faccessat_common.
17982 (faccessat): Define weak alias.
17983
17984 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17985
17986 [BZ #22691]
17987 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17988 (CFLAGS-s_fmaxmagl.c): New variable.
17989 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17990
17991 [BZ #22690]
17992 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17993 long int for arguments of possibly overflowing addition or
17994 subtraction.
17995 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17996
17997 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17998
17999 [BZ #22688]
18000 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18001 (CFLAGS-e_remainderl.c): New variable.
18002
18003 [BZ #22687]
18004 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
18005 variable.
18006 (CFLAGS-s_cacoshl.c): Likewise.
18007 (CFLAGS-s_casinhl.c): Likewise.
18008 (CFLAGS-s_catanl.c): Likewise.
18009 (CFLAGS-s_catanhl.c): Likewise.
18010 (CFLAGS-s_cexpl.c): Likewise.
18011 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
18012 (CFLAGS-s_csinhl.c): Likewise.
18013 (CFLAGS-s_clogl.c): Likewise.
18014 (CFLAGS-s_clog10l.c): Likewise.
18015 (CFLAGS-s_csinl.c): Likewise.
18016 (CFLAGS-s_csqrtl.c): Likewise.
18017
18018 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
18019 2017-01-09 Svante Signell <svante.signell@gmail.com>
18020
18021 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18022 (_hurd_exec_paths): New function.
18023 * hurd/hurd.h (_hurd_exec): Deprecate function.
18024 (_hurd_exec_paths): Declare function.
18025 * hurd/Versions: Export _hurd_exec_paths.
18026 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18027 (__execve): Use __getcwd to build absolute path, and use
18028 _hurd_exec_paths instead of _hurd_exec.
18029 * sysdeps/mach/hurd/spawni.c: Likewise.
18030 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18031 _hurd_exec.
18032
18033 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
18034
18035 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18036 test instead of failing in case of ENOENT returned by posix_openpt.
18037
18038 2018-01-08 Florian Weimer <fweimer@redhat.com>
18039
18040 resolv: Support binary labels in test framework.
18041 * support/resolv_test.c (struct to_be_freed): Remove.
18042 (struct compressed_name): New.
18043 (allocate_compressed_name, ascii_tolower)
18044 (compare_compressed_name): New functions.
18045 (struct resolv_response_builder): Update type of
18046 compression_offsets for use with tsearch. Rempve to_be_freed.
18047 (response_push_pointer_to_free): Remove function.
18048 (resolv_response_add_name): Rewrite using struct compressed_name
18049 and tsearch instead of hsearch_r.
18050 (response_builder_allocate): Remove initialization of
18051 compression_offsets.
18052 (response_builder_free): Update for removal of to_be_freed. Use
18053 tdestroy instead of hdestroy_r.
18054 * resolv/Makefile (tests): Add tst-resolv-binary.
18055 (tst-resolv-binary): Link with -lresolv -lpthread.
18056
18057 2018-01-08 Florian Weimer <fweimer@redhat.com>
18058
18059 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18060 time. Pass positive flag instead of negative flag to
18061 support_test_compare_failure.
18062 (support_test_compare_failure): Change negative parameter to
18063 positive.
18064 * support/support_test_compare_failure.c (report)
18065 (support_test_compare_failure): Likewise.
18066 * support/tst-test_compare.c (return_ssize_t, return_int): New.
18067 (do_test): Check int/size_t, ssize_t/size_t comparisons.
18068
18069 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18070
18071 [BZ #22637]
18072 * nptl/descr.h (stackblock, stackblock_size): Update comments.
18073 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18074 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18075 stacksize.
18076 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18077
18078 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
18079
18080 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18081 Add s_sincosf-sse2 and s_sincosf-fma.
18082 (CFLAGS-s_sincosf-fma.c): New.
18083 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18084 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18085 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18086 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18087 __sincosf is defined.
18088
18089 2018-01-08 Florian Weimer <fweimer@redhat.com>
18090
18091 * nptl/tst-thread-exit-clobber.cc: New file.
18092 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18093 C++11 mode.
18094 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18095 (tests): Add tst-thread-exit-clobber.
18096 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18097
18098 2018-01-08 Florian Weimer <fweimer@redhat.com>
18099
18100 * support/check.h (support_static_assert): Define.
18101 (TEST_COMPARE): Use it.
18102
18103 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
18104
18105 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18106 [!__RLIM_T_MATCHES_RLIM64_T]
18107 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18108 __getrlimit64. Add libc_hidden_weak.
18109
18110 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
18111
18112 * elf/elf.h (R_RISCV_NONE): New define.
18113 (R_RISCV_32): Likewise.
18114 (R_RISCV_64): Likewise.
18115 (R_RISCV_RELATIVE): Likewise.
18116 (R_RISCV_COPY): Likewise.
18117 (R_RISCV_JUMP_SLOT): Likewise.
18118 (R_RISCV_TLS_DTPMOD32): Likewise.
18119 (R_RISCV_TLS_DTPMOD64): Likewise.
18120 (R_RISCV_TLS_DTPREL32): Likewise.
18121 (R_RISCV_TLS_DTPREL64): Likewise.
18122 (R_RISCV_TLS_TPREL32): Likewise.
18123 (R_RISCV_TLS_TPREL64): Likewise.
18124 * Makerules (make-link-multidir): Make directories before linking into
18125 them.
18126 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18127 define.
18128 (VDSO_HASH_LINUX_4_15): Likewise.
18129 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18130 in subdirectories of lib.
18131 * nptl/Makefile (/librt.so): Always depend on
18132 "$(shared-thread-library)".
18133
18134 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18135
18136 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18137 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18138 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18139 (___tls_get_addr).
18140 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18141 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18142 "-O2 -march=i686".
18143 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18144 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18145 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18146 * sysdeps/gnu/glob-lstat-compat.c: New file.
18147 * sysdeps/gnu/glob64-lstat-compat.c: New file.
18148 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18149
18150 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18151
18152 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18153 Reserve 16 chars to reloc_addr before calling _itoa_word.
18154
18155 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18156
18157 [BZ #22678]
18158 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18159 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18160
18161 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18162 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18163
18164 * resource/tst-getrlimit.c: Add copyright header.
18165
18166 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18167 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18168
18169 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18170 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18171 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18172 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18173 instead.
18174 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18175 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18176 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18177 RLIM64_INFINITY): Fix values to match the kernel ones.
18178 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18179 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18180 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18181 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18182 getrlimit64@@GLIBC_2_27.
18183 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18184 and setrlimit64.
18185 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18186 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18187 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18188 setrlimit, getrlimit64 and setrlimit64.
18189
18190 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18191
18192 [BZ #22648]
18193 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18194 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18195
18196 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18197
18198 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18199 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18200 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18201
18202 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18203
18204 [BZ #15479]
18205 [BZ #22666]
18206 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18207 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18208
18209 [BZ #15479]
18210 [BZ #22665]
18211 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18212 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18213 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18214 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18215
18216 2018-01-04 Florian Weimer <fweimer@redhat.com>
18217
18218 [BZ #22667]
18219 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18220 Align the stack before calling exit.
18221 * stdlib/tst-makecontext-align.c: New file.
18222 * stdlib/Makefile (tests): Add tst-makecontext-align.
18223
18224 2018-01-04 Florian Weimer <fweimer@redhat.com>
18225
18226 Add support for calling dlvsym from libc.so.
18227 * include/dlfcn.h (__libc_dlvsym): Declare.
18228 * elf/Makefile (tests-static-internal): Add
18229 tst-libc_dlvsym-static.
18230 (tests-internal): Add tst-libc_dlvsym.
18231 (modules-names): Add tst-libc_dlvsym-dso.
18232 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18233 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18234 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18235 object tst-libc_dlvsym-dso.so needs to be built before running
18236 these tests.
18237 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18238 * elf/Versions: Export __libc_dlvsym.
18239 * elf/dl-libc.c (struct do_dlvsym_args): New.
18240 (do_dlvsym, __libc_dlvsym): New functions.
18241 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18242 (_dl_open_hook2): New variable.
18243 (__libc_register_dl_open_hook): Set it.
18244 * elf/tst-libc_dlvsym-dso.c: New file.
18245 * elf/tst-libc_dlvsym-static.c: Likewise.
18246 * elf/tst-libc_dlvsym.c: Likewise.
18247 * elf/tst-libc_dlvsym.h: Likewise.
18248
18249 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18250
18251 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18252 include <sys/mount.h>.
18253
18254 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18255
18256 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18257 Add __NO_MATH_ERRNO__ check.
18258
18259 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18260
18261 * sysdeps/mips/mips32/libm-test-ulps: Update.
18262 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18263
18264 2018-01-02 Florian Weimer <fweimer@redhat.com>
18265
18266 * misc/tst-pselect.c: Add copyright header.
18267
18268 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18269
18270 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18271 comment.
18272 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18273 comment.
18274 (settrlimit): Rename into setrlimit.
18275 (__sttrlimit): Rename into __setrlimit.
18276
18277 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18278 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18279 never defined in that case.
18280
18281 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18282
18283 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18284
18285 * sysdeps/arm/libm-test-ulps: Update.
18286
18287 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18288 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18289
18290 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18291
18292 * NEWS: Add cosf and sincosf to list of optimized functions.
18293
18294 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18295
18296 [BZ #22660]
18297 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18298 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18299 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18300 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18301
18302 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18303
18304 [BZ #22433]
18305 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18306
18307 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18308 making a copy of it.
18309
18310 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18311
18312 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18313 trailing whitespace removed.
18314 * scripts/config.guess: Update to version 2018-01-01.
18315 * scripts/config.sub: Update to version 2018-01-01.
18316 * scripts/move-if-change: Update from gnulib.
18317
18318 * NEWS: Update copyright dates.
18319 * catgets/gencat.c (print_version): Likewise.
18320 * csu/version.c (banner): Likewise.
18321 * debug/catchsegv.sh: Likewise.
18322 * debug/pcprofiledump.c (print_version): Likewise.
18323 * debug/xtrace.sh (do_version): Likewise.
18324 * elf/ldconfig.c (print_version): Likewise.
18325 * elf/ldd.bash.in: Likewise.
18326 * elf/pldd.c (print_version): Likewise.
18327 * elf/sotruss.sh: Likewise.
18328 * elf/sprof.c (print_version): Likewise.
18329 * iconv/iconv_prog.c (print_version): Likewise.
18330 * iconv/iconvconfig.c (print_version): Likewise.
18331 * locale/programs/locale.c (print_version): Likewise.
18332 * locale/programs/localedef.c (print_version): Likewise.
18333 * login/programs/pt_chown.c (print_version): Likewise.
18334 * malloc/memusage.sh (do_version): Likewise.
18335 * malloc/memusagestat.c (print_version): Likewise.
18336 * malloc/mtrace.pl: Likewise.
18337 * manual/libc.texinfo: Likewise.
18338 * nptl/version.c (banner): Likewise.
18339 * nscd/nscd.c (print_version): Likewise.
18340 * nss/getent.c (print_version): Likewise.
18341 * nss/makedb.c (print_version): Likewise.
18342 * posix/getconf.c (main): Likewise.
18343 * scripts/test-installation.pl: Likewise.
18344 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18345
18346 * All files with FSF copyright notices: Update copyright dates
18347 using scripts/update-copyrights.
18348 * locale/programs/charmap-kw.h: Regenerated.
18349 * locale/programs/locfile-kw.h: Likewise.
18350
18351 2017-12-31 Zack Weinberg <zackw@panix.com>
18352
18353 * libio/bits/libio-ldbl.h: Correct check for improper
18354 inclusion. Add own multiple include guard.
18355
18356 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18357 Dmitry V. Levin <ldv@altlinux.org>
18358
18359 [BZ #22625]
18360 CVE-2017-16997
18361 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18362 string token expansion. Check for NULL pointer or empty string possibly
18363 returned by expand_dynamic_string_token.
18364 (decompose_rpath): Check for empty path after dynamic string
18365 token expansion.
18366
18367 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18368
18369 [BZ #22433]
18370 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18371
18372 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18373 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18374 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18375 and PTRACE_SYSCALL.
18376 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18377 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18378 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18379 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18380 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18381 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18382
18383 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18384 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18385 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18386 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18387 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18388 bits/ptrace-shared.h.
18389 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18390 <bits/ptrace-shared.h>.
18391 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18392 __ptrace_peeksiginfo_flags, ptrace): Remove.
18393 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18394 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18395 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18396 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18397 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18398
18399 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18400
18401 [BZ #17804]
18402 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18403 end of the loop. Improve comments.
18404
18405 2017-12-29 Zack Weinberg <zackw@panix.com>
18406
18407 [BZ #22615]
18408 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18409 might be set on success.
18410
18411 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18412
18413 [BZ #22611]
18414 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18415 is unchanged on success.
18416
18417 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18418
18419 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18420 updated.
18421 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18422 expand_dynamic_string_token): Likewise.
18423 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18424 is_path argument.
18425
18426 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18427 contains ':'.
18428
18429 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18430 is set and name contains ':', and all code depending on these checks.
18431
18432 2017-12-24 Zack Weinberg <zackw@panix.com>
18433
18434 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18435 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18436 respectively.
18437 * libio/libio.h: Rename the original version of this file to
18438 libio/bits/libio.h. Error out if not included by stdio.h or the
18439 stub libio.h.
18440 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18441 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18442 if not included by bits/libio.h or the stub _G_config.h.
18443 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18444 sysdeps/unix/sysv/linux/bits. Error out if not included by
18445 bits/libio.h or the stub _G_config.h.
18446 * libio/stdio.h: Include bits/libio.h, not libio.h.
18447 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18448 well as libio.h and _G_config.h.
18449
18450 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18451 * libio/strfile.h, stdio-common/vfscanf.c
18452 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18453 Include stdio.h, not _G_config.h nor libio.h.
18454 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18455 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18456
18457 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18458
18459 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18460
18461 [BZ #22347]
18462 * stdlib/getrandom.c (getrandom): Fix comment.
18463 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18464
18465 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18466
18467 [BZ #21161]
18468 * manual/arith.texi (strtoul): Fix a typo.
18469
18470 [BZ #22596]
18471 * manual/arith.texi (finite): Fix the description of the return
18472 value.
18473
18474 2017-12-22 Eric Blake <ebb9@byu.net>
18475
18476 Avoid gcc warnings on cygwin
18477 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18478 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18479 Avoid unused variable.
18480
18481 2017-12-22 Florian Weimer <fweimer@redhat.com>
18482
18483 * io/Makefile (routines): Add copy_file_range.
18484 (tests): Add tst-copy_file_range.
18485 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18486 * io/Versions (GLIBC_2.27): Export copy_file_range.
18487 * io/copy_file_range-compat.c: New file.
18488 * io/copy_file_range.c: Likewise.
18489 * io/tst-copy_file_range-compat.c: Likewise.
18490 * io/tst-copy_file_range.c: Likewise.
18491 * manual/llio.texi (Copying File Data): New section.
18492 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18493 * support/Makefile (libsupport-routines): Add support-xfstat,
18494 xftruncate, xlseek.
18495 * support/support-xfstat.c: New file.
18496 * support/xftruncate.c: Likewise.
18497 * support/xlseek.c: Likewise.
18498 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18499 * sysdeps/unix/sysv/linux/**.abilist: Update.
18500 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18501
18502 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18503
18504 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18505 disable-multi-arch variant to aarch64-linux-gnu.
18506
18507 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18508
18509 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18510 trailing whitespace removed.
18511 * scripts/config.guess: Update to version 2017-12-17.
18512 * scripts/config.sub: Update to version 2017-11-23.
18513 * scripts/install-sh: Update to version 2017-09-23.17.
18514 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18515
18516 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18517
18518 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18519 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18520 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18521 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18522 * sysdeps/tile/crtn.S: Likewise.
18523 * sysdeps/tile/dl-start.S (_start): Likewise.
18524 * sysdeps/tile/dl-trampoline.S: Likewise.
18525 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18526 * sysdeps/tile/start.S (_start): Likewise.
18527 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18528 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18529 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18530 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18531 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18532 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18533 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18534
18535 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18536 comment.
18537 * sysdeps/tile/preconfigure: Remove tilegx folder.
18538 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18539 * sysdeps/tile/Implies: ... here.
18540 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18541 * sysdeps/tile/Makefile: ... here.
18542 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18543 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18544 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18545 * sysdeps/tile/bits/wordsize.h: ... here.
18546 * sysdeps/tile/tilegx/*: Move to ...
18547 * sysdeps/tile/*: ... here.
18548 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18549 * sysdeps/tile/tilegx32/Implies: ... here.
18550 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18551 * sysdeps/tile/tilegx64/Implies: ... here.
18552 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18553 to ...
18554 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18555 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18556 * sysdeps/unix/sysv/linux/tile/*: ... here.
18557 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18558 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18559 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18560 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18561
18562 * README: Remove tilepro-*-linux-gnu from supported architecture.
18563 * scripts/build-many-glibcs.py: Likewise.
18564 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18565 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18566 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18567 elf_machine_matches_host, elf_machine_dynamic,
18568 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18569 howto, elf_machine_rela): Likewise.
18570 * sysdeps/tile/dl-start.S (_start): Likewise.
18571 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18572 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18573 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18574 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18575 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18576 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18577 Likewise.
18578 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18579 * sysdeps/tile/preconfigure: Likewise.
18580 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18581 POINTER_CHK_GUARD): Likewise.
18582 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18583 * sysdeps/tile/start.S (_start): Likewise.
18584 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18585 Likewise.
18586 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18587 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18588 CMOVNEZ): Remove.
18589 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18590 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18591 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18592 Likewise.
18593 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18594 * sysdeps/tile/tilepro/Implies: Remove file.
18595 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18596 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18597 * sysdeps/tile/tilepro/memchr.c: Likewise.
18598 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18599 * sysdeps/tile/tilepro/memset.c: Likewise.
18600 * sysdeps/tile/tilepro/memusage.h: Likewise.
18601 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18602 * sysdeps/tile/tilepro/strchr.c: Likewise.
18603 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18604 * sysdeps/tile/tilepro/strlen.c: Likewise.
18605 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18606 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18607 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18608 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18609 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18610 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18611 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18612 Likewise.
18613 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18614 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18615 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18616 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18617 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18618 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18619 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18620 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18621 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18622 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18623 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18624 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18625 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18626 tilepro mention in comment.
18627
18628 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18629 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18630 * nptl/pthread_join_common.c: New file: common function used on
18631 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18632 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18633 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18634 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18635 (cleanup): Move definition to pthread_join_common.c.
18636 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18637 Remove superflous checks.
18638 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18639 Likewise.
18640
18641 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18642
18643 * sysdeps/aarch64/libm-test-ulps: Update.
18644
18645 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18646
18647 * sysdeps/aarch64/memset.S (MEMSET): Define.
18648
18649 2017-12-20 Florian Weimer <fweimer@redhat.com>
18650
18651 [BZ #22635]
18652 nptl: Provide full implementation of pthread_self in libc.so.
18653 * nptl/Makefile (routines): Add pthread_self.
18654 (libpthread-routines): Replace pthread_self with
18655 compat-pthread_self.
18656 * nptl/forward.c (pthread_self): Remove.
18657 * nptl/nptl-init.c (pthread_functions): Do not initialize
18658 ptr_pthread_self.
18659 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18660 * nptl/compat-pthread_self.c: New file.
18661 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18662 Remove ptr_pthread_self.
18663
18664 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18665
18666 * posix/regcomp.c: Fix spelling in comments.
18667 * posix/regex.h: Likewise.
18668 * posix/regex_internal.c: Likewise.
18669 * posix/regexec.c: Likewise.
18670
18671 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18672
18673 [BZ #22377]
18674 * math/Makefile [C++] (tests): Add test for iseqsig.
18675 * math/math.h [C++] (iseqsig): New implementation, which does
18676 not rely on __MATH_TG/__builtin_types_compatible_p.
18677 * math/test-math-iseqsig.cc: New file.
18678 * sysdeps/powerpc/powerpc64le/Makefile
18679 (CFLAGS-test-math-iseqsig.cc): New variable.
18680
18681 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18682
18683 * elf/dl-load.c (is_trusted_path): Remove.
18684 (fillin_rpath): Remove check_trusted argument and its use,
18685 all callers changed.
18686
18687 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18688
18689 [BZ #22630]
18690 * Makeconfig (link-pie-before-libc): Replace -pie with
18691 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18692 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18693 (tst-dlopen-aout-no-pie): New.
18694 (LDFLAGS-tst-prelink): Removed.
18695 (tst-prelink-no-pie): New.
18696 (LDFLAGS-tst-main1): Removed.
18697 (tst-main1-no-pie): New.
18698 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18699 (tst-gmon-no-pie): New.
18700
18701 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18702
18703 * manual/install.texi: Document that --enable-static-pie
18704 implies PIE.
18705 * INSTALL: Regenerated.
18706
18707 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18708
18709 [BZ #21309]
18710 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18711 unsigned.
18712
18713 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18714
18715 Revert:
18716
18717 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18718
18719 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18720
18721 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18722
18723 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18724 <errno.h>. Include "eexp.tbl".
18725 (half): New constant.
18726 (one): Likewise.
18727 (__ieee754_exp): Rewrite.
18728 (__slowexp): Remove prototype.
18729 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18730 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18731 * sysdeps/i386/fpu/slowexp.c: Likewise.
18732 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18733 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18734 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18735 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18736 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18737 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18738 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18739 comment.
18740 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18741 (CPPFLAGS-slowexp.c): Remove variable.
18742 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18743 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18744 (CFLAGS-slowexp-fma.c): Remove variable.
18745 (CFLAGS-slowexp-fma4.c): Likewise.
18746 (CFLAGS-slowexp-avx.c): Likewise.
18747 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18748 define as macro.
18749 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18750 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18751 * math/Makefile (type-double-routines): Remove slowexp.
18752 * manual/probes.texi (slowexp_p6): Remove.
18753 (slowexp_p32): Likewise.
18754
18755 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18756
18757 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18758 arithmetic.
18759
18760 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18761
18762 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18763
18764 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18765
18766 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18767
18768 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18769 <errno.h>. Include "eexp.tbl".
18770 (half): New constant.
18771 (one): Likewise.
18772 (__ieee754_exp): Rewrite.
18773 (__slowexp): Remove prototype.
18774 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18775 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18776 * sysdeps/i386/fpu/slowexp.c: Likewise.
18777 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18778 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18779 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18780 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18781 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18782 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18783 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18784 comment.
18785 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18786 (CPPFLAGS-slowexp.c): Remove variable.
18787 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18788 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18789 (CFLAGS-slowexp-fma.c): Remove variable.
18790 (CFLAGS-slowexp-fma4.c): Likewise.
18791 (CFLAGS-slowexp-avx.c): Likewise.
18792 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18793 define as macro.
18794 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18795 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18796 * math/Makefile (type-double-routines): Remove slowexp.
18797 * manual/probes.texi (slowexp_p6): Remove.
18798 (slowexp_p32): Likewise.
18799
18800 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18801 James Clarke <jrtc27@jrtc27.com>
18802
18803 [BZ #22603]
18804 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18805 addition.
18806
18807 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18808
18809 [BZ #22605]
18810 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18811 code.
18812
18813 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18814
18815 [BZ #22563]
18816 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18817 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18818 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18819 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18820 to feature_1.
18821
18822 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18823
18824 [BZ #22563]
18825 * bits/types/__cancel_jmp_buf_tag.h: New file.
18826 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18827 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18828 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18829 * nptl/Makefile (headers): Add
18830 bits/types/__cancel_jmp_buf_tag.h.
18831 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18832 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18833 * sysdeps/nptl/pthread.h: Include
18834 <bits/types/__cancel_jmp_buf_tag.h>.
18835 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18836 __cancel_jmp_buf.
18837 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18838
18839 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18840
18841 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18842 --enable-static-pie variants to x86_64, x32 and i686.
18843
18844 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18845
18846 [BZ #22631]
18847 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18848 argument for attrubutes. All callers changed.
18849 (__inline_mathop1): Likewise. All callers changed.
18850 (__inline_mathop): Likewise. All callers changed.
18851 [__USE_MISC] (scalbn): Use __inline_forward instead of
18852 __inline_forward_c.
18853 [__USE_ISOC99] (scalbln): Likewise.
18854 [__USE_ISOC99] (nearbyint): Likewise.
18855 [__USE_ISOC99] (lrint): Likewise.
18856 [__USE_MISC] (scalbnf): Likewise.
18857 [__USE_ISOC99] (scalblnf): Likewise.
18858 [__USE_ISOC99] (nearbyintf): Likewise.
18859 [__USE_ISOC99] (lrintf): Likewise.
18860 [__USE_MISC] (scalbnl): Likewise.
18861 [__USE_ISOC99] (scalblnl): Likewise.
18862 [__USE_ISOC99] (nearbyintl): Likewise.
18863 [__USE_ISOC99] (lrintl): Likewise.
18864 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18865 __inline_mathop and __m81_defun changed.
18866
18867 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18868 CPU or FPU for ARM hard-float configurations.
18869
18870 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18871
18872 * nptl/tst-attr3.c: Include <libc-diag.h>.
18873 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18874
18875 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18876
18877 * string/tester.c (test_strncat): Also disable -Warray-bounds
18878 warnings for two tests.
18879
18880 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18881
18882 [BZ #22614]
18883 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18884 $(cc-pie-default) == yes.
18885 * config.make.in (cc-pie-default): New.
18886 * configure.ac (libc_cv_pie_default): Renamed to ...
18887 (libc_cv_cc_pie_default): This.
18888 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18889 * configure: Regenerated.
18890
18891 2017-12-18 Florian Weimer <fweimer@redhat.com>
18892
18893 [BZ #20204]
18894 ld.so: Harden dl-libc/libdl hooks.
18895 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18896 (rtld_active): New function.
18897 * dlfcn/dladdr.c (__dladdr): Call it.
18898 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18899 * dlfcn/dlclose.c (__dlcose): Likewise.
18900 * dlfcn/dlerror.c (__dlerror): Likewise.
18901 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18902 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18903 * dlfcn/dlopen.c (__dlopen): Likewise.
18904 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18905 * dlfcn/dlsym.c (__dlsym): Likewise.
18906 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18907 * libio/vtables.c (_IO_vtable_check): Likewise.
18908 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18909 (__libc_dlclose): Likewise.
18910 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18911 assignment.
18912
18913 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18914
18915 [BZ #22446]
18916 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18917 buffers for readlink input and output.
18918
18919 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18920
18921 [BZ #22624]
18922 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18923 inhibit_stack_protector.
18924
18925 [BZ #22624]
18926 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18927 inhibit_stack_protector.
18928
18929 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18930
18931 [BZ #22627]
18932 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18933 code and invocation.
18934
18935 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18936
18937 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18938
18939 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18940
18941 [BZ #22505]
18942 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18943
18944 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18945
18946 * sysdeps/s390/fpu/libm-test-ulps: Update.
18947
18948 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18949
18950 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18951
18952 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18953
18954 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18955 constants to s_sincosf.h file.
18956 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18957 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18958 implementation.
18959 * sysdeps/ieee754/flt-32/s_sincosf.h:
18960 New file.
18961
18962 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18963
18964 [BZ #14681]
18965 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18966 before mtrace.
18967
18968 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18969
18970 [BZ #19574]
18971 * INSTALL: Regenerated.
18972 * Makeconfig (real-static-start-installed-name): New.
18973 (pic-default): Updated for --enable-static-pie.
18974 (pie-default): New for --enable-static-pie.
18975 (default-pie-ldflag): Likewise.
18976 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18977 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18978 Replace $(static-start-installed-name) with
18979 $(real-static-start-installed-name).
18980 (+prectorT): Updated for --enable-static-pie.
18981 (+postctorT): Likewise.
18982 (CFLAGS-.o): Add $(pie-default).
18983 (CFLAGS-.op): Likewise.
18984 * NEWS: Mention --enable-static-pie.
18985 * config.h.in (ENABLE_STATIC_PIE): New.
18986 * configure.ac (--enable-static-pie): New configure option.
18987 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18988 (have-static-pie): Likewise.
18989 Enable static PIE if linker supports --no-dynamic-linker.
18990 (ENABLE_STATIC_PIE): New AC_DEFINE.
18991 (enable-static-pie): New LIBC_CONFIG_VAR.
18992 * configure: Regenerated.
18993 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18994 gr$(start-installed-name) for --enable-static-pie.
18995 (extra-objs): Likewise.
18996 (install-lib): Likewise.
18997 (extra-objs): Add static-reloc.o and static-reloc.os
18998 ($(objpfx)$(start-installed-name)): Also depend on
18999 $(objpfx)static-reloc.o.
19000 ($(objpfx)r$(start-installed-name)): New.
19001 ($(objpfx)g$(start-installed-name)): Also depend on
19002 $(objpfx)static-reloc.os.
19003 ($(objpfx)gr$(start-installed-name)): New.
19004 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
19005 in libc.a.
19006 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
19007 initimage.
19008 * csu/static-reloc.c: New file.
19009 * elf/Makefile (routines): Add dl-reloc-static-pie.
19010 (elide-routines.os): Likewise.
19011 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
19012 (tst-tls1-static-non-pie-no-pie): New.
19013 * elf/dl-reloc-static-pie.c: New file.
19014 * elf/dl-support.c (_dl_get_dl_main_map): New function.
19015 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19016 STATIC_PIE_BOOTSTRAP.
19017 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19018 * gmon/Makefile (tests): Add tst-gmon-static-pie.
19019 (tests-static): Likewise.
19020 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19021 (tst-gmon-static-no-pie): New.
19022 (CFLAGS-tst-gmon-static-pie.c): Likewise.
19023 (CRT-tst-gmon-static-pie): Likewise.
19024 (tst-gmon-static-pie-ENV): Likewise.
19025 (tests-special): Likewise.
19026 ($(objpfx)tst-gmon-static-pie.out): Likewise.
19027 (clean-tst-gmon-static-pie-data): Likewise.
19028 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19029 * gmon/tst-gmon-static-pie.c: New file.
19030 * manual/install.texi: Document --enable-static-pie.
19031 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19032 (_dl_get_dl_main_map): Likewise.
19033 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19034 * sysdeps/x86_64/configure.ac: Likewise.
19035 * sysdeps/i386/configure: Regenerated.
19036 * sysdeps/x86_64/configure: Likewise.
19037 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19038 (ASFLAGS-.op): Likewise.
19039
19040 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19041
19042 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19043 * posix/tst-mmap-offset.c (fname): Use /tmp.
19044 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19045
19046 2017-12-15 Steve Ellcey <sellcey@cavium.com>
19047
19048 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19049
19050 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
19051
19052 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19053 errno.
19054
19055 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19056
19057 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19058 --with-float=hard for arm-linux-gnueabihf configurations.
19059
19060 [BZ #14121]
19061 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19062 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
19063 ($(mo-installed)): Use $(objpfx)%.mo.
19064 (realclean): Remove rule.
19065
19066 * po/Makefile (linguas): Remove rule and dependencies.
19067 (linguas.mo): Likewise.
19068 (.PHONY): Do not depend on linguas and linguas.mo.
19069 (podir): Remove variable.
19070 (pofiles): Likewise.
19071 [$(pofiles)] (%.po): Remove rule.
19072
19073 * sysdeps/sparc/sparc32/Makefile
19074 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19075 start-of-line whitespace in argument of echo.
19076 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19077 with whitespace. Generate __wrap_.udiv alias.
19078 * sysdeps/sparc/sparc32/rem.S: Regenerated.
19079 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19080 * sysdeps/sparc/sparc32/udiv.S: Likewise.
19081 * sysdeps/sparc/sparc32/urem.S: Likewise.
19082
19083 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19084
19085 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19086 for aligned inputs.
19087
19088 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19089
19090 * benchtests/bench-strcmp.c: Print output in JSON format.
19091
19092 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19093
19094 2017-12-14 Florian Weimer <fweimer@redhat.com>
19095
19096 [BZ #22607]
19097 CVE-2017-1000409
19098 * elf/dl-load.c (_dl_init_paths): Compute number of components in
19099 the expanded path string.
19100
19101 2017-12-14 Florian Weimer <fweimer@redhat.com>
19102
19103 [BZ #22606]
19104 CVE-2017-1000408
19105 * elf/dl-load.c (system_dirs): Update comment.
19106 (nsystem_dirs_len): Use array_length.
19107 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19108
19109 2017-12-14 Florian Weimer <fweimer@redhat.com>
19110
19111 Simplify compiling most of support/ outside of glibc.
19112 * support/check_addrinfo.c: Include <string.h>.
19113 * support/check_dns_packet.c: Likewise.
19114 * support/check_hostent.c: Likewise.
19115 * support/support_can_chroot.c: Include <support/xunistd.h>.
19116 * support/support_format_addrinfo.c: Include <stdlib.h>
19117 * support/support_format_dns_packet.c: Include <stdbool.h>.
19118 * support/support_format_hostent.c: Include <stdlib.h>.
19119 * support/support_format_netent.c: Likewise.
19120 * support/support_write_string.c: Include <support/xunistd.h>.
19121 * support/xdlfcn.c: Include <stddef.h>.
19122
19123 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
19124
19125 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19126
19127 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19128 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19129
19130 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19131 (sysdeps_routines): Add memset-niagara7.
19132 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19133 Likewise.
19134 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19135 file.
19136 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19137 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19138 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19139 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19140 Add niagara7 option.
19141 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19142 memset.
19143
19144 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19145 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19146 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19147 Likewise.
19148 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19149 New file.
19150 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19151 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19152 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19153 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19154 and __memmove_niagara7.
19155 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19156 Add niagara7 option.
19157 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19158 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19159 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19160 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19161 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19162
19163 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19164
19165 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19166 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19167 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19168 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19169
19170 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19171 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19172 _dl_sparc_cap_flags array.
19173 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19174
19175 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19176
19177 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19178 time whenever possible.
19179
19180 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19181
19182 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19183 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19184
19185 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19186
19187 * soft-fp/fmadf4.c: Move to ....
19188 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19189 * soft-fp/fmasf4.c: Move to ....
19190 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19191 * soft-fp/fmatf4.c: Move to ....
19192 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19193 * sysdeps/ieee754/soft-fp/Makefile: New file.
19194 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19195 * sysdeps/arm/preconfigure: Regenerated.
19196 * sysdeps/arm/nofpu/Implies: New file.
19197 * sysdeps/arm/s_fma.c: Remove file.
19198 * sysdeps/arm/s_fmaf.c: Likewise.
19199 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19200 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19201 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19202 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19203 * sysdeps/microblaze/s_fma.c: Remove file.
19204 * sysdeps/microblaze/s_fmaf.c: Likewise.
19205 * sysdeps/mips/mips32/nofpu/Implies: New file.
19206 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19207 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19208 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19209 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19210 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19211 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19212 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19213 implementation.
19214 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19215 * sysdeps/nios2/s_fma.c: Remove file.
19216 * sysdeps/nios2/s_fmaf.c: Likewise.
19217 * sysdeps/sh/nofpu/Implies: New file.
19218 * sysdeps/sh/s_fma.c: Remove file.
19219 * sysdeps/sh/s_fmaf.c: Likewise.
19220 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19221 * sysdeps/tile/s_fma.c: Remove file.
19222 * sysdeps/tile/s_fmaf.c: Likewise.
19223
19224 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19225
19226 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19227 Add s_cosf-sse2 and s_cosf-fma.
19228 (CFLAGS-s_cosf-fma.c): New.
19229 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19230 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19231 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19232
19233 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19234
19235 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19236
19237 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19238
19239 * libio/Makefile (tests): Add tst-bz22415.
19240 (tst-bz22415-ENV): New rule.
19241 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19242 (tests-special): Add tst-bz22415-mem.out.
19243 ($(objpfx)tst-bz22415-mem.out): New rule.
19244 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19245 in case of a successful seek operation.
19246 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19247 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19248 buffer is required.
19249 * libio/tst-bz22415.c: New test.
19250
19251 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19252
19253 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19254
19255 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19256 __IPC_64 to 0 to avoid IPC_64 being set.
19257
19258 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19259
19260 [BZ #22593]
19261 * math/bits/mathcalls.h (nextafter): Remove const.
19262 (nexttoward): Likewise.
19263
19264 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19265
19266 * configure.ac (--with-fp): Remove configure option.
19267 (with_fp_cond): New variable.
19268 (libc_cv_with_fp): New configure test. Use this variable instead
19269 of with_fp.
19270 * configure: Regenerated.
19271 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19272 * manual/install.texi (Configuring and compiling): Remove
19273 --without-fp.
19274 * INSTALL: Regenerated.
19275 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19276 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19277 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19278 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19279 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19280 use --without-fp to configure glibc.
19281
19282 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19283
19284 * manual/locale.texi (nl_langinfo): Fix a typo.
19285
19286 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19287
19288 [BZ #22588]
19289 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19290
19291 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19292
19293 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19294 (CFLAGS-argp-parse.c): Likewise.
19295 (CFLAGS-argp-fmtstream.c): Likewise.
19296 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19297 (CPPFLAGS-sha512-crypt.c): Likewise.
19298 (CPPFLAGS-md5-crypt.c): Likewise.
19299 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19300 (CFLAGS-stack_chk_fail_local.c): Likewise.
19301 (CFLAGS-backtrace.c): Likewise.
19302 (CFLAGS-sprintf_chk.c): Likewise.
19303 (CFLAGS-snprintf_chk.c): Likewise.
19304 (CFLAGS-vsprintf_chk.c): Likewise.
19305 (CFLAGS-vsnprintf_chk.c): Likewise.
19306 (CFLAGS-asprintf_chk.c): Likewise.
19307 (CFLAGS-vasprintf_chk.c): Likewise.
19308 (CFLAGS-obprintf_chk.c): Likewise.
19309 (CFLAGS-dprintf_chk.c): Likewise.
19310 (CFLAGS-vdprintf_chk.c): Likewise.
19311 (CFLAGS-printf_chk.c): Likewise.
19312 (CFLAGS-fprintf_chk.c): Likewise.
19313 (CFLAGS-vprintf_chk.c): Likewise.
19314 (CFLAGS-vfprintf_chk.c): Likewise.
19315 (CFLAGS-gets_chk.c): Likewise.
19316 (CFLAGS-fgets_chk.c): Likewise.
19317 (CFLAGS-fgets_u_chk.c): Likewise.
19318 (CFLAGS-fread_chk.c): Likewise.
19319 (CFLAGS-fread_u_chk.c): Likewise.
19320 (CFLAGS-swprintf_chk.c): Likewise.
19321 (CFLAGS-vswprintf_chk.c): Likewise.
19322 (CFLAGS-wprintf_chk.c): Likewise.
19323 (CFLAGS-fwprintf_chk.c): Likewise.
19324 (CFLAGS-vwprintf_chk.c): Likewise.
19325 (CFLAGS-vfwprintf_chk.c): Likewise.
19326 (CFLAGS-fgetws_chk.c): Likewise.
19327 (CFLAGS-fgetws_u_chk.c): Likewise.
19328 (CFLAGS-read_chk.c): Likewise.
19329 (CFLAGS-pread_chk.c): Likewise.
19330 (CFLAGS-pread64_chk.c): Likewise.
19331 (CFLAGS-recv_chk.c): Likewise.
19332 (CFLAGS-recvfrom_chk.c): Likewise.
19333 (CFLAGS-tst-longjmp_chk.c): Likewise.
19334 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19335 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19336 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19337 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19338 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19339 (CFLAGS-tst-chk1.c): Likewise.
19340 (CFLAGS-tst-chk2.c): Likewise.
19341 (CFLAGS-tst-chk3.c): Likewise.
19342 (CFLAGS-tst-chk4.cc): Likewise.
19343 (CFLAGS-tst-chk5.cc): Likewise.
19344 (CFLAGS-tst-chk6.cc): Likewise.
19345 (CFLAGS-tst-lfschk1.c): Likewise.
19346 (CFLAGS-tst-lfschk2.c): Likewise.
19347 (CFLAGS-tst-lfschk3.c): Likewise.
19348 (CFLAGS-tst-lfschk4.cc): Likewise.
19349 (CFLAGS-tst-lfschk5.cc): Likewise.
19350 (CFLAGS-tst-lfschk6.cc): Likewise.
19351 (CFLAGS-tst-ssp-1.c): Likewise.
19352 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19353 (CFLAGS-scandir64.c): Likewise.
19354 (CFLAGS-scandir-tail.c): Likewise.
19355 (CFLAGS-scandir64-tail.c): Likewise.
19356 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19357 (CFLAGS-dl-tunables.c): Likewise.
19358 (CFLAGS-dl-runtime.c): Likewise.
19359 (CFLAGS-dl-lookup.c): Likewise.
19360 (CFLAGS-dl-iterate-phdr.c): Likewise.
19361 (CFLAGS-vismain.c): Likewise.
19362 (CFLAGS-tst-linkall-static.c): Likewise.
19363 (CFLAGS-tst-linkall-static.c): Likewise.
19364 (CPPFLAGS-dl-load.c): Likewise.
19365 (CFLAGS-ldconfig.c): Likewise.
19366 (CFLAGS-dl-cache.c): Likewise.
19367 (CFLAGS-cache.c): Likewise.
19368 (CFLAGS-rtld.c): Likewise.
19369 (CFLAGS-multiload.c): Likewise.
19370 (CFLAGS-filtmod1.c): Likewise.
19371 (CFLAGS-tst-align.c): Likewise.
19372 (CFLAGS-tst-align2.c): Likewise.
19373 (CFLAGS-tst-alignmod.c): Likewise.
19374 (CFLAGS-tst-alignmod2.c): Likewise.
19375 (CPPFLAGS-tst-execstack.c): Likewise.
19376 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19377 (CFLAGS-tst-latepthreadmod.c): Likewise.
19378 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19379 (CFLAGS-getgrnam_r.c): Likewise.
19380 (CFLAGS-getgrent_r.c): Likewise.
19381 (CFLAGS-getgrent.c): Likewise.
19382 (CFLAGS-fgetgrent.c): Likewise.
19383 (CFLAGS-fgetgrent_r.c): Likewise.
19384 (CFLAGS-putgrent.c): Likewise.
19385 (CFLAGS-initgroups.c): Likewise.
19386 (CFLAGS-getgrgid.c): Likewise.
19387 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19388 (CFLAGS-getsgent.c): Likewise.
19389 (CFLAGS-fgetsgent.c): Likewise.
19390 (CFLAGS-fgetsgent_r.c): Likewise.
19391 (CFLAGS-putsgent.c): Likewise.
19392 (CFLAGS-getsgnam.c): Likewise.
19393 (CFLAGS-getsgnam_r.c): Likewise.
19394 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19395 (CFLAGS-iconv_charmap.c): Likewise.
19396 (CFLAGS-dummy-repertoire.c): Likewise.
19397 (CFLAGS-charmap.c): Likewise.
19398 (CFLAGS-linereader.c): Likewise.
19399 (CFLAGS-simple-hash.c): Likewise.
19400 (CFLAGS-gconv_conf.c): Likewise.
19401 (CFLAGS-iconvconfig.c): Likewise.
19402 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19403 (CFLAGS-gethstbyad.c): Likewise.
19404 (CFLAGS-gethstbynm_r.c): Likewise.
19405 (CFLAGS-gethstbynm.c): Likewise.
19406 (CFLAGS-gethstbynm2_r.c): Likewise.
19407 (CFLAGS-gethstbynm2.c): Likewise.
19408 (CFLAGS-gethstent_r.c): Likewise.
19409 (CFLAGS-gethstent.c): Likewise.
19410 (CFLAGS-rcmd.c): Likewise.
19411 (CFLAGS-getnetbynm_r.c): Likewise.
19412 (CFLAGS-getnetbynm.c): Likewise.
19413 (CFLAGS-getnetbyad_r.c): Likewise.
19414 (CFLAGS-getnetbyad.c): Likewise.
19415 (CFLAGS-getnetent_r.c): Likewise.
19416 (CFLAGS-getnetent.c): Likewise.
19417 (CFLAGS-getaliasent_r.c): Likewise.
19418 (CFLAGS-getaliasent.c): Likewise.
19419 (CFLAGS-getrpcent_r.c): Likewise.
19420 (CFLAGS-getrpcent.c): Likewise.
19421 (CFLAGS-getservent_r.c): Likewise.
19422 (CFLAGS-getservent.c): Likewise.
19423 (CFLAGS-getprtent_r.c): Likewise.
19424 (CFLAGS-getprtent.c): Likewise.
19425 (CFLAGS-either_ntoh.c): Likewise.
19426 (CFLAGS-either_hton.c): Likewise.
19427 (CFLAGS-getnetgrent.c): Likewise.
19428 (CFLAGS-getnetgrent_r.c): Likewise.
19429 (CFLAGS-tst-checks-posix.c): Likewise.
19430 (CFLAGS-tst-sockaddr.c): Likewise.
19431 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19432 (CFLAGS-tst-translit.c): Likewise.
19433 (CFLAGS-tst-gettext2.c): Likewise.
19434 (CFLAGS-tst-codeset.c): Likewise.
19435 (CFLAGS-tst-gettext3.c): Likewise.
19436 (CFLAGS-tst-gettext4.c): Likewise.
19437 (CFLAGS-tst-gettext5.c): Likewise.
19438 (CFLAGS-tst-gettext6.c): Likewise.
19439 * io/Makefile (CFLAGS-open.c): Likewise.
19440 (CFLAGS-open64.c): Likewise.
19441 (CFLAGS-creat.c): Likewise.
19442 (CFLAGS-creat64.c): Likewise.
19443 (CFLAGS-fcntl.c): Likewise.
19444 (CFLAGS-poll.c): Likewise.
19445 (CFLAGS-ppoll.c): Likewise.
19446 (CFLAGS-lockf.c): Likewise.
19447 (CFLAGS-statfs.c): Likewise.
19448 (CFLAGS-fstatfs.c): Likewise.
19449 (CFLAGS-statvfs.c): Likewise.
19450 (CFLAGS-fstatvfs.c): Likewise.
19451 (CFLAGS-fts.c): Likewise.
19452 (CFLAGS-fts64.c): Likewise.
19453 (CFLAGS-ftw.c): Likewise.
19454 (CFLAGS-ftw64.c): Likewise.
19455 (CFLAGS-lockf.c): Likewise.
19456 (CFLAGS-posix_fallocate.c): Likewise.
19457 (CFLAGS-posix_fallocate64.c): Likewise.
19458 (CFLAGS-fallocate.c): Likewise.
19459 (CFLAGS-fallocate64.c): Likewise.
19460 (CFLAGS-read.c): Likewise.
19461 (CFLAGS-write.c): Likewise.
19462 (CFLAGS-test-stat.c): Likewise.
19463 (CFLAGS-test-lfs.c): Likewise.
19464 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19465 (CFLAGS-fputc.c): Likewise.
19466 (CFLAGS-fputwc.c): Likewise.
19467 (CFLAGS-freopen64.c): Likewise.
19468 (CFLAGS-freopen.c): Likewise.
19469 (CFLAGS-fseek.c): Likewise.
19470 (CFLAGS-fseeko64.c): Likewise.
19471 (CFLAGS-fseeko.c): Likewise.
19472 (CFLAGS-ftello64.c): Likewise.
19473 (CFLAGS-ftello.c): Likewise.
19474 (CFLAGS-fwide.c): Likewise.
19475 (CFLAGS-genops.c): Likewise.
19476 (CFLAGS-getc.c): Likewise.
19477 (CFLAGS-getchar.c): Likewise.
19478 (CFLAGS-getwc.c): Likewise.
19479 (CFLAGS-getwchar.c): Likewise.
19480 (CFLAGS-iofclose.c): Likewise.
19481 (CFLAGS-iofflush.c): Likewise.
19482 (CFLAGS-iofgetpos64.c): Likewise.
19483 (CFLAGS-iofgetpos.c): Likewise.
19484 (CFLAGS-iofgets.c): Likewise.
19485 (CFLAGS-iofgetws.c): Likewise.
19486 (CFLAGS-iofputs.c): Likewise.
19487 (CFLAGS-iofputws.c): Likewise.
19488 (CFLAGS-iofread.c): Likewise.
19489 (CFLAGS-iofsetpos64.c): Likewise.
19490 (CFLAGS-iofsetpos.c): Likewise.
19491 (CFLAGS-ioftell.c): Likewise.
19492 (CFLAGS-iofwrite.c): Likewise.
19493 (CFLAGS-iogetdelim.c): Likewise.
19494 (CFLAGS-iogetline.c): Likewise.
19495 (CFLAGS-iogets.c): Likewise.
19496 (CFLAGS-iogetwline.c): Likewise.
19497 (CFLAGS-ioputs.c): Likewise.
19498 (CFLAGS-ioseekoff.c): Likewise.
19499 (CFLAGS-ioseekpos.c): Likewise.
19500 (CFLAGS-iosetbuffer.c): Likewise.
19501 (CFLAGS-iosetvbuf.c): Likewise.
19502 (CFLAGS-ioungetc.c): Likewise.
19503 (CFLAGS-ioungetwc.c): Likewise.
19504 (CFLAGS-oldfileops.c): Likewise.
19505 (CFLAGS-oldiofclose.c): Likewise.
19506 (CFLAGS-oldiofgetpos64.c): Likewise.
19507 (CFLAGS-oldiofgetpos.c): Likewise.
19508 (CFLAGS-oldiofsetpos64.c): Likewise.
19509 (CFLAGS-oldiofsetpos.c): Likewise.
19510 (CFLAGS-peekc.c): Likewise.
19511 (CFLAGS-putc.c): Likewise.
19512 (CFLAGS-putchar.c): Likewise.
19513 (CFLAGS-putwc.c): Likewise.
19514 (CFLAGS-putwchar.c): Likewise.
19515 (CFLAGS-rewind.c): Likewise.
19516 (CFLAGS-wfileops.c): Likewise.
19517 (CFLAGS-wgenops.c): Likewise.
19518 (CFLAGS-oldiofopen.c): Likewise.
19519 (CFLAGS-iofopen.c): Likewise.
19520 (CFLAGS-iofopen64.c): Likewise.
19521 (CFLAGS-oldtmpfile.c): Likewise.
19522 (CFLAGS-tst_putwc.c): Likewise.
19523 * locale/Makefile (CFLAGS-md5.c): Likewise.
19524 (CFLAGS-charmap.c): Likewise.
19525 (CFLAGS-locfile.c): Likewise.
19526 (CFLAGS-charmap-dir.c): Likewise.
19527 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19528 (CFLAGS-getpt.c): Likewise.
19529 (CFLAGS-pt_chown.c): Likewise.
19530 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19531 (CFLAGS-obstack.c): Likewise.
19532 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19533 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19534 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19535 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19536 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19537 (CFLAGS-test-tgmath.c): Likewise.
19538 (CFLAGS-test-tgmath2.c): Likewise.
19539 (CFLAGS-test-tgmath-ret.c): Likewise.
19540 (CFLAGS-test-powl.c): Likewise.
19541 (CFLAGS-test-snan.c): Likewise.
19542 (CFLAGS-test-signgam-finite.c): Likewise.
19543 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19544 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19545 (CFLAGS-test-signgam-uchar.c): Likewise.
19546 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19547 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19548 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19549 (CFLAGS-test-signgam-uint.c): Likewise.
19550 (CFLAGS-test-signgam-uint-init.c): Likewise.
19551 (CFLAGS-test-signgam-uint-static.c): Likewise.
19552 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19553 (CFLAGS-test-signgam-ullong.c): Likewise.
19554 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19555 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19556 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19557 (CFLAGS-test-math-cxx11.cc): Likewise.
19558 (CFLAGS-test-math-isinff.cc): Likewise.
19559 (CFLAGS-test-math-iszero.cc): Likewise.
19560 (CFLAGS-test-math-issignaling.cc): Likewise.
19561 (CFLAGS-test-math-iscanonical.cc): Likewise.
19562 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19563 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19564 (CFLAGS-test-flt-eval-method.c): Likewise.
19565 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19566 (CFLAGS-test-finite-macros.c): Likewise.
19567 * misc/Makefile (CFLAGS-select.c): Likewise.
19568 (CFLAGS-tsearch.c): Likewise.
19569 (CFLAGS-lsearch.c): Likewise.
19570 (CFLAGS-pselect.c): Likewise.
19571 (CFLAGS-readv.c): Likewise.
19572 (CFLAGS-writev.c): Likewise.
19573 (CFLAGS-preadv.c): Likewise.
19574 (CFLAGS-preadv64.c): Likewise.
19575 (CFLAGS-pwritev.c): Likewise.
19576 (CFLAGS-pwritev64.c): Likewise.
19577 (CFLAGS-preadv2.c): Likewise.
19578 (CFLAGS-preadv64v2.c): Likewise.
19579 (CFLAGS-pwritev2.c): Likewise.
19580 (CFLAGS-pwritev64v2.c): Likewise.
19581 (CFLAGS-usleep.c): Likewise.
19582 (CFLAGS-syslog.c): Likewise.
19583 (CFLAGS-error.c): Likewise.
19584 (CFLAGS-getpass.c): Likewise.
19585 (CFLAGS-mkstemp.c): Likewise.
19586 (CFLAGS-mkstemp64.c): Likewise.
19587 (CFLAGS-getsysstats.c): Likewise.
19588 (CFLAGS-getusershell.c): Likewise.
19589 (CFLAGS-err.c): Likewise.
19590 (CFLAGS-tst-tsearch.c): Likewise.
19591 (CFLAGS-msync.c): Likewise.
19592 (CFLAGS-fdatasync.c): Likewise.
19593 (CFLAGS-fsync.c): Likewise.
19594 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19595 (CFLAGS-unwind.c): Likewise.
19596 (CFLAGS-unwind-forcedunwind.c): Likewise.
19597 (CFLAGS-pthread_cancel.c): Likewise.
19598 (CFLAGS-pthread_setcancelstate.c): Likewise.
19599 (CFLAGS-pthread_setcanceltype.c): Likewise.
19600 (CFLAGS-cancellation.c): Likewise.
19601 (CFLAGS-libc-cancellation.c): Likewise.
19602 (CFLAGS-pthread_exit.c): Likewise.
19603 (CFLAGS-forward.c): Likewise.
19604 (CFLAGS-pthread_testcancel.c): Likewise.
19605 (CFLAGS-pthread_join.c): Likewise.
19606 (CFLAGS-pthread_timedjoin.c): Likewise.
19607 (CFLAGS-pthread_once.c): Likewise.
19608 (CFLAGS-pthread_cond_wait.c): Likewise.
19609 (CFLAGS-sem_wait.c): Likewise.
19610 (CFLAGS-sem_timedwait.c): Likewise.
19611 (CFLAGS-fcntl.c): Likewise.
19612 (CFLAGS-lockf.c): Likewise.
19613 (CFLAGS-pread.c): Likewise.
19614 (CFLAGS-pread64.c): Likewise.
19615 (CFLAGS-pwrite.c): Likewise.
19616 (CFLAGS-pwrite64.c): Likewise.
19617 (CFLAGS-wait.c): Likewise.
19618 (CFLAGS-waitpid.c): Likewise.
19619 (CFLAGS-sigwait.c): Likewise.
19620 (CFLAGS-msgrcv.c): Likewise.
19621 (CFLAGS-msgsnd.c): Likewise.
19622 (CFLAGS-tcdrain.c): Likewise.
19623 (CFLAGS-open.c): Likewise.
19624 (CFLAGS-open64.c): Likewise.
19625 (CFLAGS-pause.c): Likewise.
19626 (CFLAGS-recv.c): Likewise.
19627 (CFLAGS-send.c): Likewise.
19628 (CFLAGS-accept.c): Likewise.
19629 (CFLAGS-sendto.c): Likewise.
19630 (CFLAGS-connect.c): Likewise.
19631 (CFLAGS-recvfrom.c): Likewise.
19632 (CFLAGS-recvmsg.c): Likewise.
19633 (CFLAGS-sendmsg.c): Likewise.
19634 (CFLAGS-close.c): Likewise.
19635 (CFLAGS-read.c): Likewise.
19636 (CFLAGS-write.c): Likewise.
19637 (CFLAGS-nanosleep.c): Likewise.
19638 (CFLAGS-sigsuspend.c): Likewise.
19639 (CFLAGS-msync.c): Likewise.
19640 (CFLAGS-fdatasync.c): Likewise.
19641 (CFLAGS-fsync.c): Likewise.
19642 (CFLAGS-pt-system.c): Likewise.
19643 (CFLAGS-tst-cleanup2.c): Likewise.
19644 (CFLAGS-tst-cleanupx2.c): Likewise.
19645 (CFLAGS-flockfile.c): Likewise.
19646 (CFLAGS-ftrylockfile.c): Likewise.
19647 (CFLAGS-funlockfile.c): Likewise.
19648 (CFLAGS-tst-initializers1.c): Likewise.
19649 (CFLAGS-tst-initializers1-c89.c): Likewise.
19650 (CFLAGS-tst-initializers1-c99.c): Likewise.
19651 (CFLAGS-tst-initializers1-c11.c): Likewise.
19652 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19653 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19654 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19655 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19656 (CFLAGS-nscd_getgr_r.c): Likewise.
19657 (CFLAGS-nscd_gethst_r.c): Likewise.
19658 (CFLAGS-nscd_getai.c): Likewise.
19659 (CFLAGS-nscd_initgroups.c): Likewise.
19660 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19661 (CFLAGS-pause.c): Likewise.
19662 (CFLAGS-pread.c): Likewise.
19663 (CFLAGS-pread64.c): Likewise.
19664 (CFLAGS-pwrite.c): Likewise.
19665 (CFLAGS-pwrite64.c): Likewise.
19666 (CFLAGS-sleep.c): Likewise.
19667 (CFLAGS-wait.c): Likewise.
19668 (CFLAGS-waitid.c): Likewise.
19669 (CFLAGS-waitpid.c): Likewise.
19670 (CFLAGS-getopt.c): Likewise.
19671 (CFLAGS-wordexp.c): Likewise.
19672 (CFLAGS-sysconf.c): Likewise.
19673 (CFLAGS-pathconf.c): Likewise.
19674 (CFLAGS-fpathconf.c): Likewise.
19675 (CFLAGS-spawn.c): Likewise.
19676 (CFLAGS-spawnp.c): Likewise.
19677 (CFLAGS-spawni.c): Likewise.
19678 (CFLAGS-glob.c): Likewise.
19679 (CFLAGS-glob64.c): Likewise.
19680 (CFLAGS-getconf.c): Likewise.
19681 (CFLAGS-nanosleep.c): Likewise.
19682 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19683 (CFLAGS-getpwent.c): Likewise.
19684 (CFLAGS-getpw.c): Likewise.
19685 (CFLAGS-fgetpwent_r.c): Likewise.
19686 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19687 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19688 (CFLAGS-mq_timedreceive.c): Likewise.
19689 (CFLAGS-mq_timedsend.c): Likewise.
19690 (CFLAGS-clock_nanosleep.c): Likewise.
19691 (CFLAGS-librt-cancellation.c): Likewise.
19692 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19693 (CFLAGS-getspent.c): Likewise.
19694 (CFLAGS-fgetspent.c): Likewise.
19695 (CFLAGS-fgetspent_r.c): Likewise.
19696 (CFLAGS-putspent.c): Likewise.
19697 (CFLAGS-getspnam.c): Likewise.
19698 (CFLAGS-getspnam_r.c): Likewise.
19699 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19700 (CFLAGS-sigsuspend.c): Likewise.
19701 (CFLAGS-sigtimedwait.c): Likewise.
19702 (CFLAGS-sigwait.c): Likewise.
19703 (CFLAGS-sigwaitinfo.c): Likewise.
19704 (CFLAGS-sigreturn.c): Likewise.
19705 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19706 (CFLAGS-vfwprintf.c): Likewise.
19707 (CFLAGS-tmpfile.c): Likewise.
19708 (CFLAGS-tmpfile64.c): Likewise.
19709 (CFLAGS-tempname.c): Likewise.
19710 (CFLAGS-psignal.c): Likewise.
19711 (CFLAGS-vprintf.c): Likewise.
19712 (CFLAGS-cuserid.c): Likewise.
19713 (CFLAGS-errlist.c): Likewise.
19714 (CFLAGS-siglist.c): Likewise.
19715 (CFLAGS-scanf15.c): Likewise.
19716 (CFLAGS-scanf17.c): Likewise.
19717 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19718 (CFLAGS-msort.c): Likewise.
19719 (CFLAGS-qsort.c): Likewise.
19720 (CFLAGS-system.c): Likewise.
19721 (CFLAGS-fmtmsg.c): Likewise.
19722 (CFLAGS-strfmon.c): Likewise.
19723 (CFLAGS-strfmon_l.c): Likewise.
19724 (CFLAGS-strfromd.c): Likewise.
19725 (CFLAGS-strfromf.c): Likewise.
19726 (CFLAGS-strfroml.c): Likewise.
19727 (CFLAGS-tst-bsearch.c): Likewise.
19728 (CFLAGS-tst-qsort.c): Likewise.
19729 (CFLAGS-tst-makecontext2.c): Likewise.
19730 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19731 (CFLAGS-xnlm_prot.c): Likewise.
19732 (CFLAGS-xrstat.c): Likewise.
19733 (CFLAGS-xyppasswd.c): Likewise.
19734 (CFLAGS-xklm_prot.c): Likewise.
19735 (CFLAGS-xrex.c): Likewise.
19736 (CFLAGS-xsm_inter.c): Likewise.
19737 (CFLAGS-xmount.c): Likewise.
19738 (CFLAGS-xrusers.c): Likewise.
19739 (CFLAGS-xspray.c): Likewise.
19740 (CFLAGS-xnfs_prot.c): Likewise.
19741 (CFLAGS-xrquota.c): Likewise.
19742 (CFLAGS-xkey_prot.c): Likewise.
19743 (CFLAGS-auth_unix.c): Likewise.
19744 (CFLAGS-key_call.c): Likewise.
19745 (CFLAGS-pmap_rmt.c): Likewise.
19746 (CFLAGS-clnt_perr.c): Likewise.
19747 (CFLAGS-openchild.c): Likewise.
19748 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19749 (CFLAGS-msgsnd.c): Likewise.
19750 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19751 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19752 (CFLAGS-tzset.c): Likewise.
19753 (CFLAGS-getdate.c): Likewise.
19754 (CFLAGS-test_time.c): Likewise.
19755 (CPPFLAGS-tst-tzname.c): Likewise.
19756 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19757 (CFLAGS-zic.c): Likewise.
19758 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19759 (CFLAGS-wcswidth.c): Likewise.
19760 (CFLAGS-wcstol.c): Likewise.
19761 (CFLAGS-wcstoul.c): Likewise.
19762 (CFLAGS-wcstoll.c): Likewise.
19763 (CFLAGS-wcstoull.c): Likewise.
19764 (CFLAGS-wcstod.c): Likewise.
19765 (CFLAGS-wcstold.c): Likewise.
19766 (CFLAGS-wcstof128.c): Likewise.
19767 (CFLAGS-wcstof.c): Likewise.
19768 (CFLAGS-wcstol_l.c): Likewise.
19769 (CFLAGS-wcstoul_l.c): Likewise.
19770 (CFLAGS-wcstoll_l.c): Likewise.
19771 (CFLAGS-wcstoull_l.c): Likewise.
19772 (CFLAGS-wcstod_l.c): Likewise.
19773 (CFLAGS-wcstold_l.c): Likewise.
19774 (CFLAGS-wcstof128_l.c): Likewise.
19775 (CFLAGS-wcstof_l.c): Likewise.
19776 (CPPFLAGS-tst-wchar-h.c): Likewise.
19777 (CPPFLAGS-wcstold_l.c): Likewise.
19778
19779 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19780
19781 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19782
19783 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19784 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19785
19786 * manual/tunables.texi (Hardware Capability Tunables): Document
19787 glibc.tune.cached_memopt.
19788 * sysdeps/powerpc/cpu-features.c: New file.
19789 * sysdeps/powerpc/cpu-features.h: New file.
19790 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19791 _dl_powerpc_cpu_features.
19792 * sysdeps/powerpc/dl-tunables.list: New file.
19793 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19794 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19795 (INIT_ARCH): Initialize use_aligned_memopt.
19796 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19797 IS_IN(rtld))]: Restrict dl_platform_init availability and
19798 initialize CPU features used by tunables.
19799 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19800 Add memcpy-power8-cached.
19801 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19802 __memcpy_power8_cached.
19803 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19804 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19805 New file.
19806
19807 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19808
19809 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19810 (CFLAGS-noinl-tester.c): Likewise.
19811 (CFLAGS-tst-strlen.c): Likewise.
19812 (CFLAGS-stratcliff.c): Likewise.
19813 (CFLAGS-test-ffs.c): Likewise.
19814 (CFLAGS-tst-inlcall.c): Likewise.
19815 (CFLAGS-tst-xbzero-opt.c): Likewise.
19816 (CFLAGS-memcpy.c): Likewise.
19817 (CFLAGS-wordcopy.c): Likewise.
19818
19819 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19820
19821 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19822 Store r15 on stack and add cfi rule.
19823 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19824 Likewise.
19825
19826 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19827
19828 [BZ #22577]
19829 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19830 call.
19831
19832 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19833
19834 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19835 Add s_sinf-sse2 and s_sinf-fma.
19836 (CFLAGS-s_sinf-fma.c): New.
19837 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19838 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19839 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19840
19841 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19842
19843 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19844
19845 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19846
19847 [BZ #22568]
19848 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19849 part of result to imaginary part of argument if it is zero and the
19850 real part of the argument is not finite.
19851 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19852 of result to real part of argument if it is zero and the imaginary
19853 part of the argument is not finite.
19854
19855 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19856
19857 [BZ #22524]
19858 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19859 and to the list of locales to be built for testing.
19860 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19861 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19862 and build the collation rules upon that.
19863
19864 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19865
19866 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19867 * manual/math.texi (Mathematics): Document support for _Float32.
19868 * math/Makefile (test-types): Add float32.
19869 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19870 * stdlib/Versions (GLIBC_2.27): Likewise.
19871 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19872 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19873 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19874 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19875 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19876 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19877 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19878 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19879 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19880 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19881 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19882 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19883 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19884 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19885 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19886 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19887 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19888 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19889 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19890 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19891 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19892 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19893 Likewise.
19894 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19895 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19896 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19897 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19898 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19900 Likewise.
19901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19902 Likewise.
19903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19904 Likewise.
19905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19906 Likewise.
19907
19908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19909 Likewise.
19910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19911 Likewise.
19912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19913 Likewise.
19914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19915 Likewise.
19916 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19917 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19918 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19919 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19920 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19921 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19922 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19923 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19924 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19925 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19926 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19927 Likewise.
19928 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19929 Likewise.
19930 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19931 Likewise.
19932 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19933 Likewise.
19934 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19935 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19936 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19937 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19938 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19939 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19940 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19941 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19942
19943 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19944
19945 * stdlib/strtof.c: Include <bits/floatn.h>
19946 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19947 and later undefine as macro. Define as weak alias if
19948 [!USE_WIDE_CHAR].
19949 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19950 and later undefine as macro. Define as weak alias if
19951 [USE_WIDE_CHAR].
19952 * stdlib/strtof_l.c: Include <bits/floatn.h>
19953 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19954 and later undefine as macro. Define as weak alias if
19955 [!USE_WIDE_CHAR].
19956 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19957 and later undefine as macro. Define as weak alias if
19958 [USE_WIDE_CHAR].
19959
19960 * stdlib/strfromf.c: Include <bits/floatn.h>.
19961 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19962 and later undefine as macro and define as weak alias.
19963
19964 * math/test-float32.h: New file.
19965
19966 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19967 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19968 (libm_alias_float_other_r): Create f32 alias.
19969 (libm_alias_float_r): Use semicolon before call to
19970 libm_alias_float_other_r.
19971
19972 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19973 second argument to libm_alias_float_other.
19974 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19975 second argument to libm_alias_float_other.
19976 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19977 argument to libm_alias_float_other.
19978
19979 [BZ #22561]
19980 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19981 real part of result for argument 0 + i * NaN.
19982 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19983 results for tests of 0 + i * NaN.
19984
19985 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19986
19987 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19988
19989 2017-12-06 David S. Miller <davem@davemloft.net>
19990
19991 * sysdeps/sparc/fpu/libm-test-ulps: Update
19992 exp_{downward,towardzero,upward} ulps.
19993
19994 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19995
19996 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19997 variables static.
19998
19999 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
20000 (Y0_2D): Likewise.
20001 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
20002 (Y0_2D): Likewise.
20003 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
20004 (Y0_2D): Likewise.
20005 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
20006 (Y0_2D): Likewise.
20007
20008 2017-12-06 Mike FABIAN <mfabian@redhat.com>
20009
20010 [BZ #22515]
20011 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
20012 and to the list of locales to be built for testing.
20013 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
20014 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20015 and build the collation rules upon that.
20016
20017 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20018
20019 * NEWS: Add sinf to list of optimized functions.
20020
20021 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20022
20023 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20024 (__HAVE_FLOAT32X): Likewise.
20025 * manual/math.texi (Mathematics): Document support for _Float64
20026 and _Float32x.
20027 * math/Makefile (test-types): Add float64 and float32x.
20028 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20029 functions.
20030 * stdlib/Versions (GLIBC_2.27): Likewise.
20031 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20032 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20033 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20034 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20035 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20036 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20037 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20038 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20039 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20040 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20041 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20042 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20043 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20044 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20045 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20046 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20047 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20048 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20049 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20050 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20051 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20052 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20053 Likewise.
20054 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20055 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20056 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20057 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20058 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20060 Likewise.
20061 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20062 Likewise.
20063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20064 Likewise.
20065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20066 Likewise.
20067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20068 Likewise.
20069 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20070 Likewise.
20071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20072 Likewise.
20073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20074 Likewise.
20075 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20076 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20077 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20078 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20079 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20080 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20081 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20082 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20083 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20084 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20085 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20086 Likewise.
20087 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20088 Likewise.
20089 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20090 Likewise.
20091 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20092 Likewise.
20093 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20094 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20095 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20096 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20097 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20098 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20099 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20100 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20101
20102 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20103
20104 * bits/floatn-common.h: Include <bits/long-double.h>.
20105 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20106 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20107 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20108 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20109 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20110 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20111 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20112 (__builtin_huge_valf64): Use __builtin_huge_vall.
20113 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20114 (__builtin_inff64): Use __builtin_infl.
20115 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20116 (__builtin_nanf64): Use __builtin_nanl.
20117 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20118 (__builtin_nansf64): Use __builtin_nansl.
20119
20120 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
20121 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
20122 Carlos O'Donnell <carlos@redhat.com>
20123
20124 * elf/dl-tunables.list: Add elision parameters.
20125 * manual/tunables.texi: Add entries about elision tunable.
20126 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20127 Add callback functions to dynamically enable/disable elision.
20128 Add multiple callbacks functions to set elision parameters.
20129 Deleted __libc_enable_secure check.
20130 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20131 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20132 * configure: Regenerated.
20133 * configure.ac: Option enable_lock_elision was deleted.
20134 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20135 * config.make.in: Remove references to enable_lock_elision.
20136 * manual/install.texi: Elision configure option was removed.
20137 * INSTALL: Regenerated to remove enable_lock_elision.
20138 * nptl/Makefile:
20139 Disable elision so it can verify error case for destroying a mutex.
20140 * sysdeps/powerpc/nptl/elide.h:
20141 Cleanup ENABLE_LOCK_ELISION check.
20142 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20143 * sysdeps/s390/configure: Regenerated.
20144 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20145 * nptl/tst-mutex8.c:
20146 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20147 * sysdeps/powerpc/powerpc32/sysdep.h:
20148 Deleted all ENABLE_LOCK_ELISION checks.
20149 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20150 * sysdeps/powerpc/sysdep.h: Likewise.
20151 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20152 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20153 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20154 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20155 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20156 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20157 enable-lock-elision.
20158
20159 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20160
20161 * stdlib/strtod.c: Include <bits/floatn.h>.
20162 (BUILD_DOUBLE): New macro.
20163 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20164 (strtof64): Define and later undefine as macro. Define as weak
20165 alias if [!USE_WIDE_CHAR].
20166 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20167 (wcstof64): Define and later undefine as macro. Define as weak
20168 alias if [USE_WIDE_CHAR].
20169 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20170 (strtof32x): Define and later undefine as macro. Define as weak
20171 alias if [!USE_WIDE_CHAR].
20172 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20173 (wcstof32x): Define and later undefine as macro. Define as weak
20174 alias if [USE_WIDE_CHAR].
20175 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20176 (BUILD_DOUBLE): New macro.
20177 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20178 (strtof64_l): Define and later undefine as macro. Define as weak
20179 alias if [!USE_WIDE_CHAR].
20180 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20181 (wcstof64_l): Define and later undefine as macro. Define as weak
20182 alias if [USE_WIDE_CHAR].
20183 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20184 (strtof32x_l): Define and later undefine as macro. Define as weak
20185 alias if [!USE_WIDE_CHAR].
20186 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20187 (wcstof32x_l): Define and later undefine as macro. Define as weak
20188 alias if [USE_WIDE_CHAR].
20189
20190 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20191
20192 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20193 (reduced): Use ones as double instead of integer.
20194
20195 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20196
20197 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20198
20199 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20200
20201 * stdlib/strfromd.c: Include <bits/floatn.h>.
20202 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20203 and later undefine as macro and define as weak alias.
20204 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20205 Likewise.
20206
20207 * math/test-float32x.h: New file.
20208 * math/test-float64.h: Likewise.
20209
20210 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20211 (libm_alias_double_other_r_f64): New macro.
20212 (libm_alias_double_other_r_f32x): Likewise.
20213 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20214 libm_alias_double_other_r_f32x.
20215 (libm_alias_double_r): Use semicolon before call to
20216 libm_alias_double_other_r.
20217 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20218 <bits/floatn.h>.
20219 (libm_alias_double_other_r_f64): New macro.
20220 (libm_alias_double_other_r_f32x): Likewise.
20221 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20222 libm_alias_double_other_r_f32x.
20223
20224 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20225
20226 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20227 int.
20228 (SINF_FUNC): Likewise. Replace floor with simple casts.
20229
20230 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20231
20232 [BZ #22517]
20233 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20234 and to the list of locales to be built for testing.
20235 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20236 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20237 and build the collation rules upon that.
20238
20239 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20240
20241 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20242 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20243 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20244 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20245 instead of __insn__xxx.
20246 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20247 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20248 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20249 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20250 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20251 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20252
20253 2017-12-05 Florian Weimer <fweimer@redhat.com>
20254
20255 Linux: Implement interfaces for memory protection keys
20256 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20257 xsignal, xsysconf.
20258 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20259 * support/xunistd.h (xsysconf): Declare.
20260 * support/xraise.c: New file.
20261 * support/xsigaction.c: Likewise.
20262 * support/xsignal.c: Likewise.
20263 * support/xsysconf.c: Likewise.
20264 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20265 pkey_set, pkey_get, pkey_mprotect.
20266 [misc] (tests): Add tst-pkey.
20267 (tst-pkey): Link with -lpthread.
20268 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20269 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20270 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20271 (PKEY_DISABLE_WRITE): Define.
20272 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20273 Declare.
20274 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20275 (SEGV_PKUERR): Add.
20276 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20277 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20278 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20279 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20280 Add.
20281 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20282 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20283 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20284 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20285 * sysdeps/unix/sysv/linux/**.abilist: Update.
20286
20287 2017-12-05 Florian Weimer <fweimer@redhat.com>
20288
20289 * support/tst-test_compare.c (subprocess): Use long long instead
20290 of long argument for consistent type width across 32-bit and
20291 64-bit architectures.
20292 (do_test): Adjust expected output.
20293
20294 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20295
20296 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20297 (cosf): Define using libm_alias_float.
20298 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20299 (fabsf): Define using libm_alias_float.
20300 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20301 (fmaf): Define using libm_alias_float.
20302 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20303 (rintf): Define using libm_alias_float.
20304 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20305 (sinf): Define using libm_alias_float.
20306 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20307 <libm-alias-float.h>.
20308 (modff): Define using libm_alias_float.
20309 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20310 <libm-alias-float.h>.
20311 (logbf): Define using libm_alias_float.
20312 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20313 <libm-alias-float.h>.
20314 (ceilf): Define using libm_alias_float.
20315 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20316 <libm-alias-float.h>.
20317 (copysignf): Define using libm_alias_float.
20318 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20319 <libm-alias-float.h>.
20320 (floorf): Define using libm_alias_float.
20321 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20322 <libm-alias-float.h>.
20323 (llrintf): Define using libm_alias_float.
20324 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20325 <libm-alias-float.h>.
20326 (llroundf): Define using libm_alias_float.
20327 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20328 <libm-alias-float.h>.
20329 (lrintf): Define using libm_alias_float.
20330 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20331 <libm-alias-float.h>.
20332 (lroundf): Define using libm_alias_float.
20333 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20334 <libm-alias-float.h>.
20335 (nearbyintf): Define using libm_alias_float.
20336 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20337 <libm-alias-float.h>.
20338 (rintf): Define using libm_alias_float.
20339 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20340 <libm-alias-float.h>.
20341 (roundf): Define using libm_alias_float.
20342 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20343 <libm-alias-float.h>.
20344 (truncf): Define using libm_alias_float.
20345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20346 Include <libm-alias-float.h>.
20347 (ceilf): Define using libm_alias_float.
20348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20349 Include <libm-alias-float.h>.
20350 (copysignf): Define using libm_alias_float.
20351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20352 Include <libm-alias-float.h>.
20353 (floorf): Define using libm_alias_float.
20354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20355 Include <libm-alias-float.h>.
20356 (llrintf): Define using libm_alias_float.
20357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20358 Include <libm-alias-float.h>.
20359 (llroundf): Define using libm_alias_float.
20360 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20361 Include <libm-alias-float.h>.
20362 (logbf): Define using libm_alias_float.
20363 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20364 Include <libm-alias-float.h>.
20365 (lrintf): Define using libm_alias_float.
20366 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20367 Include <libm-alias-float.h>.
20368 (lroundf): Define using libm_alias_float.
20369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20370 Include <libm-alias-float.h>.
20371 (modff): Define using libm_alias_float.
20372 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20373 Include <libm-alias-float.h>.
20374 (roundf): Define using libm_alias_float.
20375 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20376 Include <libm-alias-float.h>.
20377 (truncf): Define using libm_alias_float.
20378 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20379 <libm-alias-float.h>.
20380 (llrintf): Define using libm_alias_float.
20381 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20382 <libm-alias-float.h>.
20383 (llroundf): Define using libm_alias_float.
20384 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20385 <libm-alias-float.h>.
20386 (ceilf): Define using libm_alias_float.
20387 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20388 <libm-alias-float.h>.
20389 (floorf): Define using libm_alias_float.
20390 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20391 <libm-alias-float.h>.
20392 (llroundf): Define using libm_alias_float.
20393 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20394 <libm-alias-float.h>.
20395 (lroundf): Define using libm_alias_float.
20396 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20397 <libm-alias-float.h>.
20398 (roundf): Define using libm_alias_float.
20399 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20400 <libm-alias-float.h>.
20401 (truncf): Define using libm_alias_float.
20402 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20403 <libm-alias-float.h>.
20404 (copysignf): Define using libm_alias_float.
20405 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20406 <libm-alias-float.h>.
20407 (llrintf): Define using libm_alias_float.
20408 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20409 <libm-alias-float.h>.
20410 (llroundf): Define using libm_alias_float.
20411 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20412 <libm-alias-float.h>.
20413 (lrintf): Define using libm_alias_float.
20414 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20415 <libm-alias-float.h>.
20416 (lroundf): Define using libm_alias_float.
20417 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20418 <libm-alias-float.h>.
20419 (ceilf): Define using libm_alias_float.
20420 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20421 <libm-alias-float.h>.
20422 (copysignf): Define using libm_alias_float.
20423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20424 <libm-alias-float.h>.
20425 (cosf): Define using libm_alias_float.
20426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20427 <libm-alias-float.h>.
20428 (floorf): Define using libm_alias_float.
20429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20430 <libm-alias-float.h>.
20431 (llrintf): Define using libm_alias_float.
20432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20433 <libm-alias-float.h>.
20434 (llroundf): Define using libm_alias_float.
20435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20436 <libm-alias-float.h>.
20437 (logbf): Define using libm_alias_float.
20438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20439 <libm-alias-float.h>.
20440 (modff): Define using libm_alias_float.
20441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20442 <libm-alias-float.h>.
20443 (roundf): Define using libm_alias_float.
20444 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20445 <libm-alias-float.h>.
20446 (sinf): Define using libm_alias_float.
20447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20448 <libm-alias-float.h>.
20449 (truncf): Define using libm_alias_float.
20450 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20451 <libm-alias-float.h>.
20452 (ceilf): Define using libm_alias_float.
20453 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20454 <libm-alias-float.h>.
20455 (copysignf): Define using libm_alias_float.
20456 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20457 <libm-alias-float.h>.
20458 (floorf): Define using libm_alias_float.
20459 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20460 <libm-alias-float.h>.
20461 (llrintf): Define using libm_alias_float.
20462 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20463 <libm-alias-float.h>.
20464 (llroundf): Define using libm_alias_float.
20465 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20466 <libm-alias-float.h>.
20467 (nearbyintf): Define using libm_alias_float.
20468 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20469 <libm-alias-float.h>.
20470 (rintf): Define using libm_alias_float.
20471 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20472 <libm-alias-float.h>.
20473 (roundf): Define using libm_alias_float.
20474 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20475 <libm-alias-float.h>.
20476 (truncf): Define using libm_alias_float.
20477 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20478 <libm-alias-float.h>.
20479 (ceilf): Define using libm_alias_float.
20480 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20481 <libm-alias-float.h>.
20482 (floorf): Define using libm_alias_float.
20483 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20484 <libm-alias-float.h>.
20485 (llroundf): Define using libm_alias_float.
20486 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20487 <libm-alias-float.h>.
20488 (roundf): Define using libm_alias_float.
20489 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20490 <libm-alias-float.h>.
20491 (truncf): Define using libm_alias_float.
20492 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20493 <libm-alias-float.h>.
20494 (copysignf): Define using libm_alias_float.
20495 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20496 <libm-alias-float.h>.
20497 (llrintf): Define using libm_alias_float.
20498 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20499 <libm-alias-float.h>.
20500 (llroundf): Define using libm_alias_float.
20501 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20502 <libm-alias-float.h>.
20503 (cosf): Define using libm_alias_float.
20504 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20505 <libm-alias-float.h>.
20506 (llrintf): Define using libm_alias_float.
20507 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20508 <libm-alias-float.h>.
20509 (llroundf): Define using libm_alias_float.
20510 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20511 <libm-alias-float.h>.
20512 (sinf): Define using libm_alias_float.
20513
20514 2017-12-04 Florian Weimer <fweimer@redhat.com>
20515
20516 * support/check.h (TEST_COMPARE): Define.
20517 (support_test_compare_failure): Declare.
20518 * support/Makefile (libsupport-routines): Add
20519 support_test_compare_failure.
20520 (tests): Add tst-test_compare.
20521 * support /support_test_compare_failure.c: New file.
20522 * support/tst-test_compare.c: Likewise.
20523
20524 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20525
20526 [BZ #22527]
20527 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20528 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20529 available, this rewrite of the collation rules does reproduce
20530 the test file in the same order.
20531
20532 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20533
20534 [BZ #10580]
20535 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20536 digraphs in the month and day names. Using single code points for
20537 digraphs is deprecated. While there are dedicated Unicode
20538 codepoints, for the digraphs, these are included for backwards
20539 compatibility and modern texts use a sequence of Basic Latin
20540 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20541 This makes the month and day names agree exactly with CLDR now,
20542 CLDR does not use the single code points for the digraphs either.
20543
20544 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20545
20546 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20547
20548 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20549
20550 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20551 of floor.
20552
20553 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20554
20555 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20556 Define only for libc.so.
20557
20558 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20559
20560 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20561 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20562 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20563 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20564 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20565
20566 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20567
20568 [BZ #5997]
20569 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20570
20571 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20572
20573 [BZ libc/19170]
20574 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20575 PREINIT_FUNCTION_WEAK is nonzero.
20576 (gmon_initializer): New function. Put procedure label for it in
20577 .init_array section.
20578 (_init): Don't call PREINIT_FUNCTION.
20579 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20580 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20581 value when map argument is null.
20582
20583 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20584 depi instruction from PIC pc-relative sequence.
20585 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20586 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20587 (elf_machine_load_address): Likewise.
20588 (elf_machine_runtime_setup): Likewise.
20589
20590 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20591
20592 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20593 <libm-alias-double.h>.
20594 (logb): Define using libm_alias_double.
20595 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20596 <libm-alias-double.h>.
20597 (copysign): Define using libm_alias_double.
20598 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20599 <libm-alias-double.h>.
20600 (llrint): Define using libm_alias_double.
20601 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20602 <libm-alias-double.h>.
20603 (llround): Define using libm_alias_double.
20604 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20605 <libm-alias-double.h>.
20606 (lrint): Define using libm_alias_double.
20607 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20608 <libm-alias-double.h>.
20609 (lround): Define using libm_alias_double.
20610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20611 Include <libm-alias-double.h>.
20612 (copysign): Define using libm_alias_double.
20613 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20614 Include <libm-alias-double.h>.
20615 (llrint): Define using libm_alias_double.
20616 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20617 Include <libm-alias-double.h>.
20618 (llround): Define using libm_alias_double.
20619 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20620 <libm-alias-double.h>.
20621 (logb): Define using libm_alias_double.
20622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20623 Include <libm-alias-double.h>.
20624 (lrint): Define using libm_alias_double.
20625 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20626 Include <libm-alias-double.h>.
20627 (lround): Define using libm_alias_double.
20628 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20629 <libm-alias-double.h>.
20630 (llrint): Define using libm_alias_double.
20631 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20632 <libm-alias-double.h>.
20633 (llround): Define using libm_alias_double.
20634 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20635 <libm-alias-double.h>.
20636 (llround): Define using libm_alias_double.
20637 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20638 <libm-alias-double.h>.
20639 (lround): Define using libm_alias_double.
20640 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20641 <libm-alias-double.h>.
20642 (copysign): Define using libm_alias_double.
20643 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20644 <libm-alias-double.h>.
20645 (llrint): Define using libm_alias_double.
20646 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20647 <libm-alias-double.h>.
20648 (llround): Define using libm_alias_double.
20649 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20650 <libm-alias-double.h>.
20651 (lrint): Define using libm_alias_double.
20652 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20653 <libm-alias-double.h>.
20654 (lround): Define using libm_alias_double.
20655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20656 <libm-alias-double.h>.
20657 (copysign): Define using libm_alias_double.
20658 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20659 <libm-alias-double.h>.
20660 (llrint): Define using libm_alias_double.
20661 (lrint): Likewise.
20662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20663 <libm-alias-double.h>.
20664 (llround): Define using libm_alias_double.
20665 (lround): Likewise.
20666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20667 <libm-alias-double.h>.
20668 (logb): Define using libm_alias_double.
20669 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20670 <libm-alias-double.h>.
20671 (copysign): Define using libm_alias_double.
20672 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20673 <libm-alias-double.h>.
20674 (llrint): Define using libm_alias_double.
20675 (lrint): Likewise.
20676 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20677 <libm-alias-double.h>.
20678 (llround): Define using libm_alias_double.
20679 (lround): Likewise.
20680 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20681 <libm-alias-double.h>.
20682 (llround): Define using libm_alias_double.
20683 (lround): Likewise.
20684 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20685 <libm-alias-double.h>.
20686 (copysign): Define using libm_alias_double.
20687 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20688 <libm-alias-double.h>.
20689 (llrint): Define using libm_alias_double.
20690 (lrint): Likewise.
20691 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20692 <libm-alias-double.h>.
20693 (llround): Define using libm_alias_double.
20694 (lround): Likewise.
20695 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20696 <libm-alias-double.h>.
20697 (llrint): Define using libm_alias_double.
20698 (lrint): Likewise.
20699 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20700 <libm-alias-double.h>.
20701 (llround): Define using libm_alias_double.
20702 (lround): Likewise.
20703
20704 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20705
20706 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20707 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20708 compat symbol based on llround.
20709
20710 * sysdeps/powerpc/power7/fpu/s_logb.c
20711 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20712 symbol based on __logb, not on logb.
20713 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20714 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20715 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20716 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20717
20718 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20719 (rint): Define using libm_alias_double.
20720 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20721 <libm-alias-double.h>.
20722 (modf): Define using libm_alias_double.
20723 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20724 <libm-alias-double.h>.
20725 (ceil): Define using libm_alias_double.
20726 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20727 <libm-alias-double.h>.
20728 (floor): Define using libm_alias_double.
20729 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20730 <libm-alias-double.h>.
20731 (nearbyint): Define using libm_alias_double.
20732 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20733 <libm-alias-double.h>.
20734 (rint): Define using libm_alias_double.
20735 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20736 <libm-alias-double.h>.
20737 (round): Define using libm_alias_double.
20738 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20739 <libm-alias-double.h>.
20740 (trunc): Define using libm_alias_double.
20741 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20742 <libm-alias-double.h>.
20743 (ceil): Define using libm_alias_double.
20744 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20745 Include <libm-alias-double.h>.
20746 (floor): Define using libm_alias_double.
20747 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20748 <libm-alias-double.h>.
20749 (modf): Define using libm_alias_double.
20750 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20751 Include <libm-alias-double.h>.
20752 (round): Define using libm_alias_double.
20753 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20754 Include <libm-alias-double.h>.
20755 (trunc): Define using libm_alias_double.
20756 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20757 <libm-alias-double.h>.
20758 (ceil): Define using libm_alias_double.
20759 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20760 <libm-alias-double.h>.
20761 (floor): Define using libm_alias_double.
20762 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20763 <libm-alias-double.h>.
20764 (round): Define using libm_alias_double.
20765 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20766 <libm-alias-double.h>.
20767 (trunc): Define using libm_alias_double.
20768 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20769 <libm-alias-double.h>.
20770 (ceil): Define using libm_alias_double.
20771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20772 <libm-alias-double.h>.
20773 (floor): Define using libm_alias_double.
20774 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20775 <libm-alias-double.h>.
20776 (modf): Define using libm_alias_double.
20777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20778 <libm-alias-double.h>.
20779 (round): Define using libm_alias_double.
20780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20781 <libm-alias-double.h>.
20782 (trunc): Define using libm_alias_double.
20783 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20784 <libm-alias-double.h>.
20785 (ceil): Define using libm_alias_double.
20786 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20787 <libm-alias-double.h>.
20788 (floor): Define using libm_alias_double.
20789 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20790 <libm-alias-double.h>.
20791 (nearbyint): Define using libm_alias_double.
20792 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20793 <libm-alias-double.h>.
20794 (rint): Define using libm_alias_double.
20795 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20796 <libm-alias-double.h>.
20797 (round): Define using libm_alias_double.
20798 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20799 <libm-alias-double.h>.
20800 (trunc): Define using libm_alias_double.
20801 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20802 <libm-alias-double.h>.
20803 (ceil): Define using libm_alias_double.
20804 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20805 <libm-alias-double.h>.
20806 (floor): Define using libm_alias_double.
20807 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20808 <libm-alias-double.h>.
20809 (round): Define using libm_alias_double.
20810 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20811 <libm-alias-double.h>.
20812 (trunc): Define using libm_alias_double.
20813
20814 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20815 (fabs): Define using libm_alias_double.
20816 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20817 (fma): Define using libm_alias_double.
20818 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20819 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20820 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20821 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20822
20823 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20824
20825 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20826
20827 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20828 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20829 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20830
20831 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20832 due redirect macro.
20833
20834 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20835
20836 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20837
20838 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20839
20840 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20841 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20842 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20843 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20844
20845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20846 (libm-sysdep_routines): Add s_nearbyintf-generic and
20847 s_nearbyint-generic.
20848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20849 New file.
20850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20851 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20852 Likewise.
20853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20854 Likewise.
20855 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20856 file.
20857 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20858 Likewise.
20859
20860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20861 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20863 file.
20864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20866 Likewise.
20867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20870
20871 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20872 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20874 file.
20875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20877 Likewise.
20878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20881
20882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20883 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20884 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20885 file.
20886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20887 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20888 Likewise.
20889 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20890 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20892
20893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20894 (sysdep_calls): New rule.
20895 (sysdep_routines): Use sysdep_calls as base.
20896 (libm-sysdep_routines): Add generic rule for symbols shared with
20897 libc. Add s_copysign-generic and s_copysign-generic objects.
20898 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20899 New file.
20900 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20902 Likewise.
20903 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20904 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20905 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20906
20907 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20908
20909 [BZ #22519]
20910 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20911 the list of locales to be built for testing.
20912 * localedata/is_IS.UTF-8.in: New file.
20913 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20914 on iso14651_t1.
20915
20916 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20917
20918 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20919 <libm-alias-float.h>.
20920 (fabsf): Define using libm_alias_float.
20921
20922 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20923
20924 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20925
20926 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20927
20928 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20929 <libm-alias-float.h>.
20930 (fabsf): Define using libm_alias_float.
20931 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20932 <libm-alias-float.h>.
20933 (lrintf): Define using libm_alias_float.
20934 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20935 <libm-alias-float.h>.
20936 (rintf): Define using libm_alias_float.
20937
20938 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20939 <libm-alias-double.h>.
20940 (fabs): Define using libm_alias_double.
20941 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20942 <libm-alias-double.h>.
20943 (lrint): Define using libm_alias_double.
20944 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20945 <libm-alias-double.h>.
20946 (rint): Define using libm_alias_double.
20947
20948 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20949 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20950 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20951 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20952 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20953 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20954 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20955 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20956 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20957 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20958 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20959 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20960 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20961 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20962 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20963 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20964 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20965 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20966 s_atan_template.c.
20967 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20968 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20969 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20970 s_ceil_template.c.
20971 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20972 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20973 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20974 s_cos_template.c.
20975 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20976 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20977 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20978 s_expm1_template.c.
20979 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20980 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20981 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20982 s_fabs_template.c.
20983 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20984 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20985 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20986 s_floor_template.c.
20987 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20988 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20989 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20990 s_frexp_template.c.
20991 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20992 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20993 s_lrint_template.c.
20994 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20995 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20996 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20997 s_modf_template.c.
20998 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20999 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
21000 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
21001 s_nearbyint_template.c.
21002 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
21003 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
21004 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
21005 s_remquo_template.c.
21006 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
21007 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
21008 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
21009 s_rint_template.c.
21010 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
21011 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
21012 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
21013 s_sin_template.c.
21014 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21015 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21016 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21017 s_sincos_template.c.
21018 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21019 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21020 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21021 s_tan_template.c.
21022 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21023 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21024 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21025 s_tanh_template.c.
21026 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21027 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21028 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21029 s_trunc_template.c.
21030 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21031 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21032 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21033 s_atan.c instead of including s_atan.c.
21034 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21035 s_atanf.c instead of including s_atanf.c.
21036 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21037 s_atanl.c instead of including s_atanl.c.
21038 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21039 instead of s_atan.c.
21040 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21041 instead of s_atanf.c.
21042 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21043 instead of s_atanl.c.
21044
21045 * scripts/update-copyrights: Do not handle intl/plural.c
21046 specially.
21047
21048 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
21049
21050 [BZ #22432]
21051 * configure.ac (BISON): Require to be present.
21052 * configure: Regenerated.
21053 * intl/Makefile (generated): Add plural.c.
21054 [$(BISON) != no]: Make code unconditional.
21055 (plural.c): Change rule to $(objpfx)plural.c.
21056 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21057 * intl/plural.c: Remove.
21058 * manual/install.texi (Tools for Compilation): Document bison as
21059 required.
21060 * INSTALL: Regenerated.
21061
21062 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21063
21064 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21065 <libm-alias-double.h>.
21066 (llrint): Define using libm_alias_double.
21067 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21068 <libm-alias-float.h>.
21069 (llrintf): Define using libm_alias_float.
21070 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21071 <libm-alias-ldouble.h>.
21072 (llrintl): Define using libm_alias_ldouble.
21073
21074 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21075 declare_mgen_alias instead of weak_alias.
21076 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21077 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21078 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21079
21080 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21081
21082 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21083 Add add_n-generic.
21084 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21085 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21086 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21087
21088 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21089 Add submul_1-generic.
21090 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21091 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21092 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21093
21094 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21095 Add addmul_1-generic.
21096 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21097 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21098 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21099
21100 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21101 Add sub_n-generic.
21102 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21103 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21104 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21105
21106 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21107 Add mul_1-generic.
21108 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21109 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21110 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21111
21112 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21113
21114 According to CLDR, collation rules for Serbian and Bosnian
21115 should be the same as for Croatian.
21116
21117 [BZ #22534]
21118 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21119 and to the list of locales to be built for testing.
21120 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21121 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21122 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21123 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21124
21125 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21126
21127 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21128 to make test case pass.
21129 * localedata/hr_HR.UTF-8.in: Add more test strings.
21130
21131 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21132
21133 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21134
21135 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21136
21137 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21138 the list of locales to built for testing.
21139 * localedata/hr_HR.UTF-8.in: New file.
21140
21141 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21142
21143 [BZ #10580]
21144 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21145 iso14651_t1.
21146 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21147 CLDR (except use ligatures for the digraphs, CLDR does not use
21148 the ligatures), add first_workday, some fixes in the date and time
21149 formats.
21150 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21151 for Đ and đ.
21152 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21153 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21154 Add int_p_cs_precedes and int_n_cs_precedes.
21155 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21156 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21157 LC_MONETARY now).
21158 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21159 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21160 name_miss.
21161 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21162 and lang_lib. Change postal_fmt.
21163
21164 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21165
21166 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21167 <setjmp.h>.
21168 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21169 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21170 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21171 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21172 * sysdeps/generic/setjmpP.h: New file.
21173 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21174 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21175 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21176 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21177 Add jmp_buf-ssp.sym.
21178 (tests): Add tst-saved_mask-1.
21179
21180 2017-11-30 Arjun Shankar <arjun@redhat.com>
21181
21182 [BZ #22375]
21183 CVE-2017-17426
21184 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21185 instead of request2size.
21186
21187 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21188
21189 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21190 (__lllrint): Remove alias.
21191 (lllrint): Likewise.
21192 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21193 (__lllrintf): Likewise.
21194 (lllrintf): Likewise.
21195
21196 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21197 <libm-alias-float.h>.
21198 (copysignf): Define using libm_alias_float.
21199 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21200 <libm-alias-float.h>.
21201 (fabsf): Define using libm_alias_float.
21202 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21203 Include <libm-alias-float.h>.
21204 (copysignf): Define using libm_alias_float.
21205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21206 <libm-alias-float.h>.
21207 (fabsf): Define using libm_alias_float.
21208 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21209 <libm-alias-float.h>.
21210 (fdimf): Define using libm_alias_float.
21211 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21212 <libm-alias-float.h>.
21213 (fmaf): Define using libm_alias_float.
21214 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21215 <libm-alias-float.h>.
21216 (llrintf): Define using libm_alias_float.
21217 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21218 Include <libm-alias-float.h>.
21219 (nearbyintf): Define using libm_alias_float.
21220 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21221 <libm-alias-float.h>.
21222 (rintf): Define using libm_alias_float.
21223 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21224 <libm-alias-float.h>.
21225 (llrintf): Define using libm_alias_float.
21226 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21227 <libm-alias-float.h>.
21228 (lrintf): Define using libm_alias_float.
21229 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21230 <libm-alias-float.h>.
21231 (nearbyintf): Define using libm_alias_float.
21232 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21233 <libm-alias-float.h>.
21234 (rintf): Define using libm_alias_float.
21235 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21236 <libm-alias-float.h>.
21237 (ceilf): Define using libm_alias_float.
21238 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21239 <libm-alias-float.h>.
21240 (floorf): Define using libm_alias_float.
21241 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21242 <libm-alias-float.h>.
21243 (fmaf): Define using libm_alias_float.
21244 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21245 <libm-alias-float.h>.
21246 (lrintf): Define using libm_alias_float.
21247 (llrintf): Likewise.
21248 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21249 <libm-alias-float.h>.
21250 (nearbyintf): Define using libm_alias_float.
21251 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21252 <libm-alias-float.h>.
21253 (rintf): Define using libm_alias_float.
21254 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21255 <libm-alias-float.h>.
21256 (truncf): Define using libm_alias_float.
21257 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21258 <libm-alias-float.h>.
21259 (copysignf): Define using libm_alias_float.
21260 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21261 <libm-alias-float.h>.
21262 (fabsf): Define using libm_alias_float.
21263 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21264 <libm-alias-float.h>.
21265 (lrintf): Define using libm_alias_float.
21266 (llrintf): Likewise.
21267 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21268 <libm-alias-float.h>.
21269 (nearbyintf): Define using libm_alias_float.
21270 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21271 <libm-alias-float.h>.
21272 (rintf): Define using libm_alias_float.
21273
21274 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21275
21276 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21277 <libm-alias-double.h>.
21278 (copysign): Define using libm_alias_double.
21279 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21280 <libm-alias-double.h>.
21281 (fabs): Define using libm_alias_double.
21282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21283 Include <libm-alias-double.h>.
21284 (copysign): Define using libm_alias_double.
21285 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21286 <libm-alias-double.h>.
21287 (fabs): Define using libm_alias_double.
21288 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21289 <libm-alias-double.h>.
21290 (fdim): Define using libm_alias_double.
21291 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21292 <libm-alias-double.h>.
21293 (fma): Define using libm_alias_double.
21294 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21295 <libm-alias-double.h>.
21296 (llrint): Define using libm_alias_double.
21297 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21298 Include <libm-alias-double.h>.
21299 (nearbyint): Define using libm_alias_double.
21300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21301 <libm-alias-double.h>.
21302 (rint): Define using libm_alias_double.
21303 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21304 <libm-alias-double.h>.
21305 (fabs): Define using libm_alias_double.
21306 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21307 <libm-alias-double.h>.
21308 (llrint): Define using libm_alias_double.
21309 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21310 <libm-alias-double.h>.
21311 (nearbyint): Define using libm_alias_double.
21312 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21313 <libm-alias-double.h>.
21314 (rint): Define using libm_alias_double.
21315 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21316 <libm-alias-double.h>.
21317 (ceil): Define using libm_alias_double.
21318 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21319 <libm-alias-double.h>.
21320 (floor): Define using libm_alias_double.
21321 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21322 <libm-alias-double.h>.
21323 (fma): Define using libm_alias_double.
21324 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21325 <libm-alias-double.h>.
21326 (lrint): Define using libm_alias_double.
21327 (llrint): Likewise.
21328 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21329 <libm-alias-double.h>.
21330 (nearbyint): Define using libm_alias_double.
21331 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21332 <libm-alias-double.h>.
21333 (rint): Define using libm_alias_double.
21334 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21335 <libm-alias-double.h>.
21336 (trunc): Define using libm_alias_double.
21337 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21338 <libm-alias-double.h>.
21339 (copysign): Define using libm_alias_double.
21340 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21341 <libm-alias-double.h>.
21342 (fabs): Define using libm_alias_double.
21343 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21344 <libm-alias-double.h>.
21345 (lrint): Define using libm_alias_double.
21346 (llrint): Likewise.
21347 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21348 <libm-alias-double.h>.
21349 (nearbyint): Define using libm_alias_double.
21350 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21351 <libm-alias-double.h>.
21352 (rint): Define using libm_alias_double.
21353
21354 [BZ #22229]
21355 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21356 <math_ldbl_opt.h>.
21357 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21358
21359 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21360 SPARC --disable-multi-arch glibc variants.
21361
21362 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21363 <libm-alias-float.h>.
21364 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21365 if [SHARED].
21366 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21367 <libm-alias-float.h>.
21368 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21369 if [SHARED].
21370 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21371 <libm-alias-float.h>.
21372 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21373 if [SHARED].
21374 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21375 <libm-alias-float.h>.
21376 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21377 if [SHARED].
21378 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21379 <libm-alias-float.h>.
21380 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21381 if [SHARED].
21382 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21383 <libm-alias-float.h>.
21384 (ceilf): Define using libm_alias_float.
21385 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21386 <libm-alias-float.h>.
21387 (floorf): Define using libm_alias_float.
21388 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21389 <libm-alias-float.h>.
21390 (fmaf): Define using libm_alias_float.
21391 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21392 <libm-alias-float.h>.
21393 (nearbyintf): Define using libm_alias_float.
21394 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21395 <libm-alias-float.h>.
21396 (rintf): Define using libm_alias_float.
21397 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21398 <libm-alias-float.h>.
21399 (truncf): Define using libm_alias_float.
21400 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21401 (copysignf): Define using libm_alias_float.
21402 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21403 (cosf): Define using libm_alias_float.
21404 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21405 (fabsf): Define using libm_alias_float.
21406 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21407 (fmaxf): Define using libm_alias_float.
21408 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21409 (fminf): Define using libm_alias_float.
21410 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21411 (llrintf): Define using libm_alias_float.
21412 [!__ILP32__] (lrintf): Likewise.
21413 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21414 (sincosf): Define using libm_alias_float.
21415 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21416 (sinf): Define using libm_alias_float.
21417 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21418 (lrintf): Define using libm_alias_float.
21419
21420 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21421 <libm-alias-double.h>.
21422 (atan): Define using libm_alias_double.
21423 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21424 <libm-alias-double.h>.
21425 (ceil): Define using libm_alias_double.
21426 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21427 <libm-alias-double.h>.
21428 (floor): Define using libm_alias_double.
21429 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21430 <libm-alias-double.h>.
21431 (fma): Define using libm_alias_double.
21432 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21433 <libm-alias-double.h>.
21434 (nearbyint): Define using libm_alias_double.
21435 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21436 <libm-alias-double.h>.
21437 (rint): Define using libm_alias_double.
21438 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21439 <libm-alias-double.h>.
21440 (sin): Define using libm_alias_double.
21441 (cos): Likewise.
21442 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21443 <libm-alias-double.h>.
21444 (tan): Define using libm_alias_double.
21445 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21446 <libm-alias-double.h>.
21447 (trunc): Define using libm_alias_double.
21448 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21449 (copysign): Define using libm_alias_double.
21450 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21451 (fabs): Define using libm_alias_double.
21452 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21453 (fmax): Define using libm_alias_double.
21454 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21455 (fmin): Define using libm_alias_double.
21456 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21457 (llrint): Define using libm_alias_double.
21458 [!__ILP32__] (lrint): Likewise.
21459 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21460 (lrint): Define using libm_alias_double.
21461
21462 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21463
21464 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21465 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21466 objects.
21467 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21468 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21469 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21470 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21471 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21472 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21473
21474 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21475 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21476 objects.
21477 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21478 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21479 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21480 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21481 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21482 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21483
21484 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21485 (libm-sysdep_routines): Add s_nearbyint-generic and
21486 s_nearbyintf-generic objects.
21487 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21488 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21489 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21490 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21491 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21492 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21493
21494 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21495 Add s_finitef-generic and s_finite-generic objects.
21496 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21497 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21498 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21499 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21500 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21501 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21502
21503 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21504 Add s_isinff-generic and s_isinf-generic objects.
21505 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21506 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21507 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21508 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21509 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21510 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21511
21512 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21513 Add s_isnanf-generic and s_isnan-generic objects.
21514 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21515 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21516 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21517 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21518 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21519 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21520
21521 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21522 macro.
21523 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21524 rule.
21525 (sysdep_routines): Use sysdep_calls as base.
21526 (libm-sysdep_routines): Add generic rule for symbols shared with
21527 libc. Add s_signbit-generic and s_signbitf-generic objects.
21528 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21529 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21530 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21531 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21532 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21533 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21534
21535 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21536
21537 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21538 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21539 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21540 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21541 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21542 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21543 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21544 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21545 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21546 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21547 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21548 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21549 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21550 libm_alias_float_r.
21551 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21552 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21553 (logf): Likewise.
21554 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21555 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21556 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21557 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21558 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21559 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21560 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21561 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21562 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21563 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21564 libm_alias_float.
21565 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21566 (cosf): Likewise.
21567 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21568 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21569 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21570 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21571 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21572 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21573 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21574 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21575 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21576 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21577 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21578 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21579 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21580 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21581 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21582 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21583 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21584 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21585 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21586 libm_alias_float.
21587 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21588 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21589 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21590 * sysdeps/ia64/fpu/w_lgammaf_main.c
21591 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21592 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21593
21594 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21595 Alexandre Oliva <aoliva@redhat.com>
21596
21597 [BZ #17750]
21598 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21599 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21600 accents sorting.
21601 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21602 sorting.
21603 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21604 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21605 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21606 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21607 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21608 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21609 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21610 instead of “ifdef DIACRIT_BACKWARD”.
21611
21612 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21613
21614 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21615 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21616 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21617 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21618 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21619 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21620 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21621 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21622 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21623 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21624 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21625 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21626 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21627 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21628 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21629 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21630 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21631 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21632 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21633 ($(have-as-vis3) == yes): Remove conditional.
21634 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21635 Likewise.
21636 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21637 file.
21638 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21639 file.
21640 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21641 file.
21642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21643 file.
21644 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21645 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21646 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21647 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21648 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21649 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21650 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21651 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21652
21653 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21654
21655 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21656 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21657 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21658 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21659 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21660 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21661 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21662 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21663 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21664 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21665 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21666 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21667 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21668 libm_alias_double_r.
21669 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21670 (log): Likewise.
21671 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21672 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21673 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21674 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21675 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21676 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21677 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21678 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21679 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21680 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21681 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21682 libm_alias_double.
21683 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21684 (cos): Likewise.
21685 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21686 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21687 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21688 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21689 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21690 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21691 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21692 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21693 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21694 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21695 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21696 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21697 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21698 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21699 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21700 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21701 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21702 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21703 libm_alias_double.
21704 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21705 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21706 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21707 * sysdeps/ia64/fpu/w_lgamma_main.c
21708 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21709 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21710
21711 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21712
21713 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21714 address of $global$ into %dp register earlier. Use pc-relative
21715 instruction sequence for PIC case.
21716
21717 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21718
21719 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21720 (asinhf): Define using libm_alias_float.
21721 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21722 (atanf): Define using libm_alias_float.
21723 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21724 (cbrtf): Define using libm_alias_float.
21725 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21726 (ceilf): Define using libm_alias_float.
21727 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21728 (copysignf): Define using libm_alias_float.
21729 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21730 (expm1f): Define using libm_alias_float.
21731 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21732 (fabsf): Define using libm_alias_float.
21733 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21734 (floorf): Define using libm_alias_float.
21735 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21736 (fmaxf): Define using libm_alias_float.
21737 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21738 (fminf): Define using libm_alias_float.
21739 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21740 (frexpf): Define using libm_alias_float.
21741 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21742 (llrintf): Define using libm_alias_float.
21743 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21744 (logbf): Define using libm_alias_float.
21745 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21746 (lrintf): Define using libm_alias_float.
21747 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21748 (nearbyintf): Define using libm_alias_float.
21749 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21750 (remquof): Define using libm_alias_float.
21751 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21752 (rintf): Define using libm_alias_float.
21753 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21754 (truncf): Define using libm_alias_float.
21755 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21756 <libm-alias-float.h>.
21757 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21758 if [SHARED].
21759 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21760 <libm-alias-float.h>.
21761 (expf): Define using libm_alias_float, or libm_alias_float_other
21762 if [SHARED].
21763 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21764 <libm-alias-float.h>.
21765 (log2f): Define using libm_alias_float, or libm_alias_float_other
21766 if [SHARED].
21767 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21768 <libm-alias-float.h>.
21769 (logf): Define using libm_alias_float, or libm_alias_float_other
21770 if [SHARED].
21771 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21772 <libm-alias-float.h>.
21773 (powf): Define using libm_alias_float, or libm_alias_float_other
21774 if [SHARED].
21775 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21776 <libm-alias-float.h>.
21777 (cosf): Define using libm_alias_float.
21778 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21779 <libm-alias-float.h>.
21780 (sincosf): Define using libm_alias_float.
21781 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21782 <libm-alias-float.h>.
21783 (sinf): Define using libm_alias_float.
21784 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21785 (fmaxf): Define using libm_alias_float.
21786 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21787 (fminf): Define using libm_alias_float.
21788 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21789 <libm-alias-float.h>.
21790 (fmaf): Define using libm_alias_float.
21791
21792 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21793 (asinh): Define using libm_alias_double.
21794 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21795 (atan): Define using libm_alias_double.
21796 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21797 (cbrt): Define using libm_alias_double.
21798 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21799 (ceil): Define using libm_alias_double.
21800 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21801 (copysign): Define using libm_alias_double.
21802 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21803 (expm1): Define using libm_alias_double.
21804 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21805 (fabs): Define using libm_alias_double.
21806 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21807 (fdim): Define using libm_alias_double.
21808 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21809 (floor): Define using libm_alias_double.
21810 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21811 (fmax): Define using libm_alias_double.
21812 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21813 (fmin): Define using libm_alias_double.
21814 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21815 (frexp): Define using libm_alias_double.
21816 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21817 (llrint): Define using libm_alias_double.
21818 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21819 (logb): Define using libm_alias_double.
21820 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21821 (lrint): Define using libm_alias_double.
21822 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21823 (nearbyint): Define using libm_alias_double.
21824 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21825 (remquo): Define using libm_alias_double.
21826 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21827 (rint): Define using libm_alias_double.
21828 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21829 (trunc): Define using libm_alias_double.
21830 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21831 (fmax): Define using libm_alias_double.
21832 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21833 (fmin): Define using libm_alias_double.
21834 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21835 (fma): Define using libm_alias_double.
21836
21837 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21838
21839 [BZ #22370]
21840 * elf/dl-hwcaps.c (ROUND): Removed.
21841 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21842 and ELF_NOTE_NEXT_OFFSET.
21843 * elf/dl-load.c (ROUND): Removed.
21844 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21845 * elf/readelflib.c (ROUND): Removed.
21846 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21847 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21848 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21849 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21850
21851 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21852
21853 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21854 [!__fmaf] (fmaf): Define using libm_alias_float.
21855
21856 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21857 [!__fma] (fma): Define using libm_alias_double.
21858 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21859
21860 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21861
21862 [BZ #22336]
21863 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21864 and implement the collation rules for cs from CLDR on top of that.
21865 * Makefile: Add cs_CZ.UTF-8 to test-input.
21866 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21867
21868 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21869
21870 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21871
21872 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21873 Icarus Sparry <icarus.w.sparry@intel.com>
21874
21875 * benchtests/Makefile:Add BENCHSET to allow subsets of
21876 benchmarks to be run.
21877 * benchtests/README: Add documentation for: Running subsets of
21878 benchmarks.
21879
21880 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21881
21882 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21883 range of tests names.
21884
21885 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21886 result from property and remove "max", min" and "mean" from
21887 required properties based on benchtests/bench-skeleton.c.
21888
21889 2017-11-28 Florian Weimer <fweimer@redhat.com>
21890
21891 [BZ #20826]
21892 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21893 due to Internet requirement.
21894 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21895 tst-getaddrinfo5.
21896 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21897
21898 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21899
21900 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21901 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21902 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21903 (sysdep_routines): Add memset-ultra1.
21904 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21905 file.
21906 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21907 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21908 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21909 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21910 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21911 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21912 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21913 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21914
21915 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21916 file.
21917 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21918 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21919 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21920 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21921 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21922 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21923 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21924 macro.
21925 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21926 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21927 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21928 (sysdep_routines): Add memcpy-ultra1.
21929 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21930 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21931
21932 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21933
21934 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21935 (cfloat_versions): Take function argument without trailing 'f'.
21936 Call libm_alias_float_other.
21937 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21938 * sysdeps/alpha/fpu/cargf.c: Likewise.
21939 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21940 * sysdeps/alpha/fpu/conjf.c: Likewise.
21941 * sysdeps/alpha/fpu/crealf.c: Likewise.
21942 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21943 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21944 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21945 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21946 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21947 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21948 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21949 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21950 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21951 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21952 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21953 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21954 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21955 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21956 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21957 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21958 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21959 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21960 (clog10f): Use libm_alias_float_other.
21961 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21962 (ceilf): Define using libm_alias_float.
21963 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21964 (copysignf): Define using libm_alias_float.
21965 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21966 (fabsf): Define using libm_alias_float.
21967 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21968 (floorf): Define using libm_alias_float.
21969 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21970 (fmaxf): Define using libm_alias_float.
21971 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21972 (fminf): Define using libm_alias_float.
21973 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21974 (lrintf): Define using libm_alias_float.
21975 (llrintf): Likewise.
21976 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21977 (lroundf): Define using libm_alias_float.
21978 (llroundf): Likewise.
21979 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21980 (rintf): Define using libm_alias_float.
21981 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21982 (truncf): Define using libm_alias_float.
21983
21984 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21985 (ceilf): Define using libm_alias_float.
21986 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21987 (floorf): Define using libm_alias_float.
21988 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21989 (fmaf): Define using libm_alias_float.
21990 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21991 (fmaxf): Define using libm_alias_float.
21992 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21993 (fminf): Define using libm_alias_float.
21994 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21995 (llrintf): Define using libm_alias_float.
21996 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21997 (llroundf): Define using libm_alias_float.
21998 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21999 (lrintf): Define using libm_alias_float.
22000 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22001 (lroundf): Define using libm_alias_float.
22002 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
22003 <libm-alias-float.h>.
22004 (nearbyintf): Define using libm_alias_float.
22005 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
22006 (rintf): Define using libm_alias_float.
22007 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
22008 (roundf): Define using libm_alias_float.
22009 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
22010 (truncf): Define using libm_alias_float.
22011
22012 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
22013 (ceil): Define using libm_alias_double.
22014 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22015 (copysign): Define using libm_alias_double.
22016 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22017 (fabs): Define using libm_alias_double.
22018 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22019 (floor): Define using libm_alias_double.
22020 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22021 (fmax): Define using libm_alias_double.
22022 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22023 (fmin): Define using libm_alias_double.
22024 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22025 (lrint): Define using libm_alias_double.
22026 (llrint): Likewise.
22027 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22028 (lround): Define using libm_alias_double.
22029 (llround): Likewise.
22030 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22031 (rint): Define using libm_alias_double.
22032 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22033 (trunc): Define using libm_alias_double.
22034
22035 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22036 (libm_alias_double_r): Add semicolon after weak_alias call.
22037
22038 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22039
22040 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22041 (ceil): Define using libm_alias_double.
22042 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22043 (floor): Define using libm_alias_double.
22044 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22045 (fma): Define using libm_alias_double.
22046 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22047 (fmax): Define using libm_alias_double.
22048 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22049 (fmin): Define using libm_alias_double.
22050 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22051 (llrint): Define using libm_alias_double.
22052 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22053 (llround): Define using libm_alias_double.
22054 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22055 (lrint): Define using libm_alias_double.
22056 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22057 (lround): Define using libm_alias_double.
22058 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22059 (nearbyint): Define using libm_alias_double.
22060 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22061 (rint): Define using libm_alias_double.
22062 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22063 (round): Define using libm_alias_double.
22064 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22065 (trunc): Define using libm_alias_double.
22066
22067 2017-11-27 Florian Weimer <fweimer@redhat.com>
22068
22069 * sysdeps/unix/sysv/linux/mlock2.c: New file.
22070 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22071 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22072 (tests): Add tst-mlock2.
22073 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22074 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22075 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22076 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22077 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22078 for mlock. Document mlock2.
22079
22080 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22081
22082 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22083 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22084 Likewise.
22085 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22086 Likewise.
22087 * sysdeps/x86/Makeconfig: New file.
22088 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22089 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22090 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22091 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22092 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22093 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22094 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22095 Likewise.
22096 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22097 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22098 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22099 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22100 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22101 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22102 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22103 * manual/math.texi (Mathematics): Document support for _Float64x.
22104 * math/Versions (GLIBC_2.27): Add _Float64x functions.
22105 * stdlib/Versions (GLIBC_2.27): Likewise.
22106 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22107 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22108 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22109 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22110 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22111 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22112 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22113 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22114 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22115 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22116 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22117 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22118 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22119 Likewise.
22120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22121 Likewise.
22122 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22123 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22124 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22125 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22126 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22127 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22128 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22129 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22130 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22131 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22132 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22133 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22134 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22135 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22136
22137 2017-11-27 Andreas Schwab <schwab@suse.de>
22138
22139 * elf/Makefile (dl-routines): Add dl-sort-maps.
22140 * elf/dl-sort-maps.c: New file.
22141 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22142 (_dl_sort_maps): Declare.
22143 * elf/dl-fini.c (_dl_sort_fini): Remove.
22144 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22145 * elf/dl-close.c (_dl_close_worker): Likewise.
22146 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22147 open-coding it.
22148 * elf/dl-open.c (dl_open_worker): Likewise.
22149
22150 2017-11-24 Joseph Myers <joseph@codesourcery.com>
22151
22152 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22153 using libm_alias_float128.
22154 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22155 Likewise.
22156 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22157 Likewise.
22158 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22159 (setpayloadsigf128): Likewise.
22160 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22161 Likewise.
22162 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22163 Likewise.
22164
22165 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22166 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22167 -mfloat128 to CFLAGS.
22168 ($(foreach
22169 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22170 Likewise.
22171 (CFLAGS-libm-test-support-float64x.c): New variable.
22172 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22173 $(f128-loader-link) to gnulib-tests.
22174
22175 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22176 (libm_alias_float128_other_r): If
22177 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22178 alias.
22179 (libm_alias_float128_r): Add semicolon after weak_alias call.
22180 * sysdeps/generic/libm-alias-ldouble.h
22181 (libm_alias_ldouble_other_r_f128): New macro.
22182 (libm_alias_ldouble_other_r_f64x): Likewise.
22183 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22184 and libm_alias_ldouble_other_r_f64x.
22185 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22186 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22187 (libm_alias_ldouble_other_r_f128): New macro.
22188 (libm_alias_ldouble_other_r_f64x): Likewise.
22189 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22190 and libm_alias_ldouble_other_r_f64x.
22191
22192 * stdlib/strfroml.c: Always include <stdlib.h>.
22193 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22194 undefine as macro and define as weak alias.
22195 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22196 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22197 <stdlib.h>.
22198 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22199 Define and later undefine as macro and define as weak alias.
22200
22201 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22202 Define and later undefine as macro. Define as weak alias if
22203 [!USE_WIDE_CHAR].
22204 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22205 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22206 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22207 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22208 Define and later undefine as macro. Define as weak alias if
22209 [!USE_WIDE_CHAR].
22210 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22211 Define and later undefine as macro. Define as weak alias if
22212 [USE_WIDE_CHAR].
22213 * sysdeps/ieee754/float128/strtof128_l.c
22214 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22215 Define and later undefine as macro. Define as weak alias if
22216 [!USE_WIDE_CHAR].
22217 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22218 Define and later undefine as macro. Define as weak alias if
22219 [USE_WIDE_CHAR].
22220 * sysdeps/ieee754/ldbl-128/strtold_l.c
22221 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22222 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22223 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22224 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22225 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22226 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22227 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22228 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22229 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22230 * sysdeps/ieee754/ldbl-96/strtold_l.c
22231 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22232 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22233 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22234 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22235
22236 * math/test-float64x.h: New file.
22237 * math/Makefile (type-float64x-yes): New variable.
22238 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22239
22240 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22241 function-like macro.
22242 (min_of_type_): Likewise.
22243 (min_of_type_l): Likewise.
22244 (min_of_type_f128): Likewise.
22245 (min_of_type): Pass () as last argument of __MATH_TG.
22246
22247 * stdlib/tst-strtod-round-skeleton.c
22248 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22249 headers.
22250
22251 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22252 for combinations of long double with _Float64 and _Float64x.
22253
22254 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22255 (__DECL_SIMD_cosf32): Likewise.
22256 (__DECL_SIMD_cosf64): Likewise.
22257 (__DECL_SIMD_cosf32x): Likewise.
22258 (__DECL_SIMD_cosf64x): Likewise.
22259 (__DECL_SIMD_cosf128x): Likewise.
22260 (__DECL_SIMD_sinf16): Likewise.
22261 (__DECL_SIMD_sinf32): Likewise.
22262 (__DECL_SIMD_sinf64): Likewise.
22263 (__DECL_SIMD_sinf32x): Likewise.
22264 (__DECL_SIMD_sinf64x): Likewise.
22265 (__DECL_SIMD_sinf128x): Likewise.
22266 (__DECL_SIMD_sincosf16): Likewise.
22267 (__DECL_SIMD_sincosf32): Likewise.
22268 (__DECL_SIMD_sincosf64): Likewise.
22269 (__DECL_SIMD_sincosf32x): Likewise.
22270 (__DECL_SIMD_sincosf64x): Likewise.
22271 (__DECL_SIMD_sincosf128x): Likewise.
22272 (__DECL_SIMD_logf16): Likewise.
22273 (__DECL_SIMD_logf32): Likewise.
22274 (__DECL_SIMD_logf64): Likewise.
22275 (__DECL_SIMD_logf32x): Likewise.
22276 (__DECL_SIMD_logf64x): Likewise.
22277 (__DECL_SIMD_logf128x): Likewise.
22278 (__DECL_SIMD_expf16): Likewise.
22279 (__DECL_SIMD_expf32): Likewise.
22280 (__DECL_SIMD_expf64): Likewise.
22281 (__DECL_SIMD_expf32x): Likewise.
22282 (__DECL_SIMD_expf64x): Likewise.
22283 (__DECL_SIMD_expf128x): Likewise.
22284 (__DECL_SIMD_powf16): Likewise.
22285 (__DECL_SIMD_powf32): Likewise.
22286 (__DECL_SIMD_powf64): Likewise.
22287 (__DECL_SIMD_powf32x): Likewise.
22288 (__DECL_SIMD_powf64x): Likewise.
22289 (__DECL_SIMD_powf128x): Likewise.
22290
22291 * stdlib/Versions (libc): Move entries for wcstof128 and
22292 wcstof128_l to ....
22293 * wcsmbs/Versions (libc): ... here.
22294 Include <float128-abi.h>.
22295
22296 2017-11-24 Florian Weimer <fweimer@redhat.com>
22297
22298 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22299 bits/mman-shared.h.
22300 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22301 <bits/mman-shared.h>.
22302 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22303 to ...
22304 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22305 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22306 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22307 <bits/mman-shared.h>.
22308
22309 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22310
22311 [BZ #22457]
22312 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22313 posix_memalign/free.
22314 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22315
22316 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22317
22318 [BZ #22469]
22319 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22320 and implement the collation rules for pl from CLDR on top of that.
22321 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22322 of locales to be built for testing.
22323 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22324
22325 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22326
22327 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22328 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22329 libm_alias_ldouble_other.
22330 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22331 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22332 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22333 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22334 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22335 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22336 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22337 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22338 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22339 libm_alias_ldouble_r.
22340 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22341 libm_alias_ldouble_other.
22342 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22343 (log10l): Likewise.
22344 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22345 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22346 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22347 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22348 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22349 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22350 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22351 (atan2l): Likewise.
22352 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22353 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22354 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22355 libm_alias_ldouble.
22356 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22357 (cosl): Likewise.
22358 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22359 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22360 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22361 (expl): Likewise.
22362 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22363 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22364 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22365 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22366 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22367 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22368 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22369 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22370 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22371 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22372 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22373 libm_alias_ldouble.
22374 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22375 libm_alias_ldouble_other.
22376 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22377 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22378 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22379 libm_alias_ldouble.
22380 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22381 libm_alias_ldouble_other.
22382 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22383 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22384 * sysdeps/ia64/fpu/w_lgammal_main.c
22385 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22386 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22387
22388 2017-11-23 Florian Weimer <fweimer@redhat.com>
22389
22390 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22391 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22392 alike. Remove freeres marker.
22393 * malloc/arena.c (arena_thread_freeres): Call
22394 tcache_thread_shutdown.
22395
22396 2017-11-23 Florian Weimer <fweimer@redhat.com>
22397
22398 [BZ #22459]
22399 Export nscd hash function as __nss_hash.
22400 * include/nss.h (__nss_hash): Declare.
22401 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22402 symbol.
22403 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22404 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22405 of __nscd_hash.
22406 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22407 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22408 * nss/Makefiles (routines): Add nss_hash.
22409 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22410 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22411 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22412 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22413
22414 2017-11-23 Florian Weimer <fweimer@redhat.com>
22415
22416 [BZ #22478]
22417 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22418 Return error code, not -1.
22419 * signal/tst-sigwait-eintr.c: New file.
22420 * signal/Makefile (tests): Add tst-sigwait-eintr.
22421
22422 2017-11-23 Florian Weimer <fweimer@redhat.com>
22423
22424 Linux: Add memfd_create system call wrapper
22425 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22426 tst-memfd_create.
22427 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22428 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22429 [__USE_GNU] (memfd_create): Declare.
22430 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22431 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22432 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22433 * sysdeps/unix/sysv/linux/**.abilist: Update.
22434 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22435
22436 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22437
22438 * localedata/gen-locale.sh: Fix typo in variable name.
22439
22440 * resolv/res_debug.c (p_secstodate): Condition definition on
22441 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22442 directly as __p_secstodate, and as a compat symbol. Do not use
22443 libresolv_hidden_def.
22444 * resolv/resolv.h (p_secstodate): Remove macro and function
22445 declaration.
22446 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22447 using p_secstodate.
22448 * include/resolv.h (__p_secstodate): Do not use
22449 libresolv_hidden_proto.
22450 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22451 (tests-internal): ... here.
22452 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22453 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22454 and declare and use __p_secstodate and use compat_symbol_reference
22455 in that case.
22456 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22457 implementation returning 77.
22458
22459 [BZ #22463]
22460 * resolv/res_debug.c: Include <libc-diag.h>.
22461 (p_secstodate): Assert time_t at least as wide as u_long. On
22462 overflow, use integer seconds since the epoch as output, or use
22463 "<overflow>" as output and set errno to EOVERFLOW if integer
22464 seconds since the epoch would be 14 or more characters.
22465 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22466 for sprintf call.
22467 * resolv/tst-p_secstodate.c: New file.
22468 * resolv/Makefile (tests): Add tst-p_secstodate.
22469 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22470
22471 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22472 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22473 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22474
22475 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22476
22477 * posix/regcomp.c (init_word_char): Add comments.
22478
22479 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22480
22481 [BZ #22447]
22482 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22483 strlen to compute length of ut_user and set trailing NUL byte of
22484 result explicitly.
22485
22486 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22487
22488 [BZ #15537]
22489 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22490 using “copy "iso14651_t1"” and then implementing the
22491 collation rules for lv from CLDR on top of that.
22492 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22493 of locales to be built for testing.
22494 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22495 sorting.
22496
22497 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22498
22499 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22500 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22501 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22502 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22503 [__USE_MISC] (MADV_HWPOISON): New macro.
22504 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22505
22506 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22507
22508 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22509 -Wmissing-braces on GCC 4.9.
22510
22511 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22512
22513 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22514 * sysdeps/s390/s390-32/start.S (_start): Likewise
22515 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22516 (thread_start): Likewise.
22517 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22518 (thread_start): Likewise.
22519 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22520 (__makecontext_ret): Likewise.
22521 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22522 (__makecontext_ret): Likewise.
22523
22524 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22525
22526 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22527 __wcschrnul): Remove attribute_hidden.
22528
22529 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22530
22531 regex: don't assume uint64_t or uint32_t
22532 This avoids -Werror=overflow errors for 32-bit systems in
22533 the 64-bit case. Problem reported by Joseph Myers in:
22534 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22535 Also, when this code is used in Gnulib it ports to platforms
22536 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22537 them, and on some 32-bit compilers there is no uint64_t.
22538 Problem reported by Gianluigi Tiesi in:
22539 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22540 * posix/regcomp.c (init_word_char): Don't assume that the types
22541 uint64_t and uint32_t exist. Adapted from Gnulib patch
22542 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22543 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22544
22545 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22546
22547 * sysdeps/aarch64/memset-reg.h: New file.
22548 * sysdeps/aarch64/memset.S: Use it.
22549 (__memset): Rename to MEMSET macro.
22550 [ZVA_MACRO]: Use zva_macro.
22551 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22552 Add memset_generic and memset_falkor.
22553 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22554 (__libc_ifunc_impl_list): Add memset ifuncs.
22555 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22556 local variable zva_size.
22557 * sysdeps/aarch64/multiarch/memset.c: New file.
22558 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22559 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22560 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22561 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22562 (DCZID_DZP_MASK): New macro.
22563 (DCZID_BS_MASK): Likewise.
22564 (init_cpu_features): Read and set zva_size.
22565 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22566 (struct cpu_features): New member zva_size.
22567
22568 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22569 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22570 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22571
22572 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22573 backwards. Fix timing computation.
22574 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22575 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22576 on memset by N at a time. Fix timing computation.
22577
22578 2017-11-20 Florian Weimer <fweimer@redhat.com>
22579
22580 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22581 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22582
22583 2017-11-19 Florian Weimer <fweimer@redhat.com>
22584
22585 manual: Document mprotect
22586 * manual/memory.texi (Memory Protection): New section.
22587 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22588 documentation of PROT_* flags and reference the Memory Protection
22589 section instead.
22590
22591 2017-11-19 Florian Weimer <fweimer@redhat.com>
22592
22593 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22594 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22595 (Scatter-Gather): ... to here. Remove misleading comment.
22596
22597 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22598
22599 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22600 style.
22601
22602 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22603 when /proc/<pid>/setgroups does not exist.
22604
22605 2017-11-18 Florian Weimer <fweimer@redhat.com>
22606
22607 * sysdeps/unix/sysv/linux/tst-ttyname.c
22608 (become_root_in_mount_ns): Remove.
22609 (do_in_chroot_1): Call support_enter_mount_namespace.
22610 (do_in_chroot_2): Likewise.
22611 (do_test): Call support_become_root early.
22612
22613 2017-11-18 Florian Weimer <fweimer@redhat.com>
22614
22615 * support/namespace.h (support_enter_mount_namespace): Declare.
22616 * support/support_enter_mount_namespace.c: New file.
22617 * support/Makefile (libsupport-routines): Add
22618 support_enter_mount_namespace.
22619
22620 2017-11-18 Florian Weimer <fweimer@redhat.com>
22621
22622 * support/temp_file.c (support_create_temp_directory): Use
22623 test_dir and do not rely on the presence of the XXXXXX suffix.
22624 * support/temp_file.h (support_create_temp_directory): Update
22625 comment.
22626 * support/tst-xreadlink.c (do_test): Adjust.
22627 * support/support_chroot.c (support_chroot_create): Likewise.
22628
22629 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22630
22631 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22632 macro.
22633 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22634 htm-no-suspend.
22635
22636 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22637
22638 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22639 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22640 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22641 (ceill): Define using libm_alias_ldouble.
22642 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22643 <libm-alias-ldouble.h>.
22644 (copysignl): Define using libm_alias_ldouble.
22645 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22646 (fabsl): Define using libm_alias_ldouble.
22647 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22648 (floorl): Define using libm_alias_ldouble.
22649 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22650 (fmaxl): Define using libm_alias_ldouble.
22651 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22652 (fminl): Define using libm_alias_ldouble.
22653 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22654 (llrintl): Define using libm_alias_ldouble.
22655 (lrintl): Likewise.
22656 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22657 <libm-alias-ldouble.h>.
22658 (nearbyintl): Define using libm_alias_ldouble.
22659 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22660 (truncl): Define using libm_alias_ldouble.
22661 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22662 <libm-alias-ldouble.h>.
22663 (lrintl): Define using libm_alias_ldouble.
22664
22665 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22666 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22667 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22668 (asinhl): Define using libm_alias_ldouble.
22669 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22670 (atanl): Define using libm_alias_ldouble.
22671 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22672 (cbrtl): Define using libm_alias_ldouble.
22673 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22674 (ceill): Define using libm_alias_ldouble.
22675 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22676 (copysignl): Define using libm_alias_ldouble.
22677 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22678 (fabsl): Define using libm_alias_ldouble.
22679 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22680 (floorl): Define using libm_alias_ldouble.
22681 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22682 (fmaxl): Define using libm_alias_ldouble.
22683 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22684 (fminl): Define using libm_alias_ldouble.
22685 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22686 (frexpl): Define using libm_alias_ldouble.
22687 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22688 (llrintl): Define using libm_alias_ldouble.
22689 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22690 (logbl): Define using libm_alias_ldouble.
22691 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22692 (lrintl): Define using libm_alias_ldouble.
22693 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22694 (nearbyintl): Define using libm_alias_ldouble.
22695 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22696 (nextafterl): Define using libm_alias_ldouble.
22697 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22698 (remquol): Define using libm_alias_ldouble.
22699 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22700 (rintl): Define using libm_alias_ldouble.
22701 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22702 (truncl): Define using libm_alias_ldouble.
22703 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22704 (fmaxl): Define using libm_alias_ldouble.
22705 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22706 (fminl): Define using libm_alias_ldouble.
22707
22708 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22709 to C syntax instead of availability and properties of types.
22710 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22711 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22712 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22713 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22714 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22715 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22716
22717 2017-11-17 Florian Weimer <fweimer@redhat.com>
22718
22719 support_become_root: Enable file creation in namespaces.
22720 * support/support_become_root.c (setup_mapping): New function.
22721 (support_become_root): Call it.
22722
22723 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22724
22725 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22726 macro.
22727
22728 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22729
22730 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22731 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22732
22733 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22734
22735 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22736
22737 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22738 version to 4.14.
22739
22740 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22741
22742 * INSTALL: Fix botched up regeneration.
22743
22744 * NEWS: Update sourceare link to https.
22745 * configure.ac: Likewise.
22746 * crypt/md5test-giant.c: Likewise.
22747 * dlfcn/bug-atexit1.c: Likewise.
22748 * dlfcn/bug-atexit2.c: Likewise.
22749 * localedata/README: Likewise.
22750 * malloc/tst-mallocfork.c: Likewise.
22751 * manual/install.texi: Likewise.
22752 * nptl/tst-pthread-getattr.c: Likewise.
22753 * stdio-common/tst-fgets.c: Likewise.
22754 * stdio-common/tst-fwrite.c: Likewise.
22755 * sunrpc/Makefile: Likewise.
22756 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22757 * wcsmbs/tst-mbrtowc2.c: Likewise.
22758 * configure: Regenerate.
22759 * INSTALL: Regenerate.
22760
22761 2017-11-15 Martin Sebor <msebor@redhat.com>
22762
22763 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22764 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22765 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22766
22767 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22768
22769 [BZ #22145]
22770 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22771 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22772
22773 [BZ #22145]
22774 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22775 Defer is_pty check until end of the function.
22776 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22777
22778 [BZ #22145]
22779 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22780 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22781 (ttyname): Likewise.
22782 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22783 (__ttyname_r): Likewise.
22784
22785 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22786 int to bool.
22787
22788 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22789
22790 * manual/terminal.texi (Is It a Terminal):
22791 Mention ENODEV for ttyname and ttyname_r.
22792
22793 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22794
22795 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22796 constant and macro.
22797
22798 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22799 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22800 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22801 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22802 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22803 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22804
22805 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22806
22807 * signal/sigrelse.c (sigrelse): Optimize implementation.
22808
22809 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22810 (__sigpause): Rely on __sigsuspend to implement single thread
22811 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22812
22813 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22814
22815 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22816 kernel version to 4.14.
22817
22818 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22819
22820 [BZ #22442]
22821 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22822 Check if ifname is too long.
22823
22824 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22825
22826 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22827
22828 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22829
22830 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22831 was accidentally lost.
22832
22833 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22834
22835 * localedata/locales/az_IR: Add standard copyright header.
22836
22837 2017-11-15 Florian Weimer <fweimer@redhat.com>
22838
22839 [BZ #22439]
22840 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22841 not just the top one. Output a new "subheaps" statistic.
22842
22843 2017-11-15 Florian Weimer <fweimer@redhat.com>
22844
22845 [BZ #22408]
22846 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22847 under the per-arena lock.
22848 * malloc/Makefile (tests): Add tst-malloc_info.
22849 (tst-malloc_info): Link with libpthread.
22850 * malloc/tst-malloc_info.c: New file.
22851
22852 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22853
22854 [BZ #21660]
22855 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22856 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22857 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22858 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22859 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22860 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22861 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22862 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22863 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22864 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22865 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22866 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22867 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22868 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22869 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22870 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22871 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22872 (__floating_type): Likewise.
22873 (__real_integer_type): Likewise.
22874 (__complex_integer_type): Likewise.
22875 (__expr_is_real): Likewise.
22876 (__tgmath_real_type_sub): Likewise.
22877 (__tgmath_real_type): Likewise.
22878 (__tgmath_complex_type_sub): Likewise.
22879 (__tgmath_complex_type): Likewise.
22880 (__TGMATH_F128): Likewise.
22881 (__TGMATH_CF128): Likewise.
22882 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22883 new macros.
22884 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22885 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22886 Likewise.
22887 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22888 Likewise.
22889 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22890 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22891 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22892 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22893 Likewise.
22894 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22895 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22896 Likewise.
22897 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22898 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22899 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22900 Likewise.
22901 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22902 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22903 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22904 (cimag): Likewise.
22905 (creal): Likewise.
22906
22907 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22908
22909 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22910 for stpncpy calls for GCC 8.
22911 (test_strncat): Disable -Wstringop-truncation warning for strncat
22912 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22913 strncat call for GCC 7.
22914 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22915 calls for GCC 8.
22916 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22917 trailing NUL.
22918
22919 * string/bug-strncat1.c: Include <libc-diag.h>.
22920 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22921
22922 2017-11-13 Claude Paroz <claude@2xlibre.net>
22923
22924 [BZ #22387]
22925 * localedata/locales/aa_DJ: Improved readibility by replacing
22926 <Uxxxx> sequences in the ASCII printable range by their ASCII
22927 character equivalents.
22928 * localedata/locales/aa_ER: Likewise.
22929 * localedata/locales/aa_ER@saaho: Likewise.
22930 * localedata/locales/aa_ET: Likewise.
22931 * localedata/locales/af_ZA: Likewise.
22932 * localedata/locales/agr_PE: Likewise.
22933 * localedata/locales/ak_GH: Likewise.
22934 * localedata/locales/am_ET: Likewise.
22935 * localedata/locales/anp_IN: Likewise.
22936 * localedata/locales/ar_AE: Likewise.
22937 * localedata/locales/ar_BH: Likewise.
22938 * localedata/locales/ar_DZ: Likewise.
22939 * localedata/locales/ar_EG: Likewise.
22940 * localedata/locales/ar_IN: Likewise.
22941 * localedata/locales/ar_IQ: Likewise.
22942 * localedata/locales/ar_JO: Likewise.
22943 * localedata/locales/ar_KW: Likewise.
22944 * localedata/locales/ar_LB: Likewise.
22945 * localedata/locales/ar_LY: Likewise.
22946 * localedata/locales/ar_MA: Likewise.
22947 * localedata/locales/ar_OM: Likewise.
22948 * localedata/locales/ar_QA: Likewise.
22949 * localedata/locales/ar_SA: Likewise.
22950 * localedata/locales/ar_SD: Likewise.
22951 * localedata/locales/ar_SS: Likewise.
22952 * localedata/locales/ar_SY: Likewise.
22953 * localedata/locales/ar_TN: Likewise.
22954 * localedata/locales/ar_YE: Likewise.
22955 * localedata/locales/as_IN: Likewise.
22956 * localedata/locales/ast_ES: Likewise.
22957 * localedata/locales/ayc_PE: Likewise.
22958 * localedata/locales/az_AZ: Likewise.
22959 * localedata/locales/az_IR: Likewise.
22960 * localedata/locales/be_BY: Likewise.
22961 * localedata/locales/be_BY@latin: Likewise.
22962 * localedata/locales/bem_ZM: Likewise.
22963 * localedata/locales/ber_DZ: Likewise.
22964 * localedata/locales/ber_MA: Likewise.
22965 * localedata/locales/bg_BG: Likewise.
22966 * localedata/locales/bhb_IN: Likewise.
22967 * localedata/locales/bho_IN: Likewise.
22968 * localedata/locales/bi_VU: Likewise.
22969 * localedata/locales/bn_BD: Likewise.
22970 * localedata/locales/bn_IN: Likewise.
22971 * localedata/locales/bo_CN: Likewise.
22972 * localedata/locales/bo_IN: Likewise.
22973 * localedata/locales/br_FR: Likewise.
22974 * localedata/locales/brx_IN: Likewise.
22975 * localedata/locales/bs_BA: Likewise.
22976 * localedata/locales/byn_ER: Likewise.
22977 * localedata/locales/ca_AD: Likewise.
22978 * localedata/locales/ca_ES: Likewise.
22979 * localedata/locales/ca_FR: Likewise.
22980 * localedata/locales/ca_IT: Likewise.
22981 * localedata/locales/ce_RU: Likewise.
22982 * localedata/locales/chr_US: Likewise.
22983 * localedata/locales/cmn_TW: Likewise.
22984 * localedata/locales/crh_UA: Likewise.
22985 * localedata/locales/cs_CZ: Likewise.
22986 * localedata/locales/csb_PL: Likewise.
22987 * localedata/locales/cv_RU: Likewise.
22988 * localedata/locales/cy_GB: Likewise.
22989 * localedata/locales/da_DK: Likewise.
22990 * localedata/locales/de_AT: Likewise.
22991 * localedata/locales/de_BE: Likewise.
22992 * localedata/locales/de_CH: Likewise.
22993 * localedata/locales/de_DE: Likewise.
22994 * localedata/locales/de_IT: Likewise.
22995 * localedata/locales/de_LI: Likewise.
22996 * localedata/locales/de_LU: Likewise.
22997 * localedata/locales/doi_IN: Likewise.
22998 * localedata/locales/dv_MV: Likewise.
22999 * localedata/locales/dz_BT: Likewise.
23000 * localedata/locales/el_CY: Likewise.
23001 * localedata/locales/el_GR: Likewise.
23002 * localedata/locales/en_AG: Likewise.
23003 * localedata/locales/en_AU: Likewise.
23004 * localedata/locales/en_BW: Likewise.
23005 * localedata/locales/en_CA: Likewise.
23006 * localedata/locales/en_DK: Likewise.
23007 * localedata/locales/en_GB: Likewise.
23008 * localedata/locales/en_HK: Likewise.
23009 * localedata/locales/en_IE: Likewise.
23010 * localedata/locales/en_IL: Likewise.
23011 * localedata/locales/en_IN: Likewise.
23012 * localedata/locales/en_NG: Likewise.
23013 * localedata/locales/en_NZ: Likewise.
23014 * localedata/locales/en_PH: Likewise.
23015 * localedata/locales/en_SG: Likewise.
23016 * localedata/locales/en_US: Likewise.
23017 * localedata/locales/en_ZA: Likewise.
23018 * localedata/locales/en_ZM: Likewise.
23019 * localedata/locales/en_ZW: Likewise.
23020 * localedata/locales/eo: Likewise.
23021 * localedata/locales/es_AR: Likewise.
23022 * localedata/locales/es_BO: Likewise.
23023 * localedata/locales/es_CL: Likewise.
23024 * localedata/locales/es_CO: Likewise.
23025 * localedata/locales/es_CR: Likewise.
23026 * localedata/locales/es_CU: Likewise.
23027 * localedata/locales/es_DO: Likewise.
23028 * localedata/locales/es_EC: Likewise.
23029 * localedata/locales/es_ES: Likewise.
23030 * localedata/locales/es_GT: Likewise.
23031 * localedata/locales/es_HN: Likewise.
23032 * localedata/locales/es_MX: Likewise.
23033 * localedata/locales/es_NI: Likewise.
23034 * localedata/locales/es_PA: Likewise.
23035 * localedata/locales/es_PE: Likewise.
23036 * localedata/locales/es_PR: Likewise.
23037 * localedata/locales/es_PY: Likewise.
23038 * localedata/locales/es_SV: Likewise.
23039 * localedata/locales/es_US: Likewise.
23040 * localedata/locales/es_UY: Likewise.
23041 * localedata/locales/es_VE: Likewise.
23042 * localedata/locales/et_EE: Likewise.
23043 * localedata/locales/eu_ES: Likewise.
23044 * localedata/locales/eu_ES@euro: Likewise.
23045 * localedata/locales/fa_IR: Likewise.
23046 * localedata/locales/ff_SN: Likewise.
23047 * localedata/locales/fi_FI: Likewise.
23048 * localedata/locales/fil_PH: Likewise.
23049 * localedata/locales/fo_FO: Likewise.
23050 * localedata/locales/fr_BE: Likewise.
23051 * localedata/locales/fr_CA: Likewise.
23052 * localedata/locales/fr_CH: Likewise.
23053 * localedata/locales/fr_FR: Likewise.
23054 * localedata/locales/fr_LU: Likewise.
23055 * localedata/locales/fur_IT: Likewise.
23056 * localedata/locales/fy_DE: Likewise.
23057 * localedata/locales/fy_NL: Likewise.
23058 * localedata/locales/ga_IE: Likewise.
23059 * localedata/locales/gd_GB: Likewise.
23060 * localedata/locales/gez_ER: Likewise.
23061 * localedata/locales/gez_ET: Likewise.
23062 * localedata/locales/gl_ES: Likewise.
23063 * localedata/locales/gu_IN: Likewise.
23064 * localedata/locales/gv_GB: Likewise.
23065 * localedata/locales/ha_NG: Likewise.
23066 * localedata/locales/hak_TW: Likewise.
23067 * localedata/locales/he_IL: Likewise.
23068 * localedata/locales/hi_IN: Likewise.
23069 * localedata/locales/hif_FJ: Likewise.
23070 * localedata/locales/hne_IN: Likewise.
23071 * localedata/locales/hr_HR: Likewise.
23072 * localedata/locales/hsb_DE: Likewise.
23073 * localedata/locales/ht_HT: Likewise.
23074 * localedata/locales/hu_HU: Likewise.
23075 * localedata/locales/hy_AM: Likewise.
23076 * localedata/locales/i18n: Likewise.
23077 * localedata/locales/ia_FR: Likewise.
23078 * localedata/locales/id_ID: Likewise.
23079 * localedata/locales/ig_NG: Likewise.
23080 * localedata/locales/ik_CA: Likewise.
23081 * localedata/locales/is_IS: Likewise.
23082 * localedata/locales/it_CH: Likewise.
23083 * localedata/locales/it_IT: Likewise.
23084 * localedata/locales/iu_CA: Likewise.
23085 * localedata/locales/ja_JP: Likewise.
23086 * localedata/locales/ka_GE: Likewise.
23087 * localedata/locales/kk_KZ: Likewise.
23088 * localedata/locales/kl_GL: Likewise.
23089 * localedata/locales/kn_IN: Likewise.
23090 * localedata/locales/ko_KR: Likewise.
23091 * localedata/locales/kok_IN: Likewise.
23092 * localedata/locales/ks_IN: Likewise.
23093 * localedata/locales/ks_IN@devanagari: Likewise.
23094 * localedata/locales/ku_TR: Likewise.
23095 * localedata/locales/kw_GB: Likewise.
23096 * localedata/locales/ky_KG: Likewise.
23097 * localedata/locales/lb_LU: Likewise.
23098 * localedata/locales/lg_UG: Likewise.
23099 * localedata/locales/li_BE: Likewise.
23100 * localedata/locales/li_NL: Likewise.
23101 * localedata/locales/lij_IT: Likewise.
23102 * localedata/locales/ln_CD: Likewise.
23103 * localedata/locales/lo_LA: Likewise.
23104 * localedata/locales/lt_LT: Likewise.
23105 * localedata/locales/lv_LV: Likewise.
23106 * localedata/locales/lzh_TW: Likewise.
23107 * localedata/locales/mag_IN: Likewise.
23108 * localedata/locales/mai_IN: Likewise.
23109 * localedata/locales/mg_MG: Likewise.
23110 * localedata/locales/mhr_RU: Likewise.
23111 * localedata/locales/mi_NZ: Likewise.
23112 * localedata/locales/mk_MK: Likewise.
23113 * localedata/locales/ml_IN: Likewise.
23114 * localedata/locales/mn_MN: Likewise.
23115 * localedata/locales/mni_IN: Likewise.
23116 * localedata/locales/mr_IN: Likewise.
23117 * localedata/locales/ms_MY: Likewise.
23118 * localedata/locales/mt_MT: Likewise.
23119 * localedata/locales/my_MM: Likewise.
23120 * localedata/locales/nan_TW: Likewise.
23121 * localedata/locales/nan_TW@latin: Likewise.
23122 * localedata/locales/nb_NO: Likewise.
23123 * localedata/locales/nds_DE: Likewise.
23124 * localedata/locales/nds_NL: Likewise.
23125 * localedata/locales/ne_NP: Likewise.
23126 * localedata/locales/nhn_MX: Likewise.
23127 * localedata/locales/niu_NU: Likewise.
23128 * localedata/locales/niu_NZ: Likewise.
23129 * localedata/locales/nl_AW: Likewise.
23130 * localedata/locales/nl_BE: Likewise.
23131 * localedata/locales/nl_NL: Likewise.
23132 * localedata/locales/nn_NO: Likewise.
23133 * localedata/locales/nr_ZA: Likewise.
23134 * localedata/locales/nso_ZA: Likewise.
23135 * localedata/locales/oc_FR: Likewise.
23136 * localedata/locales/om_ET: Likewise.
23137 * localedata/locales/om_KE: Likewise.
23138 * localedata/locales/or_IN: Likewise.
23139 * localedata/locales/os_RU: Likewise.
23140 * localedata/locales/pa_IN: Likewise.
23141 * localedata/locales/pa_PK: Likewise.
23142 * localedata/locales/pap_AW: Likewise.
23143 * localedata/locales/pap_CW: Likewise.
23144 * localedata/locales/pl_PL: Likewise.
23145 * localedata/locales/ps_AF: Likewise.
23146 * localedata/locales/pt_BR: Likewise.
23147 * localedata/locales/pt_PT: Likewise.
23148 * localedata/locales/quz_PE: Likewise.
23149 * localedata/locales/raj_IN: Likewise.
23150 * localedata/locales/ro_RO: Likewise.
23151 * localedata/locales/ru_RU: Likewise.
23152 * localedata/locales/ru_UA: Likewise.
23153 * localedata/locales/rw_RW: Likewise.
23154 * localedata/locales/sa_IN: Likewise.
23155 * localedata/locales/sat_IN: Likewise.
23156 * localedata/locales/sc_IT: Likewise.
23157 * localedata/locales/sd_IN: Likewise.
23158 * localedata/locales/sd_IN@devanagari: Likewise.
23159 * localedata/locales/se_NO: Likewise.
23160 * localedata/locales/sgs_LT: Likewise.
23161 * localedata/locales/shs_CA: Likewise.
23162 * localedata/locales/si_LK: Likewise.
23163 * localedata/locales/sid_ET: Likewise.
23164 * localedata/locales/sk_SK: Likewise.
23165 * localedata/locales/sl_SI: Likewise.
23166 * localedata/locales/sm_WS: Likewise.
23167 * localedata/locales/so_DJ: Likewise.
23168 * localedata/locales/so_ET: Likewise.
23169 * localedata/locales/so_KE: Likewise.
23170 * localedata/locales/so_SO: Likewise.
23171 * localedata/locales/sq_AL: Likewise.
23172 * localedata/locales/sq_MK: Likewise.
23173 * localedata/locales/sr_ME: Likewise.
23174 * localedata/locales/sr_RS: Likewise.
23175 * localedata/locales/sr_RS@latin: Likewise.
23176 * localedata/locales/ss_ZA: Likewise.
23177 * localedata/locales/st_ZA: Likewise.
23178 * localedata/locales/sv_FI: Likewise.
23179 * localedata/locales/sv_SE: Likewise.
23180 * localedata/locales/sw_KE: Likewise.
23181 * localedata/locales/sw_TZ: Likewise.
23182 * localedata/locales/szl_PL: Likewise.
23183 * localedata/locales/ta_IN: Likewise.
23184 * localedata/locales/ta_LK: Likewise.
23185 * localedata/locales/tcy_IN: Likewise.
23186 * localedata/locales/te_IN: Likewise.
23187 * localedata/locales/tg_TJ: Likewise.
23188 * localedata/locales/th_TH: Likewise.
23189 * localedata/locales/the_NP: Likewise.
23190 * localedata/locales/ti_ER: Likewise.
23191 * localedata/locales/ti_ET: Likewise.
23192 * localedata/locales/tig_ER: Likewise.
23193 * localedata/locales/tk_TM: Likewise.
23194 * localedata/locales/tl_PH: Likewise.
23195 * localedata/locales/tn_ZA: Likewise.
23196 * localedata/locales/to_TO: Likewise.
23197 * localedata/locales/tpi_PG: Likewise.
23198 * localedata/locales/tr_CY: Likewise.
23199 * localedata/locales/tr_TR: Likewise.
23200 * localedata/locales/ts_ZA: Likewise.
23201 * localedata/locales/tt_RU: Likewise.
23202 * localedata/locales/tt_RU@iqtelif: Likewise.
23203 * localedata/locales/ug_CN: Likewise.
23204 * localedata/locales/uk_UA: Likewise.
23205 * localedata/locales/unm_US: Likewise.
23206 * localedata/locales/ur_IN: Likewise.
23207 * localedata/locales/ur_PK: Likewise.
23208 * localedata/locales/uz_UZ: Likewise.
23209 * localedata/locales/uz_UZ@cyrillic: Likewise.
23210 * localedata/locales/ve_ZA: Likewise.
23211 * localedata/locales/vi_VN: Likewise.
23212 * localedata/locales/wa_BE: Likewise.
23213 * localedata/locales/wae_CH: Likewise.
23214 * localedata/locales/wal_ET: Likewise.
23215 * localedata/locales/wo_SN: Likewise.
23216 * localedata/locales/xh_ZA: Likewise.
23217 * localedata/locales/yi_US: Likewise.
23218 * localedata/locales/yo_NG: Likewise.
23219 * localedata/locales/yue_HK: Likewise.
23220 * localedata/locales/yuw_PG: Likewise.
23221 * localedata/locales/zh_CN: Likewise.
23222 * localedata/locales/zh_HK: Likewise.
23223 * localedata/locales/zh_SG: Likewise.
23224 * localedata/locales/zh_TW: Likewise.
23225 * localedata/locales/zu_ZA: Likewise.
23226
23227 2017-11-13 Florian Weimer <fweimer@redhat.com>
23228
23229 * support/next_to_fault.h, support/next_to_fault.c: New files.
23230 * support/Makefile (libsupport-routines): Add next_to_fault.
23231 * resolv/tst-inet_pton.c (struct next_to_fault)
23232 (next_to_fault_allocate, next_to_fault_free): Remove.
23233 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23234
23235 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23236
23237 * elf/dl-support.c: Include <dl-procruntime.c>.
23238 * include/link.h: Include <link_map.h>.
23239 * sysdeps/generic/dl-procruntime.c: New file.
23240 * sysdeps/generic/link_map.h: Likewise.
23241 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23242 the writable ld.so namespace.
23243
23244 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23245
23246 timezone: pacify GCC -Wstringop-truncation
23247 Problem reported by Martin Sebor in:
23248 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23249 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23250
23251 2017-11-12 Florian Weimer <fweimer@redhat.com>
23252
23253 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23254 tst-xreadlink.
23255 (tests): Add tst-xreadlink.
23256 * support/support.h (xstrndup): Declare.
23257 * support/xunistd.h (xunlink, xreadlink): Declare.
23258 * support/temp_file.h (support_create_temp_directory): Declare.
23259 * support/temp_file.c (support_create_temp_directory): New function.
23260 * support/support_chroot.c (support_chroot_create): Use it.
23261 * support/xreadlink.c: New file.
23262 * support/xstrndup.c: Likewise.
23263 * support/xunlink.c: Likewise.
23264 * support/tst-xreadlink.c: Likewise.
23265
23266 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23267
23268 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23269
23270 2017-11-11 Florian Weimer <fweimer@redhat.com>
23271
23272 [BZ #22409]
23273 [BZ #22412]
23274 * resolv/res_comp.c (printable_string, binary_hnok)
23275 (binary_leading_dash): New functions.
23276 (res_hnok): Reimplement using these functions and ns_name_pton.
23277 (res_ownok): Likewise.
23278 (res_mailok): Reimplement using printable_string, ns_name_pton and
23279 binary_hnok.
23280 (res_dnok): Reimplement using printable_string and ns_name_pton.
23281 * resolv/tst-res_hnok.c (tests): Add additional tests.
23282 (LETTERDIGITS, PRINTABLE): Define.
23283 (do_test): Adjust one_char results.
23284
23285 2017-11-11 Florian Weimer <fweimer@redhat.com>
23286
23287 [BZ #22413]
23288 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23289 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23290
23291 2017-11-11 Florian Weimer <fweimer@redhat.com>
23292
23293 * resolv/tst-ns_name_pton.c: New file.
23294 * resolv/Makefile (tests): Add tst-ns_name_pton.
23295 (tst-ns_name_pton): Link against libresolv.
23296
23297 2017-11-11 Florian Weimer <fweimer@redhat.com>
23298
23299 * resolv/tst-res_hnok.c: New file.
23300 * resolv/Makefile (tests): Add tst-res_hnok.
23301 (tst-res_hnok): Link against libresolv.
23302
23303 2017-11-11 Florian Weimer <fweimer@redhat.com>
23304
23305 * resolv/tst-resolv-network.c: Use test framework instead explicit
23306 main function.
23307
23308 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23309
23310 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23311 <jmp_buf-macros.h>.
23312 [!_ISOMAC] (STR_HELPER): New.
23313 [!_ISOMAC] (STR): Likewise.
23314 [!_ISOMAC] (TEST_SIZE): Likewise.
23315 [!_ISOMAC] (TEST_ALIGN): Likewise.
23316 [!_ISOMAC] (TEST_OFFSET): Likewise.
23317 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23318 field offsets of jmp_buf as well as sigjmp_buf.
23319 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23320 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23321 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23322 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23323 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23324 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23325 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23326 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23327 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23328 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23329 Likewise.
23330 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23331 Likewise.
23332 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23333 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23334 Likewise.
23335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23336 Likewise.
23337 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23338 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23339 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23340 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23341 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23342 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23343 Likewise.
23344 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23345 Likewise.
23346 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23347 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23348 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23349
23350 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23351
23352 * include/float.h
23353 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23354 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23355 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23356 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23357 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23358 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23359 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23360 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23361 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23362 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23363 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23364 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23365 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23366 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23367 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23368 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23369 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23370 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23371 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23372 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23373 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23374 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23375 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23376 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23377 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23378 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23379 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23380 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23381 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23382 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23383 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23384 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23385 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23386 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23387 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23388 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23389 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23390 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23391 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23392 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23393 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23394 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23395 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23396 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23397 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23398 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23399 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23400 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23401 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23402 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23403 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23404 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23405 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23406 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23407 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23408 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23409 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23410 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23411 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23412 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23413 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23414 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23415 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23416 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23417 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23418 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23419 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23420 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23421 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23422 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23423 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23424 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23425 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23426 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23427 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23428 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23429 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23430 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23431 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23432 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23433 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23434 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23435 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23436 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23437 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23438 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23439 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23440 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23441
23442 * stdlib/tst-strtod.h (F16): New macro.
23443 (F32): Likewise.
23444 (F64): Likewise.
23445 (F32X): Likewise.
23446 (F64X): Likewise.
23447 (F128X): Likewise.
23448 (IF_FLOAT16): Likewise.
23449 (IF_FLOAT32): Likewise.
23450 (IF_FLOAT64): Likewise.
23451 (IF_FLOAT32X): Likewise.
23452 (IF_FLOAT64X): Likewise.
23453 (IF_FLOAT128X): Likewise.
23454 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23455 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23456 (STRTOD_TEST_FOREACH): Likewise.
23457 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23458 (CHOOSE_f64): Likewise.
23459 (CHOOSE_f32x): Likewise.
23460 (CHOOSE_f64x): Likewise.
23461
23462 2017-11-07 Andreas Schwab <schwab@suse.de>
23463
23464 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23465
23466 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23467
23468 [BZ #22403]
23469 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23470 to be escaped.
23471 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23472 to be escaped.
23473
23474 2017-11-07 Claude Paroz <claude@2xlibre.net>
23475
23476 [BZ #22403]
23477 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23478 to be escaped.
23479 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23480 to be escaped.
23481 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23482 to be escaped.
23483
23484 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23485
23486 [BZ #22298]
23487 * nptl/allocatestack.c (allocate_stack): Check if
23488 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23489 __PTHREAD_MUTEX_HAVE_PREV is defined.
23490 * nptl/descr.h (pthread): Likewise.
23491 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23492 Likewise.
23493 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23494 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23495 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23496 * sysdeps/nptl/bits/thread-shared-types.h
23497 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23498 defines.
23499 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23500 of __WORDSIZE for internal layout.
23501 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23502 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23503 instead of __WORDSIZE whether to use an union for __spins and __list
23504 fields.
23505 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23506 case.
23507 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23508 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23509 defines.
23510 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23511 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23512 Likewise.
23513 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23514 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23515 Likewise.
23516 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23517 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23518 Likewise.
23519 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23520 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23521 Likewise.
23522 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23523 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23524 Likewise.
23525 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23526 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23527 Likewise.
23528 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23529 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23530 Likewise.
23531 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23532 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23533 Likewise.
23534 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23535 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23536 Likewise.
23537 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23538 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23539 Likewise.
23540 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23541 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23542 Likewise.
23543 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23544 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23545 Likewise.
23546 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23547 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23548 Likewise.
23549 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23550 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23551 Likewise.
23552
23553 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23554 New macros.
23555 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23556 checks for expected input type size.
23557 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23558 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23559 Likewise.
23560 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23561 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23562 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23563 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23564 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23565 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23566 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23567 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23568 superflous runtime assert check.
23569 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23570 Likewise.
23571 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23572 Likewise.
23573 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23574 Likewise.
23575 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23576 Likewise.
23577 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23578 Likewise.
23579 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23580 Likewise.
23581 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23582 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23583 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23584 Likewise.
23585 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23586 Likewise.
23587 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23588 Likewise.
23589 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23590 Likewise.
23591 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23592 Likewise.
23593 * nptl/pthread_attr_setinheritsched.c
23594 (__pthread_attr_setinheritsched): Likewise.
23595 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23596 Likewise.
23597 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23598 Likewise.
23599 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23600 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23601 __old_pthread_attr_setstack): Likewise.
23602 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23603 Likewise.
23604 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23605 Likewise.
23606 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23607 Likewise.
23608 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23609 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23610 Likewise.
23611 * nptl/tst-typesizes.c: Remove file.
23612
23613 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23614 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23615 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23616 checks for internal pthread_mutex_t offsets.
23617 * sysdeps/aarch64/nptl/pthread-offsets.h
23618 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23619 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23620 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23621 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23622 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23623 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23624 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23625 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23626 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23627 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23628 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23629 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23630 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23631 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23632 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23633 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23634 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23635 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23636
23637 2017-11-07 Florian Weimer <fweimer@redhat.com>
23638
23639 * bits/mman-linux.h: Move ...
23640 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23641 comment.
23642 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23643 outdated comment.
23644
23645 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23646
23647 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23648 Redefine STRNLEN as __strnlen_power8.
23649
23650 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23651
23652 * signal/sighold.c (sighold): Optimize implementation.
23653
23654 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23655 __NR_rt_sigqueueinfo.
23656
23657 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23658 __sigtimedwait.
23659 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23660 assume __NR_rt_sigtimedwait.
23661 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23662 and add LIBC_CANCEL_HANDLED for cancellation marking.
23663 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23664
23665 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23666 (sysdeps_routines): Add memchr_noneon.
23667 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23668 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23669 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23670 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23671 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23672 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23673 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23674
23675 * sysdeps/arm/arm-ifunc.h: New file.
23676 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23677 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23678 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23679 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23680 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23681 (__memcpy_neon): Avoid create hidden alias.
23682 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23683 (__memcpy_vfp): Likewise.
23684 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23685 (sysdep_routines): Add memcpy_arm.
23686 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23687
23688 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23689
23690 [BZ #22362]
23691 * Makerules (make-link-multidir): New.
23692 * config.make.in (multidir): New.
23693 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23694 * configure: Regenerated.
23695 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23696 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23697 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23698 New target.
23699
23700 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23701
23702 [BZ #22402]
23703 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23704 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23705
23706 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23707
23708 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23709 to be escaped.
23710
23711 2017-11-04 Florian Weimer <fweimer@redhat.com>
23712
23713 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23714
23715 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23716
23717 * math/math.h [__HAVE_DISTINCT_FLOAT16
23718 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23719 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23720 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23721 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23722 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23723 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23724 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23725 (__MATH_TG_F32): New macro.
23726 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23727 (__MATH_TG_F64X): Likewise.
23728 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23729 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23730
23731 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23732
23733 * po/de.po: Update translations.
23734 * po/ru.po: Likewise.
23735
23736 2017-11-03 Florian Weimer <fweimer@redhat.com>
23737
23738 * manual/filesys.texi (Hard Links): Document linkat.
23739
23740 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23741
23742 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23743 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23744 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23745 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23746 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23747 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23748 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23749 the same as _Float128.
23750 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23751 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23752 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23753
23754 * stdlib/stdlib.h
23755 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23756 Declare.
23757 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23758 Likewise.
23759 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23760 Likewise.
23761 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23762 (strtof32x): Likewise.
23763 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23764 (strtof64x): Likewise.
23765 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23766 (strtof128x): Likewise.
23767 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23768 (strfromf16): Likewise.
23769 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23770 (strfromf32): Likewise.
23771 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23772 (strfromf64): Likewise.
23773 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23774 (strfromf32x): Likewise.
23775 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23776 (strfromf64x): Likewise.
23777 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23778 (strfromf128x): Likewise.
23779 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23780 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23781 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23782 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23783 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23784 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23785
23786 2017-11-03 Richard Henderson <rth@twiddle.net>
23787
23788 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23789
23790 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23791
23792 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23793
23794 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23795
23796 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23797 DT_TLSDESC_GOT initialization.
23798 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23799 (_dl_tlsdesc_resolve_hold): Likewise.
23800 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23801 (_dl_tlsdesc_resolve_hold): Likewise.
23802 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23803 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23804
23805 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23806
23807 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23808
23809 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23810
23811 [BZ #18572]
23812 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23813 non-lazily for R_ARM_TLS_DESC.
23814
23815 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23816
23817 [BZ #17078]
23818 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23819 R_ARM_TLS_DESC case.
23820 (elf_machine_lazy_rel): Remove the prelink check.
23821
23822 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23823
23824 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23825 DT_TLSDESC_GOT initialization.
23826 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23827 (_dl_tlsdesc_resolve_rela): Likewise.
23828 (_dl_tlsdesc_resolve_hold): Likewise.
23829 (_dl_tlsdesc_undefweak): Remove ldar.
23830 (_dl_tlsdesc_dynamic): Likewise.
23831 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23832 (_dl_tlsdesc_resolve_rela): Likewise.
23833 (_dl_tlsdesc_resolve_hold): Likewise.
23834 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23835 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23836 (_dl_tlsdesc_resolve_rela): Likewise.
23837 (_dl_tlsdesc_resolve_hold): Likewise.
23838
23839 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23840
23841 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23842 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23843
23844 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23845
23846 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23847 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23848
23849 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23850
23851 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23852 Declare.
23853 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23854 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23855 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23856 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23857 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23858 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23859 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23860 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23861 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23862 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23863 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23864
23865 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23866
23867 [BZ #22382]
23868 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23869 * localedata/locales/tpi_PG: Add standard header.
23870
23871 2017-11-02 Florian Weimer <fweimer@redhat.com>
23872
23873 test-errno-linux: quotactl can fail with EPERM in containers.
23874 * sysdeps/unix/sysv/linux/test-errno-linux.c
23875 (LIST, LIST_FORWARD): New macros.
23876 (check_error_in_list): New function.
23877 (test_wrp_rv): Accept list of permitted error codes.
23878 (test_wrp_rv2): Remove.
23879 (test_wrp): Call test_wrp_rv with list of error codes.
23880 (test_wrp2): Accept list of error codes.
23881 (do_test): Adjust. Allow EPERM for quotactl.
23882
23883 2017-11-02 Florian Weimer <fweimer@redhat.com>
23884
23885 * stdio-common/bug16.c (do_test): Use array_length.
23886 * stdio-common/errlist.c (_sys_nerr): Likewise.
23887 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23888 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23889 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23890 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23891 (do_test): Use array_length.
23892 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23893 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23894 * stdio-common/tst-printf-round.c (do_test): Likewise.
23895 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23896 (CHECK): Use array_length.
23897 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23898 * stdio-common/tstscanf.c (main): Likewise.
23899 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23900
23901 2017-11-02 Florian Weimer <fweimer@redhat.com>
23902
23903 Add array_length and array_end macros.
23904 * include/array_length.h: New file.
23905
23906 2017-11-02 Florian Weimer <fweimer@redhat.com>
23907
23908 [BZ #22332]
23909 * posix/tst-glob-tilde.c (do_noescape): New variable.
23910 (one_test): Process it.
23911 (do_test): Set do_noescape. Add unescaping test case.
23912
23913 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23914
23915 * math/complex.h
23916 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23917 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23918 with appropriate macros defined and undefined.
23919 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23920 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23921 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23922 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23923 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23924 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23925 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23926 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23927 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23928 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23929
23930 * math/complex.h
23931 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23932 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23933 that for long double. Do not condition define and undefine of
23934 _Mdouble_complex_ on [__CFLOAT128].
23935
23936 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23937
23938 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23939 of <sysdeps/generic/sysdep.h>.
23940 (ALIGNARG): Removed.
23941 (ASM_SIZE_DIRECTIVE): Likewise.
23942 (ENTRY): Likewise.
23943 (END): Likewise.
23944 (ENTRY_CHK): Likewise.
23945 (END_CHK): Likewise.
23946 (syscall_error): Likewise.
23947 (mcount): Likewise.
23948 (PSEUDO_END): Likewise.
23949 (L): Likewise.
23950 (atom_text_section): Likewise.
23951 * sysdeps/x86/sysdep.h: New file.
23952 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23953 of <sysdeps/generic/sysdep.h>.
23954 (ALIGNARG): Removed.
23955 (ASM_SIZE_DIRECTIVE): Likewise.
23956 (ENTRY): Likewise.
23957 (END): Likewise.
23958 (ENTRY_CHK): Likewise.
23959 (END_CHK): Likewise.
23960 (syscall_error): Likewise.
23961 (mcount): Likewise.
23962 (PSEUDO_END): Likewise.
23963 (L): Likewise.
23964 (atom_text_section): Likewise.
23965
23966 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23967
23968 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23969 category of LC_CTYPE set to "i18n:2012".
23970 * localedata/locales/i18n_ctype: Regenerate.
23971
23972 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23973
23974 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23975 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23976 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23977 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23978
23979 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23980 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23981 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23982 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23983
23984 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23985
23986 * math/complex.h
23987 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23988 New macro.
23989 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23990 Likewise.
23991 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23992 Likewise.
23993 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23994 (CMPLXF32X): Likewise.
23995 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23996 (CMPLXF64X): Likewise.
23997 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23998 (CMPLXF128X): Likewise.
23999
24000 * math/math.h
24001 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
24002 (__MATH_EVAL_FMT2): Define to add 0.0f.
24003
24004 2017-10-31 Alan Modra <amodra@gmail.com>
24005
24006 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
24007 include sysdep.h.
24008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
24009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
24010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
24011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
24012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
24013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
24014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24015 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24016 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24022 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24023 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24024 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24025 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24026 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24027 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24028 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24029 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24030 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24031 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24032 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24033 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24034 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24035 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24036 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24037 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24038 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24039 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24040 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24041 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24042 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24043 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24044 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24045 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24046 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24047 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24048 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24049 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24050 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24051 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24052 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24053 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24054 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24055 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24056 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24057 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24058 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24059 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24060 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24061 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24062 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24063 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24064 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24065 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24066 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24067 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24068 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24069 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24070 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24071 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24072 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24073 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24074 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24075 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24076 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24077
24078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24079 include sysdep.h and math_ldbl_opt.h.
24080
24081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24082 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
24083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24092 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24096 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24099 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24104 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24107
24108 2017-10-31 Alan Modra <amodra@gmail.com>
24109
24110 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24111 string/strncase_l.c, not string/strncase.c.
24112 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24113 (libc_hidden_def): Redefine.
24114
24115 2017-10-31 Alan Modra <amodra@gmail.com>
24116
24117 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24118 (__STRCMP, STRCMP, __strcasecmp_l): Define.
24119 (__strcasecmp): Don't define.
24120
24121 2017-10-31 Alan Modra <amodra@gmail.com>
24122
24123 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24124 IS_IN (libc).
24125 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24126 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24127 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24128
24129 2017-10-31 Alan Modra <amodra@gmail.com>
24130
24131 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24132 USE_AS_STPNCPY.
24133
24134 2017-10-31 Alan Modra <amodra@gmail.com>
24135
24136 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24137 Redefine only when SHARED.
24138
24139 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24140
24141 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24142 Include <bits/math-finite.h> with appropriate macros defined and
24143 undefined.
24144 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24145 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24146 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24147 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24148 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24149
24150 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24151 [!_Mlong_double_] (_Mlong_double_): Likewise.
24152 [!_Mfloat16_] (_Mfloat16_): Likewise.
24153 [!_Mfloat32_] (_Mfloat32_): Likewise.
24154 [!_Mfloat64_] (_Mfloat64_): Likewise.
24155 [!_Mfloat128_] (_Mfloat128_): Likewise.
24156 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24157 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24158 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24159 (_Mdouble_): Define without indirection through those macros.
24160 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24161 [!_Mfloat128_] (_Mfloat128_): Likewise.
24162 [_Mlong_double_] (_Mlong_double_): Likewise.
24163 (_Mdouble_): Define without indirection through those macros.
24164 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24165 not add -D_Mlong_double_=double.
24166 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24167 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24168
24169 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24170
24171 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24172
24173 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24174
24175 * sysdeps/x86/libc-start.c: Reformat.
24176
24177 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24178
24179 [BZ #22353]
24180 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24181 (1): Renamed to ...
24182 (L(Src0)): This.
24183 (L(Src1)): New.
24184 (L(Src2)): Likewise.
24185 (L(1)): Renamed to ...
24186 (L(Src3)): This.
24187
24188 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24189
24190 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24191 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24192 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24193 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24194 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24195 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24196 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24197 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24198 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24199 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24200 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24201 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24202 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24203 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24204 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24205 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24206 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24207 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24208 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24209 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24210 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24211 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24212 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24213 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24214 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24215 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24216 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24217 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24218 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24219 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24220 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24221 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24222 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24223 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24224 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24225 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24226 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24227 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24228 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24229 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24230 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24231 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24232 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24233 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24234 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24235 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24236 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24237 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24238 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24239 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24240 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24241 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24242 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24243 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24244 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24245 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24246 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24247 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24248 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24249 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24250 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24251 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24252 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24253 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24254 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24255 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24256
24257 2017-10-30 Florian Weimer <fweimer@redhat.com>
24258
24259 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24260 always defined.
24261 * io/tst-mkdirat.c (do_test): Likewise.
24262 * io/tst-mkfifoat.c (do_test): Likewise.
24263 * io/tst-mknodat.c (do_test): Likewise.
24264 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24265 * locale/programs/locale.c (select_dirs): Likewise.
24266 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24267 * posix/bug-glob2.c (my_readdir): Likewise.
24268 * posix/tst-dir.c (main): Likewise.
24269 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24270 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24271
24272 2017-10-30 Florian Weimer <fweimer@redhat.com>
24273
24274 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24275 just __USE_GNU.
24276
24277 2017-10-30 Florian Weimer <fweimer@redhat.com>
24278
24279 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24280 Convert to support/test-driver.c.
24281 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24282 New macro parameters.
24283 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24284 * posix/tst-gnuglob.c: New file.
24285 * posix/tst-gnuglob64.c: Likewise.
24286 * posix/Makefile (tests): Add tst-gnuglob64.
24287
24288 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24289
24290 [BZ #19485]
24291 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24292 and use a better translation for March in “mon”.
24293 * localedata/locales/csb_PL: Use more ASCII to improve the
24294 readability of the source.
24295
24296 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24297
24298 [BZ #13953]
24299 * localedata/locales/km_KH: Use ASCII as much
24300 as possible for better readability of the source and
24301 remove useless comments.
24302 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24303 was commented out and apparently wrong anyway because it was
24304 using Lao characters. If Buddhist era should be used
24305 for km_KH, a native speaker should write the correct formaat
24306 for Khmer.
24307 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24308 (According to CLDR, the first weekday for Cambodia is Sunday).
24309 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24310 (These were using Lao characters which must be wrong. If we get
24311 the correct data from a native speaker, we could add it back, until
24312 then it is better not to have name_mr and name_mrs at all than
24313 having it wrong).
24314
24315 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24316
24317 * locale/loadlocale.c: Correct size of
24318 _nl_value_type_LC_<category> arrays.
24319
24320 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24321
24322 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24323 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24324 with appropriate macros defined and undefined.
24325 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24326 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24327 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24328 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24329 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24330
24331 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24332
24333 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24334 "-O2 -march=i586".
24335
24336 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24337
24338 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24339 with lowercase letters to make it agree with CLDR.
24340
24341 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24342
24343 [BZ #15260]
24344 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24345 first letters of yesstr and nostr in yesexpr and noexpr,
24346 not for the full words.
24347 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24348 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24349 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24350 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24351 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24352 first letters of yesstr and nostr in yesexpr and noexpr,
24353 until now only English was matched in yesexpr and noexpr.
24354 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24355 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24356 fil but not for tl. As tl and fil are very similar, using fil
24357 is probably better than using English.
24358
24359 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24360
24361 [BZ #21706]
24362 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24363 in yesstr and nostr.
24364
24365 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24366
24367 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24368 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24369 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24370 Likewise.
24371 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24372 Likewise.
24373 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24374 Likewise.
24375 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24376 Likewise.
24377 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24378 (SNANF128X): Likewise.
24379
24380 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24381 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24382 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24383 (HUGE_VAL_F32): Likewise.
24384 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24385 (HUGE_VAL_F64): Likewise.
24386 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24387 (HUGE_VAL_F32X): Likewise.
24388 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24389 (HUGE_VAL_F64X): Likewise.
24390 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24391 (HUGE_VAL_F128X): Likewise.
24392
24393 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24394
24395 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24396 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24397 for the br_FR locale.
24398
24399 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24400
24401 [BZ #21706]
24402 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24403
24404 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24405
24406 * locale/programs/record-status.h: Define globals, and function
24407 prototypes. Move function bodies...
24408 * locale/programs/record-status.c: ... to here. New file.
24409 * iconv/Makefile (iconv_prog-modules): Add record-status.
24410 * locale/Makefile (lib-modules): Likewise.
24411 * iconv/iconv_prog.c: Remove verbose.
24412 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24413 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24414 record a warning about ASCII compatibility.
24415 * locale/programs/ld-monetary.c (monetary_finish): If
24416 warn_int_curr_symbol is true then record a warning about the symbol
24417 not being in our ISO 4217 list.
24418 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24419 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24420 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24421 (OPT_NO_WARN): Define.
24422 (OPT_WARN): Define.
24423 (options): Add entry for --no-warnings, and --warnings.
24424 (set_warnings): New function to enable/disable warnings.
24425 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24426 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24427 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24428 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24429 Pass flags to generate_locale.
24430 (generate_locale): Accept new flag argument and pass it to localedef
24431 invocation.
24432 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24433 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24434
24435 * localedata/Makefile (test-input-data): Use full file name.
24436 * localedata/da_DK.in: Rename to...
24437 * localedata/da_DK.ISO-8859-1.in: ...this.
24438 * localedata/de_DE.in: Rename to...
24439 * localedata/de_DE.ISO-8859-1.in: ...this.
24440 * localedata/en_US.in: Rename to...
24441 * localedata/en_US.ISO-8859-1.in: ...this.
24442 * localedata/fr_FR.in: Rename to...
24443 * localedata/fr_FR.UTF-8.in: ... this.
24444 * localedata/hr_HR.in: Rename to...
24445 * localedata/hr_HR.ISO-8859-2.in: ...this.
24446 * localedata/hu_HU.in: Rename to...
24447 * localedata/hu_HU.UTF-8.in: ...this.
24448 * localedata/si_LK.in: Rename to...
24449 * localedata/si_LK.UTF-8.in: ...this.
24450 * localedata/sv_SE.in: Rename to...
24451 * localedata/sv_SE.ISO-8859-1.in: ...this.
24452 * localedata/tr_TR.in: Rename to...
24453 * localedata/tr_TR.UTF-8.in: ...this.
24454 * localedata/uk_UA.in: Rename to...
24455 * localedata/uk_UA.UTF-8.in: ...this.
24456 * localedata/sort-test.sh: Test file is locale name with the
24457 suffix.
24458
24459 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24460 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24461 file.
24462 * localedata/locales/i18n_ctype: Regenerate.
24463 * localedata/locales/tr_TR: Likewise.
24464 * localedata/locales/translit_circle: Likewise.
24465 * localedata/locales/translit_cjk_compat: Likewise.
24466 * localedata/locales/translit_combining: Likewise.
24467 * localedata/locales/translit_compat: Likewise.
24468 * localedata/locales/translit_font: Likewise.
24469 * localedata/locales/translit_fraction: Likewise.
24470
24471 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24472
24473 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24474 lxvd2x/stxvd2x with lvx/stvx.
24475 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24476
24477 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24478
24479 * include/alloc_buffer.h: Replace "if if " with "if " in
24480 comments.
24481 * sysdeps/mips/memcpy.S: Likkewise.
24482 * sysdeps/mips/memset.S: Likewise.
24483 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24484 Likewise.
24485 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24486 Likewise.
24487 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24488 Likewise.
24489
24490 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24491
24492 [BZ #15261]
24493 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24494 yesexpr and noexpr.
24495 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24496 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24497 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24498 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24499 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24500 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24501 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24502
24503 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24504
24505 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24506 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24507 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24508 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24509 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24510 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24511 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24512 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24513 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24514 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24515 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24516 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24517
24518 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24519
24520 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24521 as possible for better readability of the source.
24522 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24523 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24524 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24525 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24526 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24527 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24528 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24529 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24530 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24531 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24532 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24533 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24534 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24535 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24536 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24537 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24538 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24539 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24540 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24541 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24542 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24543 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24544 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24545 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24546 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24547 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24548 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24549 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24550 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24551 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24552 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24553 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24554 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24555 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24556 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24557 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24558 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24559 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24560 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24561 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24562 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24563 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24564 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24565 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24566 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24567 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24568 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24569 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24570 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24571 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24572 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24573 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24574 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24575 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24576 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24577 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24578 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24579 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24580 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24581 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24582 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24583 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24584 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24585 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24586 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24587 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24588 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24589 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24590 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24591 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24592 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24593 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24594 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24595 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24596 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24597 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24598 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24599 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24600 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24601 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24602 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24603 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24604 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24605 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24606 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24607 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24608 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24609 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24610 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24611 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24612 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24613 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24614 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24615 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24616 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24617 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24618 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24619 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24620 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24621 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24622 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24623 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24624 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24625 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24626 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24627 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24628 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24629 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24630 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24631 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24632 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24633 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24634 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24635 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24636 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24637 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24638 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24639 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24640 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24641 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24642 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24643 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24644 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24645 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24646 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24647 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24648 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24649 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24650 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24651 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24652 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24653 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24654 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24655 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24656 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24657 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24658 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24659 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24660 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24661 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24662 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24663 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24664 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24665 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24666 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24667 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24668 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24669 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24670 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24671 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24672 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24673 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24674 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24675 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24676 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24677 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24678 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24679 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24680 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24681 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24682 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24683 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24684 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24685 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24686 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24687 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24688 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24689 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24690 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24691 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24692 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24693 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24694 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24695 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24696
24697 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24698
24699 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24700 (Use first letters of yesstr and nostr correctly instead of using
24701 full words).
24702
24703 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24704
24705 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24706 (Use first letters of yesstr and nostr correctly).
24707
24708 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24709
24710 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24711 also check for the first characters of yesstr and nostr.
24712 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24713 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24714
24715 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24716
24717 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24718 also check for Chinese characters.
24719
24720 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24721
24722 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24723 match also for the contents of yesstr and nostr. As the first letter
24724 of yesstr and nostr is equal, checking only for the first letter
24725 is not enough.
24726
24727 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24728
24729 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24730 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24731
24732 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24733
24734 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24735 of main contributor.
24736
24737 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24738
24739 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24740 instead of using English.
24741
24742 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24743
24744 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24745 by including the first letters of nostr and yesexpr in the regexp.
24746 Also make it more readable by using ASCII where possible.
24747
24748 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24749
24750 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24751 the first letter of nostr in the regexp. It agrees with CLDR now.
24752 Also make it more readable by using ASCII where possible.
24753
24754 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24755
24756 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24757 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24758 these strings contain a U+17D6 (which somewhat looks like a colon)
24759 instead of a real colon to separate the full words for “yes”
24760 and “no” from the single letter responses.
24761
24762 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24763
24764 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24765 it agree with CLDR (include the first letter of yesstr).
24766 Also make it more readable by using ASCII where possible.
24767
24768 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24769
24770 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24771 and improve yesexpr and noexpr. The yesstr and nostr apparently
24772 came from CLDR. And CLDR has a bug there: these strings contain
24773 a U+0903 (which looks like a colon) instead of a real colon
24774 to separate the full words for “yes” and “no” from the single
24775 letter responses.
24776
24777 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24778
24779 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24780 letters of the full yesstr and nostr in yesexpr and noexpr.
24781
24782 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24783
24784 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24785 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24786 * localedata/locales/an_ES: Make source more readable by using ASCII
24787 where possible.
24788
24789 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24790
24791 [BZ #20952]
24792 * localedata/locales/yuw_PG: New file.
24793 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24794 * locale/iso-639.def: Add Yau (Uruwa).
24795
24796 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24797
24798 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24799
24800 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24801
24802 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24803 (__libc_realloc): Likewise.
24804 (_mid_memalign): Likewise.
24805 (__libc_calloc): Likewise.
24806
24807 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24808
24809 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24810 by adding the generic +1 and -0 as in all other locales.
24811 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24812 day names and make it more readable by using ASCII where possible.
24813
24814 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24815
24816 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24817 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24818
24819 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24820
24821 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24822 WNOHANG in waitpid call.
24823
24824 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24825
24826 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24827 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24828
24829 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24830 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24831 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24832 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24833 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24834 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24835 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24836 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24837 variables.
24838
24839 2017-10-23 Michael Collison <michael.collison@arm.com>
24840
24841 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24842 with __builtin_sqrt.
24843 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24844 with __builtin_sqrtf.
24845 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24846 with __builtin_ceil.
24847 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24848 with __builtin_ceilf.
24849 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24850 with __builtin_floor.
24851 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24852 with __builtin_floorf.
24853 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24854 with __builtin_fma.
24855 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24856 with __builtin_fmaf.
24857 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24858 with __builtin_fmax.
24859 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24860 with __builtin_fmaxf.
24861 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24862 with __builtin_fmin.
24863 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24864 with __builtin_fminf.
24865 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24866 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24867 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24868 with builtin_rint and conversion to int.
24869 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24870 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24871 with builtin_llround.
24872 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24873 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24874 with builtin_rint and conversion to long int.
24875 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24876 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24877 with builtin_lround.
24878 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24879 with builtin_lroundf.
24880 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24881 statements with __builtin_nearbyint.
24882 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24883 statements with __builtin_nearbyintf.
24884 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24885 with __builtin_rint.
24886 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24887 with __builtin_rintf.
24888 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24889 with __builtin_round.
24890 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24891 with __builtin_roundf.
24892 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24893 with __builtin_trunc.
24894 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24895 with __builtin_truncf.
24896 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24897 and s_l[l]round[f].c too.
24898
24899 2017-10-23 Alan Modra <amodra@gmail.com>
24900
24901 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24902 Adjust stack after restoring regs. Add missing LR cfi_restore.
24903
24904 2017-10-23 Alan Modra <amodra@gmail.com>
24905
24906 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24907 Move LR save and frame setup/teardown and LR restore to
24908 immediately around memset call. Provide cfi.
24909
24910 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24911
24912 * sysdeps/i386/fpu/e_powf.S: Removed.
24913 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24914 * sysdeps/i386/fpu/w_powf.c: Likewise.
24915 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24916 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24917 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24918 Add e_powf-sse2.
24919 (CFLAGS-e_powf-sse2.c): New.
24920 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24921 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24922
24923 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24924
24925 * sysdeps/i386/fpu/e_log2f.S: Removed.
24926 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24927 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24928 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24929 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24930 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24931 Add e_log2f-sse2.
24932 (CFLAGS-e_log2f-sse2.c): New.
24933 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24934 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24935
24936 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24937
24938 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24939 Add e_powf-fma.
24940 (CFLAGS-e_powf-fma.c): New.
24941 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24942 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24943
24944 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24945
24946 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24947 Add e_log2f-fma.
24948 (CFLAGS-e_log2f-fma.c): New.
24949 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24950 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24951
24952 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24953
24954 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24955 Add e_logf-fma.
24956 (CFLAGS-e_logf-fma.c): New.
24957 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24958 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24959
24960 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24961
24962 * sysdeps/i386/fpu/e_logf.S: Removed.
24963 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24964 * sysdeps/i386/fpu/w_logf.c: Likewise.
24965 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24966 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24967 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24968 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24969 Add e_logf-sse2.
24970 (CFLAGS-e_logf-sse2.c): New.
24971 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24972 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24973
24974 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24975
24976 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24977 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24978 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24979 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24980 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24981 Add e_exp2f-sse2.
24982 (CFLAGS-e_exp2f-sse2.c): New.
24983 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24984 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24985
24986 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24987
24988 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24989 Add e_exp2f-fma.
24990 (CFLAGS-e_exp2f-fma.c): New.
24991 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24992 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24993
24994 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24995
24996 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24997 * sysdeps/i386/fpu/e_expf.S: Likewise.
24998 * sysdeps/i386/fpu/math_errf.c: Likewise.
24999 * sysdeps/i386/fpu/w_expf.c: Likewise.
25000 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
25001 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
25002 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
25003 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
25004 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25005 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25006 Remove e_expf-ia32.
25007 (CFLAGS-e_expf-sse2.c): New.
25008 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
25009 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
25010
25011 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25012
25013 * sysdeps/x86_64/fpu/e_expf.S: Removed.
25014 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25015 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25016 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25017 e_expf.c.
25018 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25019 New.
25020 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25021 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25022 Renamed to ...
25023 (__redirect_expf): This.
25024 (SYMBOL_NAME): Changed to expf.
25025 (__ieee754_expf): Renamed to ...
25026 (__expf): This.
25027 (__GI___expf): This.
25028 (__ieee754_expf): Add strong_alias.
25029 (__expf_finite): Likewise.
25030 (__expf): New.
25031 Include <sysdeps/ieee754/flt-32/e_expf.c>.
25032
25033 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
25034
25035 [BZ #22332]
25036 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25037 unescaping.
25038
25039 2017-10-21 Florian Weimer <fweimer@redhat.com>
25040
25041 * posix/Makefile (tests): Add tst-glob-tilde.
25042 (tests-special): Add tst-glob-tilde-mem.out
25043 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25044 (tst-glob-tilde-mem.out): Add mtrace check.
25045 * posix/tst-glob-tilde.c: New file.
25046
25047 2017-10-20 Joseph Myers <joseph@codesourcery.com>
25048
25049 * bits/floatn-common.h: New file.
25050 * math/Makefile (headers): Add bits/floatn-common.h.
25051 * bits/floatn.h: Include <bits/floatn-common.h>.
25052 * sysdeps/ia64/bits/floatn.h: Likewise.
25053 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25054 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25055 * sysdeps/powerpc/bits/floatn.h: Likewise.
25056 * sysdeps/x86/bits/floatn.h: Likewise.
25057
25058 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25059
25060 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25061 indicates whether compiler emits an warning for alias for
25062 functions with incompatible types.
25063
25064 [BZ #22273]
25065 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25066 the auxiliary process is terminated by a signal before calling _exit
25067 or execve.
25068
25069 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25070
25071 [BZ #21265]
25072 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25073 New.
25074 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25075 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25076 and bit_arch_XSAVEC_Usable if needed.
25077 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25078 and bit_arch_Use_dl_runtime_resolve_opt.
25079 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25080 Removed.
25081 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25082 (bit_arch_Prefer_No_AVX512): Updated.
25083 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25084 (bit_arch_XSAVEC_Usable): New.
25085 (STATE_SAVE_OFFSET): Likewise.
25086 (STATE_SAVE_MASK): Likewise.
25087 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25088 (cpu_features): Add xsave_state_size and xsave_state_full_size.
25089 (index_arch_Use_dl_runtime_resolve_opt): Removed.
25090 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25091 (index_arch_XSAVEC_Usable): New.
25092 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25093 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
25094 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25095 is enabled.
25096 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25097 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25098 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25099 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25100 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25101 _dl_runtime_resolve_xsavec.
25102 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25103 Removed.
25104 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25105 instead of VEC_SIZE.
25106 (REGISTER_SAVE_BND0): Removed.
25107 (REGISTER_SAVE_BND1): Likewise.
25108 (REGISTER_SAVE_BND3): Likewise.
25109 (REGISTER_SAVE_RAX): Always defined to 0.
25110 (VMOV): Removed.
25111 (_dl_runtime_resolve_avx): Likewise.
25112 (_dl_runtime_resolve_avx_slow): Likewise.
25113 (_dl_runtime_resolve_avx_opt): Likewise.
25114 (_dl_runtime_resolve_avx512): Likewise.
25115 (_dl_runtime_resolve_avx512_opt): Likewise.
25116 (_dl_runtime_resolve_sse): Likewise.
25117 (_dl_runtime_resolve_sse_vex): Likewise.
25118 (USE_FXSAVE): New.
25119 (_dl_runtime_resolve_fxsave): Likewise.
25120 (USE_XSAVE): Likewise.
25121 (_dl_runtime_resolve_xsave): Likewise.
25122 (USE_XSAVEC): Likewise.
25123 (_dl_runtime_resolve_xsavec): Likewise.
25124 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25125 Removed.
25126 (_dl_runtime_resolve_avx512_opt): Likewise.
25127 (_dl_runtime_resolve_avx): Likewise.
25128 (_dl_runtime_resolve_avx_opt): Likewise.
25129 (_dl_runtime_resolve_sse): Likewise.
25130 (_dl_runtime_resolve_sse_vex): Likewise.
25131 (_dl_runtime_resolve_fxsave): New.
25132 (_dl_runtime_resolve_xsave): Likewise.
25133 (_dl_runtime_resolve_xsavec): Likewise.
25134
25135 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
25136
25137 [BZ #22320]
25138 CVE-2017-15670
25139 * posix/glob.c (__glob): Fix one-byte overflow.
25140
25141 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25142
25143 * malloc/malloc.c (sysdep-cancel.h): Add include.
25144
25145 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25146
25147 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25148
25149 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
25150
25151 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25152 (tests): Remove $(objpfx)ga_test depdendency.
25153 * resolv/ga_test.c: Remove file.
25154
25155 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25156
25157 [BZ #18812]
25158 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25159 * localedata/locales/kab_DZ: New file.
25160
25161 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25162
25163 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25164 _dl_relocate_static_pie instead of _dl_start to compute load
25165 address in static PIE.
25166
25167 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25168
25169 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25170
25171 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25172
25173 [BZ #13605]
25174 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25175 * localedata/locales/shn_MM: New file.
25176
25177 2017-10-20 Florian Weimer <fweimer@redhat.com>
25178
25179 [BZ #22321]
25180 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25181 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25182 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25183 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25184 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25185 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25186
25187 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25188
25189 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25190
25191 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25192
25193 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25194
25195 [BZ #22322]
25196 * sysdeps/mips/bits/long-double.h: Move to ....
25197 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25198
25199 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25200
25201 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25202
25203 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25204 H.J. Lu <hongjiu.lu@intel.com>
25205
25206 [BZ #22299]
25207 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25208 GLRO(dl_platform) to NULL.
25209 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25210 (modules-names): Add tst-platformmod-1 and
25211 x86_64/tst-platformmod-2.
25212 (CFLAGS-tst-platform-1.c): New.
25213 (CFLAGS-tst-platformmod-1.c): Likewise.
25214 (CFLAGS-tst-platformmod-2.c): Likewise.
25215 (LDFLAGS-tst-platformmod-2.so): Likewise.
25216 ($(objpfx)tst-platform-1): Likewise.
25217 ($(objpfx)tst-platform-1.out): Likewise.
25218 (tst-platform-1-ENV): Likewise.
25219 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25220 * sysdeps/x86_64/tst-platform-1.c: New file.
25221 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25222 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25223
25224 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25225
25226 [BZ #13994]
25227 * locale/iso-639.def: Add Karbi.
25228 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25229 * localedata/locales/mjw_IN: New file.
25230
25231 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25232
25233 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25234 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25235 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25236 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25237 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25238 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25239 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25240 <bits/floatn.h>.
25241 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25242 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25243 * manual/math.texi (Mathematics): Document additional architecture
25244 support for _Float128.
25245 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25246 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25247 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25248 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25249 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25250 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25251 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25252 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25253 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25254 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25255 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25256 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25257 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25258 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25259 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25260
25261 2017-10-18 Renlin Li <renlin.li@arm.com>
25262
25263 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25264 _DYNAMIC symbol to calculate load address.
25265
25266 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25267
25268 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25269 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25270 summary bits.
25271 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25272 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25273
25274 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25275
25276 [BZ #16777]
25277 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25278 and improve readability by using more ASCII.
25279 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25280 and improve readability by using more ASCII.
25281
25282 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25283
25284 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25285 not all targets support atomics on bool.
25286
25287 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25288
25289 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25290 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25291 __f128.
25292 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25293 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25294 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25295 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25296 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25297 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25298
25299 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25300
25301 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25302 defines.
25303
25304 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25305
25306 [BZ #22159]
25307 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25308 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25309 (do_check_remalloced_chunk): Fix build bug.
25310 (do_check_malloc_state): Add assert that checks arena->top.
25311 (malloc_consolidate): Remove initialization.
25312 (int_mallinfo): Remove call to malloc_consolidate.
25313 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25314
25315 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25316
25317 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25318 (have_fastchunks): Remove.
25319 (clear_fastchunks): Remove.
25320 (set_fastchunks): Remove.
25321 (malloc_state): Add have_fastchunks.
25322 (malloc_init_state): Use have_fastchunks.
25323 (do_check_malloc_state): Remove incorrect invariant checks.
25324 (_int_malloc): Use have_fastchunks.
25325 (_int_free): Likewise.
25326 (malloc_consolidate): Likewise.
25327
25328 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25329
25330 * malloc/malloc.c (tcache_put): Inline.
25331 (tcache_get): Inline.
25332
25333 2017-10-17 Jordi Mallach <jordi@gnu.org>
25334
25335 Aurelien Jarno <aurelien@aurel32.net>
25336 [BZ #2522]
25337 * localedata/locales/ca_ES@valencia: New file.
25338 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25339
25340 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25341
25342 [BZ #22296]
25343 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25344 < 6.x
25345
25346 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25347
25348 * scripts/build-many-glibcs.py (Context.add_all_configs):
25349 Add arm-linux-gnueabihf multiarch extra_glibcs.
25350
25351 * sysdeps/generic/ifunc-init.h: New file.
25352 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25353
25354 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25355
25356 [BZ #22019]
25357 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25358 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25359 * stdlib/tst-strfmon_l.c: adapt test case.
25360
25361 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25362
25363 * sysdeps/generic/float128-abi.h: New file.
25364 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25365 non-__prefixed symbols to ....
25366 * math/Versions: ... here. Include <float128-abi.h>.
25367 * stdlib/Versions ... and here. Include <float128-abi.h>
25368
25369 2017-10-16 Florian Weimer <fweimer@redhat.com>
25370
25371 * version.h (VERSION): Switch to ".9000" as the development
25372 version suffix.
25373
25374 2017-10-16 Florian Weimer <fweimer@redhat.com>
25375
25376 [BZ #22050]
25377 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25378 compat_symbol_reference to access non-default version.
25379
25380 2017-10-16 Florian Weimer <fweimer@redhat.com>
25381
25382 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25383
25384 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25385
25386 * include/shlib-compat.h (compat_symbol_reference): Update
25387 comment.
25388
25389 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25390
25391 * math/Makefile (test-types): Add
25392 $(type-float128-$(float128-alias-fcts)).
25393 * math/test-float128.h (TYPE_STR): Define conditional on
25394 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25395 (ULP_IDX): Likewise.
25396 (ULP_I_IDX): Likewise.
25397
25398 * stdlib/strtold.c: Include <bits/floatn.h>
25399 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25400 and later undefine as macro. Define as weak alias if
25401 [!USE_WIDE_CHAR].
25402 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25403 and later undefine as macro. Define as weak alias if
25404 [USE_WIDE_CHAR].
25405 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25406 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25407 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25408 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25409 Define and later undefine as macro. Define as weak alias if
25410 [USE_WIDE_CHAR].
25411 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25412 <bits/floatn.h>.
25413 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25414 Define and later undefine as macro. Define as weak alias if
25415 [!USE_WIDE_CHAR].
25416 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25417 Define and later undefine as macro. Define as weak alias if
25418 [USE_WIDE_CHAR].
25419
25420 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25421
25422 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25423 record_verbose messages.
25424
25425 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25426
25427 [BZ #22052]
25428 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25429 to silence -O3 -Wall warning with GCC 7.
25430
25431 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25432
25433 * Makeconfig (+link-static-before-libc): Use the first of
25434 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25435 * gmon/Makefile (tests): Add tst-gmon-static.
25436 (tests-static): Likewise.
25437 (CFLAGS-tst-gmon-static.c): New.
25438 (CRT-tst-gmon-static): Likewise.
25439 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25440 (tst-gmon-static-ENV): Likewise.
25441 (tests-special): Likewise.
25442 ($(objpfx)tst-gmon-static.out): Likewise.
25443 (clean-tst-gmon-static-data): Likewise.
25444 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25445 * gmon/tst-gmon-static-gprof.sh: New file.
25446 * gmon/tst-gmon-static.c: Likewise.
25447
25448 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25449
25450 [BZ #22295]
25451 * locale/programs/linereader.c (get_string): Don't warn on
25452 non-symbolic character.
25453
25454 [BZ #22294]
25455 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25456 int_curr_symbol.
25457
25458 [BZ #22292]
25459 * locale/programs/record-status.h: New file
25460 * locale/programs/locale.c: Add comment.
25461 * locale/programs/charmap-dir.c: Don't include error.h.
25462 (charmap_opendir): Use record_error.
25463 * locale/programs/charmap.c: Don't include error.h.
25464 (charmap_read): Use record_error, and record_warning.
25465 (parse_charmap): Likewise.
25466 * locale/programs/ld-address.c: Don't include error.h.
25467 (address_finish): Use record_error, and record_warning.
25468 * locale/programs/ld-collate.c: Don't include error.h.
25469 (collate_finish): Use record_error, and record_error_at_line.
25470 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25471 (ctype_class_new): Likewise.
25472 (ctype_map_new): Likewise.
25473 (set_one_default): Likewise.
25474 (set_class_defaults): Likewise.
25475 (translit_flatten): Likewise.
25476 (allocate_arrays): Use record_error, and record_verbose.
25477 * locale/programs/ld-identification.c: Don't include error.h.
25478 (indentation_finish): Use record_error and record_warning.
25479 * locale/programs/ld-measurement.c: Don't include error.h.
25480 (measurement_finish): Use record_error.
25481 * locale/programs/ld-messages.c
25482 (message_finish): Likewise.
25483 * locale/programs/ld-monetary.c
25484 (monetary_finish): Likewise.
25485 * locale/programs/ld-name.c (name_finish): Use record_error
25486 and record_warning.
25487 * locale/programs/ld-numeric.c
25488 (numeric_finish): Use record_error.
25489 * locale/programs/ld-paper.c: Don't include error.h.
25490 (paper_finish): Use record_error.
25491 * locale/programs/ld-telephone.c: Don't include error.h.
25492 (telephone_finish): Use record_error.
25493 * locale/programs/ld-time.c (time_finish): Likewise.
25494 * locale/programs/linereader.h (lr_error): Make inline func.
25495 * locale/programs/localedef.c: Define recorded_warning_count,
25496 and recorded_error_count.
25497 (main): Use record_error. Use recorded_error_count and
25498 recorded_warning_count to issue correct error returns.
25499 (add_to_readlist): Use record_error.
25500 (find_locale): Likewise.
25501 (load_locale): Likewise.
25502 * locale/programs/localedef.h: Remove be_quiet
25503 and WITH_CUR_LOCALE.
25504 * locale/programs/locarchive.c (compare_from_file): Use
25505 record_error.
25506 * locale/programs/locfile.c (write_locale_data): Use
25507 record_error.
25508 * locale/programs/repertoire.c: Dont include error.h.
25509 (repertoire_complain): Use record_error.
25510 * localedata/tst-fmon.sh: Expect failures from localedef.
25511 * localedata/tst-locale.sh: Likewise.
25512 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25513
25514 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25515 (REPORTS): Likewise.
25516 (check): Likewise.
25517 (i18n): Rename to...
25518 (i18n_ctype): ...this.
25519 (i18n-report): Rename to...
25520 (i18n_ctype-report): ...this.
25521 * localedata/locales/i18n_ctype: Regenerate.
25522 * localedata/locales/i18n: copy i18n_ctype.
25523
25524 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25525
25526 * stdlib/strfroml.c: Include <bits/floatn.h>.
25527 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25528 Define before include of <stdlib.h> and undefine afterwards, then
25529 define as weak alias.
25530
25531 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25532 Undefine and restore default definition. Use
25533 libm_alias_ldouble_other.
25534
25535 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25536
25537 [BZ #22153]
25538 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25539 in coredumps.
25540
25541 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25542
25543 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25544 Assign sym_map to be map for local symbols, as TLS relocations
25545 use sym_map to determine whether the symbol is defined and to
25546 extract the TLS information.
25547 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25548 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25549
25550 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25551
25552 [BZ #22189]
25553 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25554 (math_force_eval): Add powerpc version.
25555
25556 [BZ #22142]
25557 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25558 -DBL_MAX.
25559 (do_test): Likewise.
25560 * stdio-common/tst-printf.sh: Likewise.
25561 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25562 ifdef clause in order to set the carry bit right. Replace r0 by
25563 0 without changing the behavior.
25564
25565 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25566
25567 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25568 <libm-alias-ldouble.h>.
25569 (fabsl): Define using libm_alias_ldouble.
25570 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25571 <libm-alias-ldouble.h>.
25572 (fabsl): Define using libm_alias_ldouble.
25573
25574 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25575 Remove conditional code.
25576
25577 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25578 Rename to __clog10_internal_l.
25579 (__clog10_internal_l): Define aliases using
25580 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25581 with __clog10.
25582
25583 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25584
25585 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25586 * benchtests/sincosf-inputs: New file.
25587 * benchtests/cosf-inputs: New file.
25588 * benchtests/sinf-inputs: New file.
25589
25590 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25591
25592 * posix/tst-spawn.c (do_test): Wait for both children.
25593
25594 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25595
25596 [BZ #22284]
25597 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25598 tests-pie): Add tst-gmon-pie.
25599 (CFLAGS-tst-gmon-pie.c): New.
25600 (CRT-tst-gmon-pie): Likewise.
25601 (tst-gmon-pie-ENV): Likewise.
25602 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25603 ($(objpfx)tst-gmon-pie.out): Likewise.
25604 (clean-tst-gmon-pie-data): Likewise.
25605 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25606 * gmon/gmon.c [PIC]: Include <link.h>.
25607 [PIC] (callback): New function.
25608 (write_hist): Add an argument for load address. Subtract load
25609 address from PCs.
25610 (write_call_graph): Likewise.
25611 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25612 it to write_hist and write_call_graph.
25613 * gmon/tst-gmon-pie.c: New file.
25614
25615 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25616
25617 * math/Makefile (test-types-basic): New variable.
25618 (test-types): Likewise.
25619 (libm-test-support): Use $(test-types) instead of $(types).
25620 (libm-tests-base-normal): Likewise.
25621 (libm-tests-base-finite): Likewise.
25622 (libm-tests-base-inline): Likewise.
25623 (generated): Likewise.
25624 ($(objpfx)libm-test-support-$(t).c): Likewise.
25625 (libm-tests-for-type iterator): Likewise.
25626 (libm-test-support iterator): Likewise.
25627 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25628 (ulp_idx): Use ULP_IDX.
25629 * math/test-ldouble.h: Include <float.h>.
25630 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25631 (ULP_IDX): New macro.
25632 (ULP_I_IDX): Likewise.
25633 * math/test-double.h (ULP_IDX): Likewise.
25634 (ULP_I_IDX): Likewise.
25635 * math/test-float.h (ULP_IDX): Likewise.
25636 (ULP_I_IDX): Likewise.
25637 * math/test-float128.h (ULP_IDX): Likewise.
25638 (ULP_I_IDX): Likewise.
25639
25640 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25641
25642 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25643 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25644 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25645 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25646 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25647 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25648 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25649 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25650 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25651 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25652 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25653 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25654 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25655 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25656 (SINGLE_THREAD_BY_GLOBAL): Define.
25657 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25658 Likewise.
25659 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25660 Likewise.
25661 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25662 Likewise.
25663 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25664 Likewise.
25665 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25666 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25667 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25668 Likewise.
25669
25670 2017-10-11 Andreas Schwab <schwab@suse.de>
25671
25672 * nis/Makefile (aux): Remove.
25673 * nscd/Makefile (aux): Add nscd_hash.
25674 (nscd-modules): Likewise.
25675 ($(objpfx)nscd): Don't depend on libnsl.
25676 * nscd/nscd_hash.c: New file.
25677 * nscd/nscd_hash.h: Likewise.
25678 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25679 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25680 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25681 instead of <nis/rpcsvc/nis.h>.
25682 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25683
25684 2017-10-11 Florian Weimer <fweimer@redhat.com>
25685
25686 [BZ #22078]
25687 Avoid large NSS buffers with many addresses, aliases.
25688 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25689 using dynarrays and struct alloc_buffer.
25690 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25691 (tst-nss-files-hosts-multi): Link with -ldl.
25692 * nss/tst-nss-files-hosts-multi.c: New file.
25693
25694 2017-10-11 Florian Weimer <fweimer@redhat.com>
25695
25696 [BZ #18023]
25697 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25698 scratch_buffer. Eliminate gotos.
25699
25700 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25701
25702 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25703 libm_alias_ldouble_other.
25704 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25705 undefine and redefine.
25706 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25707 (exp10l): Do not define here.
25708 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25709 (weak_alias): Undefine and redefine.
25710 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25711 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25712 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25713 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25714
25715 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25716 [!__fma] (fma): Define using libm_alias_double.
25717 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25718 [!__fmaf] (fmaf): Define using libm_alias_float.
25719 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25720 (fmal): Define using libm_alias_ldouble.
25721
25722 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25723
25724 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25725 New macro.
25726 (libm_alias_double_other): Likewise.
25727 (libm_alias_double_r): Use libm_alias_double_other_r.
25728 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25729 New macro.
25730 (libm_alias_float_other): Likewise.
25731 (libm_alias_float_r): Use libm_alias_float_other_r.
25732 * sysdeps/generic/libm-alias-float128.h
25733 (libm_alias_float128_other_r): New macro.
25734 (libm_alias_float128_other): Likewise.
25735 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25736 * sysdeps/generic/libm-alias-ldouble.h
25737 (libm_alias_ldouble_other_r): New macro.
25738 (libm_alias_ldouble_other): Likewise.
25739 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25740 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25741 (libm_alias_double_other_r): New macro.
25742 (libm_alias_double_other): Likewise.
25743 (libm_alias_double_r): Use libm_alias_double_other_r.
25744 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25745 (libm_alias_ldouble_other_r): New macro.
25746 (libm_alias_ldouble_other): Likewise.
25747 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25748 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25749 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25750 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25751 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25752 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25753 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25754 * math/w_exp2f.c: Use libm_alias_float_other.
25755 * math/w_expf.c: Likewise.
25756 * math/w_log2f.c: Likewise.
25757 * math/w_logf.c: Likewise.
25758 * math/w_powf.c: Likewise.
25759 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25760 [!__exp2f]: Use libm_alias_float_other.
25761 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25762 [!__expf]: Use libm_alias_float_other.
25763 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25764 [!__log2f]: Use libm_alias_float_other.
25765 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25766 [!__logf]: Use libm_alias_float_other.
25767 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25768 [!__powf]: Use libm_alias_float_other.
25769
25770 2017-10-10 Florian Weimer <fweimer@redhat.com>
25771
25772 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25773 function.
25774 (_nss_files_gethostbyname3_r): Call it.
25775
25776 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25777
25778 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25779 error. Remove default definition of declare_mgen_alias.
25780 [!declare_mgen_alias_r]: Likewise.
25781 * sysdeps/generic/math-type-macros-double.h
25782 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25783 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25784 (declare_mgen_alias_r): Likewise.
25785 * sysdeps/generic/math-type-macros-float128.h
25786 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25787 * sysdeps/generic/math-type-macros-ldouble.h
25788 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25789 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25790 macro.
25791 (declare_mgen_alias_r_s): Likewise.
25792 (declare_mgen_alias_r): Likewise.
25793 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25794 (lgamma_r): Define using libm_alias_double_r.
25795 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25796 (lgammaf_r): Define using libm_alias_float_r.
25797 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25798 (lgammal_r): Define using libm_alias_ldouble_r.
25799 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25800 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25801
25802 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25803
25804 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25805 extern declaration.
25806
25807 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25808
25809 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25810
25811 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25812
25813 [BZ #21326]
25814 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25815 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25816 * math/Makefile (test-math-cxx11): New test.
25817 * math/test-math-cxx11.cc: New file.
25818
25819 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25820
25821 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25822
25823 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25824 call to allocate the slave pty file descriptor.
25825
25826 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25827
25828 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25829 [!__fma] (fma): Define using libm_alias_double.
25830 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25831 [!__fma] (fma): Define using libm_alias_double.
25832
25833 * sysdeps/ieee754/float128/float128_private.h: Include
25834 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25835 (libm_alias_ldouble_r): Undefine and redefine.
25836 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25837 <libm-alias-ldouble.h>.
25838 (asinhl): Define using libm_alias_ldouble.
25839 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25840 <libm-alias-ldouble.h>.
25841 (atanl): Define using libm_alias_ldouble.
25842 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25843 <libm-alias-ldouble.h>.
25844 (cbrtl): Define using libm_alias_ldouble.
25845 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25846 <libm-alias-ldouble.h>.
25847 (ceill): Define using libm_alias_ldouble.
25848 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25849 <libm-alias-ldouble.h>.
25850 (copysignl): Define using libm_alias_ldouble.
25851 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25852 <libm-alias-ldouble.h>.
25853 (cosl): Define using libm_alias_ldouble.
25854 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25855 <libm-alias-ldouble.h>.
25856 (erfl): Define using libm_alias_ldouble.
25857 (erfcl): Likewise.
25858 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25859 <libm-alias-ldouble.h>.
25860 (expm1l): Define using libm_alias_ldouble.
25861 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25862 <libm-alias-ldouble.h>.
25863 (fabsl): Define using libm_alias_ldouble.
25864 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25865 <libm-alias-ldouble.h>.
25866 (floorl): Define using libm_alias_ldouble.
25867 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25868 <libm-alias-ldouble.h>.
25869 (fmal): Define using libm_alias_ldouble.
25870 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25871 <libm-alias-ldouble.h>.
25872 (frexpl): Define using libm_alias_ldouble.
25873 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25874 libm_alias_ldouble.
25875 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25876 <libm-alias-ldouble.h>.
25877 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25878 libm_alias_ldouble.
25879 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25880 <libm-alias-ldouble.h>.
25881 (getpayloadl): Define using libm_alias_ldouble.
25882 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25883 <libm-alias-ldouble.h>.
25884 (llrintl): Define using libm_alias_ldouble.
25885 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25886 <libm-alias-ldouble.h>.
25887 (llroundl): Define using libm_alias_ldouble.
25888 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25889 <libm-alias-ldouble.h>.
25890 (logbl): Define using libm_alias_ldouble.
25891 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25892 <libm-alias-ldouble.h>.
25893 (lrintl): Define using libm_alias_ldouble.
25894 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25895 <libm-alias-ldouble.h>.
25896 (lroundl): Define using libm_alias_ldouble.
25897 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25898 <libm-alias-ldouble.h>.
25899 (modfl): Define using libm_alias_ldouble.
25900 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25901 <libm-alias-ldouble.h>.
25902 (nearbyintl): Define using libm_alias_ldouble.
25903 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25904 <libm-alias-ldouble.h>.
25905 (nextafterl): Define using libm_alias_ldouble.
25906 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25907 <libm-alias-ldouble.h>.
25908 (nextupl): Define using libm_alias_ldouble.
25909 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25910 <libm-alias-ldouble.h>.
25911 (remquol): Define using libm_alias_ldouble.
25912 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25913 <libm-alias-ldouble.h>.
25914 (rintl): Define using libm_alias_ldouble.
25915 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25916 <libm-alias-ldouble.h>.
25917 (roundevenl): Define using libm_alias_ldouble.
25918 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25919 <libm-alias-ldouble.h>.
25920 (roundl): Define using libm_alias_ldouble.
25921 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25922 using libm_alias_ldouble.
25923 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25924 <libm-alias-ldouble.h>.
25925 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25926 Define using libm_alias_ldouble.
25927 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25928 <libm-alias-ldouble.h>.
25929 (sincosl): Define using libm_alias_ldouble.
25930 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25931 <libm-alias-ldouble.h>.
25932 (sinl): Define using libm_alias_ldouble.
25933 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25934 <libm-alias-ldouble.h>.
25935 (tanhl): Define using libm_alias_ldouble.
25936 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25937 <libm-alias-ldouble.h>.
25938 (tanl): Define using libm_alias_ldouble.
25939 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25940 <libm-alias-ldouble.h>.
25941 (totalorderl): Define using libm_alias_ldouble.
25942 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25943 <libm-alias-ldouble.h>.
25944 (totalordermagl): Define using libm_alias_ldouble.
25945 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25946 <libm-alias-ldouble.h>.
25947 (truncl): Define using libm_alias_ldouble.
25948 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25949 libm_alias_ldouble.
25950 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25951 libm_alias_ldouble.
25952 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25953 <libm-alias-ldouble.h>.
25954 (weak_alias): Do not undefine and redefine.
25955 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25956 (copysignl): Define with long_double_symbol only if [IS_IN
25957 (libc)].
25958 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25959 <libm-alias-ldouble.h>.
25960 (weak_alias): Do not undefine and redefine.
25961 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25962 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25963 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25964 <libm-alias-ldouble.h>.
25965 (weak_alias): Do not undefine and redefine.
25966 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25967 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25968 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25969 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25970 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25971 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25972 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25973 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25974 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25975 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25976 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25977 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25978 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25979 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25980 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25981 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25982 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25983 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25984 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25985 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25986 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25987 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25988 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25989 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25990 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25991 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25992
25993 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25994
25995 [BZ #22111]
25996 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25997 (tcache_thread_freeres): Set tcache_shutting_down before
25998 freeing the tcache.
25999 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
26000 * malloc/tst-malloc-tcache-leak.c: New file.
26001
26002 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26003
26004 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
26005 back to powerpc32 file.
26006 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26007 (memrchr): Add __memrchr_power8 to ifunc list.
26008 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
26009 extra bytes for unaligned inputs.
26010
26011 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26012
26013 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
26014 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26015 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26016 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26017 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26018
26019 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26020
26021 * sysdeps/arm/libm-test-ulps: Update.
26022
26023 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26024 <libm-alias-ldouble.h>.
26025 (asinhl): Define using libm_alias_ldouble.
26026 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26027 <libm-alias-ldouble.h>.
26028 (cbrtl): Define using libm_alias_ldouble.
26029 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26030 <libm-alias-ldouble.h>.
26031 (copysignl): Define using libm_alias_ldouble.
26032 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26033 <libm-alias-ldouble.h>.
26034 (cosl): Define using libm_alias_ldouble.
26035 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26036 <libm-alias-ldouble.h>.
26037 (erfl): Define using libm_alias_ldouble.
26038 (erfcl): Likewise.
26039 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26040 <libm-alias-ldouble.h>.
26041 (fmal): Define using libm_alias_ldouble.
26042 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26043 <libm-alias-ldouble.h>.
26044 (frexpl): Define using libm_alias_ldouble.
26045 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26046 libm_alias_ldouble.
26047 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26048 <libm-alias-ldouble.h>.
26049 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26050 libm_alias_ldouble.
26051 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26052 <libm-alias-ldouble.h>.
26053 (getpayloadl): Define using libm_alias_ldouble.
26054 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26055 <libm-alias-ldouble.h>.
26056 (llrintl): Define using libm_alias_ldouble.
26057 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26058 <libm-alias-ldouble.h>.
26059 (llroundl): Define using libm_alias_ldouble.
26060 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26061 <libm-alias-ldouble.h>.
26062 (lrintl): Define using libm_alias_ldouble.
26063 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26064 <libm-alias-ldouble.h>.
26065 (lroundl): Define using libm_alias_ldouble.
26066 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26067 <libm-alias-ldouble.h>.
26068 (modfl): Define using libm_alias_ldouble.
26069 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26070 <libm-alias-ldouble.h>.
26071 (nextupl): Define using libm_alias_ldouble.
26072 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26073 <libm-alias-ldouble.h>.
26074 (remquol): Define using libm_alias_ldouble.
26075 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26076 <libm-alias-ldouble.h>.
26077 (roundevenl): Define using libm_alias_ldouble.
26078 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26079 <libm-alias-ldouble.h>.
26080 (roundl): Define using libm_alias_ldouble.
26081 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26082 using libm_alias_ldouble.
26083 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26084 <libm-alias-ldouble.h>.
26085 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26086 <libm-alias-ldouble.h>.
26087 (setpayloadsigl): Define using libm_alias_ldouble.
26088 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26089 <libm-alias-ldouble.h>.
26090 (sincosl): Define using libm_alias_ldouble.
26091 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26092 <libm-alias-ldouble.h>.
26093 (sinl): Define using libm_alias_ldouble.
26094 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26095 <libm-alias-ldouble.h>.
26096 (tanhl): Define using libm_alias_ldouble.
26097 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26098 <libm-alias-ldouble.h>.
26099 (tanl): Define using libm_alias_ldouble.
26100 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26101 <libm-alias-ldouble.h>.
26102 (totalorderl): Define using libm_alias_ldouble.
26103 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26104 <libm-alias-ldouble.h>.
26105 (totalordermagl): Define using libm_alias_ldouble.
26106 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26107 libm_alias_ldouble.
26108 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26109 libm_alias_ldouble.
26110
26111 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
26112
26113 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26114 memmove_falkor.
26115 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26116 (__libc_ifunc_impl_list): Likewise.
26117 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26118 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26119
26120 * benchtests/bench-memmove-walk.c: New file.
26121 * benchtests/Makefile (string-benchset): Add it.
26122
26123 * benchtests/bench-memset-walk.c: New file.
26124 * benchtests/Makefile (string-benchset): Add it.
26125
26126 * benchtests/bench-memcpy-walk.c: New file.
26127 * benchtests/Makefile (string-benchset): Add it.
26128
26129 2017-10-05 Florian Weimer <fweimer@redhat.com>
26130
26131 nscd: Eliminate compilation time dependency in the build output.
26132 * nscd/nscd_stat.c (STATDATA_VERSION)
26133 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26134 (STATDATA_VERSION_FULL): New macro definitions.
26135 (compilation): Remove.
26136 (struct statdata): Adjust version member.
26137 (send_stats): Set version from STATDATA_VERSION_FULL.
26138 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26139
26140 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26141
26142 * configure.ac (--enable-add-ons): Remove option.
26143 (machine): Do not mention add-ons in comment.
26144 (LIBC_PRECONFIGURE): Likewise.
26145 (add_ons): Remove variable and sanity checks and logic to locate
26146 add-ons.
26147 (add_ons_automatic): Remove variable.
26148 (configured_add_ons): Likewise.
26149 (add_ons_sfx): Likewise.
26150 (add_ons_pfx): Likewise.
26151 (add_on_subdirs): Likewise.
26152 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26153 consideration of add-ons in Implies handling.
26154 (sysdeps_add_ons): Likewise.
26155 * configure: Regenerated.
26156 * libidn/configure.ac: Remove.
26157 * libidn/configure: Likewise.
26158 * sysdeps/unix/inet/configure.ac: New file.
26159 * sysdeps/unix/inet/configure: New generated file.
26160 * sysdeps/unix/inet/Subdirs: Add libidn.
26161 * Makeconfig (sysdeps-srcdirs): Remove variable.
26162 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26163 ($(common-objpfx)config.status): Do not depend on add-on files.
26164 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26165 comment.
26166 (all-subdirs): Do not include $(add-on-subdirs).
26167 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26168 * config.make.in (add-ons): Remove variable.
26169 (add-on-subdirs): Likewise.
26170 (sysdeps-add-ons): Likewise.
26171 * manual/Makefile (add-chapters): Remove.
26172 ($(objpfx)texis): Do not depend on $(add-chapters).
26173 (nonexamples): Do not handle $(add-chapters).
26174 (examples): Do not handle $(add-ons).
26175 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26176 libc-texinfo.sh.
26177 * manual/install.texi (Installation): Do not mention add-ons.
26178 (--enable-add-ons): Do not document configure option.
26179 * INSTALL: Regenerated.
26180 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26181 * manual/maint.texi (Hierarchy Conventions): Do not mention
26182 add-ons.
26183 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26184 --enable-add-ons.
26185 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26186 add-ons.
26187 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26188 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26189
26190 2017-10-05 Andreas Schwab <schwab@suse.de>
26191
26192 [BZ #15142]
26193 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26194 (_IO_flush_all_lockp): Always lock list_all_lock.
26195 (_IO_flush_all_linebuffered): Likewise.
26196 (_IO_unbuffer_all): Likewise.
26197
26198 2017-10-05 Florian Weimer <fweimer@redhat.com>
26199
26200 [BZ #15436]
26201 Do not flush stdio streams on abort.
26202 * stdlib/abort.c (fflush): Remove macro definition.
26203 (abort): Remove stages related to stdio flushing.
26204
26205 2017-10-05 Florian Weimer <fweimer@redhat.com>
26206
26207 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26208
26209 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26210
26211 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26212
26213 2017-10-05 Florian Weimer <fweimer@redhat.com>
26214
26215 * support/support_format_hostent.c (support_format_hostent): Add
26216 more error information for NETDB_INTERNAL.
26217
26218 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26219
26220 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26221 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26222 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26223 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26224 AC_DEFINE if multi-arch is enabled.
26225 * sysdeps/i386/configure: Regenerated.
26226
26227 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26228
26229 * Makeconfig (+link-static-before-libc): Use
26230 $(DEFAULT-LDFLAGS-$(@F)).
26231 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26232 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26233 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26234
26235 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26236
26237 * elf/Makefile (tests): Add tst-main1.
26238 (modules-names): Add tst-main1mod.
26239 ($(objpfx)tst-main1): New.
26240 (CRT-tst-main1): Likewise.
26241 (LDFLAGS-tst-main1): Likewise.
26242 (LDLIBS-tst-main1): Likewise.
26243 (tst-main1mod.so-no-z-defs): Likewise.
26244 * elf/tst-main1.c: New file.
26245 * elf/tst-main1mod.c: Likewise.
26246
26247 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26248
26249 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26250
26251 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26252
26253 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26254 (fma): Define using libm_alias_double.
26255 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26256 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26257 <math_ldbl_opt.h>.
26258 (fmal): Do not define as compat symbol here.
26259 * sysdeps/alpha/fpu/s_fma.c: New file.
26260
26261 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26262
26263 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26264
26265 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26266
26267 [BZ #22229]
26268 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26269 <math_ldbl_opt.h>
26270 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26271 and libc.
26272 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26273 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26274 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26275 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26276 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26277 Include <math_ldbl_opt.h>
26278 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26279 and libc.
26280 (compat_symbol): Undefine and redefine.
26281 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26282 <math_ldbl_opt.h>
26283 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26284 (compat_symbol): Undefine and redefine.
26285 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26286 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26287 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26288 GLIBC_2_1 for libm.
26289 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26290 GLIBC_2.0 copysignl symbol.
26291 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26292 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26293
26294 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26295
26296 2017-10-04 Florian Weimer <fweimer@redhat.com>
26297
26298 * scripts/check-local-headers.sh: Ignore nspr4 header file
26299 directory in addition to nspr.
26300
26301 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26302
26303 [BZ #17956]
26304 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26305 * configure: Regenerate.
26306 * crypt/Makefile (nss-cpp-flags): New variable.
26307 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26308 (CPPFLAGS-md5-crypt.c): Use it.
26309 * scripts/check-local-headers.sh: Ignore nspr header file
26310 directory.
26311
26312 2017-10-04 Andreas Schwab <schwab@suse.de>
26313
26314 * nis/Makefile (services): Remove compat.
26315 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26316 ($(objpfx)libnss_compat.so): Remove rule.
26317 * nis/Versions (libnss_compat): Remove.
26318 * nss/Makefile (services): Add compat.
26319 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26320 * nss/Versions (libnss_compat): Define.
26321 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26322 Don't include <rpc/types.h>. Replace bool_t by bool.
26323 * nss/nss_compat/compat-initgroups.c: Likewise.
26324 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26325 instead of <rpcsrv/ypclnt.h>.
26326 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26327 yp_get_default_domain.
26328 * nss/nss_compat/compat-pwd.c: Likewise.
26329 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26330 yp_get_default_domain.
26331 * nss/nss_compat/nisdomain.c: New file.
26332 * nss/nss_compat/nisdomain.h: Likewise.
26333
26334 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26335
26336 [BZ #22244]
26337 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26338 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26339
26340 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26341
26342 [BZ #22243]
26343 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26344 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26345
26346 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26347
26348 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26349 "movl main@GOTOFF(%ebx), %eax".
26350
26351 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26352
26353 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26354 allow undefined _DYNAMIC in PIE libc.a.
26355 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26356 Likewse.
26357
26358 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26359
26360 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26361 check _DYNAMIC.
26362
26363 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26364
26365 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26366 check _DYNAMIC.
26367
26368 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26369
26370 * math/test-math-iscanonical.cc (error): Replace bool with int.
26371
26372 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26373
26374 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26375 (modf): Define using libm_alias_double, only if [!__modf].
26376 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26377 <libm-alias-double.h>.
26378 (modf): Define using libm_alias_double, only if [!__modf].
26379 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26380 compat symbol here.
26381 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26382 (weak_alias): Do not undefine and redefine.
26383 (strong_alias): Likewise.
26384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26385 (weak_alias): Likewise.
26386 (strong_alias): Likewise.
26387
26388 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26389 (logb): Define using libm_alias_double, only if [!__logb].
26390 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26391 <libm-alias-double.h>.
26392 (logb): Define using libm_alias_double, only if [!__logb].
26393 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26395 (weak_alias): Do not undefine and redefine.
26396 (strong_alias): Likewise.
26397 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26398 (weak_alias): Likewise.
26399 (strong_alias): Likewise.
26400
26401 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26402
26403 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26404 Check SHARED instead PIC.
26405
26406 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26407
26408 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26409 [!__fmaf] (fmaf): Define using libm_alias_float.
26410
26411 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26412 (frexp): Define using libm_alias_double.
26413 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26414 <libm-alias-double.h>.
26415 (frexp): Define using libm_alias_double.
26416 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26417 compat symbol here.
26418
26419 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26420
26421 [BZ #22235]
26422 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26423 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26424 (CFLAGS-test-math-iscanonical.cc): New variable.
26425 * math/test-math-iscanonical.cc: New file.
26426 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26427 Provide a C++ implementation based on function overloading,
26428 rather than using __MATH_TG, which uses C-only builtins.
26429 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26430 Likewise.
26431 * sysdeps/powerpc/powerpc64le/Makefile
26432 (CFLAGS-test-math-iscanonical.cc): New variable.
26433
26434 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26435
26436 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26437 (ceil): Define using libm_alias_double.
26438 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26439 (floor): Define using libm_alias_double.
26440 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26441 <libm-alias-double.h>.
26442 (llround): Define using libm_alias_double.
26443 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26444 <libm-alias-double.h>.
26445 (lround): Define using libm_alias_double.
26446 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26447 <libm-alias-double.h>.
26448 (nearbyint): Define using libm_alias_double.
26449 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26450 <libm-alias-double.h>.
26451 (remquo): Define using libm_alias_double.
26452 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26453 (rint): Define using libm_alias_double.
26454 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26455 (round): Define using libm_alias_double.
26456 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26457 (trunc): Define using libm_alias_double.
26458 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26459 <libm-alias-double.h>.
26460 (ceil): Define using libm_alias_double.
26461 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26462 <libm-alias-double.h>.
26463 (floor): Define using libm_alias_double.
26464 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26465 <libm-alias-double.h>.
26466 (llround): Define using libm_alias_double.
26467 [_LP64] (lround): Likewise.
26468 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26469 <libm-alias-double.h>.
26470 [!_LP64] (lround): Define using libm_alias_double.
26471 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26472 <libm-alias-double.h>.
26473 (nearbyint): Define using libm_alias_double.
26474 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26475 <libm-alias-double.h>.
26476 (remquo): Define using libm_alias_double.
26477 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26478 <libm-alias-double.h>.
26479 (rint): Define using libm_alias_double.
26480 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26481 <libm-alias-double.h>.
26482 (round): Define using libm_alias_double.
26483 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26484 <libm-alias-double.h>.
26485 (trunc): Define using libm_alias_double.
26486 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26487 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26488 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26489 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26490 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26491 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26492 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26493 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26494 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26495
26496 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26497
26498 * math/w_remainder.c: New file.
26499 * math/w_remainderf.c: New file.
26500 * math/w_remainderl.c: New file.
26501
26502 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26503
26504 * elf/rtld.c (BOOTSTRAP_MAP): New.
26505 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26506 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26507 Likewise.
26508 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26509 Likewise.
26510 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26511 Likewise.
26512
26513 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26514
26515 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26516 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26517 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26518 rtld_hidden_data_ver): Define to empty.
26519 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26520 __assert_perror_fail): Likewise.
26521 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26522 (__rewinddir): Likewise.
26523 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26524 (__profile_frequency): Likewise.
26525 * include/setjmp.h (__sigsetjmp): Likewise.
26526 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26527 __libc_sigaction): Likewise.
26528 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26529 not set hidden attribute.
26530 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26531 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26532 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26533 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26534 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26535 __fxstatat64): Likewise.
26536 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26537 (__uname): Likewise.
26538 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26539 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26540 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26541 (NO_RTLD_HIDDEN): Set.
26542 * sysdeps/mach/hurd/configure: Refresh.
26543 * config.h.in: Refresh.
26544
26545 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26546
26547 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26548 (atan): Define using libm_alias_double.
26549 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26550 (tan): Define using libm_alias_double.
26551 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26552 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26553
26554 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26555 define as weak alias of __atan. Do not define any aliases if
26556 [__atan].
26557 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26558 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26559 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26560 as weak alias of __tan. Do not define any aliases if [__tan].
26561 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26562 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26563 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26564 __atan.
26565 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26566 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26567 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26568 and define as weak alias of __atan.
26569 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26570 __atan.
26571 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26572 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26573 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26574 define as weak alias of __tan.
26575
26576 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26577
26578 * math/w_lgamma.c: New file.
26579 * math/w_lgammaf.c: New file.
26580 * math/w_lgammal.c: New file.
26581
26582 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26583
26584 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26585 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26586 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26587 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26588 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26589 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26590 * sysdeps/i386/fpu/w_log2f.c: New file.
26591 * sysdeps/i386/fpu/w_logf.c: New file.
26592 * sysdeps/i386/fpu/w_powf.c: New file.
26593 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26594 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26595 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26596
26597 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26598 H.J. Lu <hongjiu.lu@intel.com>
26599
26600 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26601 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26602 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26603 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26604 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26605 the new expf code.
26606 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26607 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26608 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26609 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26610 * sysdeps/i386/fpu/w_exp2f.c: New file.
26611 * sysdeps/i386/fpu/w_expf.c: New file.
26612 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26613 * sysdeps/x86_64/fpu/w_expf.c: New file.
26614
26615 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26616
26617 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26618 (log2f): Likewise.
26619 (powf): Likewise.
26620 * math/w_log2f.c: New file.
26621 * math/w_logf.c: New file.
26622 * math/w_powf.c: New file.
26623 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26624 * math/w_logf_compat.c (__logf_compat): Likewise.
26625 * math/w_powf_compat.c (__powf_compat): Likewise.
26626 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26627 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26628 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26629 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26630 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26631 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26632 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26633 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26634 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26635 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26636 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26637 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26638 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26639 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26640 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26641 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26642 Likewise.
26643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26644 Likewise.
26645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26646 Likewise.
26647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26648 Likewise.
26649 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26650 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26651 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26652 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26653 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26654 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26655 Likewise.
26656 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26657 Likewise.
26658 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26659 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26660 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26661
26662 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26663
26664 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26665 (sysdep_routines): Add memrchr_power8.
26666 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26667 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26668 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26669 New file.
26670 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26671 (memrchr): Add __memrchr_power8 to ifunc list.
26672 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26673
26674 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26675
26676 [BZ #18822]
26677 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26678 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26679 libc_hidden_def.
26680 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26681 (__posix_fallocate64_l64): Likewise.
26682
26683 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26684
26685 [BZ #18822]
26686 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26687 (__sched_setaffinity_new): Add libc_hidden_proto and
26688 libc_hidden_def.
26689
26690 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26691
26692 [BZ #18822]
26693 * include/glob.h (__glob64): Add libc_hidden_proto.
26694 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26695 libc_hidden_def.
26696
26697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26698
26699 [BZ #18822]
26700 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26701 attribute_hidden.
26702
26703 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26704
26705 [BZ #18822]
26706 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26707
26708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26709
26710 [BZ #18822]
26711 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26712 libc_hidden_def.
26713
26714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26715
26716 [BZ #18822]
26717 * csu/version.c (__libc_print_version): Add attribute_hidden.
26718
26719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26720
26721 [BZ #18822]
26722 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26723
26724 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26725
26726 [BZ #18822]
26727 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26728
26729 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26730
26731 [BZ #18822]
26732 * nscd/nscd_helper.c (__nis_hash): New prototype.
26733
26734 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26735
26736 [BZ #18822]
26737 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26738 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26739 libc_hidden_def.
26740 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26741 * termios/tcgetattr.c (__tcgetattr): Likewise.
26742
26743 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26744
26745 [BZ #18822]
26746 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26747 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26748 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26749 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26750 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26751
26752 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26753
26754 [BZ #18822]
26755 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26756
26757 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26758
26759 [BZ #18822]
26760 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26761 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26762
26763 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26764
26765 [BZ #18822]
26766 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26767
26768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26769
26770 [BZ #18822]
26771 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26772 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26773
26774 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26775
26776 [BZ #18822]
26777 * include/ifreq.h: New file.
26778 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26779 (__ifreq): Likewise.
26780 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26781 (__ifreq): Likewise.
26782
26783 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26784
26785 [BZ #18822]
26786 * include/idna.h: New file.
26787 * inet/getnameinfo.c: Include <idna.h> instead of
26788 <libidn/idna.h>.
26789 (__idna_to_unicode_lzlz): Removed.
26790 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26791 <libidn/idna.h>.
26792 (__idna_to_ascii_lz): Removed.
26793 (__idna_to_unicode_lzlz): Likewise.
26794
26795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 [BZ #18822]
26798 * include/plural-exp.h: New file.
26799 * intl/plural-exp.c: Include <plural-exp.h> instead of
26800 "plural-exp.h".
26801
26802 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26803
26804 [BZ #18822]
26805 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26806 "getsourcefilter.h".
26807 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26808 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26809 "getsourcefilter.h".
26810 (__get_sol): Removed.
26811
26812 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 [BZ #18822]
26815 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26816 to ...
26817 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26818
26819 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26820
26821 [BZ #18822]
26822 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26823 attribute_hidden.
26824
26825 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26826
26827 [BZ #18822]
26828 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26829
26830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26831
26832 [BZ #18822]
26833 * include/search.h (__tdestroy): Add libc_hidden_proto.
26834 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26835
26836 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26837
26838 [BZ #18822]
26839 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26840
26841 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26842
26843 [BZ #18822]
26844 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26845 attribute_hidden.
26846
26847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26848
26849 [BZ #18822]
26850 * include/signal.h (__kill): Add libc_hidden_proto.
26851 (__sigblock): Likewise.
26852 (__sigprocmask): Likewise.
26853 (__sigaltstack): Likewise.
26854 * signal/kill.c (__kill): Add libc_hidden_def.
26855 * signal/sigblock.c (__sigblock): Likewise.
26856 * signal/sigprocmask.c (__sigprocmask): Likewise.
26857 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26858 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26859 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26860 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26861 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26862 Likewise.
26863 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26864 Likewise.
26865 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26866 (__sigprocmask): Likewise.
26867 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26868 Likewise.
26869 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26870 (__sigprocmask): Likewise.
26871 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26872 Likewise.
26873
26874 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26875
26876 [BZ #18822]
26877 * include/string.h (__strsep): Add libc_hidden_proto.
26878 * string/strsep.c (__strsep): Add libc_hidden_def.
26879
26880 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26881
26882 [BZ #18822]
26883 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26884 attribute_hidden.
26885 (__spawni): Likewise.
26886
26887 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26888
26889 [BZ #18822]
26890 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26891 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26892 libc_hidden_def.
26893
26894 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26895
26896 [BZ #18822]
26897 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26898
26899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26900
26901 [BZ #18822]
26902 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26903 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26904 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26905 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26906 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26907 Likewise.
26908 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26909 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26910
26911 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26912
26913 [BZ #18822]
26914 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26915 (__dcigettext): Likewise.
26916
26917 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26918
26919 [BZ #18822]
26920 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26921 libc_hidden_proto.
26922 (__get_nprocs): Likewise.
26923 (__get_phys_pages): Likewise.
26924 (__get_avphys_pages): Likewise.
26925 (__get_child_max): Add attribute_hidden.
26926 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26927 (__get_nprocs): Likewise.
26928 (__get_phys_pages): Likewise.
26929 (__get_avphys_pages): Likewise.
26930 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26931 libc_hidden_def.
26932 (__get_nprocs): Likewise.
26933 (__get_phys_pages): Likewise.
26934 (__get_avphys_pages): Likewise.
26935 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26936 libc_hidden_def.
26937 (__get_nprocs_conf): Likewise.
26938 (__get_phys_pages): Likewise.
26939 (__get_avphys_pages): Likewise.
26940
26941 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26942
26943 [BZ #18822]
26944 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26945 attribute_hidden.
26946 (__netlink_close): Likewise.
26947 (__netlink_free_handle): Likewise.
26948 (__netlink_request): Likewise.
26949
26950 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26951
26952 [BZ #18822]
26953 * include/rpc/rpc.h (__rpc_thread_variables): Add
26954 attribute_hidden.
26955 (__rpc_thread_svc_cleanup): Likewise.
26956 (__rpc_thread_clnt_cleanup): Likewise.
26957 (__rpc_thread_key_cleanup): Likewise.
26958
26959 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26960
26961 [BZ #18822]
26962 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26963 (__writev): Likewise.
26964 * misc/readv.c (__readv): Add libc_hidden_def.
26965 * misc/writev.c (__writev): Likewise.
26966 * sysdeps/posix/readv.c (__readv): Likewise.
26967 * sysdeps/posix/writev.c (__writev): Likewise.
26968 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26969 (__readv): Likewise.
26970 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26971 (__writev): Likewise.
26972
26973 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26974
26975 [BZ #18822]
26976 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26977 (__regcomp): Add libc_hidden_proto.
26978 (__regexec): Likewise.
26979 (__regfree): Likewise.
26980 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26981 (__regfree): Likewise.
26982 * posix/regexec.c (__regexec): Likewise.
26983
26984 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26985
26986 [BZ #18822]
26987 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26988 (__getutent): Likewise.
26989 (__getutid): Likewise.
26990 (__getutline): Likewise.
26991 (__pututline): Likewise.
26992 (__getutent_r): Likewise.
26993 (__getutid_r): Likewise.
26994 (__getutline_r): Likewise.
26995 (__utmpname): Add attribute_hidden.
26996 (__setutent): Likewise.
26997 (__endutent): Likewise.
26998 * login/getutent.c (__getutent): Add libc_hidden_def.
26999 * login/getutent_r.c (__getutent_r): Likewise.
27000 (__pututline): Likewise.
27001 * login/getutid.c (__getutid): Likewise.
27002 * login/getutid_r.c (__getutid_r): Likewise.
27003 * login/getutline.c (__getutline): Likewise.
27004 * login/getutline_r.c (__getutline_r): Likewise.
27005 * login/updwtmp.c (__updwtmp): Likewise.
27006
27007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27008
27009 [BZ #18822]
27010 * include/dirent.h (__opendir): Always add attribute_hidden.
27011 (__fdopendir): Likewise.
27012 (__closedir): Likewise.
27013 (__readdir): Likewise.
27014 (__readdir64): Add libc_hidden_proto.
27015 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27016 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27017 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27018 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27019 New alias.
27020
27021 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27022
27023 [BZ #18822]
27024 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27025 * include/netdb.h (__gethostbyaddr_r): Likewise.
27026 (__gethostbyname_r): Likewise.
27027 (__gethostbyname2_r): Likewise.
27028 (__getnetbyaddr_r): Likewise.
27029 (__getnetbyname_r): Likewise.
27030 (__getservbyname_r): Likewise.
27031 (__getservbyport_r): Likewise.
27032 (__getprotobyname_r): Likewise.
27033 (__getprotobynumber_r): Likewise.
27034 (__getnetgrent_r): Likewise.
27035 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27036 (__getrpcbynumber_r): Likewise.
27037 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27038
27039 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27040
27041 [BZ #18822]
27042 * include/stdio.h (__fcloseall): Add attribute_hidden.
27043 (__getline): Likewise.
27044 (__path_search): Likewise.
27045 (__gen_tempname): Likewise.
27046 (__libc_message): Likewise.
27047 (__flockfile): Likewise.
27048 (__funlockfile): Likewise.
27049 (__fxprintf): Likewise.
27050 (__fxprintf_nocancel): Likewise.
27051
27052 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27053
27054 [BZ #18822]
27055 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27056 (__sgetsgent_r): Likewise.
27057
27058 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27059
27060 [BZ #18822]
27061 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27062 (__statfs64): Likewise.
27063 (__fstatfs64): Likewise.
27064 * include/sys/statvfs.h (__statvfs64): Likewise.
27065 (__fstatvfs64): Likewise.
27066 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27067 (__statfs_filesize_max): Likewise.
27068 (__statfs_symlinks): Likewise.
27069 (__statfs_chown_restricted): Likewise.
27070
27071 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27072
27073 [BZ #18822]
27074 * include/time.h (__tzstring): Add attribute_hidden.
27075 (__tzfile_read): Likewise.
27076 (__tzfile_compute): Likewise.
27077 (__tzfile_default): Likewise.
27078 (__tzset_parse_tz): Likewise.
27079 (__offtime): Likewise.
27080 (__asctime_r): Likewise.
27081 (__tzset): Likewise.
27082 (__tz_convert): Likewise.
27083 (__getdate_r): Likewise.
27084 (__getclktck): Likewise.
27085
27086 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27087
27088 [BZ #18822]
27089 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27090 (__nscd_unmap): Likewise.
27091 (__nscd_cache_search): Likewise.
27092 (__nscd_get_nl_timestamp): Likewise.
27093 (__nscd_getpwnam_r): Likewise.
27094 (__nscd_getpwuid_r): Likewise.
27095 (__nscd_getgrnam_r): Likewise.
27096 (__nscd_getgrgid_r): Likewise.
27097 (__nscd_gethostbyname_r): Likewise.
27098 (__nscd_gethostbyname2_r): Likewise.
27099 (__nscd_gethostbyaddr_r): Likewise.
27100 (__nscd_getai): Likewise.
27101 (__nscd_getgrouplist): Likewise.
27102 (__nscd_getservbyname_r): Likewise.
27103 (__nscd_getservbyport_r): Likewise.
27104 (__nscd_innetgr): Likewise.
27105 (__nscd_setnetgrent): Likewise.
27106
27107 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27108
27109 [BZ #18822]
27110 * include/gmp.h: Declare internal functions only if _ISOMAC is
27111 undefined.
27112 (__mpn_extract_double): Add attribute_hidden.
27113 (__mpn_extract_long_double): Likewise.
27114 (__mpn_extract_float128): Likewise.
27115 (__mpn_construct_float): Likewise.
27116 (__mpn_construct_double): Likewise.
27117 (__mpn_construct_long_double): Likewise.
27118 (__mpn_construct_float128): Likewise.
27119 (mpn_add_1): Likewise.
27120 (mpn_addmul_1): Likewise.
27121 (mpn_add_n): Likewise.
27122 (mpn_cmp): Likewise.
27123 (mpn_divrem): Likewise.
27124 (mpn_lshift): Likewise.
27125 (mpn_mul): Likewise.
27126 (mpn_mul_1): Likewise.
27127 (mpn_rshift): Likewise.
27128 (mpn_sub_1): Likewise.
27129 (mpn_submul_1): Likewise.
27130 (mpn_sub_n): Likewise.
27131
27132 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27133
27134 [BZ #18822]
27135 * include/wchar.h (__wcsnlen): Add attribute_hidden.
27136 (__wcscat): Likewise.
27137 (__btowc): Likewise.
27138 (__wcrtomb): Likewise.
27139 (__mbsrtowcs): Likewise.
27140 (__wcsrtombs): Likewise.
27141 (__mbsnrtowcs): Likewise.
27142 (__wcsnrtombs): Likewise.
27143 (__wcsncpy): Likewise.
27144 (__wcpncpy): Likewise.
27145 (__wmemcpy): Likewise.
27146 (__wmempcpy): Likewise.
27147 (__wmemmove): Likewise.
27148 (__wcschrnul): Likewise.
27149 (__vfwscanf): Likewise.
27150 (__vswprintf): Likewise.
27151 (__fwprintf): Likewise.
27152 (__vfwprintf): Likewise.
27153
27154 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27155
27156 [BZ #18822]
27157 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27158 (__getgrgid_r): Likewise.
27159 (__getgrnam_r): Likewise.
27160 * include/pwd.h (__getpwuid_r): Likewise.
27161 (__getpwnam_r): Likewise.
27162 (__fgetpwent_r): Likewise.
27163 * include/shadow.h (__getspnam_r): Likewise.
27164 (__sgetspent_r): Likewise.
27165 (__fgetspent_r): Likewise.
27166
27167 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27168
27169 [BZ #18822]
27170 * include/unistd.h (__access): Add attribute_hidden.
27171 (__lseek64): Likewise.
27172 (__libc_pread64): Likewise.
27173 (__pipe2): Likewise.
27174 (__sleep): Likewise.
27175 (__chdir): Likewise.
27176 (__fchdir): Likewise.
27177 (__getcwd): Likewise.
27178 (__rmdir): Likewise.
27179 (__execvpe): Likewise.
27180 (__execve): Likewise.
27181 (__setsid): Likewise.
27182 (__getuid): Likewise.
27183 (__geteuid): Likewise.
27184 (__getgid): Likewise.
27185 (__getegid): Likewise.
27186 (__getgroups): Likewise.
27187 (__group_member): Likewise.
27188 (__ttyname_r): Likewise.
27189 (__isatty): Likewise.
27190 (__readlink): Likewise.
27191 (__unlink): Likewise.
27192 (__gethostname): Likewise.
27193 (__profil): Likewise.
27194 (__getdtablesize): Likewise.
27195 (__brk): Likewise.
27196 (__ftruncate): Likewise.
27197 (__ftruncate64): Likewise.
27198
27199 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27200
27201 [BZ #18822]
27202 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27203 * argp/argp-fs-xinl.c: Likewise.
27204 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27205 * argp/argp-parse.c: Include <argp.h>.
27206 * argp/argp-xinl.c: Likewise.
27207 * include/argp-fmtstream.h: New file.
27208 * include/argp.h (__argp_error): Add attribute_hidden.
27209 (__argp_failure): Likewise.
27210 (__argp_input): Likewise.
27211 (__argp_state_help): Likewise.
27212
27213 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27214
27215 [BZ #18822]
27216 * include/wchar.h (____wcstof_l_internal): New prototype.
27217 (____wcstod_l_internal): Likewise.
27218 (____wcstold_l_internal): Likewise.
27219 (____wcstol_l_internal): Likewise.
27220 (____wcstoul_l_internal): Likewise.
27221 (____wcstoll_l_internal): Likewise.
27222 (____wcstoull_l_internal): Likewise.
27223 (____wcstof128_l_internal): Likewise.
27224 * sysdeps/ieee754/float128/wcstof128.c
27225 (____wcstof128_l_internal): Removed.
27226 * sysdeps/ieee754/float128/wcstof128_l.c
27227 (____wcstof128_l_internal): Likewise.
27228 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27229 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27230 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27231 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27232 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27233 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27234 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27235 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27236 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27237 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27238
27239 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27240
27241 [BZ #18822]
27242 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27243 instead of <sys/statvfs.h>.
27244 (__internal_statvfs): Removed.
27245 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27246 instead of <sys/statvfs.h>.
27247 (__internal_statvfs64): Removed.
27248 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27249 "internal_statvfs.h" instead of <sys/statvfs.h>.
27250 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27251 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27252 instead of <sys/statvfs.h>.
27253 (__internal_statvfs): Removed.
27254 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27255 instead of <sys/statvfs.h>.
27256 (__internal_statvfs64): Removed.
27257
27258 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27259
27260 [BZ #18822]
27261 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27262 (__gconv_close): Likewise.
27263 (__gconv): Likewise.
27264 (__gconv_find_transform): Likewise.
27265 (__gconv_lookup_cache): Likewise.
27266 (__gconv_compare_alias_cache): Likewise.
27267 (__gconv_load_cache): Likewise.
27268 (__gconv_get_path): Likewise.
27269 (__gconv_close_transform): Likewise.
27270 (__gconv_release_cache): Likewise.
27271 (__gconv_find_shlib): Likewise.
27272 (__gconv_release_shlib): Likewise.
27273 (__gconv_get_builtin_trans): Likewise.
27274 (__gconv_compare_alias): Likewise.
27275 * include/dlfcn.h (_dlerror_run): Likewise.
27276 * include/stdio.h (__fortify_fail_abort): Likewise.
27277 * include/time.h (__tz_compute): Likewise.
27278 (__strptime_internal): Likewise.
27279 * intl/gettextP.h (_nl_find_domain): Likewise.
27280 (_nl_load_domain): Likewise.
27281 (_nl_find_msg): Likewise.
27282 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27283 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27284 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27285 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27286 (__gai_find_request): Likewise.
27287 (__gai_remove_request): Likewise.
27288 (__gai_notify): Likewise.
27289 (__gai_notify_only): Likewise.
27290 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27291 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27292 (_dl_non_dynamic_init): Likewise.
27293 (_dl_aux_init): Likewise.
27294 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27295 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27296 Likewise.
27297 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27298 (__wcsmbs_clone_conv): Likewise.
27299 (__wcsmbs_named_conv): Likewise.
27300
27301 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27302
27303 [BZ #18822]
27304 * include/stdlib.h (__random): Add attribute_hidden.
27305 (__random_r): Likewise.
27306 (__srandom_r): Likewise.
27307 (__initstate_r): Likewise.
27308 (__setstate_r): Likewise.
27309 (__erand48_r): Likewise.
27310 (__nrand48_r): Likewise.
27311 (__jrand48_r): Likewise.
27312 (__srand48_r): Likewise.
27313 (__seed48_r): Likewise.
27314 (__lcong48_r): Likewise.
27315 (__drand48_iterate): Likewise.
27316 (__setenv): Likewise.
27317 (__unsetenv): Likewise.
27318 (__clearenv): Likewise.
27319 (__ptsname_r): Likewise.
27320 (__posix_openpt): Likewise.
27321 (__add_to_environ): Likewise.
27322 (__realpath): Add libc_hidden_proto.
27323 (__ecvt_r): Likewise.
27324 (__fcvt_r): Likewise.
27325 (__qecvt_r): Likewise.
27326 (__qfcvt_r): Likewise.
27327 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27328 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27329
27330 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27331
27332 [BZ #18822]
27333 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27334 * include/time.h (__mktime_internal): Likewise.
27335 * libio/iolibio.h (__fopen_internal): Likewise.
27336
27337 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27338
27339 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27340 pointer in frame.
27341 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27342 Correct offset used to restore PIC register.
27343
27344 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27345
27346 [BZ libc/22165]
27347 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27348 code to load address of __getcontext_ret when generating PIC code.
27349
27350 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27351
27352 * elf/Makefile (tests-static-internal): Add
27353 tst-tls1-static-non-pie.
27354 (LDFLAGS-tst-tls1-static-non-pie): New.
27355 * elf/tst-tls1-static-non-pie.c: New file.
27356
27357 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27358
27359 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27360 (asinh): Define using libm_alias_double.
27361 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27362 (cbrt): Define using libm_alias_double.
27363 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27364 <libm-alias-double.h>.
27365 (copysign): Define using libm_alias_double.
27366 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27367 (erf): Define using libm_alias_double.
27368 (erfc): Likewise.
27369 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27370 (expm1): Define using libm_alias_double.
27371 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27372 (fabs): Define using libm_alias_double.
27373 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27374 libm_alias_double.
27375 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27376 <libm-alias-double.h>.
27377 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27378 libm_alias_double.
27379 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27380 <libm-alias-double.h>.
27381 (getpayload): Define using libm_alias_double.
27382 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27383 <libm-alias-double.h>.
27384 (llrint): Define using libm_alias_double.
27385 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27386 (lrint): Define using libm_alias_double.
27387 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27388 <libm-alias-double.h>.
27389 (nextup): Define using libm_alias_double.
27390 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27391 <libm-alias-double.h>.
27392 (roundeven): Define using libm_alias_double.
27393 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27394 libm_alias_double.
27395 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27396 <libm-alias-double.h>.
27397 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27398 using libm_alias_double.
27399 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27400 (cos): Define using libm_alias_double.
27401 (sin): Likewise.
27402 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27403 <libm-alias-double.h>.
27404 (sincos): Define using libm_alias_double.
27405 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27406 (tanh): Define using libm_alias_double.
27407 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27408 <libm-alias-double.h>.
27409 (totalorder): Define using libm_alias_double.
27410 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27411 <libm-alias-double.h>.
27412 (totalordermag): Define using libm_alias_double.
27413 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27414 libm_alias_double.
27415 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27416 libm_alias_double.
27417 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27418 <libm-alias-double.h>.
27419 (getpayload): Define using libm_alias_double.
27420 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27421 <libm-alias-double.h>.
27422 (roundeven): Define using libm_alias_double.
27423 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27424 <libm-alias-double.h>.
27425 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27426 <libm-alias-double.h>.
27427 (totalorder): Define using libm_alias_double.
27428 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27429 <libm-alias-double.h>.
27430 (totalordermag): Define using libm_alias_double.
27431 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27432 libc compat symbol here.
27433 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27434 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27435 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27436 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27437 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27438 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27439 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27440 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27441 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27442 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27443
27444 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27445
27446 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27447 _dl_relocate_static_pie instead of _dl_start to compute load
27448 address in static PIE. Return 0 if _DYNAMIC is undefined for
27449 static executable.
27450
27451 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27452
27453 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27454 _DYNAMIC is undefined for static executable.
27455
27456 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27457
27458 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27459
27460 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27461
27462 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27463
27464 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27465
27466 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27467 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27468 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27469 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27470 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27471 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27472 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27473 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27474 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27475 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27476 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27477 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27478 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27479 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27480 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27481 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27482 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27483
27484 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27485
27486 * math/bits/cmathcalls.h (cimag): Remove inline.
27487 (creal): Remove inline.
27488 (conj): Remove inline.
27489
27490 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27491
27492 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27493 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27494 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27495 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27496 (issignalingf_inline): Likewise.
27497 (POWF_LOG2_TABLE_BITS): Likewise.
27498 (POWF_LOG2_POLY_ORDER): Likewise.
27499 (POWF_SCALE_BITS): Likewise.
27500 (POWF_SCALE): Likewise.
27501 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27502 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27503 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27504
27505 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27506
27507 * math/Makefile (type-float-routines): Add e_log2f_data.
27508 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27509 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27510 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27511 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27512 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27513 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27514 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27515
27516 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27517
27518 * math/Makefile (type-float-routines): Add e_logf_data.
27519 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27520 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27521 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27522 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27523 * sysdeps/i386/fpu/e_logf_data.c: New file.
27524 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27525 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27526
27527 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27528
27529 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27530 undefined _DYNAMIC in PIE libc.a.
27531 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27532 Likewse.
27533
27534 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27535
27536 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27537 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27538 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27539 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27540 (__signbit): Remove.
27541 (__signbitl): Remove.
27542 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27543 (__signbit): Remove.
27544 (__signbitl): Remove.
27545 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27546 (__signbit): Remove.
27547 (__signbitl): Remove.
27548 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27549 (__signbit): Remove.
27550 (__signbitl): Remove.
27551 * sysdeps/tile/bits/mathinline.h: Delete file.
27552 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27553 (__signbit): Remove.
27554 (__signbitl): Remove.
27555
27556 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27557
27558 * math/math.h: Improve handling of C99 isgreater macros.
27559 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27560 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27561 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27562 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27563 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27564
27565 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27566
27567 * sysdeps/aarch64/libm-test-ulps: Update.
27568
27569 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27570
27571 [BZ #22225]
27572 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27573 math_opt_barrier on argument when doing arithmetic on it.
27574 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27575 Likewise. Use math_force_eval not math_opt_barrier after
27576 arithmetic.
27577 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27578 math_opt_barrier on argument when doing arithmetic on it.
27579 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27580 Likewise.
27581
27582 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27583
27584 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27585 libc_hidden_def.
27586 (__freeifaddrs): Likewise.
27587
27588 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27589
27590 * include/dirent.h (__dirfd): New declaration.
27591 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27592 alias.
27593 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27594 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27595 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27596 * include/unistd.h (__revoke): New declaration.
27597 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27598 alias.
27599 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27600 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27601 revoke.
27602 * include/dirent.h (__seekdir): New declaration.
27603 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27604 redefine as weak alias.
27605 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27606 of seekdir.
27607 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27608 and use libc_hidden_def on them.
27609 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27610 them.
27611 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27612 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27613 instead of getifaddrs and freeifaddrs.
27614
27615 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27616
27617 [BZ #18822]
27618 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27619 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27620 (__dso_handle): Remove declaration.
27621 * dlfcn/tstatexit.c (__dso_handle): Removed.
27622 (main): Don't check __dso_handle.
27623 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27624 (main): Don't check __dso_handle.
27625 * include/dso_handle.h: New file.
27626 * malloc/mtrace.c: Include <dso_handle.h>.
27627 (mtrace): Pass __dso_handle directly.
27628 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27629 (__dso_handle): Remove declaration.
27630 (__pthread_atfork): Pass __dso_handle directly.
27631 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27632 (__dso_handle): Removed.
27633 * posix/wordexp-test.c: Include <dso_handle.h>.
27634 (__dso_handle): Remove declaration.
27635 (__app_register_atfork): Pass __dso_handle directly.
27636 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27637 (__dso_handle): Remove declaration.
27638 (at_quick_exit): Pass __dso_handle directly.
27639 * stdlib/atexit.c: Include <dso_handle.h>.
27640 (__dso_handle): Remove declaration.
27641 (atexit): Pass __dso_handle directly.
27642 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27643 (__dso_handle): Removed.
27644
27645 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27646
27647 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27648 using VDSO.
27649
27650 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27651
27652 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27653 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27654 values to correct default value for given type.
27655
27656 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27657
27658 [BZ #22101]
27659 * elf/Makefile (tests): Add tst-debug1.
27660 ($(objpfx)tst-debug1): New.
27661 ($(objpfx)tst-debug1.out): Likewise.
27662 ($(objpfx)tst-debug1mod1.so): Likewise.
27663 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27664 with p_filesz == 0.
27665 * elf/tst-debug1.c: New file.
27666
27667 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27668
27669 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27670 Define using __ifunc.
27671
27672 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27673
27674 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27675 exp2f() values.
27676
27677 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27678
27679 [BZ #22156]
27680 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27681
27682 2017-09-26 Florian Weimer <fweimer@redhat.com>
27683
27684 * resolv/Makefile (tests-internal): Fix typo in comment.
27685
27686 2017-09-26 Florian Weimer <fweimer@redhat.com>
27687
27688 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27689
27690 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27691
27692 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27693 Use an union instead of a max_align_t array for __space,
27694 so that __space is the same size on all platforms.
27695 * malloc/scratch_buffer_grow_preserve.c
27696 (__libc_scratch_buffer_grow_preserve): Likewise.
27697
27698 [BZ #22183]
27699 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27700 version to 2.
27701 * posix/Makefile (routines): Add glob-lstat-compat and
27702 glob64-lstat-compat.
27703 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27704 * posix/glob-lstat-compat.c: New file.
27705 * posix/glob64-lstat-compat.c: Likewise.
27706 * posix/tst-glob_lstat_compat.c: Likewise.
27707 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27708 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27709 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27710 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27711 Likewise.
27712 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27713 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27714 * posix/glob.c (glob_lstat): New function.
27715 (glob): Rename to __glob and add versioned symbol to 2.27.
27716 (glob_in_dir): Use glob_lstat.
27717 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27718 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27719 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27720 2.27.
27721 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27722 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27723 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27724 gl_lstat on glob call.
27725 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27726 and glob64 symbols.
27727 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27728 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27729 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27730 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27731 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27732 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27733 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27734 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27735 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27736 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27737 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27738 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27740 Likewise.
27741 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27743 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27744 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27745 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27746 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27747 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27748 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27749 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27750 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27751 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27752 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27753
27754 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27755
27756 * configure.ac (AS): Require binutils 2.25 or later.
27757 * configure: Regenerated.
27758
27759 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27760
27761 [BZ #22207]
27762 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27763 VM size.
27764
27765 2017-09-25 DJ Delorie <dj@redhat.com>
27766
27767 [BZ #22161]
27768 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27769 resetting timeout.
27770
27771 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27772
27773 * sysdeps/ieee754/dbl-64/sincos32.h
27774 [SINCCOS32_H]: Remove define.
27775 [SINCOS32_H]: Define.
27776
27777 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27778
27779 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27780 (exp2f): Likewise.
27781 * math/w_exp2f.c: New file.
27782 * math/w_expf.c: New file.
27783 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27784 * math/w_expf_compat.c (__expf_compat): Likewise.
27785 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27786 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27787 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27788 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27789 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27790 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27791 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27792 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27793 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27794 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27795 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27796 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27797 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27798 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27800 Likewise.
27801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27802 Likewise.
27803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27804 Likewise.
27805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27806 Likewise.
27807 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27808 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27809 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27810 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27811 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27812 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27813 Likewise.
27814 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27815 Likewise.
27816 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27817 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27818 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27819
27820 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27821
27822 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27823 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27824 (roundtoint, converttoint): Likewise.
27825 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27826 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27827 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27828 * sysdeps/ieee754/flt-32/math_config.h: New file.
27829 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27830 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27831 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27832 * sysdeps/i386/fpu/math_errf.c: New file.
27833 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27834 * sysdeps/ia64/fpu/math_errf.c: New file.
27835 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27836 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27837
27838 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27839
27840 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27841 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27842 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27843 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27844 to make sure that these symbols are defined.
27845 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27846 of <limits.h>
27847 (__need_NULL): Do not define.
27848 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27849 alignment.
27850 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27851 CMGROUP_MAX, cmsgcred): Do not define.
27852 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27853 NULL.
27854 * bits/socket.h: Likewise.
27855 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27856 __gettimeofday instead of gettimeofday.
27857 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27858 instead of settimeofday.
27859
27860 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27861
27862 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27863 (asinhf): Define using libm_alias_float.
27864 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27865 (atanf): Define using libm_alias_float.
27866 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27867 (cbrtf): Define using libm_alias_float.
27868 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27869 (ceilf): Define using libm_alias_float.
27870 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27871 <libm-alias-float.h>.
27872 (copysignf): Define using libm_alias_float.
27873 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27874 (cosf): Define using libm_alias_float.
27875 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27876 (erff): Define using libm_alias_float.
27877 (erfcf): Likewise.
27878 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27879 (expm1f): Define using libm_alias_float.
27880 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27881 (fabsf): Define using libm_alias_float.
27882 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27883 (floorf): Define using libm_alias_float.
27884 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27885 (frexpf): Define using libm_alias_float.
27886 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27887 libm_alias_float.
27888 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27889 <libm-alias-float.h>.
27890 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27891 libm_alias_float.
27892 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27893 <libm-alias-float.h>.
27894 (getpayloadf): Define using libm_alias_float.
27895 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27896 <libm-alias-float.h>.
27897 (llrintf): Define using libm_alias_float.
27898 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27899 <libm-alias-float.h>.
27900 (llroundf): Define using libm_alias_float.
27901 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27902 (logbf): Define using libm_alias_float.
27903 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27904 (lrintf): Define using libm_alias_float.
27905 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27906 (lroundf): Define using libm_alias_float.
27907 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27908 (modff): Define using libm_alias_float.
27909 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27910 <libm-alias-float.h>.
27911 (nearbyintf): Define using libm_alias_float.
27912 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27913 <libm-alias-float.h>.
27914 (nextafterf): Define using libm_alias_float.
27915 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27916 <libm-alias-float.h>.
27917 (nextupf): Define using libm_alias_float.
27918 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27919 <libm-alias-float.h>.
27920 (remquof): Define using libm_alias_float.
27921 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27922 (rintf): Define using libm_alias_float.
27923 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27924 <libm-alias-float.h>.
27925 (roundevenf): Define using libm_alias_float.
27926 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27927 (roundf): Define using libm_alias_float.
27928 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27929 using libm_alias_float.
27930 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27931 <libm-alias-float.h>.
27932 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27933 Define using libm_alias_float.
27934 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27935 <libm-alias-float.h>.
27936 (sincosf): Define using libm_alias_float.
27937 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27938 (sinf): Define using libm_alias_float.
27939 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27940 (tanf): Define using libm_alias_float.
27941 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27942 (tanhf): Define using libm_alias_float.
27943 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27944 <libm-alias-float.h>.
27945 (totalorderf): Define using libm_alias_float.
27946 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27947 <libm-alias-float.h>.
27948 (totalordermagf): Define using libm_alias_float.
27949 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27950 (truncf): Define using libm_alias_float.
27951 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27952 libm_alias_float.
27953 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27954 libm_alias_float.
27955
27956 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27957
27958 [BZ #22146]
27959 math/math.h: Let fpclassify use the builtin in C++ mode, even
27960 when optimazing for size.
27961
27962 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27963
27964 * csu/Makefile (generated): Do not add version-info.h.
27965 (before-compile): Likewise.
27966 (all-Banner-files): Remove variable.
27967 ($(objpfx)version-info.h): Remove rule.
27968 * csu/version.c (banner): Do not include "version-info.h".
27969 * libidn/Banner: Remove.
27970 * manual/contrib.texi (Simon Josefsson): New entry.
27971
27972 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27973
27974 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27975 Remove conditionals on LDBL_MANT_DIG.
27976 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27977 (__ieee754_lgammal_r): Likewise.
27978
27979 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27980
27981 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27982 _Float128 and L().
27983 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27984 _Float128 and L(). Replace _Float128 with long double and L(x)
27985 with xL, throughout the file.
27986 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27987 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27988 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27989 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27990
27991 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27992
27993 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27994 sysdeps/ieee754/ldbl-128ibm.
27995 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27996 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27997 of including it. Keep _Float128 and L() intact. These will be
27998 reviewed by a separate patch.
27999 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28000 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28001 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28002 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28003
28004 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28005
28006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
28007 (__finitef128): Define to __redirect___finitef128.
28008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
28009 (__isinff128): Define to __redirect___isinff128.
28010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
28011 (__isnanf128): Define to __redirect___isnanf128.
28012
28013 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28014
28015 * sysdeps/powerpc/powerpc64le/Makefile
28016 (CFLAGS-tst-strtod-nan-locale.c): New variable.
28017 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28018
28019 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
28020 Carlos O'Donell <carlos@redhat.com>
28021
28022 [BZ #22180]
28023 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28024 * stdlib/test-dlclose-exit-race.c: New file.
28025 * stdlib/test-dlclose-exit-race-helper.c: New file.
28026 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28027
28028 2017-09-21 Joseph Myers <joseph@codesourcery.com>
28029
28030 * crypt/Banner: Remove file.
28031 * nptl/Banner: Likewise.
28032 * resolv/Banner: Likewise.
28033 * soft-fp/Banner: Likewise.
28034 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28035 ($(objpfx)version.d): Remove dependency on banner.h.
28036 ($(objpfx)version.os): Likewise.
28037 * nptl/version.c (banner): Do not include banner.h.
28038 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28039 Jelinek and BIND code.
28040
28041 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28042 Carlos O'Donell <carlos@redhat.com>
28043
28044 * support/xdlfcn.h: New file.
28045 * support/xdlfcn.c: New file.
28046 * support/Makefile (libsupport-routines): Add xdlfcn.
28047 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28048
28049 2017-09-20 Joseph Myers <joseph@codesourcery.com>
28050
28051 [BZ #20142]
28052 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28053 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28054 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28055 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28056 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28057 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28058 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28059 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28060
28061 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28062 Ricky Zhou <rickyz@google.com>
28063 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
28064
28065 [BZ #14333]
28066 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28067 Remove atomics.
28068 (__new_exitfn): Fail registration when we finished at_exit processing.
28069 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28070 * stdlib/on_exit.c (__on_exit): Likewise.
28071 * stdlib/exit.c (__exit_funcs_done): New variable.
28072 (__run_exit_handlers): Use __exit_funcs_lock.
28073 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28074 declarations.
28075 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28076 (test-cxa_atexit-race, test-on_exit-race): New tests.
28077 * stdlib/test-atexit-race-common.c: New file.
28078 * stdlib/test-atexit-race.c: New file.
28079 * stdlib/test-at_quick_exit-race.c: New file.
28080 * stdlib/test-cxa_atexit-race.c: New file.
28081 * stdlib/test-on_exit-race.c: New file.
28082
28083 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
28084
28085 * benchtests/Makefile: Add exp2f and log2f benchmarks.
28086 * benchtests/exp2f-inputs: Copy of expf-inputs.
28087 * benchtests/log2f-inputs: Copy of logf-inputs.
28088
28089 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28090
28091 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28092 Explicitly take address of first element of array arguments in
28093 call to INLINE_SYSCALL.
28094
28095 2017-09-19 Andreas Schwab <schwab@suse.de>
28096
28097 [BZ #22134]
28098 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28099 execveat first.
28100 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28101 unimplemented.
28102 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28103 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28104 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28105 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28106 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28107 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28108 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28109 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28110 * posix/Makefile (tests): Add tst-fexecve.
28111 * posix/tst-fexecve.c: New file.
28112
28113 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28114
28115 * benchtests/Makefile: Add logf benchmark.
28116 * benchtests/logf-inputs: Add reduced trace from wrf_r.
28117
28118 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28119
28120 * benchtests/Makefile: Add expf benchmark.
28121 * benchtests/expf-inputs: Add reduced trace from wrf_r.
28122
28123 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28124
28125 * csu/Makefile: Add -funwind-tables to libc-start.c.
28126 * debug/Makefile: Add -funwind-tables to backtrace.c.
28127 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28128 * sysdeps/arm/Makefile: Likewise.
28129 * sysdeps/i386/Makefile: Likewise.
28130 * sysdeps/m68k/Makefile: Likewise.
28131 * sysdeps/mips/Makefile: Likewise.
28132 * sysdeps/nios2/Makefile: Likewise.
28133 * sysdeps/sh/Makefile: Likewise.
28134 * sysdeps/sparc/Makefile: Likewise.
28135
28136 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28137
28138 * benchtests/Makefile (bench-math): Add trunc and truncf.
28139 (CFLAGS-bench-trunc.c): New variable.
28140 (CFLAGS-bench-truncf.c): Likewise.
28141 * benchtests/trunc-inputs: New file.
28142 * benchtests/truncf-inputs: Likewise.
28143
28144 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28145
28146 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28147
28148 2017-09-18 Joseph Myers <joseph@codesourcery.com>
28149
28150 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28151 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28152 redefine.
28153 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28154 (exp10l): Define as weak alias.
28155 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28156 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28157 and redefine.
28158 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28159 (remainderl): Define as weak alias.
28160
28161 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28162 (fmal): Define using libm_alias_ldouble.
28163 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28164 (acoshl): Define using libm_alias_ldouble.
28165 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28166 (acosl): Define using libm_alias_ldouble.
28167 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28168 (asinl): Define using libm_alias_ldouble.
28169 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28170 (atan2l): Define using libm_alias_ldouble.
28171 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28172 (atanhl): Define using libm_alias_ldouble.
28173 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28174 (coshl): Define using libm_alias_ldouble.
28175 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28176 (exp10l): Define using libm_alias_ldouble.
28177 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28178 (exp2l): Define using libm_alias_ldouble.
28179 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28180 (expl): Define using libm_alias_ldouble.
28181 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28182 (fmodl): Define using libm_alias_ldouble.
28183 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28184 (hypotl): Define using libm_alias_ldouble.
28185 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28186 (j0l): Define using libm_alias_ldouble.
28187 (y0l): Likewise.
28188 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28189 (j1l): Define using libm_alias_ldouble.
28190 (y1l): Likewise.
28191 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28192 (jnl): Define using libm_alias_ldouble.
28193 (ynl): Likewise.
28194 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28195 (log10l): Define using libm_alias_ldouble.
28196 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28197 (log2l): Define using libm_alias_ldouble.
28198 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28199 (logl): Define using libm_alias_ldouble.
28200 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28201 (powl): Define using libm_alias_ldouble.
28202 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28203 (remainderl): Define using libm_alias_ldouble.
28204 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28205 (sinhl): Define using libm_alias_ldouble.
28206 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28207 (sqrtl): Define using libm_alias_ldouble.
28208 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28209 (tgammal): Define using libm_alias_ldouble.
28210 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28211 (exp10l): Do not use long_double_symbol here.
28212 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28213 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28214 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28215 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28216 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28217 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28218 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28219 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28220 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28221 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28222 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28223 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28224 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28225 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28226 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28227 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28228 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28229 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28230 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28231 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28232 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28233 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28234
28235 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28236
28237 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28238 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28239
28240 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28241
28242 * io/read.c (read): Add libc_hidden_weak.
28243 * sysdeps/mach/hurd/read.c (read): Likewise.
28244 * io/write.c (write): Likewise.
28245 * sysdeps/mach/hurd/write.c (write): Likewise.
28246 * io/pread64.c (__pread64): Likewise.
28247 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28248 * posix/pread64.c (__pread64): Add libc_hidden_def.
28249
28250 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28251
28252 * benchtests/scripts/compare_strings.py: New option -g.
28253 (draw_graph): Print a message that a graph is being generated.
28254 (process_results): Generate graph only if -g is passed.
28255 (main): Process option -g.
28256
28257 * benchtests/scripts/compare_strings.py (process_results):
28258 Better spacing for output.
28259
28260 * benchtests/scripts/compare_strings.py: Use argparse.
28261 * benchtests/README: Document existence of compare_strings.py.
28262
28263 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28264
28265 * math/s_fma.c: Include <libm-alias-double.h>.
28266 (fma): Define using libm_alias_double.
28267 * math/s_nextafter.c: Include <libm-alias-double.h>.
28268 (nextafter): Define using libm_alias_double.
28269 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28270 (acos): Define using libm_alias_double.
28271 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28272 (aocsh): Define using libm_alias_double.
28273 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28274 (asin): Define using libm_alias_double.
28275 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28276 (atan2): Define using libm_alias_double.
28277 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28278 (atanh): Define using libm_alias_double.
28279 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28280 (cosh): Define using libm_alias_double.
28281 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28282 (exp10): Define using libm_alias_double.
28283 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28284 (exp2): Define using libm_alias_double.
28285 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28286 (exp): Define using libm_alias_double.
28287 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28288 (fmod): Define using libm_alias_double.
28289 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28290 (hypot): Define using libm_alias_double.
28291 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28292 (j0): Define using libm_alias_double.
28293 (y0): Likewise.
28294 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28295 (j1): Define using libm_alias_double.
28296 (y1): Likewise.
28297 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28298 (jn): Define using libm_alias_double.
28299 (yn): Likewise.
28300 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28301 (log10): Define using libm_alias_double.
28302 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28303 (log2): Define using libm_alias_double.
28304 * math/w_log_compat.c: Include <libm-alias-double.h>.
28305 (log): Define using libm_alias_double.
28306 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28307 (pow): Define using libm_alias_double.
28308 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28309 (remainder): Define using libm_alias_double.
28310 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28311 (sinh): Define using libm_alias_double.
28312 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28313 (sqrt): Define using libm_alias_double.
28314 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28315 (tgamma): Define using libm_alias_double.
28316 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28317 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28318 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28319 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28320 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28321 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28322 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28323 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28324 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28325 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28326 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28327 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28328 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28329 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28330 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28331 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28332 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28333 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28334 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28335 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28336 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28337 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28338 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28339 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28340 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28341
28342 * math/e_acoshl.c: Remove.
28343 * math/e_acosl.c: Likewise.
28344 * math/e_asinl.c: Likewise.
28345 * math/e_atan2l.c: Likewise.
28346 * math/e_atanhl.c: Likewise.
28347 * math/e_coshl.c: Likewise.
28348 * math/e_expl.c: Likewise.
28349 * math/e_fmodl.c: Likewise.
28350 * math/e_gammal_r.c: Likewise.
28351 * math/e_hypotl.c: Likewise.
28352 * math/e_j0l.c: Likewise.
28353 * math/e_j1l.c: Likewise.
28354 * math/e_jnl.c: Likewise.
28355 * math/e_lgammal_r.c: Likewise.
28356 * math/e_log10l.c: Likewise.
28357 * math/e_log2l.c: Likewise.
28358 * math/e_logl.c: Likewise.
28359 * math/e_powl.c: Likewise.
28360 * math/e_rem_pio2l.c: Likewise.
28361 * math/e_sinhl.c: Likewise.
28362 * math/e_sqrtf128.c: Likewise.
28363 * math/e_sqrtl.c: Likewise.
28364 * math/k_cosl.c: Likewise.
28365 * math/k_sinl.c: Likewise.
28366 * math/k_tanl.c: Likewise.
28367 * math/s_asinhl.c: Likewise.
28368 * math/s_atanl.c: Likewise.
28369 * math/s_cbrtl.c: Likewise.
28370 * math/s_erfl.c: Likewise.
28371 * math/s_expm1l.c: Likewise.
28372 * math/s_log1pl.c: Likewise.
28373 * math/s_tanhl.c: Likewise.
28374
28375 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28376
28377 [BZ #21745]
28378 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28379 [$(subdir) = math] (sysdep_calls): New variable. Has the
28380 previous contents of sysdep_routines, but re-sorted..
28381 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28382 sysdep_calls.
28383 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28384 defined in sysdep_calls and replace by the respective m_* names.
28385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28386 (compat_symbol): Undefine to avoid duplicated compat symbols in
28387 libc.
28388
28389 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28390
28391 * math/s_fmaf.c: Include <libm-alias-float.h>.
28392 (fmaf): Define using libm_alias_float.
28393 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28394 (acosf): Define using libm_alias_float.
28395 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28396 (acoshf): Define using libm_alias_float.
28397 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28398 (asinf): Define using libm_alias_float.
28399 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28400 (atan2f): Define using libm_alias_float.
28401 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28402 (atanhf): Define using libm_alias_float.
28403 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28404 (coshf): Define using libm_alias_float.
28405 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28406 (exp10f): Define using libm_alias_float.
28407 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28408 (fmodf): Define using libm_alias_float.
28409 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28410 (hypotf): Define using libm_alias_float.
28411 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28412 (j0f): Define using libm_alias_float.
28413 (y0f): Likewise.
28414 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28415 (j1f): Define using libm_alias_float.
28416 (y1f): Likewise.
28417 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28418 (jnf): Define using libm_alias_float.
28419 (ynf): Likewise.
28420 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28421 (log10f): Define using libm_alias_float.
28422 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28423 (log2f): Define using libm_alias_float.
28424 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28425 (logf): Define using libm_alias_float.
28426 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28427 (powf): Define using libm_alias_float.
28428 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28429 (remainderf): Define using libm_alias_float.
28430 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28431 (sinhf): Define using libm_alias_float.
28432 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28433 (sqrtf): Define using libm_alias_float.
28434 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28435 (tgammaf): Define using libm_alias_float.
28436
28437 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28438
28439 * include/math.h (roundeven): Change hidden_proto call to
28440 __roundeven.
28441 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28442 alias.
28443 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28444 (y0): Rename to __y0 and define as weak alias.
28445 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28446 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28447 alias.
28448 (y0f): Rename to __y0f and define as weak alias.
28449 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28450 alias.
28451 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28452 (y1): Rename to __y1 and define as weak alias.
28453 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28454 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28455 alias.
28456 (y1f): Rename to __y1f and define as weak alias.
28457 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28458 alias.
28459 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28460 (yn): Rename to __yn and define as weak alias.
28461 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28462 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28463 alias.
28464 (ynf): Rename to __ynf and define as weak alias.
28465 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28466 (fromfp): Define as weak alias.
28467 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28468 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28469 (fromfpx): Define as weak alias.
28470 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28471 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28472 __getpayload and define as weak alias.
28473 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28474 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28475 __roundeven and define as weak alias.
28476 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28477 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28478 __setpayload.
28479 (setpayload): Define as weak alias.
28480 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28481 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28482 __setpayloadsig.
28483 (setpayloadsig): Define as weak alias.
28484 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28485 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28486 __totalorder and define as weak alias.
28487 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28488 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28489 to __totalordermag and define as weak alias.
28490 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28491 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28492 (ufromfp): Define as weak alias.
28493 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28494 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28495 __ufromfpx.
28496 (ufromfpx): Define as weak alias.
28497 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28498 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28499 Rename to __getpayload and define as weak alias.
28500 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28501 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28502 Rename to __roundeven and define as weak alias.
28503 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28504 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28505 Rename to __totalorder and define as weak alias.
28506 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28507 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28508 (totalordermag): Rename to __totalordermag and define as weak
28509 alias.
28510 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28511 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28512 macro.
28513 (__roundevenl): Likewise.
28514 (__totalorderl): Likewise.
28515 (__totalordermagl): Likewise
28516 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28517 __fromfpf128.
28518 (fromfpf128): Define as weak alias.
28519 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28520 __fromfpxf128.
28521 (fromfpxf128): Define as weak alias.
28522 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28523 __setpayloadf128.
28524 (setpayloadf128): Define as weak alias.
28525 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28526 __setpayloadsigf128.
28527 (setpayloadsigf128): Define as weak alias.
28528 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28529 __ufromfpf128.
28530 (ufromfpf128): Define as weak alias.
28531 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28532 __ufromfpxf128.
28533 (ufromfpxf128): Define as weak alias.
28534 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28535 (fromfpf): Define as weak alias.
28536 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28537 __fromfpxf.
28538 (fromfpxf): Define as weak alias.
28539 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28540 __getpayloadf and define as weak alias.
28541 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28542 __roundevenf and define as weak alias.
28543 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28544 __setpayloadf.
28545 (setpayloadf): Define as weak alias.
28546 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28547 __setpayloadsigf.
28548 (setpayloadsigf): Define as weak alias.
28549 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28550 __totalorderf and define as weak alias.
28551 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28552 Rename to __totalordermagf and define as weak alias.
28553 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28554 __ufromfpf.
28555 (ufromfpf): Define as weak alias.
28556 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28557 __ufromfpxf.
28558 (ufromfpxf): Define as weak alias.
28559 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28560 __fromfpl.
28561 (fromfpl): Define as weak alias.
28562 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28563 __fromfpxl.
28564 (fromfpxl): Define as weak alias.
28565 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28566 to __getpayloadl and define as weak alias.
28567 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28568 __roundevenl and define as weak alias.
28569 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28570 __setpayloadl.
28571 (setpayloadl): Define as weak alias.
28572 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28573 __setpayloadsigl.
28574 (setpayloadsigl): Define as weak alias.
28575 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28576 to __totalorderl and define as weak alias.
28577 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28578 Rename to __totalordermagl and define as weak alias.
28579 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28580 __ufromfpl.
28581 (ufromfpl): Define as weak alias.
28582 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28583 __ufromfpxl.
28584 (ufromfpxl): Define as weak alias.
28585 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28586 __fromfpl.
28587 (fromfpl): Define as weak alias.
28588 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28589 __fromfpxl.
28590 (fromfpxl): Define as weak alias.
28591 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28592 Rename to __getpayloadl and define as weak alias.
28593 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28594 to __roundevenl and define as weak alias. Call __roundeven
28595 instead of roundeven.
28596 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28597 __setpayloadl.
28598 (setpayloadl): Define as weak alias.
28599 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28600 __setpayloadsigl.
28601 (setpayloadsigl): Define as weak alias.
28602 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28603 Rename to __totalorderl and define as weak alias.
28604 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28605 Rename to __totalordermagl and define as weak alias.
28606 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28607 __ufromfpl.
28608 (ufromfpl): Define as weak alias.
28609 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28610 __ufromfpxl.
28611 (ufromfpxl): Define as weak alias.
28612 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28613 __fromfpl.
28614 (fromfpl): Define as weak alias.
28615 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28616 __fromfpxl.
28617 (fromfpxl): Define as weak alias.
28618 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28619 __getpayloadl and define as weak alias.
28620 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28621 __roundevenl and define as weak alias.
28622 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28623 __setpayloadl.
28624 (setpayloadl): Define as weak alias.
28625 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28626 __setpayloadsigl.
28627 (setpayloadsigl): Define as weak alias.
28628 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28629 __totalorderl and define as weak alias.
28630 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28631 Rename to __totalordermagl and define as weak alias.
28632 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28633 __ufromfpl.
28634 (ufromfpl): Define as weak alias.
28635 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28636 __ufromfpxl.
28637 (ufromfpxl): Define as weak alias.
28638
28639 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28640
28641 * benchtests/bench-string.h (realloc_bufs): New function.
28642 (test_init): Call it.
28643 * benchtests/bench-memset-large.c (do_test): Likewise.
28644 * benchtests/bench-memset.c (do_test): Likewise.
28645
28646 * benchtests/bench-memset-large.c: Print output in JSON
28647 format.
28648 * benchtests/bench-memset.c: Likewise.
28649
28650 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28651
28652 [BZ #21084]
28653 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28654 * iconvdata/Makefile: Add IBM858.
28655 * iconvdata/gconv-modules: Likewise.
28656 * iconvdata/tst-tables.sh: Likewise.
28657 * iconvdata/ibm858.c: New file.
28658 * localedata/charmaps/IBM858: Likewise.
28659
28660 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28661
28662 [BZ #22023]
28663 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28664 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28665
28666 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28667
28668 [BZ #22112]
28669 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28670 and add tel_int_fmt.
28671
28672 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28673
28674 * sysdeps/generic/libm-alias-float128.h: New file.
28675 * sysdeps/generic/math-type-macros-float128.h: Include
28676 <libm-alias-float128.h>.
28677 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28678
28679 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28680
28681 * sysdeps/generic/libm-alias-ldouble.h: New file.
28682 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28683 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28684 * sysdeps/generic/math-type-macros-ldouble.h: Include
28685 <libm-alias-ldouble.h>.
28686 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28687 libm_alias_ldouble.
28688
28689 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28690
28691 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28692 * math/w_exp_compat.c: ... here.
28693 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28694 * math/w_expf_compat.c: ... here.
28695 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28696 * math/w_expl_compat.c: ... here.
28697 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28698 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28699 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28700 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28701
28702 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28703
28704 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28705 redefine.
28706 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28707 macro.
28708 (ldexpl): Only define as compat symbol for libc, not libm.
28709 (scalbnl): Define as compat symbol for libc here.
28710 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28711 define for [IS_IN (libc)].
28712 (__ldexpl_2): Remove alias.
28713 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28714 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28715 name in long_double_symbol call.
28716 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28717 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28718 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28719 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28720 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28721 Remove macro.
28722 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28723 Define as compat symbol.
28724
28725 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28726
28727 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28728 * sysdeps/unix/sysv/linux/alpha/Makefile
28729 [$(subdir) = csu] (sysdep_routines): Remove rule.
28730
28731 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28732
28733 * sysdeps/generic/libm-alias-double.h: New file.
28734 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28735 * sysdeps/generic/math-type-macros-double.h: Include
28736 <libm-alias-double.h>.
28737 [declare_mgen_alias] (declare_mgen_alias): Define to use
28738 libm_alias_double.
28739 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28740 (M_LIBM_NEED_COMPAT): Remove macro.
28741 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28742 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28743 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28744 code.
28745 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28746 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28747 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28748 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28749 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28750 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28751 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28752 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28753 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28754 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28755 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28756 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28757 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28758 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28759 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28760 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28761 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28762 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28763 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28764 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28765 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28766 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28767 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28768 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28769 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28770 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28771 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28772 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28773 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28774 macro.
28775 (declare_mgen_alias): New macro.
28776 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28777 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28778 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28779 (M_LIBM_NEED_COMPAT): Remove macro.
28780 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28781 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28782 <first-versions.h>.
28783 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28784 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28785
28786 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28787
28788 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28789 (declare_mgen_alias_2): Remove.
28790 * sysdeps/generic/math-type-macros-double.h
28791 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28792 Likewise.
28793 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28794 alias.
28795 (ldexp): Define with declare_mgen_alias.
28796 (scalbn): Likewise.
28797
28798 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28799
28800 * grp/initgroups.c: Include config.h.
28801 (DEFAULT_CONFIG): New macro.
28802 (internal_getgrouplist): Use DEFAULT_CONFIG.
28803 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28804 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28805 (DEFAULT_DEFCONFIG): New macro.
28806 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28807 * nss/grp-lookup.c: Include config.h
28808 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28809 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28810 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28811 * manual/nss.texi: Update default values section.
28812
28813 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28814
28815 [BZ #21967]
28816 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28817 New.
28818 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28819 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28820 Handle MathVec_Prefer_No_AVX512.
28821 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28822 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28823 is set.
28824
28825 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28826
28827 * posix/sched_primax.c (__sched_get_priority_max): Add
28828 libc_hidden_def.
28829 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28830 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28831 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28832 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28833 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28834 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28835 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28836 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28837 Add aliases.
28838
28839 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28840
28841 * sysdeps/generic/libm-alias-float.h: New file.
28842 * sysdeps/generic/math-type-macros-float.h: Include
28843 <libm-alias-float.h>.
28844 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28845
28846 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28847
28848 [BZ #22093]
28849 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28850 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28851 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28852 (HWCAP_IMPORTANT): Likewise.
28853 (HWCAP_X86_64): New enum.
28854 (HWCAP_X86_AVX512_1): Updated.
28855 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28856 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28857 (modules-names): Add x86_64/tst-x86_64mod-1.
28858 (LDFLAGS-tst-x86_64mod-1.so): New.
28859 ($(objpfx)tst-x86_64-1): Likewise.
28860 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28861 (tst-x86_64-1-clean): Likewise.
28862 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28863 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28864
28865 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28866
28867 * po/sv.po: Update translations.
28868 * po/fr.po: Likewise.
28869
28870 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28871
28872 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28873 seconds.
28874 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28875 seconds.
28876 * elf/rtld-Rules: Fix $(error) use.
28877
28878 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28879
28880 [BZ #14925]
28881 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28882 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28883 * localedata/locales/bn_BD: “Bengali” was still used in some
28884 comments. Change it to “Bangla”.
28885
28886 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28887
28888 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28889
28890 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28891
28892 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28893 thunderx2t99p1 to list of cpu names.
28894 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28895 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28896
28897 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28898
28899 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28900 Use strcmp instead of tunable_is_name.
28901
28902 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28903
28904 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28905 (F_GET_RW_HINT): New macro.
28906 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28907 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28908 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28909 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28910 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28911 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28912 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28913 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28914 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28915
28916 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28917 (F_ADD_SEALS): New macro.
28918 [__USE_GNU] (F_GET_SEALS): Likewise.
28919 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28920 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28921 [__USE_GNU] (F_SEAL_GROW): Likewise.
28922 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28923
28924 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28925
28926 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28927 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28928 * posix/glob_internal.h (__glob_pattern_type):
28929 * posix/glob.c (glob):
28930 * posix/glob_pattern_p.c (__glob_pattern_p):
28931 Use them.
28932
28933 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28934 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28935 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28936 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28937 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28939 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28940 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28941 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28942 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28943 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28944 * sysdeps/wordsize-64/glob.c: Likewise.
28945 * sysdeps/wordsize-64/glob64.c: Likewise.
28946 * sysdeps/wordsize-64/globfree.c: Likewise.
28947 * sysdeps/wordsize-64/globfree64.c: Likewise.
28948 * sysdeps/unix/sysv/linux/glob.c: New file.
28949 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28950 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28951 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28952 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28953 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28954 adds !GLOB_NO_OLD_VERSION as an extra condition.
28955 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28956 using relative path instead of absolute one.
28957 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28958 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28959 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28960 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28961 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28962 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28963
28964 [BZ #1062]
28965 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28966 (glob): Use the same scratch buffer for both getlogin_r and
28967 getpwnam_r. Don’t require preallocation of the login name. This
28968 simplifies storage allocation, and corrects the handling of
28969 long login names.
28970
28971 [BZ #1062]
28972 * posix/glob.c (glob): Port recent patches to platforms
28973 lacking getpwnam_r.
28974 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28975 returns an error number rather than setting errno.
28976
28977 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28978 instead of GCC extension.
28979 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28980 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28981 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28982
28983 [BZ #866]
28984 [BZ #1062]
28985 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28986 * posix/bug-glob1.c: Remove file.
28987 * posix/tst-glob_symlinks.c: New file.
28988 * posix/glob.c (__lstat64): New macro.
28989 (is_dir): New function.
28990 (glob, glob_in_dir): Match symlinks even if they are dangling.
28991 (link_stat, link_exists_p): Remove. All uses removed.
28992
28993 [BZ #1062]
28994 [BZ #19971]
28995 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28996 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28997 All uses removed.
28998
28999 [BZ #1062]
29000 CVE-2017-15671
29001 * posix/Makefile (routines): Add globfree, globfree64, and
29002 glob_pattern_p.
29003 * posix/flexmember.h: New file.
29004 * posix/glob_internal.h: Likewise.
29005 * posix/glob_pattern_p.c: Likewise.
29006 * posix/globfree.c: Likewise.
29007 * posix/globfree64.c: Likewise.
29008 * sysdeps/gnu/globfree64.c: Likewise.
29009 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
29010 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29011 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
29012 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29013 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29014 * sysdeps/wordsize-64/globfree.c: Likewise.
29015 * sysdeps/wordsize-64/globfree64.c: Likewise.
29016 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29017 [NDEBUG): Remove comments.
29018 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29019 (dirent_type): New type. Use uint_fast8_t not
29020 uint8_t, as C99 does not require uint8_t.
29021 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29022 (struct readdir_result): Use dirent_type. Do not define skip_entry
29023 unless it is needed; this saves a byte on platforms lacking d_ino.
29024 (readdir_result_type, readdir_result_skip_entry):
29025 New functions, replacing ...
29026 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29027 these functions, which were removed. This makes the callers
29028 easier to read. All callers changed.
29029 (D_INO_TO_RESULT): Now empty if there is no d_ino.
29030 (size_add_wrapv, glob_use_alloca): New static functions.
29031 (glob, glob_in_dir): Check for size_t overflow in several places,
29032 and fix some size_t checks that were not quite right.
29033 Remove old code using SHELL since Bash no longer
29034 uses this.
29035 (glob, prefix_array): Separate MS code better.
29036 (glob_in_dir): Remove old Amiga and VMS code.
29037 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29038 separate files.
29039 (glob_in_dir): Do not rely on undefined behavior in accessing
29040 struct members beyond their bounds. Use a flexible array member
29041 instead
29042 (link_stat): Rename from link_exists2_p and return -1/0 instead of
29043 0/1. Caller changed.
29044 (glob): Fix memory leaks.
29045 * posix/glob64 (globfree64): Move to separate file.
29046 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29047 (globfree64): Remove hidden alias.
29048 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29049 oldglob.
29050 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29051 separate file.
29052 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29053 define.
29054 Move compat code to separate file.
29055 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29056 separate file.
29057
29058 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
29059
29060 * resolv/tst-resolv-qtypes.c (domain): Changed to
29061 "const char domain[] =".
29062
29063 2017-09-07 Joseph Myers <joseph@codesourcery.com>
29064
29065 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29066 version to 3.1.6.
29067
29068 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29069 (TCP_MD5SIG_EXT): Likewise.
29070 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29071 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29072 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
29073
29074 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29075
29076 2017-09-07 Mike FABIAN <mfabian@redhat.com>
29077
29078 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29079
29080 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
29081
29082 [BZ #22100]
29083 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29084
29085 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29086
29087 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29088 before assuming that the file is empty. Avoid testing buffer content
29089 when nread == 0.
29090
29091 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29092
29093 [BZ #18858]
29094 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29095 Remove define.
29096 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29097 Likewise.
29098 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29099 Likewise.
29100 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29101 Likewise.
29102 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29103 Likewise.
29104 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29105 Likewise.
29106 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29107 Likewise.
29108
29109 2017-09-06 Florian Weimer <fweimer@redhat.com>
29110
29111 * malloc/dynarray_emplace_enlarge.c
29112 (__libc_dynarray_emplace_enlarge): Add missing else.
29113
29114 2017-09-06 Florian Weimer <fweimer@redhat.com>
29115
29116 [BZ #22096]
29117 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29118 case of failure to obtain the global conf object.
29119
29120 2017-09-06 Florian Weimer <fweimer@redhat.com>
29121
29122 [BZ #22095]
29123 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29124 dynarray allocation failure.
29125
29126 2017-09-06 Florian Weimer <fweimer@redhat.com>
29127
29128 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29129 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29130 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29131 New functions.
29132 (response): Call them. Add 'p', '6' flag processing.
29133 (test_reverse): New function.
29134 (test_get2_any): Call it.
29135 (test_no_inet6): Add 'p' test.
29136 (test_inet6): Likewise.
29137
29138 2017-09-06 Florian Weimer <fweimer@redhat.com>
29139
29140 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29141 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29142 the QNAME.
29143 (test_gai): Adjust query names. Add additional tests.
29144 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29145 test_get2. Adjust query names. Add additional tests.
29146 (test_no_inet6): New function, extracted from threadfunc.
29147 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29148 Add additional tests.
29149
29150 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29151
29152 [BZ #22070]
29153 * localedata/unicode-gen/utf8_gen.py: Set the width for
29154 characters with Prepended_Concatenation_Mark property to 1
29155 * localedata/charmaps/UTF-8: Updated using the improved script.
29156
29157 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29158
29159 [BZ #21750]
29160 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29161 use the range notation for all ranges of neighbouring characters
29162 with the same width.
29163
29164 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29165
29166 * sysdeps/generic/math-type-macros-double.h: Include
29167 <math-svid-compat.h>.
29168 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29169 * sysdeps/generic/math-type-macros-float.h: Include
29170 <math-svid-compat.h>.
29171 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29172 * sysdeps/generic/math-type-macros-ldouble.h: Include
29173 <math-svid-compat.h>.
29174 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29175 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29176 condition.
29177 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29178 * math/w_acosf_compat.c: Likewise.
29179 * math/w_acosh_compat.c: Likewise.
29180 * math/w_acoshf_compat.c: Likewise.
29181 * math/w_acoshl_compat.c: Likewise.
29182 * math/w_acosl_compat.c: Likewise.
29183 * math/w_asin_compat.c: Likewise.
29184 * math/w_asinf_compat.c: Likewise.
29185 * math/w_asinl_compat.c: Likewise.
29186 * math/w_atan2_compat.c: Likewise.
29187 * math/w_atan2f_compat.c: Likewise.
29188 * math/w_atan2l_compat.c: Likewise.
29189 * math/w_atanh_compat.c: Likewise.
29190 * math/w_atanhf_compat.c: Likewise.
29191 * math/w_atanhl_compat.c: Likewise.
29192 * math/w_cosh_compat.c: Likewise.
29193 * math/w_coshf_compat.c: Likewise.
29194 * math/w_coshl_compat.c: Likewise.
29195 * math/w_exp10_compat.c: Likewise.
29196 * math/w_exp10f_compat.c: Likewise.
29197 * math/w_exp10l_compat.c: Likewise.
29198 * math/w_exp2_compat.c: Likewise.
29199 * math/w_exp2f_compat.c: Likewise.
29200 * math/w_exp2l_compat.c: Likewise.
29201 * math/w_fmod_compat.c: Likewise.
29202 * math/w_fmodf_compat.c: Likewise.
29203 * math/w_fmodl_compat.c: Likewise.
29204 * math/w_hypot_compat.c: Likewise.
29205 * math/w_hypotf_compat.c: Likewise.
29206 * math/w_hypotl_compat.c: Likewise.
29207 * math/w_j0_compat.c: Likewise.
29208 * math/w_j0f_compat.c: Likewise.
29209 * math/w_j0l_compat.c: Likewise.
29210 * math/w_j1_compat.c: Likewise.
29211 * math/w_j1f_compat.c: Likewise.
29212 * math/w_j1l_compat.c: Likewise.
29213 * math/w_jn_compat.c: Likewise.
29214 * math/w_jnf_compat.c: Likewise.
29215 * math/w_jnl_compat.c: Likewise.
29216 * math/w_lgamma_r_compat.c: Likewise.
29217 * math/w_lgammaf_r_compat.c: Likewise.
29218 * math/w_lgammal_r_compat.c: Likewise.
29219 * math/w_log10_compat.c: Likewise.
29220 * math/w_log10f_compat.c: Likewise.
29221 * math/w_log10l_compat.c: Likewise.
29222 * math/w_log2_compat.c: Likewise.
29223 * math/w_log2f_compat.c: Likewise.
29224 * math/w_log2l_compat.c: Likewise.
29225 * math/w_log_compat.c: Likewise.
29226 * math/w_logf_compat.c: Likewise.
29227 * math/w_logl_compat.c: Likewise.
29228 * math/w_pow_compat.c: Likewise.
29229 * math/w_powf_compat.c: Likewise.
29230 * math/w_powl_compat.c: Likewise.
29231 * math/w_remainder_compat.c: Likewise.
29232 * math/w_remainderf_compat.c: Likewise.
29233 * math/w_remainderl_compat.c: Likewise.
29234 * math/w_sinh_compat.c: Likewise.
29235 * math/w_sinhf_compat.c: Likewise.
29236 * math/w_sinhl_compat.c: Likewise.
29237 * math/w_sqrt_compat.c: Likewise.
29238 * math/w_sqrtf_compat.c: Likewise.
29239 * math/w_sqrtl_compat.c: Likewise.
29240 * math/w_tgamma_compat.c: Likewise.
29241 * math/w_tgammaf_compat.c: Likewise.
29242 * math/w_tgammal_compat.c: Likewise.
29243 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29244 [LIBM_SVID_COMPAT].
29245 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29246 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29247 [LIBM_SVID_COMPAT].
29248 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29249 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29250 [LIBM_SVID_COMPAT].
29251 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29252 * sysdeps/i386/fpu/w_sqrt.c: New file.
29253 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29254 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29255 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29256 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29257 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29258 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29259 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29260 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29261 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29262 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29263 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29264 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29265 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29266 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29267 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29268 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29269 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29270 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29271 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29272 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29273 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29274 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29275 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29276 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29277 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29278 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29279 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29280 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29281 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29282 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29283 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29284 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29285 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29286 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29287 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29288 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29289 * sysdeps/ia64/fpu/w_log.c: Likewise.
29290 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29291 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29292 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29293 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29294 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29295 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29296 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29297 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29298 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29299 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29300 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29301 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29302 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29303 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29304 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29305 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29306 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29307 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29308 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29309 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29310 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29311 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29312 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29313 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29314 [LIBM_SVID_COMPAT].
29315 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29316 * sysdeps/ieee754/k_standard.c: Likewise.
29317 * sysdeps/ieee754/k_standardf.c: Likewise.
29318 * sysdeps/ieee754/k_standardl.c: Likewise.
29319 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29320 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29321 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29322 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29323 long_double_symbol call on [LIBM_SVID_COMPAT].
29324 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29325 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29326 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29327 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29328 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29329 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29330 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29331 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29332 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29333 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29334 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29335 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29336 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29337 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29338 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29339 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29340 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29341 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29342 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29343 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29344 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29345 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29346
29347 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29348
29349 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29350 * malloc/tst-mallocstate.c: Convert from test-skeleton
29351 to test-driver. Ifdef code using TEST_COMPAT macro.
29352 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29353 * math/test-matherr.c: Likewise.
29354
29355 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29356
29357 [BZ #22086]
29358 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29359 comparing word with byte-swapped constant.
29360
29361 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29362
29363 [BZ #20498]
29364 * locale/iso-639.def: add Miskito.
29365 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29366 * localedata/locales/miq_NI: New file.
29367
29368 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29369
29370 [BZ #18822]
29371 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29372 (__mkdir): Likewise.
29373 * io/chmod.c (__chmod): Add libc_hidden_def.
29374 * io/mkdir.c (__mkdir): Likewise.
29375 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29376 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29377 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29378 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29379
29380 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29381
29382 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29383 version to 4.13.
29384
29385 [BZ #22082]
29386 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29387 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29388
29389 2017-09-04 Florian Weimer <fweimer@redhat.com>
29390
29391 * math/math.h: Issue warning if log is defined.
29392
29393 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29394
29395 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29396 kernel version to 4.13.
29397
29398 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29399
29400 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29401 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29402 parameter.
29403 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29404 just <bits/types.h>.
29405 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29406 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29407 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29408 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29409 * misc/preadv2.c: Include <errno.h>.
29410 * misc/preadv64v2.c: Include <errno.h>.
29411 * misc/pwritev2.c: Include <errno.h>.
29412 * misc/pwritev64v2.c: Include <errno.h>.
29413 * sysdeps/posix/preadv2.c: Include <errno.h>.
29414 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29415 Fix <unistd.h> inclusion.
29416 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29417 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29418 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29419 __strtoul_internal): New functions.
29420 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29421 * sysdeps/posix/system.c: Include <sigsetops.h>.
29422 * sysdeps/mach/hurd/i386/Makefile
29423 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29424 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29425 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29426 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29427 __feraiseexcept_renamed to feraiseexcept instead of
29428 __GI_feraiseexcept.
29429 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29430 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29431 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29432 RWF_NOWAIT): Define to 0 if undefined already.
29433 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29434 boils down to 0.
29435 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29436 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29437
29438 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29439
29440 * manual/math.texi (pow10): Do not document.
29441 (pow10f): Likewise.
29442 (pow10l): Likewise.
29443 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29444 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29445 * math/libm-test-exp10.inc (pow10_test): Remove.
29446 (do_test): Do not call pow10.
29447 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29448 [NO_LONG_DOUBLE] (pow10l): Likewise.
29449 * math/w_exp10f_compat.c (pow10f): Likewise.
29450 * math/w_exp10l_compat.c (pow10l): Likewise.
29451 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29452 (pow10): Make into compat symbol.
29453 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29454 (pow10f): Make into compat symbol.
29455 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29456 (pow10l): Make into compat symbol.
29457 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29458 pow10.
29459 (CFLAGS-nldbl-pow10.c): Remove variable..
29460 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29461 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29462 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29463 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29464 Undefine and redefine.
29465 (pow10l): Make into compat symbol.
29466 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29467 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29468 * sysdeps/arm/libm-test-ulps: Likewise.
29469 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29470 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29471 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29472 * sysdeps/microblaze/libm-test-ulps: Likewise.
29473 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29474 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29475 * sysdeps/nios2/libm-test-ulps: Likewise.
29476 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29477 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29478 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29479 * sysdeps/sh/libm-test-ulps: Likewise.
29480 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29481 * sysdeps/tile/libm-test-ulps: Likewise.
29482 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29483
29484 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29485
29486 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29487
29488 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29489
29490 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29491 "../ChangeLog.old/ChangeLog.8".
29492 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29493 "../ChangeLog.old/ChangeLog.14".
29494
29495 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29496
29497 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29498 Threads Library.
29499
29500 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29501
29502 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29503
29504 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29505
29506 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29507 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29508
29509 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29510
29511 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29512 32 atexit handlers.
29513
29514 2017-09-01 Zack Weinberg <zackw@panix.com>
29515
29516 * math/math.h (HUGE_VAL): Improve commentary.
29517
29518 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29519 Andreas Schwab <schwab@suse.de>
29520
29521 [BZ #21530]
29522 * include/stdio.h (__gen_tempfd): New function.
29523 * stdio-common/Makefile (routines): Add gentempfd.
29524 * stdio-common/gentempfd.c: New file.
29525 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29526 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29527 unnamed file first.
29528
29529 2017-09-01 Florian Weimer <fweimer@redhat.com>
29530
29531 [BZ #21915]
29532 [BZ #21922]
29533 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29534 result to determine success or failure, not the errno value.
29535 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29536 (tst-nss-files-hosts-erange): Link with -ldl.
29537 * nss/tst-nss-files-hosts-erange.c: New file.
29538 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29539 (do_test): Add NO_DATA tests.
29540 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29541 (do_test): Call it.
29542
29543 2017-09-01 Florian Weimer <fweimer@redhat.com>
29544
29545 [BZ #21922]
29546 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29547 coming from gethostbyname2_r.
29548
29549 2017-09-01 Florian Weimer <fweimer@redhat.com>
29550
29551 * support/namespace.h (struct support_chroot_configuration): Add
29552 hosts, host_conf.
29553 (struct support_chroot): Add path_hosts, path_host_conf.
29554 * support/support_chroot.c (write_file): New function.
29555 (support_chroot_create): Call it to process /etc/resolv.conf,
29556 /etc/hosts, /etc/host.conf.
29557 (support_chroot_free): Update.
29558
29559 2017-09-01 Florian Weimer <fweimer@redhat.com>
29560
29561 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29562 status indicates it is set.
29563
29564 2017-09-01 Florian Weimer <fweimer@redhat.com>
29565
29566 [BZ #20532]
29567 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29568 function lookup failures more reliable.
29569
29570 2017-09-01 Florian Weimer <fweimer@redhat.com>
29571
29572 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29573 (getcanonname): Likewise.
29574 (gaih_inet): Likewise.
29575
29576 2017-09-01 Florian Weimer <fweimer@redhat.com>
29577
29578 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29579 (getcanonname): Likewise.
29580 (gaih_inet): Likewise.
29581
29582 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29583 Richard Henderson <rth@twiddle.net>
29584
29585 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29586 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29587 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29588 (IREG_SIZE, OREG_SIZE): New macros.
29589 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29590 (IREG_SIZE, OREG_SIZE): New macros.
29591 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29592 (IREG_SIZE): New macro.
29593 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29594 (IREG_SIZE): New macro.
29595 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29596 New includes.
29597 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29598 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29599 (__CONCATX): Handle exceptions correctly on large values that may
29600 set FE_INVALID.
29601 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29602 Initialize if not already set.
29603 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29604
29605 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29606
29607 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29608 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29609 Likewise.
29610 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29611 Likewise.
29612 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29613 Likewise.
29614 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29615 Likewise.
29616 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29617 Likewise.
29618 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29619 Likewise.
29620 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29621 Likewise.
29622 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29623 (NO_CANCELLATION): Likewise.
29624 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29625 Likewise.
29626 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29627 Likewise.
29628 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29629 Likewise.
29630 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29631 (NO_CANCELLATION): Likewise.
29632 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29633 (NO_CANCELLATION): Likewise.
29634 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29635 Likewise
29636 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29637 Likewise.
29638 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29639 Likewise.
29640 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29641 Likewise.
29642 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29643 hidden prototype.
29644 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29645 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29646
29647 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29648
29649 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29650 in resolver call.
29651
29652 2017-08-31 Florian Weimer <fweimer@redhat.com>
29653
29654 * include/libc-symbols.h (internal_function): Remove.
29655
29656 2017-08-31 Florian Weimer <fweimer@redhat.com>
29657
29658 * stdlib/fmtmsg.c (internal_addseverity): Remove
29659 internal_function.
29660
29661 2017-08-31 Florian Weimer <fweimer@redhat.com>
29662
29663 * stdio-common/printf_fp.c (group_number): Remove
29664 internal_function.
29665 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29666
29667 2017-08-31 Florian Weimer <fweimer@redhat.com>
29668
29669 * posix/fnmatch.c (internal_function): Remove definition.
29670 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29671 * posix/regcomp.c (peek_token, init_word_char)
29672 (duplicate_node_closure, fetch_token, peek_token)
29673 (peek_token_bracket, build_range_exp, build_collating_symbol):
29674 Likewise.
29675 * posix/regex_internal.c (re_string_construct_common)
29676 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29677 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29678 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29679 (re_string_translate_buffer, re_string_reconstruct)
29680 (re_string_peek_byte_case, re_string_fetch_byte_case)
29681 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29682 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29683 (re_node_set_add_intersect, re_node_set_init_union)
29684 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29685 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29686 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29687 (re_acquire_state_context): Likewise.
29688 * posix/regex_internal.h (internal_function): Remove definition.
29689 (re_string_realloc_buffers, build_wcs_buffer)
29690 (build_wcs_upper_buffer, build_upper_buffer)
29691 (re_string_translate_buffer, re_string_context_at)
29692 (re_string_char_size_at, re_string_wchar_at)
29693 (re_string_elem_size_at): Likewise.
29694 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29695 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29696 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29697 (re_search_internal, re_search_2_stub, re_search_stub)
29698 (re_copy_regs, prune_impossible_nodes, check_matching)
29699 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29700 (free_fail_stack_return, sift_states_iter_mb)
29701 (sift_states_backward, build_sifted_states)
29702 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29703 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29704 (check_subexp_limits, sift_states_bkref, merge_state_array)
29705 (find_recover_state, transit_state, merge_state_with_log)
29706 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29707 (transit_state_mb, transit_state_bkref, get_subexp)
29708 (get_subexp_sub, find_subexp_node, check_arrival)
29709 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29710 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29711 (check_node_accept_bytes, find_collation_sequence_value)
29712 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29713 (acquire_init_state_context, check_halt_node_context)
29714 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29715 (sub_epsilon_src_nodes): Likewise.
29716 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29717 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29718 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29719 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29720 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29721 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29722 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29723 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29724 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29725 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29726 (PREADV): Likewise.
29727 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29728 (PREADV): Likewise.
29729 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29730 (PWRITEV): Likewise.
29731 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29732 (PWRITEV): Likewise.
29733 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29734 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29735
29736 2017-08-31 Florian Weimer <fweimer@redhat.com>
29737
29738 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29739 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29740 Remove internal_function.
29741 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29742 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29743 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29744 (__deallocate_stack, __libc_pthread_init)
29745 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29746 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29747 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29748 Likewise.
29749 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29750 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29751 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29752 Likewise.
29753 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29754 (__pthread_mutex_unlock_usercnt): Likewise.
29755
29756 2017-08-31 Florian Weimer <fweimer@redhat.com>
29757
29758 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29759 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29760 (fts_safe_changedir): Remove internal_function.
29761 * io/ftw.c (internal_function): Remove definition.
29762 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29763
29764 2017-08-31 Florian Weimer <fweimer@redhat.com>
29765
29766 * inet/deadline.c (__deadline_current_time)
29767 (__deadline_from_timeval, __deadline_to_ms): Remove
29768 internal_function.
29769 * inet/getnameinfo.c (nrl_domainname): Likewise.
29770 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29771 * inet/inet6_option.c (add_pad): Likewise.
29772 * inet/net-internal.h (__deadline_current_time)
29773 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29774 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29775 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29776 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29777
29778 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29779
29780 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29781 include <bits/nan.h>.
29782 * math/Makefile (headers): Remove bits/nan.h.
29783 * bits/nan.h: Remove.
29784 * sysdeps/ieee754/bits/nan.h: Likewise.
29785 * sysdeps/mips/bits/nan.h: Likewise.
29786
29787 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29788 not include <bits/inf.h>.
29789 * math/Makefile (headers): Remove bits/inf.h.
29790 * bits/inf.h: Remove.
29791 * sysdeps/ieee754/bits/inf.h: Likewise.
29792
29793 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29794 bits/huge_vall.h or bits/huge_val_flt128.h.
29795 (HUGE_VAL): Define directly here.
29796 [__USE_ISOC99] (HUGE_VALF): Likewise.
29797 [__USE_ISOC99] (HUGE_VALL): Likewise.
29798 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29799 (HUGE_VAL_F128): Likewise.
29800 * math/Makefile (headers): Remove bits/huge_val.h,
29801 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29802 * bits/huge_val.h: Remove.
29803 * bits/huge_val_flt128.h: Likewise.
29804 * bits/huge_valf.h: Likewise.
29805 * bits/huge_vall.h: Likewise.
29806 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29807 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29808 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29809 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29810 * sysdeps/sh/bits/huge_val.h: Likewise.
29811 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29812 * sysdeps/x86/bits/huge_vall.h: Likewise.
29813
29814 2017-08-31 Florian Weimer <fweimer@redhat.com>
29815
29816 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29817 internal_function.
29818 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29819 Likewise.
29820 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29821 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29822 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29823 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29824 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29825 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29826 * elf/dl-libc.c (dlerror_run): Likewise.
29827 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29828 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29829 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29830 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29831 Likewise.
29832 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29833 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29834 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29835 * elf/dl-profile.c (_dl_start_profile): Likewise.
29836 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29837 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29838 Likewise.
29839 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29840 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29841 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29842 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29843 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29844 (_dl_allocate_tls_storage): Likewise.
29845 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29846 (_dl_check_all_versions): Likewise.
29847 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29848 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29849 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29850 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29851 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29852 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29853 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29854 internal_function from __dl_start.
29855 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29856 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29857 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29858 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29859 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29860 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29861 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29862 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29863 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29864 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29865 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29866 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29867 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29868 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29869 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29870 Likewise.
29871 (struct rtld_global_ro): Remove internal_function from the
29872 _dl_lookup_symbol_x member.
29873 (_dl_symbol_value): Remove. No longer defined anywhere.
29874 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29875 internal_function.
29876 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29877 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29878 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29879 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29880 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29881 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29882 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29883 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29884 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29885 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29886 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29887 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29888
29889 2017-08-31 Florian Weimer <fweimer@redhat.com>
29890
29891 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29892 Remove internal_function.
29893 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29894 Likewise.
29895 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29896 Likewise.
29897
29898 2017-08-31 Florian Weimer <fweimer@redhat.com>
29899
29900 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29901 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29902 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29903
29904 2017-08-31 Florian Weimer <fweimer@redhat.com>
29905
29906 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29907 (__gai_enqueue_request): Remove internal_function.
29908 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29909 (__gai_remove_request, __gai_notify, __gai_notify_only)
29910 (__gai_sigqueue): Likewise.
29911 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29912 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29913 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29914 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29915 Likewise.
29916
29917 2017-08-31 Florian Weimer <fweimer@redhat.com>
29918
29919 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29920 * include/dirent.h (__opendirat, __getdents, __getdents64)
29921 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29922 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29923 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29924 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29925 Likewise.
29926 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29927
29928 2017-08-31 Florian Weimer <fweimer@redhat.com>
29929
29930 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29931 internal_function.
29932 (GETCWD_RETURN_TYPE): Likewise.
29933
29934 2017-08-31 Florian Weimer <fweimer@redhat.com>
29935
29936 * include/time.h (__tz_compute, __strptime_internal): Remove
29937 internal_function.
29938 * time/strptime_l.c (__strptime_internal): Likewise.
29939 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29940
29941 2017-08-31 Florian Weimer <fweimer@redhat.com>
29942
29943 * iconv/gconv.c (__gconv): Remove internal_function.
29944 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29945 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29946 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29947 (__gconv_release_cache): Likewise.
29948 * iconv/gconv_close.c (__gconv_close): Likewise.
29949 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29950 (read_conf_file, __gconv_get_path): Likewise.
29951 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29952 (__gconv_release_step, gen_steps, increment_counter)
29953 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29954 (__gconv_close_transform, free_modules_db): Likewise.
29955 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29956 Likewise.
29957 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29958 (__gconv_find_transform, __gconv_lookup_cache)
29959 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29960 (__gconv_close_transform, __gconv_release_cache)
29961 (__gconv_loaded_object, __gconv_release_shlib)
29962 (__gconv_compare_alias): Likewise.
29963 * iconv/gconv_open.c (__gconv_open): Likewise.
29964 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29965 * iconv/iconvconfig.c (add_module): Likewise.
29966 * intl/dcigettext.c (plural_lookup, guess_category_value)
29967 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29968 * intl/eval-plural.h (plural_eval): Likewise.
29969 * intl/finddomain.c (_nl_find_domain): Likewise.
29970 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29971 (_nl_load_domain, _nl_find_msg): Likewise.
29972 (internal_function): Remove definition.
29973 * intl/loadinfo.h (internal_function): Likewise.
29974 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29975 internal_function.
29976 * intl/localealias.c (internal_function): Remove definition.
29977 (read_alias_file): Remove internal_function.
29978 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29979 * intl/plural-exp.h (internal_function): Remove definition.
29980 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29981 internal_function.
29982 * intl/plural.c: Regenerate.
29983 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29984 * locale/coll-lookup.c (__collidx_table_lookup)
29985 (__collseq_table_lookup): Likewise.
29986 * locale/coll-lookup.h (__collidx_table_lookup)
29987 (__collseq_table_lookup): Likewise.
29988 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29989 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29990 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29991 (_nl_unload_locale): Likewise.
29992 * locale/localeinfo.h (struct __locale_data): Remove
29993 internal_function from cleanup member.
29994 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29995 (_nl_remove_locale, _nl_load_locale_from_archive)
29996 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29997 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29998 (_nl_cleanup_time): Remove internal_function.
29999 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
30000 (_nl_parse_alt_digit): Likewise.
30001 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
30002 (_nl_select_era_entry): Likewise.
30003 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
30004 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30005 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30006 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30007 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30008
30009 2017-08-31 Florian Weimer <fweimer@redhat.com>
30010
30011 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
30012 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30013 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
30014 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30015 Likewise.
30016 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30017 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30018 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30019 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30020 Likewise.
30021 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30022
30023 2017-08-31 Florian Weimer <fweimer@redhat.com>
30024
30025 * misc/getttyent.c (skip, value): Remove internal_function.
30026 * misc/syslog.c (openlog_internal): Likewise.
30027 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30028
30029 2017-08-31 Florian Weimer <fweimer@redhat.com>
30030
30031 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30032 (__nss_rewrite_field): Remove internal_function.
30033 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30034 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30035 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30036 * nss/nsswitch.c (nss_parse_file, nss_getline)
30037 (nss_parse_service_list, nss_new_service): Likewise.
30038 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30039 * nss/valid_field.c (__nss_valid_field): Likewise.
30040 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30041
30042 2017-08-31 Florian Weimer <fweimer@redhat.com>
30043
30044 * malloc/arena.c (__malloc_fork_lock_parent)
30045 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30046 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30047 internal_function from defintions.
30048 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30049 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30050 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30051 internal_function from declarations.
30052 * malloc/malloc.c (internal_function): Do not define.
30053 (mem2mem_check): Remove internal_function from declaration.
30054 (munmap_chunk, mremap_chunk): Remove internal_function.
30055 * malloc/mtrace.c (tr_where): Likewise.
30056
30057 2017-08-31 Florian Weimer <fweimer@redhat.com>
30058
30059 * include/rpc/pmap_clnt.h (__get_socket): Remove
30060 internal_function.
30061 * sunrpc/auth_des.c (synchronize): Likewise.
30062 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30063 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30064 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30065 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30066 (key_call): Likewise.
30067 * sunrpc/pm_getport.c (__get_socket): Likewise.
30068 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30069 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30070 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30071 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30072 (invalidate): Likewise.
30073 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30074 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30075 (set_input_fragment, get_input_bytes): Likewise.
30076
30077 2017-08-31 Florian Weimer <fweimer@redhat.com>
30078
30079 * malloc/malloc.c (_int_free): Remove locked variable and related
30080 asserts.
30081
30082 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
30083
30084 [BZ #22051]
30085 * Makerules (build-module-helper-objlist): Filter out
30086 $(elf-objpfx)sofini.os.
30087 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30088 needed.
30089
30090 2017-08-31 Florian Weimer <fweimer@redhat.com>
30091
30092 * libio/fcloseall.c: Assume weak_alias is defined.
30093 * libio/feof.c: Likewise.
30094 * libio/fileno.c: Likewise.
30095 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30096 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30097 definitions.
30098 (_IO_file_open): Call __open directly.
30099 (_IO_new_file_sync): Assume ESPIPE is defined.
30100 (_IO_file_seekoff_maybe_mmap): Call __read directly.
30101 (_IO_new_file_write): Call __write directly.
30102 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30103 * libio/ftello64.c (__ftello64): Assume EIO is defined.
30104 * libio/genops.c: Assume _LIBC is defined.
30105 (save_for_backup): Remove internal_function.
30106 * libio/getc.c: Assume weak_alias is defined.
30107 * libio/getwc.c: Likewise.
30108 * libio/iofclose.c: Assume _LIBC is defined.
30109 * libio/iofdopen.c: Likewise.
30110 (_IO_fcntl): Remove macro definition.
30111 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30112 Call __fcntl directly.
30113 * libio/iofflush.c: Assume weak_alias is defined.
30114 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30115 defined.
30116 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30117 * libio/iofgets.c: Likewise.
30118 * libio/iofopen.c: Assume _LIBC is defined.
30119 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30120 * libio/iofputs.c: Assume weak_alias is defined.
30121 * libio/iofread.c: Likewise.
30122 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30123 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30124 * libio/ioftell.c: Assume weak_alias is defined.
30125 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30126 * libio/iofwide.c: Assume _LIBC is defined.
30127 (_IO_fwide): Drop SHARED conditional because it is implied by
30128 SHLIB_COMPAT.
30129 * libio/iofwrite.c: Assume weak_alias is defined.
30130 * libio/iogetdelim.c: Likewise.
30131 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30132 * libio/iogetwline.c (wmemcpy): Remove macro definition.
30133 (_IO_getwline): Call __wmemcpy directly.
30134 * libio/iopopen.c: Assume _LIBC is defined.
30135 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30136 (_IO_close): Remove macro definitions.
30137 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30138 _exit directly.
30139 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30140 directly.
30141 * libio/ioputs.c: Assume weak_alias is defined.
30142 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30143 * libio/iosetbuffer.c: Assume weak_alias is defined.
30144 * libio/iosetvbuf.c: Likewise.
30145 * libio/ioungetc.c: Likewise.
30146 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30147 libc_hidden_def, libc_hidden_weak, NULL are defined.
30148 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30149 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30150 defined.
30151 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30152 definitions.
30153 (_IO_old_file_init_internal): Drop SHARED conditional because it
30154 is implied by SHLIB_COMPAT.
30155 (_IO_old_file_fopen): Call __open directly.
30156 (_IO_old_file_sync): Assume ESPIPE is defined.
30157 (_IO_old_file_write): Call __write directly.
30158 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30159 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30160 Call __fcntl directly.
30161 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30162 (_IO_old_fgetpos): Assume EIO is defined.
30163 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30164 (_IO_old_fgetpos64): Assume EIO is defined.
30165 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30166 (_IO_old_fsetpos): Assume EIO is defined.
30167 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30168 (_IO_old_fsetpos64): Assume EIO is defined.
30169 * libio/oldiopopen.c: Assume _LIBC is defined.
30170 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30171 (_IO_close): Remove macro definitions.
30172 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30173 directly.
30174 (_IO_old_proc_close): Call __close, __waitpid directly.
30175 * libio/put.c: Assume weak_alias is defined.
30176 * libio/stdfiles.c: Assume _LIBC is defined.
30177 * libio/stdio.c: Likewise.
30178 * libio/wfileops.c: Likewise.
30179 (_IO_wfile_sync): Assume ESPIPE is defined.
30180 * libio/wgenops.c: Assume _LIBC is defined.
30181 (save_for_wbackup): Remove internal_function.
30182
30183 2017-08-31 Florian Weimer <fweimer@redhat.com>
30184
30185 * malloc/malloc.c (top_check): Change return type to void. Remove
30186 internal_function.
30187 * malloc/hooks.c (top_check): Likewise.
30188 (malloc_check, realloc_check, memalign_check): Adjust.
30189
30190 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30191
30192 [BZ #21457]
30193 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30194 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30195 sigcontext and namespace requirements.
30196 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30197 * sysdeps/m68k/sys/ucontext.h: Likewise.
30198 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30199 * sysdeps/unix/sysv/linux/aarch64/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/aarch64/ucontext_i.sym (oEXTENSION): Use
30205 __glibc_reserved1 instead of __reserved.
30206 * sysdeps/unix/sysv/linux/alpha/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/alpha/ucontext-offsets.sym: Use
30212 mcontext_t instead of struct sigcontext.
30213 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30214 <bits/sigcontext.h>.
30215 (__ctx): Define earlier.
30216 (mcontext_t): Define structure contents rather than using struct
30217 sigcontext.
30218 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30219 <bits/sigcontext.h>.
30220 (__ctx): Define earlier.
30221 (mcontext_t): Define structure contents rather than using struct
30222 sigcontext.
30223 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30224 mcontext_t instead of struct sigcontext.
30225 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30226 mcontext_t instead of struct sigcontext.
30227 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30228 <bits/sigcontext.h>.
30229 (__ctx): New macro.
30230 (struct __ia64_fpreg_mcontext): New type.
30231 (mcontext_t): Define structure contents rather than using struct
30232 sigcontext.
30233 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30234 (uc_sigmask): Define using __ctx.
30235 (uc_stack): Likewise.
30236 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30237 <bits/sigcontext.h>.
30238 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30239 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30240 <bits/sigcontext.h>.
30241 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30242 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30243 <bits/sigcontext.h>.
30244 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30245 <bits/sigcontext.h>.
30246 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30247 <bits/sigcontext.h>.
30248 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30249 <bits/sigcontext.h>.
30250 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30251 <bits/sigcontext.h>.
30252 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30253 <bits/sigcontext.h>.
30254 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30255 <bits/sigcontext.h>.
30256 (__ctx): Define earlier.
30257 (mcontext_t): Define structure contents rather than using struct
30258 sigcontext.
30259 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30260 <bits/sigcontext.h>. Include <bits/types.h>.
30261 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30262 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30263 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30264 (test-xfail-UNIX98/signal.h/conform): Likewise.
30265 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30266 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30267 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30268 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30269 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30270 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30271 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30272 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30273 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30274
30275 2017-08-30 Florian Weimer <fweimer@redhat.com>
30276
30277 * malloc/dynarray_emplace_enlarge.c
30278 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30279 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30280 * malloc/tst-dynarray.c (test_long_overflow): New function.
30281 (do_test): Call it.
30282
30283 2017-08-30 Florian Weimer <fweimer@redhat.com>
30284
30285 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30286 (set_arena_corrupt): Remove definitions.
30287 (mtrim): Do not check for corrupt arena.
30288 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30289 Likewise.
30290
30291 2017-08-30 Florian Weimer <fweimer@redhat.com>
30292
30293 [BZ #21754]
30294 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30295 check_action.
30296 (ptmalloc_init): Do not set or use check_action.
30297 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30298 call to malloc_printerr. Remove return statement.
30299 (free_check): Likewise. Remove arena unlock.
30300 (top_check): Update comment. Adjust call to malloc_printerr.
30301 Remove heap repair code.
30302 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30303 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30304 (sysmalloc): Adjust call to malloc_printerr.
30305 (munmap_chunk, __libc_realloc): Likewise. Remove return
30306 statement.
30307 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30308 Remove errout label and corresponding gotos.
30309 (_int_free): Likewise. Remove arena unlock.
30310 (do_set_mallopt_check): Do not set check_action.
30311 (malloc_printerr): Adjust parameter list. Do not mark arena as
30312 corrupt.
30313 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30314 comment.
30315 * manual/probes.texi (Memory Allocation Probes): Remove
30316 memory_mallopt_check_action.
30317
30318 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30319
30320 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30321 Use pointer to uint64_t instead of long int for sp.
30322
30323 2017-08-30 Florian Weimer <fweimer@redhat.com>
30324
30325 [BZ #21754]
30326 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30327 without printing a backtrace. Do not leak any information in the
30328 error message.
30329 * manual/memory.texi (Heap Consistency Checking): Update.
30330 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30331
30332 2017-08-30 Florian Weimer <fweimer@redhat.com>
30333
30334 Do not scale NPTL tests with available number of CPUs.
30335 * nptl/tst-cond16.c (count): Set to constant value of 8.
30336 * nptl/tst-cond18.c (count): Likewise.
30337
30338 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30339
30340 [BZ #22035]
30341 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30342 Define to take a second argument that is a macro that
30343 concatentates a suffix, not the suffix itself.
30344 (__CONCAT_d): New macro.
30345 (__CONCAT_f): Likewise.
30346 (__CONCAT_l): Likewise.
30347
30348 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30349
30350 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30351 by child.
30352
30353 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30354 Aurelien Jarno <aurelien@aurel32.net>
30355 Maciej W. Rozycki <macro@imgtec.com>
30356
30357 [BZ #21956]
30358 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30359 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30360 `mips16-syscall6' and `mips16-syscall7'.
30361 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30362 (CFLAGS-mips16-syscall7.c): Remove.
30363 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30364 Remove `__mips16_syscall5', `__mips16_syscall6' and
30365 `__mips16_syscall7'.
30366 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30367 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30368 `__mips_syscall_return'.
30369 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30370 (__mips16_syscall1): Likewise.
30371 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30372 (__mips16_syscall2): Likewise.
30373 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30374 (__mips16_syscall3): Likewise.
30375 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30376 (__mips16_syscall4): Likewise.
30377 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30378 Remove.
30379 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30380 Remove.
30381 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30382 Remove.
30383 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30384 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30385 `__mips16_syscall5'. Remove prototype.
30386 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30387 `__mips16_syscall6'. Remove prototype.
30388 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30389 `__mips16_syscall7'. Remove prototype.
30390 (__nomips16, __mips16_syscall_return): Move to...
30391 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30392 (__nomips16, __mips_syscall_return): ... here.
30393 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30394 `__mips16_syscall_return' to `__mips_syscall_return'.
30395 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30396 `internal_syscall##nr'.
30397 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30398 `internal_syscall##nr'.
30399 (FORCE_FRAME_POINTER): Remove.
30400 (__mips_syscall5): New prototype.
30401 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30402 (__mips_syscall6): New prototype.
30403 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30404 (__mips_syscall7): New prototype.
30405 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30406 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30407 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30408 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30409 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30410 (sysdep_routines): Add libc-do-syscall.
30411 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30412 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30413
30414 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30415
30416 [BZ #21672]
30417 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30418 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30419 (advise_stack_range): New function.
30420 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30421 stack non required to advise_stack_range at allocatestack.c
30422
30423 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30424
30425 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30426
30427 2017-08-29 Florian Weimer <fweimer@redhat.com>
30428
30429 [BZ #22026]
30430 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30431 __end_fct. Mangle __end_fct after setting it to NULL.
30432 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30433 (modules-names, modules-names-tests): Add
30434 tst-gconv-init-failure-mod.
30435 (gconv-modules): New target.
30436 (tst-gconv-init-failure-mod.so): Link against libsupport.
30437 (tst-gconv-init-failure): Depend on gconv-modules,
30438 tst-gconv-init-failure-mod.so.
30439 * iconv/tst-gconv-init-failure-mod.c: New file.
30440 * iconv/tst-gconv-init-failure.c: Likewise.
30441 * iconv/test-gconv-modules: Likewise.
30442
30443 2017-08-29 Florian Weimer <fweimer@redhat.com>
30444
30445 [BZ #22025]
30446 * iconv/gconv_db.c (free_derivation): Remove redundant
30447 parentheses.
30448 (gen_steps): Unconditionally mangle __btowc_fct after
30449 initialization.
30450 (increment_counter): Likewise. Do not call init_fct for internal
30451 modules.
30452
30453 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30454
30455 [BZ #22028]
30456 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30457 (_MSUF_): Remove macro.
30458 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30459 Likewise.
30460 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30461 (__REDIRFROM_X): New macro.
30462 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30463 Likewise.
30464 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30465 (__REDIRTO_X): Likewise.
30466 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30467 arguments.
30468 (__MATH_REDIRCALL_2): Likewise.
30469 (__MATH_REDIRCALL_INTERNAL): Likewise.
30470 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30471 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30472 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30473 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30474 * math/test-finite-macros.c: New file.
30475 * math/Makefile (tests): Add test-finite-macros.
30476 (CFLAGS-test-finite-macros.c): New variable.
30477
30478 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30479 Jeff Law <law@redhat.com>
30480
30481 [BZ #22025]
30482 Mangle NULL pointers in iconv/gconv.
30483 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30484 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30485 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30486 is non-NULL before demangling the end_fct. Check for NULL
30487 end_fct after demangling.
30488 (__gconv_release_step): Demangle the end_fct before checking
30489 it for NULL. Remove assert on __shlibc_handle != NULL.
30490 (gen_steps): Don't check btowc_fct for NULL before mangling.
30491 Demangle init_fct before checking for NULL.
30492 (increment_counter): Likewise.
30493 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30494 end_fct for NULL before mangling.
30495 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30496 for NULL.
30497
30498 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30499
30500 [BZ #21971]
30501 * locale/iso-639.def: add Morisyen.
30502
30503 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30504
30505 [BZ #21930]
30506 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30507 (iszero): New C++ implementation that does not use
30508 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30509 signaling nans are enabled, since __builtin_types_compatible_p
30510 is a C-only feature.
30511 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30512 defined, include ieee754_float128.h for access to the union and
30513 member ieee854_float128.ieee.
30514 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30515 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30516 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30517 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30518 options of test-math-zero on powerpc64le.
30519
30520 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30521
30522 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30523 Change double to float.
30524
30525 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30526
30527 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30528 unconditional.
30529 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30530 conditional code; define contents only for [LIBM_SVID_COMPAT].
30531
30532 2017-08-28 Florian Weimer <fweimer@redhat.com>
30533
30534 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30535 (abi-lp64_be-options): Remove.
30536 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30537 (abi-hard-options): Likewise.
30538 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30539 (abi-o32_hard-options, abi-o32_soft_2008-options)
30540 (abi-o32_hard_2008-options, abi-n32_soft-options)
30541 (abi-n32_hard-options, abi-n32_soft_2008-options)
30542 (abi-n32_hard_2008-options, abi-n64_soft-options)
30543 (abi-n64_hard-options, abi-n64_soft_2008-options)
30544 (abi-n64_hard_2008-options): Likewise.
30545 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30546 (abi-64-v1-options, abi-64-v2-options): Likewise.
30547 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30548 (abi-64-options): Likewise.
30549 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30550 (abi-64-options): Likewise.
30551 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30552 (abi-64-options): Likewise.
30553 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30554 (abi-64-options, abi-x32-options): Likewise.
30555
30556 2017-08-28 Florian Weimer <fweimer@redhat.com>
30557
30558 Store supported list of SYS_* system calls in the source tree.
30559 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30560 (bits/syscall.h): Generate from list file.
30561 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30562 [$(subdir) = misc] (tests): Add tst-syscall-list.
30563 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30564 [$(subdir) = misc] (tst-syscall-list-macros.list)
30565 [$(subdir) = misc] (tst-syscall-list-nr.list)
30566 (tst-syscall-list-sys.list): Helper targets for new
30567 tst-syscall-list test.
30568 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30569 tst-syscall-list.sh.
30570 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30571 target. Do not include bits/syscall.d.
30572 [$(subdir) = misc] (generated): Do not update.
30573 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30574 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30575 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30576 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30577
30578 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30579
30580 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30581 (tst-cxa_atexit, tst-on_exit): Likewise.
30582 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30583 tst-cxa_atexit, and tst-on_exit.
30584 * stdlib/tst-atexit-common.c: New file.
30585 * stdlib/tst-atexit.c: New file.
30586 * stdlib/tst-at_quick_exit.c: New file.
30587 * stdlib/tst-cxa_atexit.c: New file.
30588 * stdlib/tst-on_exit.c: New file.
30589
30590 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30591
30592 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30593 * mach/stack_chk_fail_local.c: New file.
30594 * hurd/stack_chk_fail_local.c: New file.
30595 * mach/Machrules ($(interface-library)-routines): Add
30596 stack_chk_fail_local.
30597 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30598 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30599 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30600 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30601 * hurd/Makefile (CFLAGS-hurdstartup.o,
30602 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30603
30604 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30605
30606 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30607 (index_cpu_*, index_arch_*): Removed.
30608
30609 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30610
30611 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30612 Use uint64_t instead of unsigned long.
30613
30614 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30615
30616 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30617 [__HAVE_DISTINCT_FLOAT128].
30618
30619 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30620 of <bits/math-finite.h>.
30621 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30622 inclusion of <bits/math-finite.h>.
30623 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30624 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30625 __NO_LONG_DOUBLE_MATH].
30626 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30627 (__MATH_REDIRCALL_2): Likewise.
30628 (__MATH_REDIRCALL_INTERNAL): Likewise.
30629 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30630 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30631 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30632
30633 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30634 Remove file.
30635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30636 Likewise.
30637 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30638 Likewise.
30639 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30640 Likewise.
30641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30642 Likewise.
30643 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30644 Likewise.
30645 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30646 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30647 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30648 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30649 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30650 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30651 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30652 w_sqrtf_compat-ppc32.
30653
30654 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30655
30656 * math/math.h [defined __cplusplus] (issignaling): In the long
30657 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30658 is not defined. Call __issignaling, otherwise.
30659
30660 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30661
30662 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30663 syscall definitions and replace __builtin_expect with __glibc_likely.
30664 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30665 syscall.
30666 (SYSCALL_CANCELLABLE): Removedefinition
30667 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30668 definition.
30669 (PSEUDO_END): Likewise.
30670 [IS_IN (libpthread)] (CENABLE): Likewise.
30671 [IS_IN (libpthread)] (CDISABLE): Likewise.
30672 [IS_IN (libc)] (CENABLE): Likewise.
30673 [IS_IN (libc)] (CENABLE): Likewise.
30674 [IS_IN (librt)] (CDISABLE): Likewise.
30675 [IS_IN (librt)] (CDISABLE): Likewise.
30676 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30677 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30678 definition.
30679 (PSEUDO_END): Likewise.
30680 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30681 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30682 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30683 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30684 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30685 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30686 (CENABLE): Likewise.
30687 (CDISABLE): Likewise.
30688 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30689 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30690 defintion.
30691 (PSEUDO_END): Likewise.
30692 [IS_IN (libpthread)] (CENABLE): Likewise.
30693 [IS_IN (libpthread)] (CDISABLE): Likewise.
30694 [IS_IN (libc)] (CENABLE): Likewise.
30695 [IS_IN (libc)] (CENABLE): Likewise.
30696 [IS_IN (librt)] (CDISABLE): Likewise.
30697 [IS_IN (librt)] (CDISABLE): Likewise.
30698 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30699 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30700 definition.
30701 (PSEUDO_END): Likewise.
30702 [IS_IN (libpthread)] (CENABLE): Likewise.
30703 [IS_IN (libpthread)] (CDISABLE): Likewise.
30704 [IS_IN (libc)] (CENABLE): Likewise.
30705 [IS_IN (libc)] (CENABLE): Likewise.
30706 [IS_IN (librt)] (CDISABLE): Likewise.
30707 [IS_IN (librt)] (CDISABLE): Likewise.
30708 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30709 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30710 definition.
30711 (PSEUDO_END): Likewise.
30712 [IS_IN (libpthread)] (CENABLE): Likewise.
30713 [IS_IN (libpthread)] (CDISABLE): Likewise.
30714 [IS_IN (libc)] (CENABLE): Likewise.
30715 [IS_IN (libc)] (CENABLE): Likewise.
30716 [IS_IN (librt)] (CDISABLE): Likewise.
30717 [IS_IN (librt)] (CDISABLE): Likewise.
30718 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30719 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30720 definition.
30721 (PSEUDO_END): Likewise.
30722 [IS_IN (libpthread)] (CENABLE): Likewise.
30723 [IS_IN (libpthread)] (CDISABLE): Likewise.
30724 [IS_IN (libc)] (CENABLE): Likewise.
30725 [IS_IN (libc)] (CENABLE): Likewise.
30726 [IS_IN (librt)] (CDISABLE): Likewise.
30727 [IS_IN (librt)] (CDISABLE): Likewise.
30728 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30729 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30730 definition.
30731 (PSEUDO_END): Likewise.
30732 [IS_IN (libpthread)] (CENABLE): Likewise.
30733 [IS_IN (libpthread)] (CDISABLE): Likewise.
30734 [IS_IN (libc)] (CENABLE): Likewise.
30735 [IS_IN (libc)] (CENABLE): Likewise.
30736 [IS_IN (librt)] (CDISABLE): Likewise.
30737 [IS_IN (librt)] (CDISABLE): Likewise.
30738 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30739 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30740 definition.
30741 (PSEUDO_END): Likewise.
30742 [IS_IN (libpthread)] (CENABLE): Likewise.
30743 [IS_IN (libpthread)] (CDISABLE): Likewise.
30744 [IS_IN (libc)] (CENABLE): Likewise.
30745 [IS_IN (libc)] (CENABLE): Likewise.
30746 [IS_IN (librt)] (CDISABLE): Likewise.
30747 [IS_IN (librt)] (CDISABLE): Likewise.
30748 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30749 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30750 Remove definition.
30751 (PSEUDO_END): Likewise.
30752 [IS_IN (libpthread)] (CENABLE): Likewise.
30753 [IS_IN (libpthread)] (CDISABLE): Likewise.
30754 [IS_IN (libc)] (CENABLE): Likewise.
30755 [IS_IN (libc)] (CENABLE): Likewise.
30756 [IS_IN (librt)] (CDISABLE): Likewise.
30757 [IS_IN (librt)] (CDISABLE): Likewise.
30758 (SINGLE_THREAD_P): Likewise.
30759 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30760 definition.
30761 (PSEUDO_END): Likewise.
30762 [IS_IN (libpthread)] (CENABLE): Likewise.
30763 [IS_IN (libpthread)] (CDISABLE): Likewise.
30764 [IS_IN (libc)] (CENABLE): Likewise.
30765 [IS_IN (libc)] (CENABLE): Likewise.
30766 [IS_IN (librt)] (CDISABLE): Likewise.
30767 [IS_IN (librt)] (CDISABLE): Likewise.
30768 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30769 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30770 definition.
30771 (PSEUDO_END): Likewise.
30772 [IS_IN (libpthread)] (CENABLE): Likewise.
30773 [IS_IN (libpthread)] (CDISABLE): Likewise.
30774 [IS_IN (libc)] (CENABLE): Likewise.
30775 [IS_IN (libc)] (CENABLE): Likewise.
30776 [IS_IN (librt)] (CDISABLE): Likewise.
30777 [IS_IN (librt)] (CDISABLE): Likewise.
30778 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30779 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30780 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30781 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30782 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30783 definition.
30784 (PSEUDO_END): Likewise.
30785 [IS_IN (libpthread)] (CENABLE): Likewise.
30786 [IS_IN (libpthread)] (CDISABLE): Likewise.
30787 [IS_IN (libc)] (CENABLE): Likewise.
30788 [IS_IN (libc)] (CENABLE): Likewise.
30789 [IS_IN (librt)] (CDISABLE): Likewise.
30790 [IS_IN (librt)] (CDISABLE): Likewise.
30791 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30792 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30793 definition.
30794 (PSEUDO_END): Likewise.
30795 [IS_IN (libpthread)] (CENABLE): Likewise.
30796 [IS_IN (libpthread)] (CDISABLE): Likewise.
30797 [IS_IN (libc)] (CENABLE): Likewise.
30798 [IS_IN (libc)] (CENABLE): Likewise.
30799 [IS_IN (librt)] (CDISABLE): Likewise.
30800 [IS_IN (librt)] (CDISABLE): Likewise.
30801 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30802 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30803 definition.
30804 (PSEUDO_END): Likewise.
30805 [IS_IN (libpthread)] (CENABLE): Likewise.
30806 [IS_IN (libpthread)] (CDISABLE): Likewise.
30807 [IS_IN (libc)] (CENABLE): Likewise.
30808 [IS_IN (libc)] (CENABLE): Likewise.
30809 [IS_IN (librt)] (CDISABLE): Likewise.
30810 [IS_IN (librt)] (CDISABLE): Likewise.
30811 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30812 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30813 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30814 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30815 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30816 definition.
30817 (PSEUDO_END): Likewise.
30818 [IS_IN (libpthread)] (CENABLE): Likewise.
30819 [IS_IN (libpthread)] (CDISABLE): Likewise.
30820 [IS_IN (libc)] (CENABLE): Likewise.
30821 [IS_IN (libc)] (CENABLE): Likewise.
30822 [IS_IN (librt)] (CDISABLE): Likewise.
30823 [IS_IN (librt)] (CDISABLE): Likewise.
30824 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30825 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30826 definition.
30827 (PSEUDO_END): Likewise.
30828 [IS_IN (libpthread)] (CENABLE): Likewise.
30829 [IS_IN (libpthread)] (CDISABLE): Likewise.
30830 [IS_IN (libc)] (CENABLE): Likewise.
30831 [IS_IN (libc)] (CENABLE): Likewise.
30832 [IS_IN (librt)] (CDISABLE): Likewise.
30833 [IS_IN (librt)] (CDISABLE): Likewise.
30834 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30835
30836 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30837
30838 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30839
30840 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30841
30842 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30843
30844 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30845
30846 [BZ #21982]
30847 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30848 middle and outer with size_t instead of int. Repleace %d and
30849 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30850 "MAX (outer, nchars - 64)" to support unsigned outer and
30851 nchars. Also exit loop when outer == 0.
30852
30853 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30854
30855 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30856 * include/signal.h (__sigsuspend_nocancel): Likewise.
30857 * include/time.h (__nanosleep_nocancel): Likewise.
30858 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30859 * login/utmp_file.c: Include non cancellable syscall header.
30860 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30861 prototype.
30862
30863 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30864
30865 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30866 .byte sequences with AVX512F instructions.
30867 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30868 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30869 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30870 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30871 Likewise.
30872 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30873 Likewise.
30874
30875 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30876 Steve Ellcey <sellcey@cavium.com>
30877
30878 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30879 Use PTR_REG macro in cmp instruction.
30880
30881 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30882
30883 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30884 Change the return type of the ifunc resolver to match the return
30885 type of the target function.
30886
30887 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30888
30889 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30890 (preadv64): Likewise.
30891 (pwrite64(: Likewise.
30892 (pwritev64): Likewise.
30893
30894 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30895 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30896 (LOAD_ARGS_0): Likewise.
30897 (LOAD_ARGS_1): Likewise.
30898 (LOAD_ARGS_2): Likewise.
30899 (LOAD_ARGS_3): Likewise.
30900 (LOAD_ARGS_4): Likewise.
30901 (LOAD_ARGS_5): Likewise.
30902 (LOAD_ARGS_6): Likewise.
30903 (LOAD_REGS_0): Likewise.
30904 (LOAD_REGS_1): Likewise.
30905 (LOAD_REGS_2): Likewise.
30906 (LOAD_REGS_3): Likewise.
30907 (LOAD_REGS_4): Likewise.
30908 (LOAD_REGS_5): Likewise.
30909 (LOAD_REGS_6): Likewise.
30910 (ASM_ARGS_0): Likewise.
30911 (ASM_ARGS_1): Likewise.
30912 (ASM_ARGS_2): Likewise.
30913 (ASM_ARGS_3): Likewise.
30914 (ASM_ARGS_4): Likewise.
30915 (ASM_ARGS_5): Likewise.
30916 (ASM_ARGS_6): Likewise.
30917 (LOAD_ARGS_TYPES_1): Likewise.
30918 (LOAD_ARGS_TYPES_2): Likewise.
30919 (LOAD_ARGS_TYPES_3): Likewise.
30920 (LOAD_ARGS_TYPES_4): Likewise.
30921 (LOAD_ARGS_TYPES_5): Likewise.
30922 (LOAD_ARGS_TYPES_6): Likewise.
30923 (LOAD_REGS_TYPES_1): Likewise.
30924 (LOAD_REGS_TYPES_2): Likewise.
30925 (LOAD_REGS_TYPES_3): Likewise.
30926 (LOAD_REGS_TYPES_4): Likewise.
30927 (LOAD_REGS_TYPES_5): Likewise.
30928 (LOAD_REGS_TYPES_6): Likewise.
30929 (TYPEFY): New define.
30930 (ARGIFY): Likewise.
30931 (internal_syscall0): Likewise.
30932 (internal_syscall1): Likewise.
30933 (internal_syscall2): Likewise.
30934 (internal_syscall3): Likewise.
30935 (internal_syscall4): Likewise.
30936 (internal_syscall5): Likewise.
30937 (internal_syscall6): Likewise.
30938 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30939 (INTERNAL_SYSCALL_NCS): Remove define.
30940 (internal_syscall1): Add define.
30941
30942 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30943
30944 * math/w_remainder_compat.c: Remove duplicate inclusion of
30945 math-svid-compat.h.
30946 * math/w_remainderf_compat.c: Likewise.
30947 * math/w_remainderl_compat.c: Likewise.
30948
30949 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30950
30951 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30952
30953 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30954
30955 [BZ #21684]
30956 * math/tgmath.h (__floating_type): Simplify definitions.
30957 (__real_integer_type): New macro.
30958 (__complex_integer_type): Likewise.
30959 (__expr_is_real): Likewise.
30960 (__tgmath_real_type_sub): Update comment to describe handling of
30961 complex types.
30962 (__tgmath_complex_type_sub): New macro.
30963 (__tgmath_complex_type): Likewise.
30964 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30965 (__TGMATH_CF128): Use __expr_is_real.
30966 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30967 __expr_is_real.
30968 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30969 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30970 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30971 integer types.
30972
30973 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30974
30975 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30976 macro.
30977 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30978 alias.
30979 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30980 Likewise.
30981
30982 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30983 nanosleep_not_cancel with __nanosleep_nocancel.
30984 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30985 (__nanosleep_nocancel): New macro.
30986 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30987 function.
30988 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30989 macro.
30990 (__nanosleep_nocancel): New prototype.
30991
30992 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30993 pause_not_cancel with __pause_nocancel.
30994 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30995 (__pause_nocancel): New macro.
30996 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30997 macro.
30998 (__pause_nocancel): New prototype.
30999 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
31000
31001 2017-08-22 Martin Sebor <msebor@redhat.com>
31002
31003 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
31004 to return a pointer to the same type as the target function.
31005
31006 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31007
31008 [BZ #18822]
31009 [BZ #21986]
31010 * include/printf.h (__printf_fphex): Add attribute_hidden.
31011 (__guess_grouping): New prototype.
31012 * stdio-common/printf_fp.c (__guess_grouping): Removed.
31013 * stdio-common/reg-printf.c (__register_printf_specifier): Add
31014 libc_hidden_proto and libc_hidden_def.
31015 * stdlib/strfmon_l.c (__guess_grouping): Removed.
31016 (__vstrfmon_l): Remove the third argument passed to
31017 __guess_grouping.
31018
31019 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31020
31021 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31022 definition for issignaling that does not rely on __MATH_TG,
31023 since __MATH_TG uses __builtin_types_compatible_p, which is only
31024 available in C mode.
31025 (CFLAGS-test-math-issignaling.cc): New variable.
31026 * math/Makefile [CXX] (tests): Add test-math-issignaling.
31027 * math/test-math-issignaling.cc: New test for C++ implementation
31028 of type-generic issignaling.
31029 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31030 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31031 options of test-math-issignaling on powerpc64le.
31032
31033 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31034
31035 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31036 building libc.a.
31037 (hidden_proto): Likewise.
31038 (hidden_tls_proto): Likewise.
31039 (__hidden_proto): Likewise.
31040
31041 2017-08-22 Florian Weimer <fweimer@redhat.com>
31042
31043 math: Statically link tests of internal functionality.
31044 * math/Makefile (tests): Remove atest-exp, atest-sincos,
31045 atest-exp2.
31046 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31047 (gmp-objs): Remove assignment.
31048 (atest-exp, atest-sincos, atest-exp2): Remove targets.
31049
31050 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31051
31052 [BZ #21987]
31053 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31054 and copy to ...
31055 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31056 ... here.
31057 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31058 ... and here.
31059
31060 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31061 variable definitions above inclusion of ../Rules.
31062
31063 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31064
31065 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31066 case calling __builtin_unreachable.
31067
31068 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31069
31070 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31071 __waitpid_nocancel.
31072 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31073 (__waitpid_nocancel): New macro.
31074 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31075 macro.
31076 (__waitpid_nocancel): Replace macro with a function.
31077 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31078 function.
31079
31080 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31081 __fcntl_nocancel.
31082 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31083 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31084
31085 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31086 __writev_nocancel_nostatus.
31087 (write_call_graph): Likewise.
31088 (write_bb_counts): Likewise.
31089 * resolv/herror.c (herror): Likewise.
31090 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31091 macro.
31092 (__writev_nocancel_nostatus): New macro.
31093 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31094 Remove macro.
31095 (__writev_nocancel_nostatus): New function.
31096
31097 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31098
31099 Revert:
31100 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31101
31102 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31103 building libc.a.
31104 (hidden_proto): Likewise.
31105 (hidden_tls_proto): Likewise.
31106 (__hidden_proto): Likewise.
31107
31108 [BZ #21973]
31109 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31110 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31111 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31112 Likewise.
31113 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31114 Likewise.
31115 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31116 Likewise.
31117 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31118 Likewise.
31119 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31120 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31121 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31122 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31123 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31124 GLIBC_2.0 sqrtl symbol.
31125
31126 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31127 [__USE_MISC] (_LIB_VERSION): Likewise.
31128 [__USE_MISC] (struct exception): Likewise.
31129 [__USE_MISC] (matherr): Likewise.
31130 [__USE_MISC] (DOMAIN): Likewise.
31131 [__USE_MISC] (SING): Likewise.
31132 [__USE_MISC] (OVERFLOW): Likewise.
31133 [__USE_MISC] (UNDERFLOW): Likewise.
31134 [__USE_MISC] (TLOSS): Likewise.
31135 [__USE_MISC] (PLOSS): Likewise.
31136 [__USE_MISC] (HUGE): Likewise.
31137 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31138 * math/math-svid-compat.h: New file.
31139 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31140 and matherrl.
31141 * include/math.h [!_ISOMAC] (__matherr): Remove.
31142 * manual/arith.texi (FP Exceptions): Do not document matherr.
31143 * math/Makefile (tests): Change test-matherr to test-matherr-3.
31144 (tests-internal): New variable.
31145 (install-lib): Do not add libieee.a.
31146 (non-lib.a): Likewise.
31147 (extra-objs): Do not add libieee.a and ieee-math.o.
31148 (CPPFLAGS-s_lib_version.c): Remove variable.
31149 ($(objpfx)libieee.a): Remove rule.
31150 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31151 * math/ieee-math.c: Remove.
31152 * math/libm-test-support.c (matherr): Remove.
31153 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31154 and license notices. Include <math-svid-compat.h> and
31155 <shlib-compat.h>.
31156 (matherr): Undefine as macro. Use compat_symbol_reference.
31157 (_LIB_VERSION): Likewise.
31158 * math/test-matherr-2.c: New file.
31159 * math/test-matherr-3.c: Likewise.
31160 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31161 declaration.
31162 (__kernel_standard_f): Likewise.
31163 (__kernel_standard_l): Likewise.
31164 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31165 <math_private.h>. Include <math-svid-compat.h>.
31166 (_LIB_VERSION): Undefine as macro.
31167 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31168 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31169 [LIBM_SVID_COMPAT], use compat_symbol.
31170 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31171 <math_private.h>. Include <math-svid-compat.h>.
31172 (matherr): Undefine as macro.
31173 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31174 compat_symbol.
31175 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31176 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31177 compat_symbol_reference.
31178 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31179 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31180 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31181 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31182 (MATHERR_D): Remove declaration.
31183 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31184 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31185 [LIBM_BUILD] (pmatherrf): Likewise.
31186 [LIBM_BUILD] (pmatherr): Likewise.
31187 [LIBM_BUILD] (pmatherrl): Likewise.
31188 (DOMAIN): Likewise.
31189 (SING): Likewise.
31190 (OVERFLOW): Likewise.
31191 (UNDERFLOW): Likewise.
31192 (TLOSS): Likewise.
31193 (PLOSS): Likewise.
31194 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31195 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31196 compat_symbol.
31197 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31198 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31199 compat_symbol.
31200 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31201 * math/w_acos_compat.c: Likewise.
31202 * math/w_acosf_compat.c: Likewise.
31203 * math/w_acosh_compat.c: Likewise.
31204 * math/w_acoshf_compat.c: Likewise.
31205 * math/w_acoshl_compat.c: Likewise.
31206 * math/w_acosl_compat.c: Likewise.
31207 * math/w_asin_compat.c: Likewise.
31208 * math/w_asinf_compat.c: Likewise.
31209 * math/w_asinl_compat.c: Likewise.
31210 * math/w_atan2_compat.c: Likewise.
31211 * math/w_atan2f_compat.c: Likewise.
31212 * math/w_atan2l_compat.c: Likewise.
31213 * math/w_atanh_compat.c: Likewise.
31214 * math/w_atanhf_compat.c: Likewise.
31215 * math/w_atanhl_compat.c: Likewise.
31216 * math/w_cosh_compat.c: Likewise.
31217 * math/w_coshf_compat.c: Likewise.
31218 * math/w_coshl_compat.c: Likewise.
31219 * math/w_exp10_compat.c: Likewise.
31220 * math/w_exp10f_compat.c: Likewise.
31221 * math/w_exp10l_compat.c: Likewise.
31222 * math/w_exp2_compat.c: Likewise.
31223 * math/w_exp2f_compat.c: Likewise.
31224 * math/w_exp2l_compat.c: Likewise.
31225 * math/w_fmod_compat.c: Likewise.
31226 * math/w_fmodf_compat.c: Likewise.
31227 * math/w_fmodl_compat.c: Likewise.
31228 * math/w_hypot_compat.c: Likewise.
31229 * math/w_hypotf_compat.c: Likewise.
31230 * math/w_hypotl_compat.c: Likewise.
31231 * math/w_j0_compat.c: Likewise.
31232 * math/w_j0f_compat.c: Likewise.
31233 * math/w_j0l_compat.c: Likewise.
31234 * math/w_j1_compat.c: Likewise.
31235 * math/w_j1f_compat.c: Likewise.
31236 * math/w_j1l_compat.c: Likewise.
31237 * math/w_jn_compat.c: Likewise.
31238 * math/w_jnf_compat.c: Likewise.
31239 * math/w_jnl_compat.c: Likewise.
31240 * math/w_lgamma_main.c: Likewise.
31241 * math/w_lgamma_r_compat.c: Likewise.
31242 * math/w_lgammaf_main.c: Likewise.
31243 * math/w_lgammaf_r_compat.c: Likewise.
31244 * math/w_lgammal_main.c: Likewise.
31245 * math/w_lgammal_r_compat.c: Likewise.
31246 * math/w_log10_compat.c: Likewise.
31247 * math/w_log10f_compat.c: Likewise.
31248 * math/w_log10l_compat.c: Likewise.
31249 * math/w_log2_compat.c: Likewise.
31250 * math/w_log2f_compat.c: Likewise.
31251 * math/w_log2l_compat.c: Likewise.
31252 * math/w_log_compat.c: Likewise.
31253 * math/w_logf_compat.c: Likewise.
31254 * math/w_logl_compat.c: Likewise.
31255 * math/w_pow_compat.c: Likewise.
31256 * math/w_powf_compat.c: Likewise.
31257 * math/w_powl_compat.c: Likewise.
31258 * math/w_remainder_compat.c: Likewise.
31259 * math/w_remainderf_compat.c: Likewise.
31260 * math/w_remainderl_compat.c: Likewise.
31261 * math/w_scalb_compat.c: Likewise.
31262 * math/w_scalbf_compat.c: Likewise.
31263 * math/w_scalbl_compat.c: Likewise.
31264 * math/w_sinh_compat.c: Likewise.
31265 * math/w_sinhf_compat.c: Likewise.
31266 * math/w_sinhl_compat.c: Likewise.
31267 * math/w_sqrt_compat.c: Likewise.
31268 * math/w_sqrtf_compat.c: Likewise.
31269 * math/w_sqrtl_compat.c: Likewise.
31270 * math/w_tgamma_compat.c: Likewise.
31271 * math/w_tgammaf_compat.c: Likewise.
31272 * math/w_tgammal_compat.c: Likewise.
31273 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31274 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31275 * sysdeps/ieee754/k_standard.c: Likewise.
31276 * sysdeps/ieee754/k_standardf.c: Likewise.
31277 * sysdeps/ieee754/k_standardl.c: Likewise.
31278 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31279 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31280 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31281 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31282 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31283 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31284 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31285 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31286 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31287 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31288 Likewise.
31289 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31290 Likewise.
31291 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31292 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31293 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31294 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31295
31296 2017-08-21 Florian Weimer <fweimer@redhat.com>
31297
31298 [BZ #21864]
31299 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31300 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31301 Move before inclusion of ../Rules.
31302
31303 2017-08-21 Florian Weimer <fweimer@redhat.com>
31304
31305 [BZ #21972]
31306 * assert/assert.h (assert): Use static_cast (bool) for C++.
31307 Use the ternary operator in the warning branch for GNU C.
31308 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31309 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31310 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31311 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31312 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31313
31314 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31315
31316 [BZ #18822]
31317 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31318 (__syscall_clock_gettime): Add attribute_hidden.
31319 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31320 (__start_context): Likewise.
31321
31322 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31323
31324 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31325 building libc.a.
31326 (hidden_proto): Likewise.
31327 (hidden_tls_proto): Likewise.
31328 (__hidden_proto): Likewise.
31329
31330 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31331
31332 * include/libc-symbols.h (attribute_hidden): Enable hidden
31333 visibility in libc.a compiled with PIE.
31334
31335 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31336
31337 [BZ #18822]
31338 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31339 Add attribute_hidden.
31340
31341 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31342
31343 [BZ #21864]
31344 * Makerules (all-nonlib): Add $(others-extras).
31345 * catgets/Makefile (others-extras): New.
31346 * elf/Makefile (others-extras): Likewise.
31347 * nss/Makefile (others-extras): Likewise.
31348
31349 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31350
31351 [BZ #18822]
31352 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31353 * elf/dl-open.c: Include <libc-internal.h>.
31354 (__libc_multiple_libcs): Removed.
31355 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31356 <hp-timing.h>.
31357 * include/libc-internal.h (__libc_multiple_libcs): New.
31358 * misc/sbrk.c: Include <libc-internal.h>.
31359 (__libc_multiple_libcs): Removed.
31360
31361 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31362
31363 [BZ #18822]
31364 * grp/initgroups.c (__nss_group_database): Removed.
31365 (__nss_initgroups_database): Likewise.
31366 * nscd/gai.c (__nss_hosts_database): Likewise.
31367 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31368 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31369 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31370 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31371 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31372 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31373 attribute_hidden.
31374 * nss/nsswitch.c (__nss_database_custom): Define only if
31375 USE_NSCD is defined.
31376 (__nss_configure_lookup): Use __nss_database_custom only if
31377 USE_NSCD is defined.
31378 * nss/nsswitch.h (__nss_database_custom): Declare only if
31379 USE_NSCD is defined. Add attribute_hidden.
31380 (__nss_setent): Add attribute_hidden.
31381 (__nss_endent): Likewise.
31382 (__nss_getent_r): Likewise.
31383 (__nss_getent): Likewise.
31384 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31385
31386 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31387
31388 [BZ #18822]
31389 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31390 libc_hidden_proto and libc_hidden_def.
31391
31392 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31393
31394 [BZ #18822]
31395 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31396 Add libc_hidden_proto.
31397 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31398 Add libc_hidden_def.
31399
31400 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31401
31402 [BZ #21974]
31403 * gmon/Makefile (routines): Remove bb_init_func and
31404 bb_exit_func.
31405 (elide-routines.os): Removed.
31406 * gmon/bb_exit_func.c: Likewise.
31407 * gmon/bb_init_func.c: Likewise.
31408 * include/sys/gmon.h (__bb): Likewise.
31409 (__bb_init_func): Likewise.
31410 (__bb_exit_func): Likewise.
31411 * sysdeps/alpha/bb_init_func.S: Likewise.
31412
31413 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31414
31415 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31416 * include/setjmp.h (____longjmp_chk): Here. Add
31417 attribute_hidden.
31418
31419 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31420
31421 [BZ #18822]
31422 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31423 attribute_hidden.
31424 (__strspn_sse2): Likewise.
31425
31426 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31427
31428 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31429 (close_not_cancel_no_status): Likewise.
31430 (__close_nocancel): New macro.
31431 (__close_nocancel_nostatus): Likewise.
31432 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31433 macro.
31434 (close_not_cancel): Likewise.
31435 (close_not_cancel_no_status): Likewise.
31436 (__close_nocancel): New prototype.
31437 (__close_nocancel_nostatus): New function.
31438 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31439 * catgets/open_catalog.c (__open_catalog): Replace
31440 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31441 * gmon/gmon.c (write_gmon): Likewise.
31442 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31443 * intl/loadmsgcat.c (close): Likewise.
31444 * io/ftw.c (open_dir_stream): Likewise.
31445 (ftw_startup): Likewise.
31446 * libio/fileops.c (_IO_file_open): Likewise.
31447 (_IO_file_close_mmap): Likewise.
31448 (_IO_file_close): Likewise.
31449 * libio/iopopen.c (_IO_dup2): Likewise.
31450 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31451 * locale/loadlocale.c (_nl_load_locale): Likewise.
31452 * login/utmp_file.c (pututline_file): Likewise.
31453 (endutent_file): Likewise.
31454 * misc/daemon.c (daemon): Likewise.
31455 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31456 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31457 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31458 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31459 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31460 * nscd/nscd_helper.c (open_socket): Likewise.
31461 (__nscd_open_socket): Likewise.
31462 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31463 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31464 (__nscd_innetgr): Likewise.
31465 * nss/nss_db/db-open.c (internal_setent): Likewise.
31466 * resolv/res-close.c (__res_iclose): Likewise.
31467 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31468 * sysdeps/posix/closedir.c (__closedir): Likewise.
31469 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31470 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31471 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31472 (opendir_tail): Likewise.
31473 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31474 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31475 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31476 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31477 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31478 (gethostid): Likewise.
31479 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31480 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31481 Likewise.
31482 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31483 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31484 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31485 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31486 Likewise.
31487 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31488 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31489 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31490 Likewise.
31491 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31492 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31493 Likewise.
31494 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31495 Likewise.
31496 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31497 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31498 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31499 __close_nocancel.
31500
31501 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31502 (openat_not_cancel_3): Likewise.
31503 (openat64_not_cancel_3): Likewise).
31504 (openat_not_cancel_3): Likewise).
31505 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31506 macro.
31507 (openat_not_cancel_3): Likewise.
31508 (openat64_not_cancel): Likewise.
31509 (openat64_not_cancel_3): Likewise.
31510 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31511 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31512 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31513 __open{64}_nocancel.
31514 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31515 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31516 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31517
31518 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31519
31520 [BZ #18822]
31521 * include/argz.h (__argz_create_sep): New function prototype.
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 * string/argz.h (__argz_create_sep): Removed.
31529 (__argz_append): Likewise.
31530 (__argz_add): Likewise.
31531 (__argz_add_sep): Likewise.
31532 (__argz_delete): Likewise.
31533 (__argz_insert): Likewise.
31534 (__argz_replace): Likewise.
31535
31536 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31537
31538 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31539 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31540 (GNU_PROPERTY_STACK_SIZE): Likewie.
31541 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31542 (GNU_PROPERTY_LOPROC): Likewise.
31543 (GNU_PROPERTY_HIPROC): Likewise.
31544 (GNU_PROPERTY_LOUSER): Likewise.
31545 (GNU_PROPERTY_HIUSER): Likewise.
31546 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31547 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31548 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31549 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31550 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31551 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31552 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31553 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31554 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31555 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31556 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31557 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31558 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31559 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31560 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31561 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31562 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31563 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31564 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31565 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31566 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31567 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31568 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31569
31570 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31571
31572 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31573 in C++ mode.
31574
31575 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31576
31577 [BZ #21930]
31578 * math/math.h (isinf): Check if in C or C++ mode before using
31579 __builtin_types_compatible_p, since this is a C mode feature.
31580
31581 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31582
31583 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31584 (__write_nocancel): New macro.
31585 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31586 Rewrite as a function prototype.
31587 (write_not_cancel): Remove macro.
31588 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31589 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31590 (write_gmon): Likewise.
31591 * libio/fileops.c (_IO_new_file_write): Likewise.
31592 * login/utmp_file.c (pututline_file): Likewise.
31593 (updwtmp_file): Likewise.
31594 * stdio-common/psiginfo.c (psiginfo): Likewise.
31595 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31596 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31597 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31598 Likewise.
31599 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31600 Likewise.
31601
31602 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31603 (__read_nocancel): New macro.
31604 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31605 __read_nocancel.
31606 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31607 macro.
31608 (__read_nocancel): New prototype.
31609 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31610 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31611 with __read_nocancel.
31612 * intl/loadmsgcat.c (read): Likewise.
31613 * libio/fileops.c (_IO_file_read): Likewise.
31614 * locale/loadlocale.c (_nl_load_locale): Likewise.
31615 * login/utmp_file.c (getutent_r_file): Likewise.
31616 (internal_getut_r): Likewise.
31617 (getutline_r_file): Likewise.
31618 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31619 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31620 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31621 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31622 Likewise.
31623 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31624 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31625 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31626 Likewise.
31627 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31628 Likewise.
31629 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31630 Likewise.
31631 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31632 Likewise.
31633 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31634
31635 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31636
31637 [BZ #21966]
31638 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31639 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31640 usable.
31641
31642 2017-08-17 DJ Delorie <dj@redhat.com>
31643
31644 * bug17079.c: Update to new test harness.
31645 * test-digits-dots.c: Likewise.
31646 * test-netdb.c: Likewise.
31647 * tst-field.c: Likewise.
31648 * tst-nss-getpwent.c: Likewise.
31649 * tst-nss-static.c: Likewise.
31650 * tst-nss-test1.c: Likewise.
31651 * tst-nss-test2.c: Likewise.
31652 * tst-nss-test3.c: Likewise.
31653 * tst-nss-test4.c: Likewise.
31654 * tst-nss-test5.c: Likewise.
31655
31656 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31657
31658 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31659 (open_not_cancel_2): Likewise.
31660 (open_nocancel): New macro.
31661 (open64_nocancel): Likewise.
31662 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31663 (open_not_cancel_2): Likewise.
31664 (__open_nocancel): New prototype.
31665 (__open64_nocancel): Likewise.
31666 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31667 __open_nocancel.
31668 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31669 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31670 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31671 with __open_nocancel.
31672 * csu/check_fds.c (check_one_fd): Likewise.
31673 * gmon/gmon.c (write_gmon): Likewise.
31674 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31675 * intl/loadmsgcat.c (open): Likewise.
31676 * libio/fileops.c (_IO_file_open): Likewise.
31677 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31678 * locale/loadlocale.c (_nl_load_locale): Likewise.
31679 * login/utmp_file.c (setutent_file): Likewise.
31680 * misc/daemon.c (daemon): Likewise.
31681 * nss/nss_db/db-open.c (internal_setent): Likewise.
31682 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31683 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31684 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31685 (__opendir): Likewise.
31686 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31687 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31688 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31689 (gethostid): Likewise.
31690 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31691 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31692 Likewise.
31693 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31694 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31695 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31696 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31697 Likewise.
31698 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31699 Likewise.
31700 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31701 Likewise.
31702 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31703 Likewise.
31704 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31705 Likewise.
31706 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31707 Likewise.
31708 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31709 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31710
31711 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31712
31713 * benchtests/bench-skeleton.c (main): Add support for
31714 latency benchmarking.
31715 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31716
31717 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31718
31719 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31720 the startup object.
31721
31722 2017-08-17 Florian Weimer <fweimer@redhat.com>
31723
31724 * include/sys/socket.h (__opensock): Remove internal_function.
31725 * socket/opensock.c (__opensock): Likewise.
31726 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31727
31728 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31729
31730 [BZ #21944]
31731 * signal/bits/types/__sigval_t.h: New file.
31732 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31733 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31734 and define sigval_t using __sigval_t.
31735 * include/bits/types/__sigval_t.h: New file.
31736 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31737 instead of <bits/types/__sigval_t.h>.
31738 (struct sigevent): Use __sigval_t instead of sigval_t.
31739 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31740 instead of <bits/types/__sigval_t.h>.
31741 (siginfo_t): Use __sigval_t instead of sigval_t.
31742 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31743 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31744 (struct sigevent): Use __sigval_t instead of sigval_t.
31745 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31746 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31747 (siginfo_t): Use __sigval_t instead of sigval_t.
31748 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31749
31750 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31751
31752 * NEWS: Remove "[Add new features here]" for 2.27.
31753
31754 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31755
31756 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31757 libc.so.
31758
31759 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31760
31761 * NEWS: Mention x86-64 FMA optimization.
31762
31763 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31764
31765 [BZ #21912]
31766 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31767 Add e_expf-fma.
31768 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31769 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31770 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31771
31772 2017-08-16 Andreas Schwab <schwab@suse.de>
31773
31774 [BZ #16750]
31775 CVE-2009-5064
31776 * elf/ldd.bash.in: Never run file directly.
31777
31778 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31779
31780 [BZ #21955]
31781 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31782 (L(SP_INF_0)): Likewise.
31783
31784 2017-08-15 Florian Weimer <fweimer@redhat.com>
31785
31786 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31787 run-built-tests.
31788
31789 2017-08-15 Florian Weimer <fweimer@redhat.com>
31790
31791 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31792 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31793 BROKEN_THREAD_SIGNALS code.
31794 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31795 request_list): Remove caller_pid member used for
31796 BROKEN_THREAD_SIGNALS.
31797 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31798 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31799 Remove BROKEN_THREAD_SIGNALS support.
31800 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31801 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31802
31803 2017-08-15 Florian Weimer <fweimer@redhat.com>
31804
31805 * gmon/Makefile (tests): Add tst-gmon.
31806 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31807 Set.
31808 (tests-special): Add tst-gmon-prof.out.
31809 (tst-gmon.out): Depend on clean-tst-gmon-data.
31810 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31811 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31812 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31813 startup object.
31814 * aclocal.m4 (GPROF): Set and substitute.
31815 * config.amke.in (GPROF): Set.
31816 * configure: Regenerate.
31817
31818 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31819
31820 * elf/elf.h A (NT_PPC_TAR): New macro.
31821 (NT_PPC_PPR): Likewise.
31822 (NT_PPC_DSCR): Likewise.
31823 (NT_PPC_EBB): Likewise.
31824 (NT_PPC_PMU): Likewise.
31825 (NT_PPC_TM_CGPR): Likewise.
31826 (NT_PPC_TM_CFPR): Likewise.
31827 (NT_PPC_TM_CVMX): Likewise.
31828 (NT_PPC_TM_CVSX): Likewise.
31829 (NT_PPC_TM_SPR): Likewise.
31830 (NT_PPC_TM_CTAR): Likewise.
31831 (NT_PPC_TM_CPPR): Likewise.
31832 (NT_PPC_TM_CDSCR): Likewise.
31833
31834 2017-08-15 Florian Weimer <fweimer@redhat.com>
31835
31836 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31837 regparm (2) instead of internal_function.
31838 (_MCOUNT_DECL): Adjust.
31839
31840 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31841
31842 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31843 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31844
31845 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31846
31847 * conform/data/sys/wait.h-data (si_value): Do not expect for
31848 XPG42.
31849
31850 2017-08-14 Florian Weimer <fweimer@redhat.com>
31851
31852 [BZ #21962]
31853 NSS: Create stubs for accidentally exported lookup functions.
31854 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31855 Remove declaration.
31856 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31857 (ether_hostton): Call __nss_ethers_lookup2 instead.
31858 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31859 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31860 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31861 (setup): Call __nss_netgroup_lookup2 instead.
31862 * nss/Makefile (routines): Add compat-lookup.
31863 * nss/Versions (GLIBC_2.27): Add symbol version.
31864 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31865 (DB_COMPAT_FCT): Remove.
31866 * nss/compat-lookup.c: New file.
31867 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31868 from databases.def.
31869 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31870 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31871 (netname2user): Call __nss_publickey_lookup2 instead.
31872 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31873 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31874 instead.
31875
31876 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31877 Sergei Trofimovich <slyfox@inbox.ru>
31878
31879 [BZ #21908]
31880 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31881 Rename to MMAP2_PAGE_UNIT.
31882 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31883 __OFF_T_MATCHES_OFF64_T is not defined.
31884 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31885 uint64_t.
31886 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31887 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31888
31889 2017-08-14 Florian Weimer <fweimer@redhat.com>
31890
31891 i386: Do not set internal_function.
31892 * config.h.in (USE_REGPARMS, internal_function): Remove.
31893 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31894 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31895
31896 2017-08-14 Florian Weimer <fweimer@redhat.com>
31897
31898 * elf/dl-init.c (_dl_init): Remove internal_function.
31899 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31900 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31901
31902 2017-08-14 Florian Weimer <fweimer@redhat.com>
31903
31904 * elf/rtld.c (_dl_start): Remove internal_function.
31905 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31906 _dl_start.
31907
31908 2017-08-14 Florian Weimer <fweimer@redhat.com>
31909
31910 * elf/dl-fini.c (_dl_fini): Remove internal_function
31911 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31912
31913 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31914
31915 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31916 (bit_cpu_SHSTK): Likewise.
31917 (index_cpu_IBT): Likewise.
31918 (index_cpu_SHSTK): Likewise.
31919 (reg_IBT): Likewise.
31920 (reg_SHSTK): Likewise.
31921 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31922 Handle index_cpu_IBT and index_cpu_SHSTK.
31923
31924 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31925
31926 [BZ #19982]
31927 * po/fr.po: Fix spelling mistake.
31928
31929 2017-08-13 Florian Weimer <fweimer@redhat.com>
31930
31931 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31932 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31933 (_dl_catch_error, _dl_receive_error): Likewise.
31934 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31935 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31936 (_dl_deallocate_tls): Likewise.
31937 * include/dlfcn.h (_dl_addr): Likewise.
31938 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31939 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31940 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31941 Likewise.
31942
31943 2017-08-13 Florian Weimer <fweimer@redhat.com>
31944
31945 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31946 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31947 internal_function.
31948 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31949
31950 2017-08-13 Florian Weimer <fweimer@redhat.com>
31951
31952 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31953 internal_function.
31954 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31955 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31956 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31957 internal_function from _dl_make_stack_executable_hook member.
31958 (_dl_make_stack_executable): Remove internal_function.
31959 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31960 Likewise.
31961 * sysdeps/unix/sysv/linux/dl-execstack.c
31962 (_dl_make_stack_executable): Likewise.
31963
31964 2017-08-13 Florian Weimer <fweimer@redhat.com>
31965
31966 * sysdeps/unix/sysv/linux/netlinkaccess.h
31967 (__netlink_assert_response): Remove internal_function.
31968 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31969 (__netlink_assert_response): Likewise.
31970
31971 2017-08-13 Florian Weimer <fweimer@redhat.com>
31972
31973 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31974 internal_function.
31975 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31976
31977 2017-08-13 Florian Weimer <fweimer@redhat.com>
31978
31979 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31980 internal_function.
31981 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31982 * inet/netgroup.h (__internal_setnetgrent)
31983 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31984 * inet/getnetgrent_r.c (__internal_setnetgrent)
31985 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31986 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31987 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31988 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31989 * nss/nsswitch.h (db_lookup_function): Likewise.
31990
31991 2017-08-13 Florian Weimer <fweimer@redhat.com>
31992
31993 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31994 Remove internal_function.
31995 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31996 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31997 message argument on the stack.
31998 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31999 Likeweise.
32000
32001 2017-08-12 Mike FABIAN <mfabian@redhat.com>
32002
32003 Adapt test case data to the changes in the thousands
32004 separators.
32005
32006 [BZ #20756]
32007 * localedata/tst-langinfo.sh: Adapt test case data.
32008 * stdlib/tst-strfmon_l.c: Likewise.
32009 * stdlib/tst-strtod4.c: Likewise.
32010 * stdlib/tst-strtod5i.c: Likewise.
32011
32012 2017-08-11 Florian Weimer <fweimer@redhat.com>
32013
32014 [BZ #21242]
32015 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32016 Suppress pedantic warning resulting from statement expression.
32017 (__ASSERT_FUNCTION): Add missing __extension__.
32018
32019 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
32020
32021 * benchtests/bench-memmove-large.c: Print output in JSON
32022 format.
32023 * benchtests/bench-memmove.c: Likewise.
32024
32025 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32026 * benchtests/bench-memchr.c (do_one_test): Likewise.
32027 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32028 * benchtests/bench-memcpy.c (do_one_test): Likewise.
32029 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32030 * benchtests/bench-memmove.c (do_one_test): Likewise.
32031 * benchtests/bench-memset-large.c (do_one_test): Likewise.
32032 * benchtests/bench-memset.c (do_one_test): Likewise.
32033 * benchtests/bench-string.h (test_init): Remove memsets.
32034
32035 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32036
32037 * manual/lang.texi
32038 (Computing the Width of an Integer Data Type): Rename section to
32039 "Width of an Integer Type". Remove inaccurate statement regarding
32040 lack of C language facilities for determining width of integer
32041 types, and reorder content to improve flow and context of
32042 discussion.
32043
32044 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32045
32046 * lang.texi (va_copy): Change standard from ISO to C99.
32047 (__va_copy): Add standard and header annotation.
32048 Update description for clarity of origins and current use.
32049
32050 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32051
32052 [BZ #21941]
32053 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32054 xssqrtqp requires operands to be in Vector Registers
32055 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32056 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32057 (__ieee754_sqrtf128): Likewise.
32058
32059 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
32060
32061 * sysdeps/aarch64/memcmp.S (memcmp):
32062 Rewrite of optimized memcmp.
32063
32064 2017-08-10 Florian Weimer <fweimer@redhat.com>
32065
32066 Introduce ld.so exceptions.
32067 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32068 (_dl_exception_create, _dl_exception_create_format)
32069 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32070 (_dl_catch_exception): Declare.
32071 (_dl_catch_error): Update comment.
32072 * elf/dl-error-skeleton.c (struct catch): Replace objname,
32073 errstring, malloced members with exception member.
32074 (_dl_out_of_memory): Remove.
32075 (fatal_error): New function, extracted from _dl_signal_error.
32076 (_dl_signal_exception, _dl_signal_cexception): New functions.
32077 (_dl_signal_error): Call _dl_exception_create to allocate an
32078 exception object.
32079 (_dl_catch_exception): New function, based on _dl_catch_error.
32080 (_dl_catch_error): Implement using _dl_catch_exception.
32081 * elf/dl-exception.c: New file.
32082 * elf/Makefile (dl-routines): Add dl-exception.
32083 (elide-routines.os): Likewise.
32084 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32085 _dl_exception_create_format, _dl_exception_free.
32086 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32087 _dl_signal_exception.
32088 * elf/dl-lookup.c (make_string): Remove.
32089 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32090 _dl_signal_cexception, _dl_exception_free.
32091 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32092 _dl_signal_exception.
32093 * elf/dl-sym.c (do_sym): Likewise.
32094 * elf/dl-version.c (make_string): Remove.
32095 (match_symbol): Use _dl_exception_create_format,
32096 _dl_signal_cexception, _dl_exception_free.
32097 (_dl_check_map_versions): Likewise.
32098 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32099 _dl_catch_exception.
32100 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32101 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32102 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32103 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32104 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32105 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32106 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32107 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32108 Likewise.
32109 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32111 (ld.so): Likewise.
32112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32113 (ld.so): Likewise.
32114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32115 Likewise.
32116 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32117 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32118 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32119 Likewise.
32120 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32121 Likewise.
32122 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32123
32124 2017-08-10 Florian Weimer <fweimer@redhat.com>
32125
32126 * inet/net-internal.h (__inet6_scopeid_pton): Remove
32127 attribute_hidden, internal_function.
32128 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32129 internal_function.
32130
32131 2017-08-10 Florian Weimer <fweimer@redhat.com>
32132
32133 * malloc/malloc.c (get_max_fast): Reimplement as an inline
32134 function which calls __builtin_unreachable.
32135
32136 2017-08-10 Mike FABIAN <mfabian@redhat.com>
32137
32138 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32139 Indian monetary formatting
32140 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32141 test cases.
32142
32143 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
32144
32145 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32146 Fix typo in comment.
32147
32148 [BZ #21928]
32149 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32150 PTRACE_SEIZE_DEVEL): Remove.
32151 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32152 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32153 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32154 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32155 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32156
32157 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32158
32159 * posix/bits/types.h (__qaddr_t): Remove.
32160
32161 [BZ #21457]
32162 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32163 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32164 __glibc_reserved1.
32165 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32166 (ucontext_t): Use __ctx with uc_flags.
32167 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32168 (__ctxt): Likewise.
32169 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32170 __glibc_reserved1.
32171 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32172 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32173 __glibc_reserved1.
32174 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32175 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32176 __glibc_reserved1.
32177 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32178 macro.
32179 (ucontext_t): Use __ctx with uc_flags.
32180 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32181 (ucontext_t): Use __ctx with uc_flags.
32182 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32183 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32184 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32185 (ucontext_t): Use __ctx with uc_flags.
32186 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32187 undefine further down.
32188 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32189 __glibc_reserved1.
32190 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32191 undefine further down.
32192 (ucontext_t): Use __ctx with uc_flags.
32193 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32194 undefine further down.
32195 (ucontext_t): Use __ctx with uc_flags.
32196 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32197 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32198 Rename uc_pad to __glibc_reserved1.
32199 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32200 undefine further down.
32201 (ucontext_t): Use __ctx with uc_flags.
32202 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32203 further down.
32204 (ucontext_t): Use __ctx with uc_flags.
32205 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32206 __ctx with uc_flags.
32207 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32208 (ucontext_t): Use __ctx with uc_flags.
32209 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32210 __ctx with uc_flags.
32211
32212 2017-08-09 Florian Weimer <fweimer@redhat.com>
32213
32214 [BZ #21932]
32215 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32216 before early return.
32217
32218 2017-08-09 Andreas Schwab <schwab@suse.de>
32219
32220 [BZ #21041]
32221 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32222 renamed alias.
32223
32224 [BZ #21041]
32225 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32226 tst-compat-forwarder.
32227 (modules-names): Add tst-compat-forwarder-mod.
32228 ($(objpfx)tst-compat-forwarder): Depend on
32229 $(objpfx)tst-compat-forwarder-mod.so.
32230 * nptl/tst-compat-forwarder.c: New file.
32231 * nptl/tst-compat-forwarder-mod.c: New file.
32232
32233 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32234
32235 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32236 comments.
32237
32238 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32239 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32240 memcpy_falkor.
32241 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32242 Bump.
32243 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32244 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32245 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32246 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32247 Add falkor.
32248 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32249 New macro.
32250
32251 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32252
32253 [BZ #759]
32254 * manual/setjmp.texi (getcontex): Document uc_stack value
32255 compatibility differences.
32256
32257 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32258
32259 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32260 (old_malloc_hook): Likewise.
32261 (old_memalign_hook): Likewise.
32262 (old_realloc_hook): Likewise.
32263 (struct hdr): Likewise.
32264 (flood): Likewise.
32265 (freehook): Likewise.
32266 (mallochook): Likewise.
32267 (memalignhook): Likewise.
32268 (reallochook): Likewise.
32269 (mprobe): Likewise.
32270 * malloc/mtrace.c (mallwatch): Likewise.
32271 (tr_old_free_hook): Likewise.
32272 (tr_old_malloc_hook): Likewise.
32273 (tr_old_realloc_hook): Likewise.
32274 (tr_old_memalign_hook): Likewise.
32275 (tr_where): Likewise.
32276 (lock_and_info): Likewise.
32277 (tr_freehook): Likewise.
32278 (tr_mallochook): Likewise.
32279 (tr_reallochook): Likewise.
32280 (tr_memalignhook): Likewise.
32281 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32282 * misc/mmap.c (__mmap): Likewise.
32283 * misc/mmap64.c (__mmap64): Likewise.
32284 * misc/mprotect.c (__mprotect): Likewise.
32285 * misc/msync.c (msync): Likewise.
32286 * misc/munmap.c (__munmap): Likewise.
32287 * posix/posix_madvise.c (posix_madvise): Likewise.
32288 * socket/send.c (__send): Likewise.
32289 * socket/sendto.c (__sendto): Likewise.
32290 * socket/setsockopt.c (__setsockopt): Likewise.
32291 * string/memcmp.c (__ptr_t): Remove macro.
32292 (MEMCMP): Use void * instead of ptr_t.
32293 * string/memrchr.c (__ptr_t): Remove macro.
32294 (__memrchr): Use void * instead of ptr_t.
32295 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32296 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32297 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32298 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32299 * sysdeps/mach/msync.c (msync): Likewise.
32300 * sysdeps/mach/munmap.c (__munmap): Likewise.
32301 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32302 Likewise.
32303 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32304 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32305 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32306 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32307 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32308 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32309 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32310 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32311 Likewise.
32312 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32313 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32314 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32315 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32316 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32317 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32318 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32319 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32320 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32321 Likewise.
32322 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32323 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32324 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32325 (MEMCMP): Use void * instead of ptr_t.
32326 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32327 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32328
32329 2017-08-08 Florian Weimer <fweimer@redhat.com>
32330
32331 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32332 return statement.
32333
32334 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32335
32336 [BZ #21913]
32337 * csu/libc-tls.c: Include <startup.h> first.
32338 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32339 * elf/dl-tunables.c: Include <startup.h> first.
32340 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32341 * sysdeps/generic/startup.h: New file.
32342 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32343 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32344 (I386_USE_SYSENTER): New. Defined to 0.
32345
32346 2017-08-08 Andreas Schwab <schwab@suse.de>
32347
32348 [BZ #21041]
32349 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32350 * nptl/pt-system.c (system): Likewise.
32351
32352 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32353
32354 [BZ #21780]
32355 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32356 EOPNOTSUPP.
32357 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32358 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32359 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32360 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32361 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32362 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32363 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32364
32365 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32366
32367 [BZ #21899]
32368 * bits/sigaction.h (struct sigaction): Define sa_handler and
32369 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32370 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32371 [__USE_XOPEN_EXTENDED].
32372 (SA_RESTART): Likewise.
32373 (SA_NODEFER): Likewise.
32374 (SA_RESETHAND): Likewise.
32375 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32376 (struct sigaction): Define sa_handler and sa_sigaction using union
32377 also for [__USE_XOPEN_EXTENDED].
32378 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32379 [__USE_XOPEN_EXTENDED].
32380 (SA_RESTART): Likewise.
32381 (SA_NODEFER): Likewise.
32382 (SA_RESETHAND): Likewise.
32383 * sysdeps/unix/sysv/linux/bits/sigaction.h
32384 (struct sigaction): Define sa_handler and sa_sigaction using union
32385 also for [__USE_XOPEN_EXTENDED].
32386 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32387 [__USE_XOPEN_EXTENDED].
32388 (SA_RESTART): Likewise.
32389 (SA_NODEFER): Likewise.
32390 (SA_RESETHAND): Likewise.
32391 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32392 (struct sigaction): Define sa_handler and sa_sigaction using union
32393 also for [__USE_XOPEN_EXTENDED].
32394 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32395 [__USE_XOPEN_EXTENDED].
32396 (SA_RESTART): Likewise.
32397 (SA_NODEFER): Likewise.
32398 (SA_RESETHAND): Likewise.
32399 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32400 (struct sigaction): Define sa_handler and sa_sigaction using union
32401 also for [__USE_XOPEN_EXTENDED].
32402 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32403 [__USE_XOPEN_EXTENDED].
32404 (SA_RESTART): Likewise.
32405 (SA_NODEFER): Likewise.
32406 (SA_RESETHAND): Likewise.
32407 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32408 (struct sigaction): Define sa_handler and sa_sigaction using union
32409 also for [__USE_XOPEN_EXTENDED].
32410 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32411 [__USE_XOPEN_EXTENDED].
32412 (SA_RESTART): Likewise.
32413 (SA_NODEFER): Likewise.
32414 (SA_RESETHAND): Likewise.
32415 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32416 (struct sigaction): Define sa_handler and sa_sigaction using union
32417 also for [__USE_XOPEN_EXTENDED].
32418 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32419 [__USE_XOPEN_EXTENDED].
32420 (SA_RESTART): Likewise.
32421 (SA_NODEFER): Likewise.
32422 (SA_RESETHAND): Likewise.
32423 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32424 (struct sigaction): Define sa_handler and sa_sigaction using union
32425 also for [__USE_XOPEN_EXTENDED].
32426 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32427 [__USE_XOPEN_EXTENDED].
32428 (SA_RESTART): Likewise.
32429 (SA_NODEFER): Likewise. Define directly rather than as alias.
32430 (SA_RESETHAND): Likewise.
32431 (SA_INTERRUPT): Define only for [__USE_MISC].
32432 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32433 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32434 [__USE_MISC].
32435 (SA_STACK): Define only for [__USE_MISC].
32436 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32437 (struct sigaction): Define sa_handler and sa_sigaction using union
32438 also for [__USE_XOPEN_EXTENDED].
32439 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32440 [__USE_XOPEN_EXTENDED].
32441 (SA_RESTART): Likewise.
32442 (SA_NODEFER): Likewise.
32443 (SA_RESETHAND): Likewise.
32444 (SA_NOPTRACE): Define only for [__USE_MISC].
32445
32446 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32447 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32448 (struct catalog_info): Likewise.
32449 * inet/htontest.c (lo): Likewise.
32450 (foo): Likewise.
32451 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32452 * inet/inet_net.c (inet_network): Likewise.
32453 * inet/inet_netof.c (inet_netof): Likewise.
32454 * inet/rcmd.c (__ivaliduser): Likewise.
32455 (iruserok): Likewise.
32456 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32457 * locale/programs/locale-spec.c (locale_special): Likewise.
32458 * nis/nis_findserv.c (struct findserv_req): Likewise.
32459 (__nis_findfastest_with_timeout): Likewise.
32460 * nss/test-netdb.c (test_network): Likewise.
32461 * resolv/inet_neta.c (inet_neta): Likewise.
32462 * resolv/ns_date.c (ns_datetosecs): Likewise.
32463 (SECS_PER_DAY): Likewise.
32464 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32465 Likewise.
32466 * resolv/res_comp.c (__putlong): Likewise.
32467 (__putshort): Likewise.
32468 (_getlong): Likewise.
32469 (_getshort): Likewise.
32470 * resolv/res_debug.c (p_time): Likewise.
32471 (precsize_ntoa): Likewise.
32472 (precsize_aton): Likewise.
32473 (latlon2ul): Likewise.
32474 (loc_aton): Likewise.
32475 (loc_ntoa): Likewise.
32476 * resolv/res_hconf.c (struct netaddr): Likewise.
32477 (_res_hconf_reorder_addrs): Likewise.
32478 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32479 (clnttcp_control): Likewise.
32480 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32481 (clntudp_control): Likewise.
32482 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32483 (clntunix_control): Likewise.
32484 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32485 * sunrpc/rpc/auth.h (union des_block): Likewise.
32486 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32487 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32488 (xdrrec_create): Likewise.
32489 (xdrrec_endofrecord): Likewise.
32490 (flush_out): Likewise.
32491 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32492 (xdrstdio_putlong): Likewise.
32493 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32494 Likewise.
32495
32496 * misc/sys/cdefs.h (__long_double_t): Remove.
32497 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32498 instead of __long_double_t,
32499 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32500
32501 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32502
32503 * benchtests/scripts/compare_strings.py: Avoid display error when
32504 running on a text terminal.
32505
32506 * benchtests/scripts/compare_strings.py (main): Add an
32507 optional -base option.
32508 (process_results): New argument base_func.
32509
32510 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32511 hardcoding memcpy.
32512 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32513 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32514
32515 2017-08-07 Andreas Schwab <schwab@suse.de>
32516
32517 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32518 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32519 * intl/Makefile ($(objpfx)tst-gettext.out)
32520 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32521 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32522 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32523 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32524 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32525 * posix/Makefile ($(objpfx)globtest.out)
32526 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32527 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32528 ($(objpfx)tst-printf.out): Likewise.
32529 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32530 ($(objpfx)tst-setcontext3.out): Likewise.
32531
32532 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32533
32534 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32535 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32536 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32537 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32538 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32539 and mptan-fma.
32540 (CFLAGS-doasin-fma.c): New.
32541 (CFLAGS-dosincos-fma.c): Likewise.
32542 (CFLAGS-e_asin-fma.c): Likewise.
32543 (CFLAGS-e_atan2-fma.c): Likewise.
32544 (CFLAGS-e_exp-fma.c): Likewise.
32545 (CFLAGS-e_log-fma.c): Likewise.
32546 (CFLAGS-e_pow-fma.c): Likewise.
32547 (CFLAGS-halfulp-fma.c): Likewise.
32548 (CFLAGS-mpa-fma.c): Likewise.
32549 (CFLAGS-mpatan-fma.c): Likewise.
32550 (CFLAGS-mpatan2-fma.c): Likewise.
32551 (CFLAGS-mpexp-fma.c): Likewise.
32552 (CFLAGS-mplog-fma.c): Likewise.
32553 (CFLAGS-mpsqrt-fma.c): Likewise.
32554 (CFLAGS-mptan-fma.c): Likewise.
32555 (CFLAGS-s_atan-fma.c): Likewise.
32556 (CFLAGS-sincos32-fma.c): Likewise.
32557 (CFLAGS-slowexp-fma.c): Likewise.
32558 (CFLAGS-slowpow-fma.c): Likewise.
32559 (CFLAGS-s_sin-fma.c): Likewise.
32560 (CFLAGS-s_tan-fma.c): Likewise.
32561 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32562 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32563 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32564 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32565 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32566 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32567 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32568 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32569 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32570 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32571 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32572 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32573 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32574 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32575 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32576 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32577 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32578 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32579 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32580 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32581 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32582 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32583 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32584 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32585 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32586 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32587 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32588 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32589 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32590 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32591 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32592
32593 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32594
32595 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32596 (min_of_type_f): New macro.
32597 (min_of_type_): Likewise.
32598 (min_of_type_l): Likewise.
32599 (min_of_type_f128): Likewise.
32600 (min_of_type): Define using __MATH_TG and taking an expression
32601 argument.
32602 (math_check_force_underflow): Pass expression instead of type to
32603 min_of_type.
32604 (math_check_force_underflow_nonneg): Likewise.
32605
32606 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32607
32608 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32609 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32610 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32611
32612 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32613
32614 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32615 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32616 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32617 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32618 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32619 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32620 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32621 memmove_chk-nonshared and memset_chk-nonshared
32622 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32623 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32624 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32625 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32626 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32627 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32628 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32629 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32630 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32631 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32632 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32633 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32634 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32635 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32636 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32637 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32638 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32639 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32640 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32641 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32642 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32643 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32644 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32645 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32646 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32647 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32648 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32649 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32650 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32651 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32652 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32653 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32654 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32655 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32656 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32657 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32658 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32659 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32660 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32661 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32662 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32663 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32664 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32665 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32666 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32667 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32668 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32669 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32670 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32671 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32672 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32673 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32674 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32675 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32676 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32677 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32678 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32679 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32680 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32681 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32682 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32683 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32684 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32685 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32686 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32687 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32688 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32689 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32690 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32691 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32692 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32693 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32694 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32695 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32696 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32697 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32698 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32699 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32700 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32701 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32702 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32703 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32704 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32705 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32706 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32707 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32708 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32709 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32710 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32711 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32712 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32713 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32714 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32715 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32716 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32717 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32718 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32719 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32720 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32721 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32722 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32723 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32724 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32725 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32726 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32727 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32728 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32729 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32730
32731 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32732
32733 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32734 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32735 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32736 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32737 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32738 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32739 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32740 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32741 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32742 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32743 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32744 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32745 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32746 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32747 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32748 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32749 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32750 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32751 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32752 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32753 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32754 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32755 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32756 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32757 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32758 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32759 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32760 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32761 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32762 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32763 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32764 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32765 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32766 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32767 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32768 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32769 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32770 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32771 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32772 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32773 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32774 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32775 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32776 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32777 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32778 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32779 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32780 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32781 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32782 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32783 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32784 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32785 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32786 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32787 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32788 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32789 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32790 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32791 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32792 ...
32793 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32794 Don't include <sysdep.h> nor <init-arch.h>.
32795 (_ZGVbN2v_cos): Removed.
32796 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32797 ...
32798 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32799 Don't include <sysdep.h> nor <init-arch.h>.
32800 (_ZGVdN4v_cos): Removed.
32801 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32802 ...
32803 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32804 Don't include <sysdep.h> nor <init-arch.h>.
32805 (_ZGVeN8v_cos): Removed.
32806 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32807 ...
32808 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32809 Don't include <sysdep.h> nor <init-arch.h>.
32810 (_ZGVbN2v_exp): Removed.
32811 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32812 ...
32813 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32814 Don't include <sysdep.h> nor <init-arch.h>.
32815 (_ZGVdN4v_exp): Removed.
32816 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32817 ...
32818 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32819 Don't include <sysdep.h> nor <init-arch.h>.
32820 (_ZGVeN8v_exp): Removed.
32821 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32822 ...
32823 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32824 Don't include <sysdep.h> nor <init-arch.h>.
32825 (_ZGVbN2v_log): Removed.
32826 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32827 ...
32828 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32829 Don't include <sysdep.h> nor <init-arch.h>.
32830 (_ZGVdN4v_log): Removed.
32831 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32832 ...
32833 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32834 Don't include <sysdep.h> nor <init-arch.h>.
32835 (_ZGVeN8v_log): Removed.
32836 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32837 ...
32838 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32839 Don't include <sysdep.h> nor <init-arch.h>.
32840 (_ZGVbN2vv_pow): Removed.
32841 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32842 ...
32843 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32844 Don't include <sysdep.h> nor <init-arch.h>.
32845 (_ZGVdN4vv_pow): Removed.
32846 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32847 ...
32848 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32849 Don't include <sysdep.h> nor <init-arch.h>.
32850 (_ZGVeN8vv_pow): Removed.
32851 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32852 ...
32853 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32854 Don't include <sysdep.h> nor <init-arch.h>.
32855 (_ZGVbN2v_sin): Removed.
32856 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32857 ...
32858 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32859 Don't include <sysdep.h> nor <init-arch.h>.
32860 (_ZGVbN4v_sin): Removed.
32861 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32862 ...
32863 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32864 Don't include <sysdep.h> nor <init-arch.h>.
32865 (_ZGVbN8v_sin): Removed.
32866 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32867 ...
32868 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32869 Don't include <sysdep.h> nor <init-arch.h>.
32870 (_ZGVbN2vvv_sincos): Removed.
32871 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32872 ...
32873 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32874 Don't include <sysdep.h> nor <init-arch.h>.
32875 (_ZGVdN4vvv_sincos): Removed.
32876 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32877 ...
32878 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32879 Don't include <sysdep.h> nor <init-arch.h>.
32880 (_ZGVeN8vvv_sincos): Removed.
32881 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32882 ...
32883 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32884 Don't include <sysdep.h> nor <init-arch.h>.
32885 (_ZGVeN16v_cosf): Removed.
32886 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32887 ...
32888 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32889 Don't include <sysdep.h> nor <init-arch.h>.
32890 (_ZGVbN4v_cosf): Removed.
32891 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32892 ...
32893 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32894 Don't include <sysdep.h> nor <init-arch.h>.
32895 (_ZGVdN8v_cosf): Removed.
32896 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32897 ...
32898 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32899 Don't include <sysdep.h> nor <init-arch.h>.
32900 (_ZGVeN16v_expf): Removed.
32901 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32902 ...
32903 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32904 Don't include <sysdep.h> nor <init-arch.h>.
32905 (_ZGVbN4v_expf): Removed.
32906 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32907 ...
32908 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32909 Don't include <sysdep.h> nor <init-arch.h>.
32910 (_ZGVdN8v_expf): Removed.
32911 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32912 ...
32913 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32914 Don't include <sysdep.h> nor <init-arch.h>.
32915 (_ZGVeN16v_logf): Removed.
32916 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32917 ...
32918 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32919 Don't include <sysdep.h> nor <init-arch.h>.
32920 (_ZGVbN4v_logf): Removed.
32921 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32922 ...
32923 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32924 Don't include <sysdep.h> nor <init-arch.h>.
32925 (_ZGVdN8v_logf): Removed.
32926 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32927 ...
32928 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32929 Don't include <sysdep.h> nor <init-arch.h>.
32930 (_ZGVeN16vv_powf): Removed.
32931 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32932 ...
32933 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32934 Don't include <sysdep.h> nor <init-arch.h>.
32935 (_ZGVbN4vv_powf): Removed.
32936 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32937 ...
32938 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32939 Don't include <sysdep.h> nor <init-arch.h>.
32940 (_ZGVdN8vv_powf): Removed.
32941 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32942 ...
32943 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32944 Don't include <sysdep.h> nor <init-arch.h>.
32945 (_ZGVeN16vvv_sincosf): Removed.
32946 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32947 ...
32948 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32949 Don't include <sysdep.h> nor <init-arch.h>.
32950 (_ZGVbN4vvv_sincosf): Removed.
32951 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32952 ...
32953 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32954 Don't include <sysdep.h> nor <init-arch.h>.
32955 (_ZGVdN8vvv_sincosf): Removed.
32956 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32957 ...
32958 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32959 Don't include <sysdep.h> nor <init-arch.h>.
32960 (_ZGVeN16v_sinf): Removed.
32961 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32962 ...
32963 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32964 Don't include <sysdep.h> nor <init-arch.h>.
32965 (_ZGVbN4v_sinf): Removed.
32966 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32967 ...
32968 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32969 Don't include <sysdep.h> nor <init-arch.h>.
32970 (_ZGVdN8v_sinf): Removed.
32971
32972 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32973
32974 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32975 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32976 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32977 s_rint-sse4_1 and s_rintf-sse4_1.
32978 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32979 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32980 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32981 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32982 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32983 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32984 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32985 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32986 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32987 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32988 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32989 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32990 (__ceil): Removed.
32991 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32992 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32993 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32994 (__ceilf): Removed.
32995 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32996 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32997 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32998 (__floor): Removed.
32999 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
33000 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
33001 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33002 (__floorf): Removed.
33003 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
33004 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
33005 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33006 (__nearbyint): Removed.
33007 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
33008 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
33009 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33010 (__nearbyintf): Removed.
33011 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
33012 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
33013 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33014 (__rint): Removed.
33015 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33016 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
33017 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33018 (__rintf): Removed.
33019
33020 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33021
33022 * sysdeps/i386/start.S (_start): Check Check PIC instead of
33023 SHARED. Avoid dynamic relocation against main in static PIE.
33024
33025 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33026
33027 [BZ #21815]
33028 * elf/Makefile (CFLAGS-tst-prelink.c): New.
33029 (LDFLAGS-tst-prelink): Likewise.
33030
33031 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33032
33033 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33034 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33035 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33036 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33037 (INTERNAL_SYSCALL_NCS): Likewise.
33038 (LOADARGS_1): Likewise.
33039 (LOADARGS_5): Likewise.
33040 (RESTOREARGS_1): Likewise.
33041 (RESTOREARGS_5): Likewise.
33042
33043 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33044
33045 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33046 (MEMPCPY_SYMBOL): Likewise.
33047 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33048 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33049 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33050 in libc.a.
33051 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33052 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33053 Likewise.
33054 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33055 (__hidden_ver1): Don't use in libc.a.
33056 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33057 (__mempcpy): Don't create a weak alias in libc.a.
33058 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33059 libc.a.
33060 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33061 (__hidden_ver1): Don't use in libc.a.
33062
33063 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33064
33065 * config.make.in (have-insert): New.
33066 * configure.ac (libc_cv_insert): New. Set to yes if linker
33067 supports INSERT in linker script.
33068 (AC_SUBST(libc_cv_insert): New.
33069 * configure: Regenerated.
33070 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33071 if $(have-insert) == yes.
33072
33073 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33074
33075 * elf/Makefile (tests): Add vismain only if
33076 $(have-protected-data) == yes.
33077 (tests-pie): Likewise.
33078
33079 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33080
33081 [BZ #21871]
33082 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33083 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33084
33085 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33086
33087 [BZ #21790]
33088 * sysdeps/i386/i586/memset.S
33089 (__memset_zero_constant_len_parameter): Removed.
33090 * sysdeps/i386/i686/memset.S
33091 (__memset_zero_constant_len_parameter): Likewise.
33092 * sysdeps/i386/i686/multiarch/memset_chk.S
33093 (__memset_zero_constant_len_parameter): Likewise.
33094 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33095 Likewise.
33096
33097 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33098
33099 * stdlib/getentropy.c (getentropy): Change return type to int.
33100
33101 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33102
33103 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33104
33105 2017-08-03 Joseph Myers <joseph@codesourcery.com>
33106
33107 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33108 u_intN_t.
33109 * math/s_nexttowardf.c (__nexttowardf): Likewise.
33110 * sysdeps/generic/math_private.h (ieee_double_shape_type):
33111 Likewise.
33112 (ieee_float_shape_type): Likewise.
33113 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33114 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33115 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33116 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33117 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33118 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33119 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33120 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33121 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33122 Likewise.
33123 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33124 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33125 (__ieee754_yn): Likewise.
33126 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33127 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33128 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33129 Likewise.
33130 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33131 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33132 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33133 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33134 (__erfc): Likewise.
33135 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33136 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33137 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33138 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33139 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33140 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33141 Likewise.
33142 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33143 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33144 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33145 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33146 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33147 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33148 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33149 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33150 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33151 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33152 (__issignaling): Likewise.
33153 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33154 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33155 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33156 Likewise.
33157 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33158 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33159 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33160 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33161 Likewise.
33162 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33163 Likewise.
33164 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33165 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33166 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33167 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33168 (__erfcf): Likewise.
33169 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33170 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33171 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33172 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33173 Likewise.
33174 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33175 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33176 Likewise.
33177 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33178 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33179 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33180 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33181 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33182 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33183 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33184 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33185 Likewise.
33186 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33187 Likewise.
33188 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33189 Likewise.
33190 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33191 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33192 Likewise.
33193 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33194 Likewise.
33195 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33196 (__ieee754_ynl): Likewise.
33197 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33198 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33199 Likewise.
33200 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33201 Likewise.
33202 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33203 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33204 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33205 Likewise.
33206 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33207 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33208 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33209 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33210 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33211 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33212 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33213 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33214 Likewise.
33215 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33216 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33217 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33218 Likewise.
33219 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33220 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33221 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33222 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33223 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33224 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33225 Likewise.
33226 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33227 Likewise.
33228 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33229 Likewise.
33230 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33231 Likewise.
33232 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33233 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33234 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33235 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33236 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33237 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33238 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33239 Likewise.
33240 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33241 Likewise.
33242 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33243 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33244 Likewise.
33245 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33246 (__ieee754_remainderl): Likewise.
33247 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33248 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33249 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33250 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33251 Likewise.
33252 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33253 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33254 Likewise.
33255 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33256 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33257 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33258 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33259 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33260 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33261 Likewise.
33262 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33263 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33264 (__ieee754_y0l): Likewise.
33265 (pzero): Likewise.
33266 (qzero): Likewise.
33267 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33268 (__ieee754_y1l): Likewise.
33269 (pone): Likewise.
33270 (qone): Likewise.
33271 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33272 (__ieee754_ynl): Likewise.
33273 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33274 (__ieee754_lgammal_r): Likewise.
33275 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33276 Likewise.
33277 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33278 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33279 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33280 (__erfcl): Likewise.
33281 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33282 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33283 Likewise.
33284 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33285 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33286 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33287 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33288 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33289 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33290 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33291 Likewise.
33292 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33293 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33294 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33295 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33296 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33297 Likewise.
33298 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33299 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33300 Likewise.
33301 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33302 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33303 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33304 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33305 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33306
33307 2017-08-03 Florian Weimer <fweimer@redhat.com>
33308
33309 [BZ #21885]
33310 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33311 on memory allocation failure.
33312
33313 2017-08-03 Alan Modra <amodra@gmail.com>
33314
33315 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33316 tst-tlsopt-powerpc.c with function name change and no test harness.
33317 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33318 Call tls_get_addr_opt_test.
33319 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33320 (modules-names): Add mod-tlsopt-powerpc.
33321 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33322 (tst-tlsopt-powerpc): Depend on .so.
33323 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33324 define. Expand use in TLS_GD and TLS_LD.
33325
33326 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33327
33328 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33329 function.
33330 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33331
33332 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33333
33334 [BZ #21686]
33335 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33336 comparing size with that of double.
33337 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33338 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33339 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33340 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33341 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33342 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33343 unsigned __int128 types.
33344
33345 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33346
33347 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33348 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33349 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33350 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33351 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33352
33353 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33354
33355 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33356
33357 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33358
33359 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33360 of SHARED.
33361 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33362 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33363 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33364 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33365 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33366 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33367 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33368
33369 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33370
33371 [BZ #21685]
33372 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33373 bit-field expressions passed to sizeof or typeof.
33374 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33375 (__TGMATH_F128): Likewise.
33376 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33377 (__TGMATH_CF128): Likewise.
33378 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33379 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33380 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33381 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33382 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33383 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33384 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33385 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33386 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33387 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33388 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33389 (__TGMATH_UNARY_IMAG): Likewise.
33390 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33391 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33392 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33393 type.
33394 (define_vars_for_type): Handle bit_field type specially.
33395 (Tests.__init__): Declare structure with bit-field element.
33396
33397 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33398
33399 [BZ #21791]
33400 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33401 (MEMCPY_CHK): Define only if SHARED is defined.
33402 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33403 Likewise.
33404 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33405 Likewise.
33406
33407 See ChangeLog.18 for earlier changes.