]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
nptl: Convert tst-sem5 & tst-sem13 to use libsupport
[thirdparty/glibc.git] / ChangeLog
1 2019-03-25 Mike Crowe <mac@mcrowe.com>
2
3 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
4 (do_test) Use libsupport test macros rather than hand-coded
5 conditionals and error messages. Ensure that sem_init returns zero
6 rather than not -1. Use <support/test-driver.c> rather than
7 test-skeleton.c.
8
9 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
10 test macros rather than hand-coded conditionals and error messages.
11 Use <support/test-driver.c> rather than test-skeleton.c.
12
13 2019-03-25 Joseph Myers <joseph@codesourcery.com>
14
15 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
16
17 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
18 (NT_MIPS_MSA): Likewise.
19
20 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21
22 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
23 * benchtests/README: Update description.
24 * benchtests/bench-timing.h: Default to hp-timing.
25 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
26 HP_TIMING_PRINT): Remove.
27 (HP_TIMING_NOW): Add generic implementation.
28 (hp_timing_t): Change to uint64_t.
29
30 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
31 HP_TIMING_INLINE.
32 * nptl/descr.h: Likewise.
33 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
34 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
35 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
36 Abstract hp-timing usage with RTLD_* macros.
37 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
38 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
39 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
40 HP_TIMING_NONAVAIL): Likewise.
41 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
42 Likewise.
43 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
44 HP_SMALL_TIMING_AVAIL): Likewise.
45 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
46 HP_SMALL_TIMING_AVAIL): Likewise.
47 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
48 HP_SMALL_TIMING_AVAIL): Likewise.
49 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
50 HP_SMALL_TIMING_AVAIL): Likewise.
51 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
52 Likewise.
53 * sysdeps/generic/hp-timing-common.h: Update comment with
54 HP_TIMING_AVAIL removal.
55
56 * include/random-bits.h: New file.
57 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
58 (__res_context_mkquery): Remove usage hp-timing usage and replace with
59 random_bits.
60 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
61 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
62 Likewise.
63
64 * include/libc-internal.h (__get_clockfreq): Remove prototype.
65 * rt/Makefile (clock-routines): Remove get_clockfreq.
66 * rt/get_clockfreq.c: Remove file.
67 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
68 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
69 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
70 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
71 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
72
73 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
74 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
75 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
76 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
77 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
78
79 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
80 pthread_clock_settime.
81 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
82 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
83 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
84 * elf/rtld.c (_dl_start_final): Likewise.
85 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
86 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
87 Remove.
88 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
89 (_dl_cpuclock_offset): Remove.
90 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
91 cpuclock_offset_ununsed.
92 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
93 cpuclock_offset set.
94 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
95 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
96 * nptl/pthread_clock_gettime.c: Remove file.
97 * nptl/pthread_clock_settime.c: Likewise.
98 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
99 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
100 and CLOCK_PROCESS_CPUTIME_ID support.
101 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
102 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
103 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
104 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
105 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
106 Likewise.
107 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
108
109 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
110
111 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
112 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
113 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
114 New defines.
115 * sysdeps/s390/memmem-arch13.S: New file.
116 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
117 if it is only used as fallback.
118 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
119 * sysdeps/s390/multiarch/ifunc-impl-list.c
120 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
121
122 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
123
124 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
125 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
126 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
127 New defines.
128 * sysdeps/s390/multiarch/ifunc-impl-list.c
129 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
130 * sysdeps/s390/strstr-arch13.S: New file.
131 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
132 if it is only used as fallback.
133 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
134
135 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
136
137 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
138 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
139 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
140 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
141 ifunc selector.
142 * sysdeps/s390/multiarch/ifunc-impl-list.c
143 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
144 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
145 S390_IS_ARCH13_MIE3): New defines.
146
147 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
148
149 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
150 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
151 * sysdeps/s390/configure.ac: Add checks for arch13 support.
152 * sysdeps/s390/configure: Regenerated.
153
154 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
155
156 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
157 Add vxe2, vxp, dflt, sort flags.
158 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
159 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
160 capabilities.
161 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
162 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
163 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
164 HWCAP_S390_DFLT): Define.
165
166 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
167
168 [BZ #24372]
169 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
170 of compiler warning.
171 * locale/programs/ld-collate.c (collate_output): Likewise.
172
173 2019-03-21 DJ Delorie <dj@redhat.com>
174
175 [BZ #24372]
176 * iconv/iconvconfig.c (write_output): Replace floating point math
177 with integer math to avoid imprecise results.
178 * locale/programs/ld-collate.c (collate_output): Likewise.
179
180 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
181
182 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
183 Add HWCAP_S390_VX and HWCAP_S390_VXE.
184
185 2019-03-20 mansayk <6688000@gmail.com>
186
187 [BZ #24296]
188 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
189 (abday): Likewise, but remove the trailing dots.
190
191 2019-03-19 Joseph Myers <joseph@codesourcery.com>
192
193 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
194 macro.
195 (HWCAP_PACA): Likewise.
196 (HWCAP_PACG): Likewise.
197 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
198 Increase to 32.
199 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
200
201 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
202
203 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
204 should be handled.
205
206 2019-03-15 Joseph Myers <joseph@codesourcery.com>
207
208 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
209 version to 5.0.
210 (old_getpagesize): New syscall.
211
212 2019-03-15 Felix Yan <felixonmars@archlinux.org>
213
214 [BZ #24293]
215 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
216 * localedata/locales/cmn_TW (era): Likewise.
217 * localedata/locales/hak_TW (era): Likewise.
218 * localedata/locales/lzh_TW (era): Likewise.
219 * localedata/locales/nan_TW (era): Likewise.
220
221 2019-03-14 Florian Weimer <fweimer@redhat.com>
222
223 Remove obsolete, never-implemented XSI STREAMS declarations.
224 * manual/terminal.texi (Allocation): Remove portability note and
225 adjust example.
226 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
227 _SC_STREAMS.
228 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
229 * sysdeps/unix/inet/Subdirs (streams): Remove.
230 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
231 (conformtest-headers-UNIX98): Likewise.
232 (conformtest-headers-XOPEN2K): Likewise.
233 (conformtest-headers-POSIX2008): Likewise.
234 * posix/compat-streams.c: New file.
235 * posix/Makefile (routines): Add it.
236 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
237 getpmsg, isastream, putmsg, putpmsg.
238 (GLIBC_2.30): New section.
239 * bits/stropts.h: Remove file.
240 * bits/xtitypes.h: Likewise.
241 * conform/data/stropts.h-data: Likewise.
242 * include/stropts.h: Likewise.
243 * include/sys/stropts.h: Likewise.
244 * include/xtitypes.h: Likewise.
245 * streams/Makefile: Likewise.
246 * streams/fattach.c: Likewise.
247 * streams/fdetach.c: Likewise.
248 * streams/getmsg.c: Likewise.
249 * streams/getpmsg.c: Likewise.
250 * streams/isastream.c: Likewise.
251 * streams/putmsg.c: Likewise.
252 * streams/putpmsg.c: Likewise.
253 * streams/stropts.h: Likewise.
254 * streams/sys/stropts.h: Likewise.
255 * sysdeps/ia64/bits/xtitypes.h: Likewise.
256 * sysdeps/s390/bits/xtitypes.h: Likewise.
257 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
258 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
259 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
260 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
261 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
262 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
263 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
264 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
265 * sysdeps/x86/bits/xtitypes.h: Likewise.
266
267 2019-03-14 Florian Weimer <fweimer@redhat.com>
268
269 * nss/tst-nss-files-alias-truncated.c (do_test): Load
270 libnss_files.
271 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
272 but not with libnss_files.
273 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
274
275 2019-03-14 Zack Weinberg <zackw@panix.com>
276
277 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
278 Specify encoding="utf-8" when opening headers to check.
279
280 2019-03-13 Joseph Myers <joseph@codesourcery.com>
281
282 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
283 version to 5.0.
284 (Context.checkout_tar): Handle variable major version for Linux
285 kernel.
286
287 2019-03-13 Florian Weimer <fweimer@redhat.com>
288
289 [BZ #24047]
290 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
291
292 2019-03-13 Zack Weinberg <zackw@panix.com>
293
294 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
295 Move to stdlib.
296 * include/inttypes.h: Adjust to match.
297 * include/stdint.h: New wrapper.
298
299 2019-03-13 Zack Weinberg <zackw@panix.com>
300
301 * scripts/check-obsolete-constructs.py: New test script.
302 * scripts/check-installed-headers.sh: Remove tests for
303 obsolete typedefs, superseded by check-obsolete-constructs.py.
304 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
305 as a special test. Update commentary.
306 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
307 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
308 Update commentary.
309 * posix/sys/types.h (__u_intN_t): Remove.
310 (u_int8_t): Typedef using __uint8_t.
311 (u_int16_t): Typedef using __uint16_t.
312 (u_int32_t): Typedef using __uint32_t.
313 (u_int64_t): Typedef using __uint64_t.
314
315 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
316
317 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
318 call _dl_procinfo.
319 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
320 Ignore types other than AT_HWCAP.
321 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
322 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
323 Likewise.
324 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
325 in the case of falling back to generic output mechanism.
326 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
327 Likewise.
328
329 2019-03-12 Florian Weimer <fweimer@redhat.com>
330
331 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
332
333 2019-03-12 Florian Weimer <fweimer@redhat.com>
334
335 [BZ #24047]
336 resolv: Enable full ICMP errors for UDP DNS sockets
337 * resolv/res_enable_icmp.c: New file.
338 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
339 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
340 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
341 socket.
342
343 2019-03-11 Mao Han <han_mao@c-sky.com>
344
345 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
346 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
347
348 2019-03-11 Mao Han <han_mao@c-sky.com>
349
350 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
351 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
352 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
353
354 2019-03-11 Mao Han <han_mao@c-sky.com>
355
356 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
357 directly.
358 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
359 definition.
360
361 2019-03-11 Mao Han <han_mao@c-sky.com>
362
363 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
364 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
365 in mcontext_t
366
367 2019-03-08 Mike FABIAN <mfabian@redhat.com>
368
369 [BZ #24307]
370 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
371 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
372 Unicode 12.0.0.
373 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
374 * localedata/unicode-gen/PropList.txt: Likewise.
375 * localedata/unicode-gen/UnicodeData.txt: Likewise.
376 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
377 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
378 * localedata/charmaps/UTF-8: Regenerate.
379 * localedata/locales/i18n_ctype: Likewise.
380 * localedata/locales/tr_TR: Likewise.
381 * localedata/locales/translit_circle: Likewise.
382 * localedata/locales/translit_cjk_compat: Likewise.
383 * localedata/locales/translit_combining: Likewise.
384 * localedata/locales/translit_compat: Likewise.
385 * localedata/locales/translit_font: Likewise.
386 * localedata/locales/translit_fraction: Likewise.
387
388 2019-03-07 Joseph Myers <joseph@codesourcery.com>
389
390 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
391 than after operators.
392 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
393 (setitimer_locked): Likewise.
394 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
395 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
396 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
397 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
398 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
399 (PPC_CPU_SUPPORTED): Likewise.
400 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
401 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
402 (stat_overflow): Likewise.
403 (statfs_overflow): Likewise.
404 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
405 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
406 (eq_ttyname_r): Likewise.
407 (run_chroot_tests): Likewise.
408
409 2019-03-07 Florian Weimer <fweimer@redhat.com>
410
411 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
412 header check.
413
414 2019-03-07 Martin Liska <mliska@suse.cz>
415
416 * math/Makefile: Change location where math-vector-fortran.h is
417 installed.
418 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
419 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
420 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
421 * scripts/check-installed-headers.sh: Skip Fortran header files.
422 * scripts/check-wrapper-headers.py: Likewise.
423
424 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
425
426 * nptl/nptl-init.c (__have_futex_clock_realtime,
427 __have_futex_clock_realtime): Remove definition.
428 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
429 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
430 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
431 __ASSUME_FUTEX_CLOCK_REALTIME support.
432 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
433 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
434 * sysdeps/unix/sysv/linux/kernel-features.h
435 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
436 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
437 Adjust comment.
438
439 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
440
441 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
442 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
443 __GI___wcscpy and wcscpy.
444
445 2019-03-04 Florian Weimer <fweimer@redhat.com>
446
447 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
448 declaration.
449 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
450 defined.
451
452 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
453
454 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
455 * sysdeps/s390/s390-32/sysdep.h: Likewise.
456
457 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
458
459 [BZ #24162]
460 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
461 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
462
463 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
464
465 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
466 tests.
467 (do_test): Likewise.
468 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
469 (do_test_call_varg): Likewise.
470 (do_test_call_rarg): Likewise.
471 * sysdeps/ieee754/ldbl-opt/Makefile
472 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
473 tst-nldbl-error.
474 ($(objpfx)tst-nldbl-warn.c): New rule.
475 ($(objpfx)tst-nldbl-error.c): Likewise.
476 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
477 New variables.
478
479 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
480
481 [BZ #23984]
482 * include/bits/error-ldbl.h: New file.
483 * include/error.h: Include stdarg.h. Declare internal functions
484 __error_internal and __error_at_line_internal.
485 * misc/Makefile (headers): Add bits/error-ldbl.h.
486 * misc/bits/error-ldbl.h: New file.
487 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
488 avoid the inclusion of bits/error.h.
489 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
490 and __nldbl_error_at_line.
491 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
492 (__nldbl_error, __ndlbl_error_at_line): New functions.
493 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
494 Redirect error and error_at_line.
495 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
497 Likewise.
498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
499 Likewise.
500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
501 Likewise.
502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
503 Likewise.
504 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
505 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
506 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
507
508 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
509
510 [BZ #23984]
511 * include/bits/err-ldbl.h: New file.
512 * include/err.h: Add prototypes for the internal functions:
513 __vwarnx_internal and __vwarn_internal.
514 * misc/Makefile (headers): Add bits/err-ldbl.h.
515 * misc/bits/err-ldbl.h: New file.
516 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
517 defined, i.e.: when -mlong-double-64 is in use.
518 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
519 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
520 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
521 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
522 (VA_CALL): New macro.
523 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
524 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
525 functions.
526 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
527 declare prototypes for the new functions.
528 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
530 Likewise.
531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
532 Likewise.
533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
534 Likewise.
535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
536 Likewise.
537 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
538 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
539 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
540
541 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
542
543 * sysdeps/ieee754/ldbl-opt/Makefile
544 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
545 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
546 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
547
548 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
549
550 [BZ #23983]
551 * argp/Makefile (headers): Add bits/argp-ldbl.h.
552 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
553 * argp/bits/argp-ldbl.h: New file.
554 * include/argp.h: Include stdarg.h. Add prototypes for internal
555 functions: __argp_error_internal and __argp_failure_internal.
556 * include/bits/argp-ldbl.h: New file.
557 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
558 __nldbl_argp_error and __nldbl_argp_failure.
559 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
560 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
561 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
562 Redirect argp_error and argp_failure calls.
563 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
565 Likewise.
566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
567 Likewise.
568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
569 Likewise.
570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
571 Likewise.
572 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
573 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
574 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
575
576 2019-03-01 Florian Weimer <fweimer@redhat.com>
577
578 [BZ #20419]
579 * elf/tst-big-note-lib.S: Create a syntactically valid note.
580 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
581 code, to avoid creating an ABI tag note.
582 (modules-names-nobuild): Add tst-big-note-lib.
583
584 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
585
586 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
587 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
588
589 2019-03-01 Florian Weimer <fweimer@redhat.com>
590
591 [BZ #20271]
592 * sysdeps/unix/sysv/linux/netlink_assert_response.c
593 (__netlink_assert_response): Add additional missing newlines.
594
595 2019-02-28 Joseph Myers <joseph@codesourcery.com>
596
597 * sysdeps/powerpc/powerpc32/dl-machine.c
598 (__elf_machine_fixup_plt): Use space before '('.
599 (__process_machine_rela): Likewise.
600 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
601 Likewise.
602 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
603 Likewise.
604 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
605 Likewise.
606 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
607 (pattern): Likewise.
608 (delta): Likewise.
609 (check_result): Likewise.
610 (check_excepts): Likewise.
611 (check_op): Likewise.
612 (fail_xr): Likewise.
613 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
614 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
615 (SCNHSZ): Likewise.
616 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
617 Likewise.
618 (ARGS): Likewise.
619 (__makecontext): Likewise.
620 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
621 Likewise.
622
623 2019-02-28 Florian Weimer <fweimer@redhat.com>
624
625 [BZ #23937]
626 elf: Add test with a local IFUNC resolver.
627 * elf/ifuncmain9.c: New file.
628 * elf/ifuncmain9pic.c: Likewise.
629 * elf/ifuncmain9picstatic.c: Likewise.
630 * elf/ifuncmain9pie.c: Likewise.
631 * elf/ifuncmain9static.c: Likewise.
632 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
633 ifuncmain9static, ifuncmain9picstatic.
634 * elf/Makefile [multi-arch && build-shared] (tests-internal):
635 Add ifuncmain9, ifuncmain9pic.
636 * elf/Makefile [multi-arch && build-shared && have-fpie]
637 (ifunc-pie-tests): Add ifuncmain9pie.
638 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
639 (CFLAGS-ifuncmain9picstatic.c): Likewise.
640 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
641
642 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
643
644 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
645 * configure: Regenerated.
646 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
647
648 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
649
650 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
651 symbol as __wcspcy instead of wcscpy.
652
653 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
654
655 * include/stdio.h (__renameat2): New hidden prototype.
656 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
657 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
658 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
659 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
660
661 2019-02-27 Joseph Myers <joseph@codesourcery.com>
662
663 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
664 if statement.
665
666 * benchtests/bench-strcpy.c (do_test): Use space before '('.
667 * benchtests/bench-string.h (cmdline_process_function): Likewise.
668 * benchtests/bench-strlen.c (do_test): Likewise.
669 (test_main): Likewise.
670 * catgets/gencat.c (read_old): Likewise.
671 * elf/cache.c (load_aux_cache): Likewise.
672 * iconvdata/bug-iconv8.c (do_test): Likewise.
673 * math/test-tgmath-ret.c (do_test): Likewise.
674 * nis/nis_call.c (rec_dirsearch): Likewise.
675 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
676 * nptl/tst-audit-threads.c (do_test): Likewise.
677 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
678 * nss/nss_test1.c (init): Likewise.
679 * nss/test-netdb.c (test_hosts): Likewise.
680 * posix/execvpe.c (maybe_script_execute): Likewise.
681 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
682 * stdio-common/tst-printf.c (do_test): Likewise.
683 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
684 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
685 * stdlib/qsort.c (STACK_SIZE): Likewise.
686 * stdlib/test-canon.c (do_test): Likewise.
687 * stdlib/tst-swapcontext1.c (do_test): Likewise.
688 * string/memcmp.c (OPSIZ): Likewise.
689 * string/test-strcpy.c (do_test): Likewise.
690 (do_random_tests): Likewise.
691 * string/test-strlen.c (do_test): Likewise.
692 (test_main): Likewise.
693 * string/test-strrchr.c (do_test): Likewise.
694 (do_random_tests): Likewise.
695 * string/tester.c (test_memrchr): Likewise.
696 (test_memchr): Likewise.
697 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
698 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
699 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
700 (read_encoded_value_with_base): Likewise.
701 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
702 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
703 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
704 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
705 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
706 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
707 Likewise.
708 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
709 Likewise.
710 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
711 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
712 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
713 Likewise.
714 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
715 Likewise.
716 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
717 Likewise.
718 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
719 Likewise.
720 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
721 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
722 (FP_XSTATE_MAGIC2_SIZE): Likewise.
723 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
724 * time/test_time.c (main): Likewise.
725
726 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
727
728 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
729
730 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
731 wmemcpy.
732
733 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
734 wmemcpy.
735
736 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
737
738 * include/wchar.h (__wcscpy): New prototype.
739 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
740 (__wcscpy): Route internal symbol to generic implementation.
741 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
742 Add internal __wcscpy alias.
743 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
744 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
745 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
746 * wcsmbs/wcscpy.c (wcscpy): Add
747 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
748 use generic implementation.
749 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
750
751 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
752 wmemset.
753
754 * sysdeps/m68k/wcpcpy.c: Remove file.
755 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
756
757 2019-02-26 Joseph Myers <joseph@codesourcery.com>
758
759 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
760 than after operators.
761 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
762 * sysdeps/mach/hurd/getcwd.c
763 (__hurd_canonicalize_directory_name_internal): Likewise.
764 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
765 (pthread_mutex_consistent): Likewise.
766 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
767 Likewise.
768 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
769 (__pthread_mutex_transfer_np): Likewise.
770 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
771 (__pthread_mutex_unlock): Likewise.
772 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
773 (mtx_owned_p): Likewise.
774 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
775 (pthread_mutexattr_getrobust): Likewise.
776 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
777 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
778 Likewise.
779 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
780 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
781 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
782 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
783 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
784 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
785 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
786 Likewise.
787 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
788 Likewise.
789 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
790 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
791 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
792 (____longjmp_chk): Likewise.
793 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
794 Likewise.
795 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
796 (INTERNAL_SYSCALL): Likewise.
797 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
798 (INTERNAL_SYSCALL): Likewise.
799 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
800 (__get_clockfreq_via_cpuinfo): Likewise.
801
802 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
803 comments.
804 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
805 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
806 (WORD_COPY_BWD): Likewise.
807 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
808 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
809 Likewise.
810 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
811 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
812 comment.
813 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
814
815 2019-02-25 Joseph Myers <joseph@codesourcery.com>
816
817 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
818 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
819 rather than after operators.
820 * elf/cache.c (print_cache): Likewise.
821 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
822 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
823 * hurd/hurdinit.c (_hurd_setproc): Likewise.
824 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
825 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
826 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
827 (reauth_proc): Likewise.
828 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
829 (__file_name_split_at): Likewise.
830 (__directory_name_split_at): Likewise.
831 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
832 * hurd/port2fd.c (_hurd_port2fd): Likewise.
833 * iconv/gconv_dl.c (do_print): Likewise.
834 * inet/netinet/in.h (struct sockaddr_in): Likewise.
835 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
836 * locale/setlocale.c (new_composite_name): Likewise.
837 * malloc/memusagestat.c (main): Likewise.
838 * misc/fstab.c (fstab_convert): Likewise.
839 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
840 Likewise.
841 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
842 (getgrent_next_file): Likewise.
843 (internal_getgrnam_r): Likewise.
844 (internal_getgrgid_r): Likewise.
845 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
846 Likewise.
847 (internal_getgrent_r): Likewise.
848 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
849 (getpwent_next_nss): Likewise.
850 (getpwent_next_file): Likewise.
851 (internal_getpwnam_r): Likewise.
852 (internal_getpwuid_r): Likewise.
853 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
854 Likewise.
855 (getspent_next_nss): Likewise.
856 (internal_getspnam_r): Likewise.
857 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
858 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
859 * string/strchr.c (STRCHR): Likewise.
860 * string/strchrnul.c (STRCHRNUL): Likewise.
861 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
862 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
863 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
864 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
865 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
866 Likewise.
867 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
868 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
869 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
870 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
871 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
872 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
873 (open_file): Likewise.
874 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
875 (pthread_mutexattr_setprotocol): Likewise.
876 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
877 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
878 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
879 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
880 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
881 Likewise.
882 (elf_machine_rela): Likewise.
883 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
884 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
885 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
886 * sysdeps/posix/rename.c (rename): Likewise.
887 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
888 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
889 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
890 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
891 * sysdeps/unix/grantpt.c (grantpt): Likewise.
892 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
893 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
894 Likewise.
895 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
896 Likewise.
897 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
898 * time/tzfile.c (__tzfile_compute): Likewise.
899
900 2019-02-22 Joseph Myers <joseph@codesourcery.com>
901
902 * benchtests/bench-memmem.c (simple_memmem): Break lines before
903 rather than after operators.
904 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
905 * crypt/md5.c (md5_finish_ctx): Likewise.
906 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
907 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
908 * elf/cache.c (load_aux_cache): Likewise.
909 * elf/dl-load.c (open_verify): Likewise.
910 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
911 * elf/readelflib.c (process_elf_file): Likewise.
912 * elf/rtld.c (dl_main): Likewise.
913 * elf/sprof.c (generate_call_graph): Likewise.
914 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
915 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
916 * hurd/dtable.c (reauth_dtable): Likewise.
917 * hurd/getdport.c (__getdport): Likewise.
918 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
919 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
920 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
921 Likewise.
922 * hurd/hurdioctl.c (fioctl): Likewise.
923 * hurd/hurdselect.c (_hurd_select): Likewise.
924 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
925 (STOPSIGS): Likewise.
926 * hurd/hurdstartup.c (_hurd_startup): Likewise.
927 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
928 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
929 * hurd/msgportdemux.c (msgport_server): Likewise.
930 * hurd/setauth.c (_hurd_setauth): Likewise.
931 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
932 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
933 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
934 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
935 * login/tst-utmp.c (do_check): Likewise.
936 (simulate_login): Likewise.
937 * mach/lowlevellock.h (lll_lock): Likewise.
938 (lll_trylock): Likewise.
939 * math/test-fenv.c (ALL_EXC): Likewise.
940 * math/test-fenvinline.c (ALL_EXC): Likewise.
941 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
942 * nis/nis_call.c (__do_niscall3): Likewise.
943 * nis/nis_callback.c (cb_prog_1): Likewise.
944 * nis/nis_defaults.c (searchaccess): Likewise.
945 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
946 * nis/nis_ismember.c (internal_ismember): Likewise.
947 * nis/nis_local_names.c (nis_local_principal): Likewise.
948 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
949 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
950 Likewise.
951 * nis/ypclnt.c (yp_match): Likewise.
952 (yp_first): Likewise.
953 (yp_next): Likewise.
954 (yp_master): Likewise.
955 (yp_order): Likewise.
956 * nscd/hstcache.c (cache_addhst): Likewise.
957 * nscd/initgrcache.c (addinitgroupsX): Likewise.
958 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
959 (internal_getpwuid_r): Likewise.
960 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
961 * posix/glob.h (__GLOB_FLAGS): Likewise.
962 * posix/regcomp.c (peek_token): Likewise.
963 (peek_token_bracket): Likewise.
964 (parse_expression): Likewise.
965 * posix/regexec.c (sift_states_iter_mb): Likewise.
966 (check_node_accept_bytes): Likewise.
967 * posix/tst-spawn3.c (do_test): Likewise.
968 * posix/wordexp-test.c (testit): Likewise.
969 * posix/wordexp.c (parse_tilde): Likewise.
970 (exec_comm): Likewise.
971 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
972 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
973 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
974 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
975 * stdio-common/tst-fileno.c (do_test): Likewise.
976 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
977 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
978 * stdlib/strtod_l.c (round_and_return): Likewise.
979 (____STRTOF_INTERNAL): Likewise.
980 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
981 * string/strcspn.c (STRCSPN): Likewise.
982 * string/test-memmem.c (simple_memmem): Likewise.
983 * termios/tcsetattr.c (tcsetattr): Likewise.
984 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
985 * time/asctime.c (asctime_internal): Likewise.
986 * time/strptime_l.c (__strptime_internal): Likewise.
987 * time/sys/time.h (timercmp): Likewise.
988 * time/tzfile.c (__tzfile_compute): Likewise.
989
990 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
991
992 [BZ #21915]
993 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
994
995 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
996
997 * argp/argp-help.c (__argp_error_internal): New function,
998 renamed from __argp_error, but that takes a 'mode_flags'
999 parameter to control the format of long double parameters.
1000 (__argp_error): Converted into a call __argp_error_internal.
1001 (__argp_failure_internal): New function, renamed from
1002 __argp_failure, but that takes a 'mode_flags' parameter.
1003 (__argp_failure): Converted into a call __argp_failure_internal.
1004 * misc/err.c (__vwarnx_internal): New function, renamed from
1005 vwarnx, but that takes a 'mode_flags' parameter.
1006 (vwarnx): Converted into a call to __vwarnx_internal.
1007 (__vwarn_internal): New function, renamed from vwarn, but that
1008 takes a 'mode_flags' parameter.
1009 (vwarn): Converted into a call to __vwarn_internal.
1010 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
1011 call to __vfxprintf with 'mode_flags'.
1012 (__error_internal): New function, renamed from error, but that
1013 takes a 'mode_flags' parameter.
1014 (error): Converted into a call to __error_internal.
1015 (__error_at_line_internal): New function, renamed from
1016 error_at_line, but that takes a 'mode_flags' parameter.
1017 (error_at_line): Converted into a call to
1018 __error_at_line_internal.
1019 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
1020 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
1021 Likewise.
1022
1023 2019-02-20 Martin Liska <mliska@suse.cz>
1024
1025 * math/Makefile: Install math-vector-fortran.h.
1026 * bits/math-vector-fortran.h: New file.
1027 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1028
1029 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1030
1031 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1032 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1033
1034 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
1035
1036 * nptl/pthread_mutex_trylock.c: Fix comment.
1037
1038 2019-02-19 Carlos O'Donell <carlos@redhat.com>
1039
1040 * nptl/pthread_tryjoin.c: Fix comment.
1041
1042 2019-02-18 Joseph Myers <joseph@codesourcery.com>
1043
1044 [BZ #24231]
1045 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1046 after R_SPARC_H34 case.
1047
1048 2019-02-18 Florian Weimer <fweimer@redhat.com>
1049
1050 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1051 (getanswer): Do not call Dprintf.
1052 (res_gethostbyname2_context): Likewise.
1053 (res_gethostbyaddr_context): Likewise.
1054
1055 2019-02-18 Florian Weimer <fweimer@redhat.com>
1056
1057 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1058 declaration.
1059 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1060 Remove definitions.
1061 * libio/stdfiles.c: Update comment.
1062 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
1063 set _IO_stdin, _IO_stdout, _IO_stderr.
1064 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1065 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1066 inline function.
1067 (_IO_deallocate_file): New inline function.
1068 * libio/iolibio.h (_IO_vprintf): Remove definition.
1069 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1070 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1071 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1072 _IO_legacy_file.
1073 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1074 __builtin_expect. Use _IO_legacy_file.
1075
1076 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
1077
1078 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1079 Initialize ctid with a known value and remove update of ctid
1080 after clone.
1081 (wait_tid): Adjust arguments and call futex_wait with ctid_val
1082 as assumed current value of ctid_ptr.
1083
1084 2019-02-15 Florian Weimer <fweimer@redhat.com>
1085
1086 Check that non-sysdeps headers have wrapper headers.
1087 * scripts/check-wrapper-headers.py: New file.
1088 * Makefile (tests-special): Add check-wrapper-headers.out.
1089 (check-wrapper-headers.out): New target.
1090 * Rules (tests-special): Add check-wrapper-headers.out.
1091 (check-wrapper-headers.out): New target.
1092
1093 2019-02-15 Florian Weimer <fweimer@redhat.com>
1094
1095 Add missing header wrappers under include/.
1096 * include/ar.h: New file.
1097 * include/bits/mqueue2.h: Likewise.
1098 * include/bits/stdio.h: Likewise.
1099 * include/bits/stdio2.h: Likewise.
1100 * include/fstab.h: Likewise.
1101 * include/fts.h: Likewise.
1102 * include/lastlog.h: Likewise.
1103 * include/netinet/icmp6.h: Likewise.
1104 * include/netinet/igmp.h: Likewise.
1105 * include/netinet/ip6.h: Likewise.
1106 * include/re_comp.h: Likewise.
1107 * include/regexp.h: Likewise.
1108 * include/rpcsvc/bootparam.h: Likewise.
1109 * include/rpcsvc/yp_prot.h: Likewise.
1110 * include/sys/random.h: Likewise.
1111 * include/sys/stropts.h: Likewise.
1112 * include/sys/ttychars.h: Likewise.
1113 * include/sys/vfs.h: Likewise.
1114 * include/wait.h: Likewise.
1115
1116 2019-02-15 Florian Weimer <fweimer@redhat.com>
1117
1118 * nptl_db/proc_service.h: Move to ...
1119 * sysdeps/nptl/proc_service.h: ... here.
1120 * nptl_db/thread_db.h: Move to ...
1121 * sysdeps/nptl/thread_db.h: ... here.
1122 * nptl/descr.h: Include <thread_db.h>.
1123
1124 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1125
1126 * io/Makefile (tests): Add tst-lockf.
1127 * io/lockf.c (lockf): Use __fcntl and only define for
1128 !__OFF_T_MATCHES_OFF64_T.
1129 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1130 __OFF_T_MATCHES_OFF64_T case.
1131 * io/tst-lockf.c: New file.
1132 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1133 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1134 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1135 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1136 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1138 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1139 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1140 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1141
1142 2019-02-15 Florian Weimer <fweimer@redhat.com>
1143
1144 [BZ #24211]
1145 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1146 pd->result after the thread descriptor has been freed.
1147
1148 2019-02-15 Joseph Myers <joseph@codesourcery.com>
1149
1150 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1151 from function return type.
1152
1153 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1154
1155 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 * scripts/test_printers_common.py: Set TERM to a known harmless
1158 value.
1159
1160 2019-02-14 Joseph Myers <joseph@codesourcery.com>
1161
1162 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1163 (xdr_u_int): Likewise.
1164 (xdr_enum): Likewise.
1165 (xdr_bytes): Reword fall-through comment.
1166 (xdr_string): Likewise.
1167
1168 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1169
1170 [BZ #2421]
1171 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1172 (tests): Add tst-join8 tst-join9.
1173 * nptl/lll_timedwait_tid.c: Remove file.
1174 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1175 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1176 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1177 * nptl/pthread_join_common.c (timedwait_tid): New function.
1178 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1179 is set.
1180 * nptl/tst-join5.c (thread_join): New function.
1181 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1182 check.
1183 * nptl/tst-join8.c: New file.
1184 * nptl/tst-join9.c: Likewise.
1185 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1186 lll_futex_timed_wait_cancel): Add generic macros.
1187 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1188 Remove definitions.
1189 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1190 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1191 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1192 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1193 Remove function.
1194 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1195 Likewise.
1196 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1197 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1198 (lll_futex_timed_wait_cancel): New macro.
1199
1200 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1201
1202 * benchtests/Makefile: Add malloc-simple benchmark.
1203 * benchtests/bench-malloc-simple.c: New benchmark.
1204
1205 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1206
1207 * benchtests/bench-memmove.c (do_one_test): Remove unused
1208 ORIG_SRC.
1209 (do_test): Adjust.
1210 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1211 ORIG_SRC.
1212 (do_test): Adjust.
1213
1214 2019-01-13 Jim Wilson <jimw@sifive.com>
1215
1216 [BZ #24040]
1217 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1218 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1219 (func): New.
1220 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1221 call func directly.
1222 * nptl/Makefile (tests): Add tst-unwind-thread.
1223 (CFLAGS-tst-unwind-thread.c): Define.
1224 * nptl/tst-unwind-thread.c: New file.
1225 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1226 as undefined.
1227
1228 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1229
1230 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1231 comment wording.
1232 * nis/nis_call.c (__do_niscall3): Likewise.
1233
1234 * catgets/gencat.c (normalize_line): Use braces around empty
1235 'else' body.
1236 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1237 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1238 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1239 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1240 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1241 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1242 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1243 definition.
1244
1245 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1246 execlp returns.
1247
1248 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1249
1250 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1251 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1252 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1253 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1254 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1255 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1256 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1257 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1258 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1259 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1260 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1261 * benchtests/bench-bcopy.c: Delete file.
1262 * benchtests/bench-bzero.c: Likewise.
1263 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1264 (simple_memccpy): Remove.
1265 (generic_memccpy): Add function.
1266 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1267 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1268 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1269 (generic_mempcpy): Add new function.
1270 * benchtests/bench-memset.c (simple_bzero): Remove.
1271 (builtin_bzero): Remove.
1272 (builtin_memset): Remove.
1273 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1274 (generic_rawmemchr): Add new function.
1275
1276 2019-02-12 Florian Weimer <fweimer@redhat.com>
1277
1278 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1279
1280 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1281
1282 [BZ #24122]
1283 * elf/Makefile (tests): Add tst-audit13.
1284 (modules-names): Add tst-audit13mod1.
1285 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1286 rule.
1287 * elf/tst-audit13.c: New file.
1288 * elf/tst-audit13mod1.c: Likewise.
1289
1290 2019-02-12 Florian Weimer <fweimer@redhat.com>
1291
1292 [BZ #24122]
1293 * elf/rtld.c (unload_audit_module): New function.
1294 (report_audit_module_load_error): Likewise.
1295 (load_audit_module): Likewise. Extracted from dl_main. Call
1296 _dl_close if the laversion symbol cannot be found. Use early
1297 returns for error handling. Add malloc error check. Check for a
1298 zero return value from la_version. Remove spurious comment about
1299 static TLS initialization. Remove useless casts.
1300 (notify_audit_modules_of_loaded_object): New function. Extracted
1301 from dl_main.
1302 (load_audit_module): Likewise.
1303 (dl_main): Call load_audit_modules.
1304
1305 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1306
1307 * elf/dl-exception.c (_dl_exception_create_format): Add
1308 fall-through comments.
1309 * elf/ldconfig.c (parse_conf_include): Likewise.
1310 * elf/rtld.c (print_statistics): Likewise.
1311 * locale/programs/charmap.c (parse_charmap): Likewise.
1312 * misc/mntent_r.c (__getmntent_r): Likewise.
1313 * posix/wordexp.c (parse_arith): Likewise.
1314 (parse_backtick): Likewise.
1315 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1316 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1317 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1318
1319 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1320
1321 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1322 Use float instead of double.
1323
1324 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1325
1326 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1327
1328 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1329
1330 * sysdeps/powerpc/bits/mathinline.h: Remove.
1331
1332 2019-02-08 Florian Weimer <fweimer@redhat.com>
1333
1334 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1335 * math/bits/math-finite.h: Move to ...
1336 * bits/math-finite.h: ... here.
1337
1338 2019-02-08 Florian Weimer <fweimer@redhat.com>
1339
1340 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1341 * bits/unistd_ext.h: here.
1342
1343 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1344
1345 [BZ #21915]
1346 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1347 * nss/tst-nss-files-hosts-long.c: New file.
1348 * nss/tst-nss-files-hosts-long.root: New directory.
1349 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1350 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1351
1352 2019-02-08 Florian Weimer <fweimer@redhat.com>
1353
1354 * include/bits/unistd_ext.h: Remove file.
1355 * posix/bits/unistd_ext.h: Move to ...
1356 * sysdeps/generic/bits/unistd_ext.h: ... here.
1357
1358 2019-02-08 Florian Weimer <fweimer@redhat.com>
1359
1360 * include/bits/unistd_ext.h: New file.
1361
1362 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1363
1364 * time/tst-strftime2.c: Use array_length macros instead of magic
1365 numbers.
1366
1367 2019-02-08 Florian Weimer <fweimer@redhat.com>
1368
1369 [BZ #24161]
1370 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1371 argument.
1372 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1373 locking if the new do_locking argument is true.
1374 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1375 __run_fork_handlers.
1376
1377 2019-02-08 Florian Weimer <fweimer@redhat.com>
1378
1379 [BZ #6399]
1380 Linux: Add gettid system call wrapper.
1381 * posix/Makefile (headers): Add bits/unistd_ext.h.
1382 * posix/bits/unistd_ext.h: New file.
1383 * posix/unistd.h: Include it.
1384 * manual/process.texi (Process Identification): Document gettid.
1385 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1386 tst-gettid, tst-gettid-kill.
1387 (tst-gettid): Link with $(shared-thread-library).
1388 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1389 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1390 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1391 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1392 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1393 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1394 Add gettid.
1395 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1396 Likewise.
1397 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1398 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1399 Likewise.
1400 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1401 Likewise.
1402 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1403 Likewise.
1404 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1405 Likewise.
1406 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1407 Likewise.
1408 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1409 Likewise.
1410 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1411 Likewise.
1412 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1413 (GLIBC_2.30): Likewise.
1414 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1415 (GLIBC_2.30): Likewise.
1416 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1417 (GLIBC_2.30): Likewise.
1418 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1419 (GLIBC_2.30): Likewise.
1420 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1421 Likewise.
1422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1423 (GLIBC_2.30): Likewise.
1424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1425 (GLIBC_2.30): Likewise.
1426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1427 (GLIBC_2.30): Likewise.
1428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1429 (GLIBC_2.30): Likewise.
1430 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1431 Likewise.
1432 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1433 Likewise.
1434 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1435 Likewise.
1436 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1437 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1438 Likewise.
1439 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1440 Likewise.
1441 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1442 Likewise.
1443 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1444 Likewise.
1445 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1446
1447 2019-02-07 Florian Weimer <fweimer@redhat.com>
1448
1449 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1450 compatibility symbols.
1451
1452 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1453
1454 [BZ #24180]
1455 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1456 Add compiler barriers and comments.
1457
1458 2019-02-07 Florian Weimer <fweimer@redhat.com>
1459
1460 * include/array_length.h (array_length): Do not use a statement
1461 expression and _Static_assert, so that array_length can be used at
1462 file scope and as a constant expression.
1463
1464 2019-02-07 Florian Weimer <fweimer@redhat.com>
1465
1466 * support/xdlfcn.h (xdlmopen): Declare.
1467 * support/xdlmopen.c: New file.
1468 * support/Makefile (libsupport-routines): Add xdlmopen.
1469
1470 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1471
1472 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1473 before return type, without separate inline.
1474 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1475 * elf/dl-tunables.h (tunable_is_name): Likewise.
1476 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1477 (do_set_top_pad): Likewise.
1478 (do_set_mmap_threshold): Likewise.
1479 (do_set_mmaps_max): Likewise.
1480 (do_set_mallopt_check): Likewise.
1481 (do_set_perturb_byte): Likewise.
1482 (do_set_arena_test): Likewise.
1483 (do_set_arena_max): Likewise.
1484 (do_set_tcache_max): Likewise.
1485 (do_set_tcache_count): Likewise.
1486 (do_set_tcache_unsorted_limit): Likewise.
1487 * nis/nis_subr.c (count_dots): Likewise.
1488 * nptl/allocatestack.c (advise_stack_range): Likewise.
1489 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1490 (do_sin): Likewise.
1491 (reduce_sincos): Likewise.
1492 (do_sincos): Likewise.
1493 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1494 (do_set_elision_enable): Likewise.
1495 (TUNABLE_CALLBACK_FNDECL): Likewise.
1496
1497 2019-02-06 Florian Weimer <fweimer@redhat.com>
1498
1499 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1500 (xdlsym): Use dlerror to detect a NULL symbol.
1501
1502 2019-02-06 Florian Weimer <fweimer@redhat.com>
1503
1504 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1505 <stap-probe.h>.
1506 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1507
1508 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1509
1510 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1511
1512 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1513
1514 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1515 __wmemcmp and weak alias to wmemcmp.
1516
1517 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1518
1519 [BZ #23403]
1520 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1521 TLS_TCB_AT_TP tls variant.
1522 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1523 Add alignment checks.
1524 * support/Makefile (libsupport-routines): Add xposix_memalign and
1525 xpthread_setstack.
1526 * support/support.h: Add xposix_memalign.
1527 * support/xthread.h: Add xpthread_attr_setstack.
1528 * support/xposix_memalign.c: New File.
1529 * support/xpthread_attr_setstack.c: Likewise.
1530
1531 2019-02-05 Florian Weimer <fweimer@redhat.com>
1532
1533 [BZ #24164]
1534 arm: Use "nr" constraint for Systemtap probes, to avoid the
1535 compiler using memory operands for constants, due to the "o"
1536 alternative in the default "nor" constraint.
1537 * include/stap-probe.h [USE_STAP_PROBE]: Include
1538 <stap-probe-machine.h>
1539 * sysdeps/generic/stap-probe-machine.h: New file.
1540 * sysdeps/arm/stap-probe-machine.h: Likewise.
1541
1542 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1543
1544 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1545 with 0, not tcache->entries[tc_idx].
1546
1547 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1548 once.
1549
1550 2019-02-04 Andreas Schwab <schwab@suse.de>
1551
1552 [BZ #16976]
1553 [BZ #17396]
1554 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1555 looking up collating elements match against (wide) character
1556 sequence instead of name. Correct alignment adjustment.
1557 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1558 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1559 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1560 (LOCALES): Add cs_CZ.ISO-8859-2.
1561 * posix/tst-fnmatch4.c: New file.
1562 * posix/tst-fnmatch5.c: New file.
1563 * include/wchar.h (__wmemcmp): Declare.
1564 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1565 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1566 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1567 * sysdeps/s390/wmemcmp.c: Likewise.
1568
1569 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1570
1571 [BZ #24155]
1572 CVE-2019-7309
1573 * NEWS: Updated for CVE-2019-7309.
1574 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1575 upper 32 bits of RDX register for x32. Use unsigned Jcc
1576 instructions, instead of signed.
1577 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1578 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1579
1580 2019-02-04 Florian Weimer <fweimer@redhat.com>
1581
1582 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1583 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1584 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1585 Likewise.
1586 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1587 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1588 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1589 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1590 Likewise.
1591 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1592 Likewise.
1593 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1594 Likewise.
1595 (posix_spawn_file_actions_addopen): Likewise.
1596 (posix_spawn_file_actions_addclose): Likewise.
1597 (posix_spawn_file_actions_adddup2): Likewise.
1598 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1599 qualifiers.
1600 (posix_spawn_file_actions_addfchdir_np): Likewise.
1601
1602 2019-02-04 David Newall <glibc@davidnewall.com>
1603
1604 elf: Implement --preload option for the dynamic linker.
1605 * elf/rtld.c (preloadarg): New variable.
1606 (handle_preload_list): Pass through “where” argument to
1607 do_preload.
1608 (dl_main): Handle "--preload" and add second call to
1609 handle_preload_list.
1610 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1611 (tst-rtld-preload-OBJS): Set variable.
1612 (tst-rtld-preload.out): New target.
1613 * elf/tst-rtld-preload.sh: New file.
1614
1615 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1616
1617 * Makefile (testrun.sh): Exit in case of incorrect argument.
1618
1619 2019-02-04 Florian Weimer <fweimer@redhat.com>
1620
1621 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1622 alignment gaps.
1623
1624 2019-02-03 Florian Weimer <fweimer@redhat.com>
1625
1626 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1627 implicit overflow checks.
1628
1629 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1630
1631 * stdlib/isomac.c: Include <unistd.h>.
1632
1633 2019-02-03 Florian Weimer <fweimer@redhat.com>
1634
1635 * include/time.h (__tzfile_default): Use int, not long int, for
1636 the GMT offsets.
1637 * time/tzfile.c (struct ttinfo): Change type of the offset member
1638 to int.
1639 (__tzfile_read): Remove useless cast.
1640 (__tzfile_default): Adjust prototype.
1641 * time/tzset.c (tz_rule): Change type of the offset member to int.
1642 (parse_offset): Change the type of the sign variable to int.
1643
1644 2019-02-03 Florian Weimer <fweimer@redhat.com>
1645
1646 [BZ #24153]
1647 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1648 * libio/getchar.c (getchar): Likewise.
1649 * libio/getchar_u.c (getchar_unlocked): Likewise.
1650 * libio/getwchar.c (getwchar): Likewise.
1651 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1652 * libio/iogets.c (_IO_gets): Likewise.
1653 * libio/vscanf.c (_IO_vscanf): Likewise.
1654 * libio/vwscanf.c (__vwscanf): Likewise.
1655 * libio/tst-bz24153.c: New file.
1656 * libio/Makefile (tests): Add it.
1657
1658 2019-02-02 Florian Weimer <fweimer@redhat.com>
1659
1660 [BZ #14829]
1661 * manual/resource.texi (Basic Scheduling Functions): Add
1662 portability note. Change process to task throughout the section.
1663 Remove incorrect comment about sched_yield as it affects
1664 tasks/threads, not entire processes.
1665 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1666 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1667
1668 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1669
1670 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1671 * configure: Regenerated.
1672 * manual/install.texi (Tools for Compilation): Update minimum GCC
1673 version.
1674 * INSTALL: Regenerated.
1675
1676 2019-02-01 Florian Weimer <fweimer@redhat.com>
1677
1678 * support/support_test_compare_string.c
1679 (support_test_compare_string): Use "string" in error message.
1680 * support/tst-test_compare_string.c (do_test): Adjust.
1681
1682 2019-02-01 Florian Weimer <fweimer@redhat.com>
1683
1684 * support/support_format_address_family.c
1685 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1686
1687 2019-02-01 Florian Weimer <fweimer@redhat.com>
1688
1689 * manual/socket.texi (Internet Address Formats): Clarify the byte
1690 order of struct sockaddr_in, struct sockaddr_in6. Document
1691 sin6_flowinfo and sin6_scope_id.
1692
1693 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1694
1695 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1696 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1697 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1698 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1699 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1700 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1701
1702 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1703
1704 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1705 [!MEMCHR](MEMCHR): Set to __memchr.
1706 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1707 Add memchr_generic and memchr_nosimd.
1708 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1709 (__libc_ifunc_impl_list): Add memchr ifuncs.
1710 * sysdeps/aarch64/multiarch/memchr.c: New file.
1711 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1712 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1713
1714 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1715
1716 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1717 Add memset_emag.
1718 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1719 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1720 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1721 Add IS_EMAG check for ifunc dispatch.
1722 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1723 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1724
1725 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1726
1727 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1728 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1729 Add emag.
1730 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1731 New macro.
1732
1733 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1734
1735 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1736
1737 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1738
1739 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1740 syscall-template file.
1741
1742 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1743 Torvald Riegel <triegel@redhat.com>
1744 Rik Prohaska <prohaska7@gmail.com>
1745
1746 [BZ# 23844]
1747 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1748 tst-rwlock-trywrlock-stall.
1749 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1750 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1751 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1752 Set __wrphase_fute to 1 only if we started the write phase.
1753 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1754 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1755 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1756 * support/xpthread_rwlock_destroy.c: New file.
1757 * support/xthread.h: Declare xpthread_rwlock_destroy.
1758
1759 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1760
1761 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1762 version to 4.0.2.
1763
1764 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1765
1766 [BZ #24051]
1767 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1768 * libio/fileops.c (_IO_new_file_underflow): Likewise
1769 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1770 * libio/putchar.c (putchar): Likewise.
1771 * libio/putchar_u.c (putchar_unlocked): Likewise.
1772 * libio/putwchar.c (putchar): Likewise.
1773 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1774 * libio/tst-bz24051.c: New test.
1775 * libio/Makefile (tests): Add tst-bz24051
1776
1777 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1778
1779 CVE-2019-9169
1780 regex: fix read overrun [BZ #24114]
1781 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1782 https://debbugs.gnu.org/34140
1783 * posix/regexec.c (proceed_next_node):
1784 Do not read past end of input buffer.
1785
1786 2019-01-31 Florian Weimer <fweimer@redhat.com>
1787
1788 [BZ #24059]
1789 * nss/nss_files/files-alias.c (get_next_alias): Handle
1790 continuation line without newline at the end.
1791 * nss/tst-nss-files-alias-truncated.c: New file.
1792 * nss/Makefile [$(build-shared)] (tests): Add
1793 tst-nss-files-alias-truncated.
1794 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1795 * support/namespace.h (struct support_chroot_configuration): Add
1796 aliases member.
1797 (struct support_chroot): Add path_aliases member.
1798 * support/support_chroot.c (support_chroot_create): Handle
1799 aliases.
1800 (support_chroot_free): Free path_aliases.
1801
1802 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1803
1804 * version.h (RELEASE): Set to "development".
1805 (VERSION): Set to "2.29.9000".
1806 * NEWS: Add section for 2.30.
1807
1808 * version.h (RELEASE): Set to "stable".
1809 (VERSION): Set to "2.29".
1810 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1811
1812 * NEWS: Add the list of bugs fixed in 2.29.
1813 * manual/contrib.texi: Update contributors list with some more
1814 names.
1815 * manual/install.texi: Update latest versions of packages
1816 tested.
1817 * INSTALL: Regenerated.
1818
1819 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1820
1821 * po/be.po: Update translations.
1822 * po/bg.po: Likewise.
1823 * po/ca.po: Likewise.
1824 * po/cs.po: Likewise.
1825 * po/da.po: Likewise.
1826 * po/de.po: Likewise.
1827 * po/el.po: Likewise.
1828 * po/eo.po: Likewise.
1829 * po/es.po: Likewise.
1830 * po/fi.po: Likewise.
1831 * po/fr.po: Likewise.
1832 * po/gl.po: Likewise.
1833 * po/hr.po: Likewise.
1834 * po/hu.po: Likewise.
1835 * po/ia.po: Likewise.
1836 * po/id.po: Likewise.
1837 * po/it.po: Likewise.
1838 * po/ja.po: Likewise.
1839 * po/ko.po: Likewise.
1840 * po/lt.po: Likewise.
1841 * po/nb.po: Likewise.
1842 * po/nl.po: Likewise.
1843 * po/pl.po: Likewise.
1844 * po/pt_BR.po: Likewise.
1845 * po/ru.po: Likewise.
1846 * po/rw.po: Likewise.
1847 * po/sk.po: Likewise.
1848 * po/sl.po: Likewise.
1849 * po/sv.po: Likewise.
1850 * po/tr.po: Likewise.
1851 * po/uk.po: Likewise.
1852 * po/vi.po: Likewise.
1853 * po/zh_CN.po: Likewise.
1854 * po/zh_TW.po: Likewise.
1855
1856 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1857
1858 [BZ #24130]
1859 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1860 of $f3 register on $y_is_neg path.
1861
1862 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1863
1864 [BZ #24110]
1865 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1866 sigaltstack.ss_flags.
1867
1868 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1869
1870 [BZ #23758]
1871 * manual/time.texi (strftime): Document "%Ey".
1872 * time/strftime_l.c (__strftime_internal): Set the default width
1873 padding with zero of "%Ey" to 2.
1874
1875 [BZ #24096]
1876 * manual/time.texi (strftime): Document "%EC" and "%EY".
1877 * time/Makefile (tests): Add tst-strftime2.
1878 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1879 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1880 override padding for "%Ey".
1881 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1882 "%Ey" in the subformat as if decorated with that flag.
1883 * time/tst-strftime2.c: New file.
1884
1885 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1886
1887 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1888 are not defined.
1889
1890 [BZ #24122]
1891 * elf/Makefile (tests): Add tst-audit13.
1892 (modules-names): Add tst-audit13mod1.
1893 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1894 rule.
1895 * elf/rtld.c (dl_main): Handle invalid audit module version.
1896 * elf/tst-audit13.c: New file.
1897 * elf/tst-audit13mod1.c: Likewise.
1898
1899 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1900
1901 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1902 returned by __hurd_at_flags.
1903 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1904 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1905 directly instead of __hurd_file_name_lookup.
1906
1907 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1908
1909 * scripts/build-many-glibcs.py (Context.checkout): Default
1910 binutils version to 2.32 branch.
1911
1912 2019-01-21 Florian Weimer <fweimer@redhat.com>
1913
1914 [BZ #20018]
1915 CVE-2016-10739
1916 resolv: Reject trailing characters in host names
1917 * include/arpa/inet.h (__inet_aton_exact): Declare.
1918 (inet_aton): Remove hidden prototype. No longer used internally.
1919 * nscd/gai.c (__inet_aton): Do not define.
1920 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1921 * nss/digits_dots.c (__inet_aton): Likewise.
1922 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1923 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1924 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1925 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1926 (tst-resolv-trailing): Likewise.
1927 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1928 libc.
1929 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1930 Make static. Add endp parameter.
1931 (__inet_aton_exact): New function.
1932 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1933 (__inet_addr): Call inet_aton_end.
1934 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1935 not just IPv6. Call __inet_aton_exact.
1936 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1937 (tests): Make const. Add additional test cases with trailing
1938 characters.
1939 (do_test): Use array_length.
1940 * resolv/tst-inet_aton_exact.c: New file.
1941 * resolv/tst-resolv-trailing.c: Likewise.
1942 * resolv/tst-resolv-nondecimal.c: Likewise.
1943 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
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/strlen-avx2.S: Use RSI_LP for length.
1950 Clear the upper 32 bits of RSI register.
1951 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1952 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1953 and tst-size_t-wcsnlen.
1954 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1955 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1956
1957 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1958
1959 [BZ# 24097]
1960 CVE-2019-6488
1961 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1962 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1963 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1964 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1965 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1966
1967 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1968
1969 [BZ# 24097]
1970 CVE-2019-6488
1971 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1972 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1973 * sysdeps/x86_64/strcmp.S: Likewise.
1974 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1975 tst-size_t-strncmp and tst-size_t-wcsncmp.
1976 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1977 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1978 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1979
1980 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1981
1982 [BZ# 24097]
1983 CVE-2019-6488
1984 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1985 RDX_LP for length. Clear the upper 32 bits of RDX register.
1986 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1987 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1988 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1989 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1990
1991 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1992
1993 [BZ# 24097]
1994 CVE-2019-6488
1995 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1996 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1997 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1998 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1999
2000 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2001
2002 [BZ# 24097]
2003 CVE-2019-6488
2004 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
2005 length. Clear the upper 32 bits of RDX register.
2006 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2007 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2008 Likewise.
2009 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
2010 Likewise.
2011 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
2012 tst-size_t-wmemchr.
2013 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
2014
2015 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2016
2017 [BZ# 24097]
2018 CVE-2019-6488
2019 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
2020 length. Clear the upper 32 bits of RDX register.
2021 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2022 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2023 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
2024 tst-size_t-wmemcmp.
2025 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
2026 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2027
2028 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2029
2030 [BZ# 24097]
2031 CVE-2019-6488
2032 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
2033 upper 32 bits of RDX register.
2034 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2035 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2036 tst-size_t-wmemchr.
2037 * sysdeps/x86_64/x32/test-size_t.h: New file.
2038 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2039 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2040
2041 2019-01-18 Florian Weimer <fweimer@redhat.com>
2042
2043 [BZ #24112]
2044 resolv: Do not send queries for non-host-names in nss_dns.
2045 * resolv/nss_dns/dns-host.c (check_name): New function.
2046 (_nss_dns_gethostbyname2_r): Use it.
2047 (_nss_dns_gethostbyname_r): Likewise.
2048 (_nss_dns_gethostbyname4_r): Likewise.
2049
2050 2019-01-21 Florian Weimer <fweimer@redhat.com>
2051
2052 * resolv/inet_addr.c: Reformat to GNU style.
2053 (__inet_addr, __inet_aton): Update comment.
2054
2055 2019-01-18 Florian Weimer <fweimer@redhat.com>
2056
2057 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2058 ("malloc: Use current (C11-style) atomics for fastbin access").
2059 This commit introduces a substantial performance regression on
2060 POWER and Aarch64.
2061 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2062 (REMOVE_FB): Define.
2063 (_int_malloc): Use it and reindent.
2064 (_int_free): Use CAS loop with
2065 catomic_compare_and_exchange_val_rel.
2066 (malloc_consolidate): Use atomic_exchange_acq.
2067
2068
2069 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2070
2071 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
2072 -Wl,-z,now.
2073 (LDFLAGS-tst-minsigstksz-2): Likewise.
2074 (LDFLAGS-tst-minsigstksz-3): Likewise.
2075 (LDFLAGS-tst-minsigstksz-3a): Likewise.
2076 (LDFLAGS-tst-minsigstksz-4): Likewise.
2077
2078 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
2079
2080 * manual/time.texi (strftime): Fix the wording to "alternative" rather
2081 than "alternate".
2082
2083 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
2084
2085 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2086
2087 2019-01-16 Zack Weinberg <zackw@panix.com>
2088
2089 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2090 (xget_sigstack_location): New test support functions.
2091 * support/xsigstack.c: New file, implementing them.
2092 * support/tst-xsigstack.c: New test for them.
2093 * support/Makefile: Update.
2094
2095 * signal/tst-minsigstksz-1.c
2096 * signal/tst-minsigstksz-2.c
2097 * signal/tst-minsigstksz-3.c
2098 * signal/tst-minsigstksz-3a.c
2099 * signal/tst-minsigstksz-4.c: New tests.
2100 * signal/Makefile: Run them.
2101
2102 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
2103
2104 * po/libc.pot: Regenerate.
2105
2106 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2107
2108 * math/libm-test-fma.inc (fma_test_data): Set
2109 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2110
2111 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2112
2113 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2114 (do_test): Changed __vector __int128_t to __vector unsigned int.
2115
2116 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2117
2118 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2119 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2120 stpcpy-avx2 and stpncpy-avx2.
2121 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2122 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2123 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2124 and __stpncpy_avx2.
2125 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2126 ifunc-strcpy.h}: rename header for a more generic name.
2127 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2128 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2129 AVX unaligned load is fast and vzeroupper is preferred.
2130 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2131 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2132 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2133 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2134 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2135 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2136
2137 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
2138
2139 * argp/argp-help.c: Fix typo in comment.
2140 * misc/sys/cdefs.h: Likewise.
2141 * posix/regexec.c (sift_states_iter_mb): Likewise.
2142 * socket/sockatmark.c: Likewise.
2143 * socket/sys/socket.h: Likewise.
2144 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2145 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2146 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2147 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2148 * sysdeps/unix/sockatmark.c: Likewise.
2149 * time/strptime_l.c: Likewise.
2150
2151 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2152
2153 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2154 missing space after the cast of "_NL_CURRENT".
2155
2156 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2157
2158 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2159 ifdef to fix read of VSCR.
2160 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2161 tst-ucontext-ppc64-vscr.c to test list.
2162 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2163
2164 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2165
2166 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2167 fall-through.
2168
2169 2019-01-09 Jim Wilson <jimw@sifive.com>
2170
2171 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2172
2173 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2174
2175 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2176 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2177 __memcpy_falkor for ares.
2178 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2179 Add new define.
2180 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2181 Add ares cpu.
2182
2183 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2184
2185 [BZ #24066]
2186 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2187 4_FP_W_TYPEs are used for IEEE quad precision.
2188 * soft-fp/extendhftf2.c: Likewise.
2189 * soft-fp/extendsftf2.c: Likewise.
2190 * soft-fp/extendxftf2.c: Likewise.
2191 * soft-fp/trunctfdf2.c: Likewise.
2192 * soft-fp/trunctfhf2.c: Likewise.
2193 * soft-fp/trunctfsf2.c: Likewise.
2194 * soft-fp/trunctfxf2.c: Likewise.
2195 * sysdeps/alpha/ots_cvttx.c: Likewise.
2196 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2197 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2198 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2199 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2200 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2201 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2202 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2203 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2204 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2205 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2206 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2207 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2208 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2209 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2210 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2211 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2212 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2213
2214 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2215
2216 [BZ #24024]
2217 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2218 code with -fmath-errno.
2219 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2220 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2221 * string/test-strerror-errno.c: New file.
2222
2223 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2224
2225 [BZ #24046]
2226 * localedata/locales/en_US (date_fmt): Add, set to
2227 "%a %d %b %Y %r %Z".
2228
2229 2019-01-07 Florian Weimer <fweimer@redhat.com>
2230
2231 [BZ #24063]
2232 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2233 instead of @var{errno}.
2234 (Parsing of Integers): Likewise.
2235 (Parsing of Floats): Likewise.
2236 * manual/filesys.texi (Working with Directory Trees): Likewise.
2237 (Temporary Files): Likewise.
2238 * manual/job.texi (Terminal Access Functions): Likewise.
2239 * manual/llio.texi (Synchronizing I/O): Likewise.
2240 * manual/math.texi (SVID Random): Likewise.
2241 * manual/message.texi (The catgets Functions): Likewise.
2242 (Translation with gettext): Likewise.
2243 (Locating gettext catalog): Likewise.
2244 (Charset conversion in gettext): Likewise.
2245 * manual/nss.texi (NSS Module Function Internals): Likewise.
2246 * manual/search.texi (Hash Search Function): Likewise.
2247 * manual/setjmp.texi (System V contexts): Likewise.
2248 * manual/time.texi (Sleeping): Likewise.
2249 * manual/users.texi (Lookup User): Likewise.
2250 (Lookup Group): Likewise.
2251
2252 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2253
2254 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2255 fix typo.
2256
2257 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2258
2259 [BZ #19444]
2260 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2261 __builtin_unreachable for default case in switch.
2262 (__ieee754_yn): Likewise.
2263 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2264 (__ieee754_ynl): Likewise.
2265 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2266 (__ieee754_ynl): Likewise.
2267 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2268 (__ieee754_ynl): Likewise.
2269
2270 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2271
2272 * manual/maint.texi: Use @{ and @}.
2273
2274 2019-01-04 Florian Weimer <fweimer@redhat.com>
2275
2276 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2277 function.
2278 (do_in_chroot_1): Call it.
2279 (run_chroot_tests):
2280 Improve error reporting in case it is not possible to create a
2281 collision for the PTY name required by the test.
2282
2283 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2284
2285 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2286 lll_wait_tid with timeout.
2287 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2288 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2289 futex_reltimed_wait_cancelable for cancelabla mode.
2290 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2291 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2292 macros.
2293 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2294 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2295 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2296 SYSCALL_CANCEL_NCS): New macro.
2297 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2298 (lll_timedwait_tid): Remove macro.
2299 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2300 Likewise.
2301 (lll_timedwait_tid): Likewise.
2302 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2303 Likewise.
2304 (lll_timedwait_tid): Likewise.
2305 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2306 Likewise.
2307 (lll_timedwait_tid): Likewise.
2308 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2309 Use INTERNAL_SYSCALL_CANCEL.
2310 * sysdeps/unix/sysv/linux/futex-internal.h
2311 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2312 instead of __pthread_{enable,disable}_asynccancel.
2313 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2314 (lll_futex_wait_cancel): New macro.
2315
2316 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2317 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2318
2319 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2320 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2321
2322 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2323 in backtrace analysis.
2324 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2325 side-effects.
2326 (tf_send): Likewise.
2327
2328 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2329 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2330 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2331 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2332 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2333 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2334 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2335 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2336 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2337 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2338 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2339 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2340 Likewise.
2341 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2342 tst-cancel-wrappers.sh.
2343 (generated): Remove tst-cancel-wrappers.out.
2344 (tst-cancel-wrappers.out): Remove rule.
2345 * nptl/tst-cancel-wrappers.sh: Remove file.
2346
2347 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2348
2349 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2350 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2351 Update.
2352
2353 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2354
2355 [BZ #23640]
2356 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2357 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2358 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2359 close-on-exec reset for adddup2 file action.
2360 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2361
2362 2019-01-03 Zack Weinberg <zackw@panix.com>
2363
2364 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2365 parameter. Only use deprecated scanf when __USE_GNU is defined
2366 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2367 than 201103L, whichever is relevant for the language being compiled.
2368
2369 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2370 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2371 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2372 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2373 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2374
2375 * libio/iovsscanf.c
2376 * libio/fwscanf.c
2377 * libio/iovswscanf.c
2378 * libio/swscanf.c
2379 * libio/vscanf.c
2380 * libio/vwscanf.c
2381 * libio/wscanf.c
2382 * stdio-common/fscanf.c
2383 * stdio-common/scanf.c
2384 * stdio-common/vfscanf.c
2385 * stdio-common/vfwscanf.c
2386 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2387 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2388 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2389 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2390 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2391 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2392 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2393 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2394 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2395 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2396 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2397 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2398 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2399 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2400 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2401
2402 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2403 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2404 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2405 not sscanf.
2406 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2407 with a preprocessor macro.
2408
2409 * stdio-common/bug21.c, stdio-common/scanf14.c:
2410 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2411 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2412 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2413 to xscanf, xfscanf, xsscanf.
2414
2415 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2416 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2417 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2418 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2419 xfscanf, xsscanf.
2420 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2421 override feature selection macros or provide definitions of u_char etc.
2422 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2423 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2424 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2425 with -std=gnu89.
2426
2427 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2428
2429 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2430 bits/termios-misc.h.
2431 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2432 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2433 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2434 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2435 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2436 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2437
2438 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2439 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2440 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2441 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2442 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2443 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2444 termios-misc.h.
2445 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2446 (sysdep_headers): Add termios-misc.h.
2447
2448 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2449 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2450 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2451
2452 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2453 termios-tcflow.h.
2454 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2455 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2456 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2457 TCSAFLUSH): Move to termios-tcflow.h.
2458 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2459 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2460 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2461 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2462
2463 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2464 termios-c_lflag.h.
2465 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2466 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2467 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2468 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2469 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2470 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2471 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2472 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2473 Likewise.
2474 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2475 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2476 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2477 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2478
2479 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2480 termios-c_cflag.h.
2481 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2482 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2483 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2484 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2485 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2486 termios-c_cflag.h.
2487 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2488 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2489 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2490 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2491
2492 [BZ #23783]
2493 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2494 termios-baud.h.
2495 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2496 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2497 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2498 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2499 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2500 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2501 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2502 __MAX_BAUD): Move to termios-baud.h.
2503 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2504 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2505 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2506 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2507 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2508
2509 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2510 termios-c_oflag.h.
2511 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2512 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2513 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2514 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2515 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2516 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2517 termios-c_oflag.h.
2518 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2519 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2520 FFR1): Likewise.
2521 [USE_MISC] (XTABS): Likewise.
2522 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2523 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2524 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2525 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2526
2527 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2528 termios-c_iflag.h.
2529 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2530 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2531 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2532 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2533 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2534 IUTF8): Move to termios-c_iflag.h.
2535 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2536 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2537 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2538 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2539
2540 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2541 termios-cc.h.
2542 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2543 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2544 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2545 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2546 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2547 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2548 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2549 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2550 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2551 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2552 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2553 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2554
2555 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2556 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2557 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2558 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2559 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2560 termios-struct.h.
2561 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2562 termios-struct.h.
2563 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2564 Likewise.
2565 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2566 Likewise.
2567 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2568 Likewise.
2569 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2570 Likewise.
2571 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2572 _HAVE_C_OSPEED): Define.
2573 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2574 _HAVE_C_OSPEED): Likewise.
2575 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2576 _HAVE_C_OSPEED): Likewise.
2577 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2578 (cfsetospeed): Check for define value instead of existence.
2579 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2580 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2581 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2582 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2583 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2584
2585 [BZ #17783]
2586 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2587 Define.
2588 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2589 (TIOCSER_TEMT): Likewise.
2590 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2591 (TEOCSER_TEMT): Likewise.
2592
2593 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2594
2595 [BZ #24011]
2596 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2597
2598 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2599
2600 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2601
2602 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2603
2604 * sysdeps/htl/pt-barrierattr-setpshared.c
2605 (pthread_barrierattr_setpshared): Add stub warning.
2606 * sysdeps/htl/pt-condattr-setpshared.c
2607 (pthread_condattr_setpshared): Likewise.
2608 * sysdeps/htl/pt-mutexattr-setpshared.c
2609 (pthread_mutexattr_setpshared): Likewise.
2610 * sysdeps/htl/pt-rwlockattr-setpshared.c
2611 (pthread_rwlockattr_setpshared): Likewise.
2612 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2613 (pthread_mutexattr_setpshared): Likewise.
2614
2615 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2616
2617 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2618 constants to match with Linux 4.20.
2619
2620 * sysdeps/mips/mips32/libm-test-ulps: Update.
2621 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2622
2623 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2624
2625 [BZ #24034]
2626 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2627 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2628 than __typeof (...) for the a_ptr variable.
2629
2630 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2631
2632 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2633 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2634 * libio/Makefile (tests): Add tst-sprintf-ub and
2635 tst-sprintf-chk-ub.
2636 (CFLAGS-tst-sprintf-ub.c): New variable.
2637 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2638 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2639 destination buffer and check for overflows in fortified mode.
2640 * libio/libioP.h (PRINTF_CHK): New macro.
2641 * libio/tst-sprintf-chk-ub.c: New file.
2642 * libio/tst-sprintf-ub.c: Likewise.
2643
2644 2019-01-02 Florian Weimer <fweimer@redhat.com>
2645
2646 [BZ #24018]
2647 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2648 failure.
2649
2650 2019-01-02 Florian Weimer <fweimer@redhat.com>
2651
2652 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2653
2654 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2655
2656 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2657 macro.
2658
2659 * sysdeps/unix/sysv/linux/netpacket/packet.h
2660 (PACKET_IGNORE_OUTGOING): New macro.
2661
2662 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2663 macro.
2664
2665 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2666 version to 4.20.
2667 (riscv_flush_icache): New syscall.
2668
2669 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2670 trailing whitespace removed.
2671 * scripts/config.guess: Update to version 2019-01-01.
2672 * scripts/config.sub: Update to version 2019-01-01.
2673 * scripts/move-if-change: Update from gnulib.
2674
2675 * NEWS: Update copyright dates.
2676 * catgets/gencat.c (print_version): Likewise.
2677 * csu/version.c (banner): Likewise.
2678 * debug/catchsegv.sh: Likewise.
2679 * debug/pcprofiledump.c (print_version): Likewise.
2680 * debug/xtrace.sh (do_version): Likewise.
2681 * elf/ldconfig.c (print_version): Likewise.
2682 * elf/ldd.bash.in: Likewise.
2683 * elf/pldd.c (print_version): Likewise.
2684 * elf/sotruss.sh: Likewise.
2685 * elf/sprof.c (print_version): Likewise.
2686 * iconv/iconv_prog.c (print_version): Likewise.
2687 * iconv/iconvconfig.c (print_version): Likewise.
2688 * locale/programs/locale.c (print_version): Likewise.
2689 * locale/programs/localedef.c (print_version): Likewise.
2690 * login/programs/pt_chown.c (print_version): Likewise.
2691 * malloc/memusage.sh (do_version): Likewise.
2692 * malloc/memusagestat.c (print_version): Likewise.
2693 * malloc/mtrace.pl: Likewise.
2694 * manual/libc.texinfo: Likewise.
2695 * nptl/version.c (banner): Likewise.
2696 * nscd/nscd.c (print_version): Likewise.
2697 * nss/getent.c (print_version): Likewise.
2698 * nss/makedb.c (print_version): Likewise.
2699 * posix/getconf.c (main): Likewise.
2700 * scripts/test-installation.pl: Likewise.
2701 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2702
2703 * All files with FSF copyright notices: Update copyright dates
2704 using scripts/update-copyrights.
2705 * locale/programs/charmap-kw.h: Regenerated.
2706 * locale/programs/locfile-kw.h: Likewise.
2707
2708 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2709
2710 * timezone/zdump.c: Update from tzcode 2018i.
2711 * timezone/zic.c: Likewise.
2712
2713 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2714
2715 regex: improve Gnulib port to AIX
2716 From the glibc point of view, this removes duplicate macro
2717 definitions and is obviously safe.
2718 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2719 * posix/regex_internal.h:
2720 (__attribute__, __attribute_warn_unused_result__):
2721 Remove; already defined elsewhere.
2722
2723 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2724
2725 [BZ #24027]
2726 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2727 copying operation. (ncopies had the wrong type, resulting in an
2728 integer wraparound and too few elements being copied.)
2729
2730 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2731
2732 [BZ #24022]
2733 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2734 <asm/syscalls.h> exists with __has_include__ before including it.
2735
2736 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2737
2738 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2739 version to 4.20.
2740
2741 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2742
2743 * hurd/lookup-retry: Include <unistd.h>.
2744 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2745 Release it on return. Handle "pid" magical lookup retry.
2746
2747 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2748
2749 [BZ #10496]
2750 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2751 (t_fmt_ampm): Likewise.
2752 * localedata/locales/aa_ER (t_fmt): Likewise.
2753 (t_fmt_ampm): Likewise.
2754 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2755 (t_fmt_ampm): Likewise.
2756 * localedata/locales/aa_ET (t_fmt): Likewise.
2757 (t_fmt_ampm): Likewise.
2758 * localedata/locales/am_ET (t_fmt): Likewise.
2759 (t_fmt_ampm): Likewise.
2760 * localedata/locales/byn_ER (t_fmt): Likewise.
2761 (t_fmt_ampm): Likewise.
2762 * localedata/locales/om_ET (t_fmt): Likewise.
2763 (t_fmt_ampm): Likewise.
2764 * localedata/locales/sid_ET (t_fmt): Likewise.
2765 (t_fmt_ampm): Likewise.
2766 * localedata/locales/so_DJ (t_fmt): Likewise.
2767 (t_fmt_ampm): Likewise.
2768 * localedata/locales/so_ET (t_fmt): Likewise.
2769 (t_fmt_ampm): Likewise.
2770 * localedata/locales/so_SO (t_fmt): Likewise.
2771 (t_fmt_ampm): Likewise.
2772 * localedata/locales/ti_ER (t_fmt): Likewise.
2773 (t_fmt_ampm): Likewise.
2774 * localedata/locales/ti_ET (t_fmt): Likewise.
2775 (t_fmt_ampm): Likewise.
2776 * localedata/locales/tig_ER (t_fmt): Likewise.
2777 (t_fmt_ampm): Likewise.
2778 * localedata/locales/wal_ET (t_fmt): Likewise.
2779 (t_fmt_ampm): Likewise.
2780
2781 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2782 * localedata/locales/ar_IN (t_fmt): Likewise.
2783 * localedata/locales/bhb_IN (t_fmt): Likewise.
2784 * localedata/locales/bho_IN (t_fmt): Likewise.
2785 * localedata/locales/bi_VU (t_fmt): Likewise.
2786 * localedata/locales/bn_BD (t_fmt): Likewise.
2787 * localedata/locales/bn_IN (t_fmt): Likewise.
2788 * localedata/locales/brx_IN (t_fmt): Likewise.
2789 * localedata/locales/doi_IN (t_fmt): Likewise.
2790 * localedata/locales/en_HK (t_fmt): Likewise.
2791 (t_fmt_ampm): Likewise.
2792 * localedata/locales/en_IN (t_fmt): Likewise.
2793 * localedata/locales/en_PH (t_fmt): Likewise.
2794 * localedata/locales/gu_IN (t_fmt): Likewise.
2795 * localedata/locales/hi_IN (t_fmt): Likewise.
2796 * localedata/locales/hif_FJ (t_fmt): Likewise.
2797 * localedata/locales/hne_IN (t_fmt): Likewise.
2798 * localedata/locales/kn_IN (t_fmt): Likewise.
2799 * localedata/locales/kok_IN (t_fmt): Likewise.
2800 * localedata/locales/ks_IN (t_fmt): Likewise.
2801 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2802 * localedata/locales/mag_IN (t_fmt): Likewise.
2803 * localedata/locales/mai_IN (t_fmt): Likewise.
2804 * localedata/locales/mjw_IN (t_fmt): Likewise.
2805 * localedata/locales/ml_IN (t_fmt): Likewise.
2806 * localedata/locales/mni_IN (t_fmt): Likewise.
2807 * localedata/locales/mr_IN (t_fmt): Likewise.
2808 * localedata/locales/ms_MY (t_fmt): Likewise.
2809 * localedata/locales/pa_IN (t_fmt): Likewise.
2810 * localedata/locales/raj_IN (t_fmt): Likewise.
2811 * localedata/locales/sa_IN (t_fmt): Likewise.
2812 * localedata/locales/sat_IN (t_fmt): Likewise.
2813 * localedata/locales/sd_IN (t_fmt): Likewise.
2814 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2815 * localedata/locales/tcy_IN (t_fmt): Likewise.
2816 * localedata/locales/the_NP (t_fmt): Likewise.
2817 * localedata/locales/to_TO (t_fmt): Likewise.
2818 * localedata/locales/ur_IN (t_fmt): Likewise.
2819
2820 * localedata/locales/hif_FJ (d_t_fmt): Set to
2821 "%A %d %b %Y %I:%M:%S %p".
2822 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2823
2824 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2825 * localedata/locales/ar_BH (t_fmt): Likewise.
2826 * localedata/locales/ar_DZ (t_fmt): Likewise.
2827 * localedata/locales/ar_EG (t_fmt): Likewise.
2828 * localedata/locales/ar_IQ (t_fmt): Likewise.
2829 * localedata/locales/ar_JO (t_fmt): Likewise.
2830 * localedata/locales/ar_KW (t_fmt): Likewise.
2831 * localedata/locales/ar_LB (t_fmt): Likewise.
2832 * localedata/locales/ar_LY (t_fmt): Likewise.
2833 * localedata/locales/ar_OM (t_fmt): Likewise.
2834 * localedata/locales/ar_QA (t_fmt): Likewise.
2835 * localedata/locales/ar_SD (t_fmt): Likewise.
2836 * localedata/locales/ar_SS (t_fmt): Likewise.
2837 * localedata/locales/ar_SY (t_fmt): Likewise.
2838 * localedata/locales/ar_TN (t_fmt): Likewise.
2839 * localedata/locales/ar_YE (t_fmt): Likewise.
2840
2841 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2842 (t_fmt_ampm): Likewise.
2843 * localedata/locales/gez_ET (t_fmt): Likewise.
2844 (t_fmt_ampm): Likewise.
2845
2846 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2847 (t_fmt_ampm): Likewise.
2848 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2849
2850 * localedata/locales/zh_HK (t_fmt):
2851 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2852
2853 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2854 because this locale does not use the 12-hour clock.
2855 (t_fmt): Set to "%Z %H:%M:%S".
2856 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2857
2858 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2859 because this locale does not use the 12-hour clock.
2860 (t_fmt): Set to "%H:%M:%S %Z".
2861 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2862
2863 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2864 because this locale does not use the 12-hour clock.
2865 (t_fmt): Set to "%T".
2866 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2867 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2868
2869 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2870 because this locale does not use the 12-hour clock.
2871 (t_fmt): Set to "%H:%M:%S %Z".
2872 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2873
2874 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2875 because this locale does not use the 12-hour clock.
2876 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2877 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2878
2879 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2880
2881 [BZ #10496]
2882 [BZ #23724]
2883 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2884 (t_fmt_ampm): Likewise.
2885 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2886 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2887 (d_fmt): Set to "%-d.%-m.%y".
2888
2889 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2890
2891 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2892 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2893 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2894 Likewise.
2895 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2896 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2897 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2898 function.
2899 * support/blob_repeat.c (check_mul_overflow_size_t,
2900 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2901
2902 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2903
2904 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2905
2906 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2907
2908 regex: simplify Gnulib port
2909 This simplifies the code, by removing stuff intended for porting
2910 to Gnulib but no longer needed there.
2911 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2912 uses of libc_hidden_def, weak_alias.
2913 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2914 _Restrict_ except for public-facing headers.
2915 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2916 Remove; already defined elsewhere.
2917 * posix/regex.c, posix/regex_internal.h:
2918 Use __GNUC_PREREQ instead of rolling our own.
2919 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2920
2921 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2922
2923 * benchtests/bench-strlen.c (generic_strlen): New function.
2924 (memchr_strlen): New function.
2925
2926 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2927
2928 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2929 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2930 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2931
2932 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2933
2934 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2935
2936 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2937
2938 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2939 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2940 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2941 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2942 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2943 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2944 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2945
2946 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2947
2948 [BZ #24023]
2949 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2950 PLT reference in libc.so.
2951 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2952 _Q_lltoq and _Q_qtod PLT references in libc.so.
2953
2954 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2955
2956 * benchtests/bench-memchr.c: Cleanup defines.
2957 * benchtests/bench-memcmp.c: Likewise.
2958 * benchtests/bench-memset.c: Likewise.
2959 * benchtests/bench-memset-large.c: Likewise.
2960 * benchtests/bench-memset-walk.c: Likewise.
2961 * benchtests/bench-stpcpy.c: Likewise.
2962 * benchtests/bench-stpncpy.c: Likewise.
2963 * benchtests/bench-strcat.c: Likewise.
2964 * benchtests/bench-strchr.c: Likewise.
2965 * benchtests/bench-strcmp.c: Likewise.
2966 * benchtests/bench-strcpy.c: Likewise.
2967 * benchtests/bench-strcspn.c: Likewise.
2968 * benchtests/bench-string.h: Likewise.
2969 * benchtests/bench-strlen.c: Likewise.
2970 * benchtests/bench-strncat.c: Likewise.
2971 * benchtests/bench-strncmp.c: Likewise.
2972 * benchtests/bench-strncpy.c: Likewise.
2973 * benchtests/bench-strnlen.c: Likewise.
2974 * benchtests/bench-strpbrk.c: Likewise.
2975 * benchtests/bench-strrchr.c: Likewise.
2976 * benchtests/bench-strspn.c: Likewise.
2977
2978 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2979
2980 * stdlib/longlong.h: Update from GCC.
2981
2982 [BZ #23993]
2983 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2984 * configure: Regenerated.
2985 * manual/install.texi (Tools for Compilation): Update minimum GCC
2986 version.
2987 * INSTALL: Regenerated.
2988
2989 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2990
2991 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2992
2993 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2994
2995 * malloc/malloc.c (mremap_chunk): Additional checks.
2996
2997 2018-12-21 Mao Han <han_mao@c-sky.com>
2998
2999 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
3000 * scripts/build-many-glibcs.py: Add C-SKY targets.
3001 * sysdeps/csky/Implies: New file.
3002 * sysdeps/csky/Makefile: Likewise.
3003 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
3004 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
3005 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
3006 * sysdeps/csky/abiv2/memcmp.S: Likewise.
3007 * sysdeps/csky/abiv2/memcpy.S: Likewise.
3008 * sysdeps/csky/abiv2/memmove.S: Likewise.
3009 * sysdeps/csky/abiv2/memset.S: Likewise.
3010 * sysdeps/csky/abiv2/setjmp.S: Likewise.
3011 * sysdeps/csky/abiv2/start.S: Likewise.
3012 * sysdeps/csky/abiv2/strcmp.S: Likewise.
3013 * sysdeps/csky/abiv2/strcpy.S: Likewise.
3014 * sysdeps/csky/abiv2/strlen.S: Likewise.
3015 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
3016 * sysdeps/csky/abort-instr.h: Likewise.
3017 * sysdeps/csky/atomic-machine.h: Likewise.
3018 * sysdeps/csky/bits/endian.h: Likewise.
3019 * sysdeps/csky/bits/fenv.h: Likewise.
3020 * sysdeps/csky/bits/link.h: Likewise.
3021 * sysdeps/csky/bits/setjmp.h: Likewise.
3022 * sysdeps/csky/bsd-_setjmp.S: Likewise.
3023 * sysdeps/csky/bsd-setjmp.S: Likewise.
3024 * sysdeps/csky/configure: Likewise.
3025 * sysdeps/csky/configure.ac: Likewise.
3026 * sysdeps/csky/dl-machine.h: Likewise.
3027 * sysdeps/csky/dl-procinfo.c: Likewise.
3028 * sysdeps/csky/dl-procinfo.h: Likewise.
3029 * sysdeps/csky/dl-sysdep.h: Likewise.
3030 * sysdeps/csky/dl-tls.h: Likewise.
3031 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3032 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3033 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3034 * sysdeps/csky/fpu/fegetenv.c: Likewise.
3035 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3036 * sysdeps/csky/fpu/fegetmode.c: Likewise.
3037 * sysdeps/csky/fpu/fegetround.c: Likewise.
3038 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3039 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3040 * sysdeps/csky/fpu/fenv_private.h: Likewise.
3041 * sysdeps/csky/fpu/fesetenv.c: Likewise.
3042 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3043 * sysdeps/csky/fpu/fesetmode.c: Likewise.
3044 * sysdeps/csky/fpu/fesetround.c: Likewise.
3045 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3046 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3047 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3048 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3049 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3050 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3051 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3052 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3053 * sysdeps/csky/fpu_control.h: Likewise.
3054 * sysdeps/csky/gccframe.h: Likewise.
3055 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3056 * sysdeps/csky/ldsodefs.h: Likewise.
3057 * sysdeps/csky/libc-tls.c: Likewise.
3058 * sysdeps/csky/linkmap.h: Likewise.
3059 * sysdeps/csky/machine-gmon.h: Likewise.
3060 * sysdeps/csky/memusage.h: Likewise.
3061 * sysdeps/csky/nofpu/Implies: Likewise.
3062 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3063 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3064 * sysdeps/csky/nptl/Makefile: Likewise.
3065 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3066 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3067 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3068 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3069 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3070 * sysdeps/csky/nptl/tls.h: Likewise.
3071 * sysdeps/csky/preconfigure: Likewise.
3072 * sysdeps/csky/sfp-machine.h: Likewise.
3073 * sysdeps/csky/sotruss-lib.c: Likewise.
3074 * sysdeps/csky/stackinfo.h: Likewise.
3075 * sysdeps/csky/sysdep.h: Likewise.
3076 * sysdeps/csky/tininess.h: Likewise.
3077 * sysdeps/csky/tst-audit.h: Likewise.
3078 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3079 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3080 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3081 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3082 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3083 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3084 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3085 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3086 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3087 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3088 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3089 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3090 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3091 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3092 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3093 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3094 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3095 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3096 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3097 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3098 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3099 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3100 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3101 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3102 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3103 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3104 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3105 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3106 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3107 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3108 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3109 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3110 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3111 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3112 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3113 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3114 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3115 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3116 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3117 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3118 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3119 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3120 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3121 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3122
3123 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3124
3125 * include/time.h (__difftime64): Add.
3126 * time/difftime.c (subtract): convert to 64-bit time.
3127 * time/difftime.c (__difftime64): Add.
3128 * time/difftime.c (__difftime): Wrap around __difftime64.
3129
3130 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3131
3132 * manual/examples/add.c: Remove redundant "if not".
3133 * manual/examples/argp-ex1.c: Likewise.
3134 * manual/examples/argp-ex2.c: Likewise.
3135 * manual/examples/argp-ex3.c: Likewise.
3136 * manual/examples/argp-ex4.c: Likewise.
3137 * manual/examples/atexit.c: Likewise.
3138 * manual/examples/db.c: Likewise.
3139 * manual/examples/dir.c: Likewise.
3140 * manual/examples/dir2.c: Likewise.
3141 * manual/examples/execinfo.c: Likewise.
3142 * manual/examples/filecli.c: Likewise.
3143 * manual/examples/filesrv.c: Likewise.
3144 * manual/examples/fmtmsgexpl.c: Likewise.
3145 * manual/examples/genpass.c: Likewise.
3146 * manual/examples/inetcli.c: Likewise.
3147 * manual/examples/inetsrv.c: Likewise.
3148 * manual/examples/isockad.c: Likewise.
3149 * manual/examples/longopt.c: Likewise.
3150 * manual/examples/memopen.c: Likewise.
3151 * manual/examples/memstrm.c: Likewise.
3152 * manual/examples/mkdirent.c: Likewise.
3153 * manual/examples/mkfsock.c: Likewise.
3154 * manual/examples/mkisock.c: Likewise.
3155 * manual/examples/mygetpass.c: Likewise.
3156 * manual/examples/pipe.c: Likewise.
3157 * manual/examples/popen.c: Likewise.
3158 * manual/examples/rprintf.c: Likewise.
3159 * manual/examples/search.c: Likewise.
3160 * manual/examples/select.c: Likewise.
3161 * manual/examples/setjmp.c: Likewise.
3162 * manual/examples/sigh1.c: Likewise.
3163 * manual/examples/sigusr.c: Likewise.
3164 * manual/examples/stpcpy.c: Likewise.
3165 * manual/examples/strdupa.c: Likewise.
3166 * manual/examples/strftim.c: Likewise.
3167 * manual/examples/subopt.c: Likewise.
3168 * manual/examples/swapcontext.c: Likewise.
3169 * manual/examples/termios.c: Likewise.
3170 * manual/examples/testopt.c: Likewise.
3171 * manual/examples/testpass.c: Likewise.
3172 * manual/examples/timeval_subtract.c: Likewise.
3173
3174 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3175
3176 * sysdeps/x86/fpu/math_private.h: New file.
3177 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3178
3179 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3180 definition.
3181 (cosh): Likewise.
3182 (tanh): Likewise.
3183
3184 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3185
3186 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3187 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3188 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3189 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3190 fields.
3191 (_dl_show_auxv): Give a special treatment to
3192 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3193 and AT_L3_CACHEGEOMETRY.
3194 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3195 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3196 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3197 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3198
3199 2018-12-19 Andreas Schwab <schwab@suse.de>
3200
3201 * nscd/connections.c (check_use): Don't abort on invalid len.
3202
3203 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3204
3205 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3206 values in the 64bit value cases.
3207
3208 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3209
3210 * include/time.h
3211 (__ctime64_r): Add.
3212 * time/ctime_r.c
3213 (__ctime64_r): Add.
3214 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3215
3216 * include/time.h
3217 (__ctime64): Add.
3218 * time/gmtime.c
3219 (__ctime64): Add.
3220 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3221
3222 * include/time.h
3223 (__gmtime64_r): Add.
3224 * time/gmtime.c
3225 (__gmtime64_r): Add.
3226 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3227
3228 * include/time.h
3229 (__gmtime64): Add.
3230 * time/gmtime.c
3231 (__gmtime64): Add.
3232 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3233
3234 * include/time.h
3235 (__localtime64_r): Add.
3236 * time/localtime.c
3237 (__localtime64_r): Add.
3238 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3239
3240 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3241
3242 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3243 kernel_sigction definition.
3244
3245 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3246
3247 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3248
3249 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3250 __syscall_rt_sigaction.
3251 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3252 (kernel_sigaction): Use Linux generic defintion.
3253 (STUB): Define.
3254 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3255 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3256 (__syscall_rt_sigaction): Remove implementation.
3257 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3258 hidden.
3259 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3260 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3261 INTERNAL_SYSCALL): Remove definitions.
3262 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3263 action and signal set size.
3264 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3265 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3266
3267 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3268 James Clarke <jrtc27@jrtc27.com>
3269
3270 [BZ #23967]
3271 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3272 Define if SA_RESTORER is defined.
3273 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3274 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3275 already defined.
3276 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3277 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3278 definitions.
3279 (HAS_SA_RESTORER): Define.
3280 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3281 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3282 (HAS_SA_RESTORER): Define.
3283 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3284 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3285 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3286 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3287 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3288
3289 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3290
3291 * sysdeps/unix/sysv/linux/kernel-features.h
3292 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3293 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3294 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3295 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3296 (__ASSUME_ST_INO_64_BIT): Likewise.
3297 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3298 <kernel-features.h>.
3299 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3300 Remove conditional code.
3301 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3302 <kernel-features.h>.
3303 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3304 Remove conditional code.
3305 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3306 <kernel-features.h>.
3307 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3308 Remove conditional code.
3309 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3310 <kernel-features.h>.
3311 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3312 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3313
3314 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3315
3316 * sysdeps/s390/multiarch/ifunc-resolve.h
3317 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3318 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3319 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3320 Delete macro definition.
3321 (s390_libc_ifunc_init): Rename to
3322 s390_libc_ifunc_expr_stfle_init.
3323 * sysdeps/s390/bzero: Use
3324 s390_libc_ifunc_expr_stfle_init instead of
3325 s390_libc_ifunc_init.
3326 * sysdeps/s390/memcmp.c: Likewise.
3327 * sysdeps/s390/memcpy.c: Likewise.
3328 * sysdeps/s390/mempcpy.c: Likewise.
3329 * sysdeps/s390/memset.c: Likewise.
3330
3331 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3332
3333 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3334 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3335
3336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3337
3338 * sysdeps/s390/multiarch/Makefile
3339 (sysdep_routines): Remove wmemcmp variants.
3340 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3341 * sysdeps/s390/multiarch/ifunc-impl-list.c
3342 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3343 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3344 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3345 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3346 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3347 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3348 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3349 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3350
3351 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3352
3353 * sysdeps/s390/multiarch/Makefile
3354 (sysdep_routines): Remove wmemset variants.
3355 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3356 * sysdeps/s390/multiarch/ifunc-impl-list.c
3357 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3358 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3359 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3360 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3361 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3362 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3363 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3364 * sysdeps/s390/ifunc-wmemset.h: New file.
3365
3366 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3367
3368 * sysdeps/s390/multiarch/Makefile
3369 (sysdep_routines): Remove wmemchr variants.
3370 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3371 * sysdeps/s390/multiarch/ifunc-impl-list.c
3372 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3373 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3374 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3375 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3376 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3377 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3378 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3379 * sysdeps/s390/ifunc-wmemchr.h: New file.
3380
3381 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3382
3383 * sysdeps/s390/multiarch/Makefile
3384 (sysdep_routines): Remove wcscspn variants.
3385 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3386 * sysdeps/s390/multiarch/ifunc-impl-list.c
3387 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3388 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3389 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3390 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3391 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3392 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3393 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3394 * sysdeps/s390/ifunc-wcscspn.h: New file.
3395
3396 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3397
3398 * sysdeps/s390/multiarch/Makefile
3399 (sysdep_routines): Remove wcspbrk variants.
3400 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3401 * sysdeps/s390/multiarch/ifunc-impl-list.c
3402 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3403 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3404 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3405 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3406 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3407 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3408 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3409 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3410
3411 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3412
3413 * sysdeps/s390/multiarch/Makefile
3414 (sysdep_routines): Remove wcsspn variants.
3415 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3416 * sysdeps/s390/multiarch/ifunc-impl-list.c
3417 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3418 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3419 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3420 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3421 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3422 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3423 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3424 * sysdeps/s390/ifunc-wcsspn.h: New file.
3425
3426 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3427
3428 * sysdeps/s390/multiarch/Makefile
3429 (sysdep_routines): Remove wcsrchr variants.
3430 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3431 * sysdeps/s390/multiarch/ifunc-impl-list.c
3432 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3433 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3434 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3435 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3436 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3437 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3438 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3439 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3440
3441 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3442
3443 * sysdeps/s390/multiarch/Makefile
3444 (sysdep_routines): Remove wcschrnul variants.
3445 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3446 * sysdeps/s390/multiarch/ifunc-impl-list.c
3447 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3448 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3449 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3450 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3451 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3452 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3453 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3454 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3455
3456 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3457
3458 * sysdeps/s390/multiarch/Makefile
3459 (sysdep_routines): Remove wcschr variants.
3460 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3461 * sysdeps/s390/multiarch/ifunc-impl-list.c
3462 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3463 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3464 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3465 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3466 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3467 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3468 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3469 * sysdeps/s390/ifunc-wcschr.h: New file.
3470
3471 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3472
3473 * sysdeps/s390/multiarch/Makefile
3474 (sysdep_routines): Remove wcsncmp variants.
3475 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3476 * sysdeps/s390/multiarch/ifunc-impl-list.c
3477 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3478 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3479 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3480 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3481 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3482 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3483 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3484 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3485
3486 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3487
3488 * sysdeps/s390/multiarch/Makefile
3489 (sysdep_routines): Remove wcscmp variants.
3490 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3491 * sysdeps/s390/multiarch/ifunc-impl-list.c
3492 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3493 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3494 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3495 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3496 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3497 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3498 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3499 * sysdeps/s390/ifunc-wcscmp.h: New file.
3500
3501 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3502
3503 * sysdeps/s390/multiarch/Makefile
3504 (sysdep_routines): Remove wcsncat variants.
3505 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3506 * sysdeps/s390/multiarch/ifunc-impl-list.c
3507 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3508 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3509 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3510 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3511 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3512 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3513 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3514 * sysdeps/s390/ifunc-wcsncat.h: New file.
3515
3516 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3517
3518 * sysdeps/s390/multiarch/Makefile
3519 (sysdep_routines): Remove wcscat variants.
3520 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3521 * sysdeps/s390/multiarch/ifunc-impl-list.c
3522 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3523 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3524 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3525 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3526 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3527 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3528 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3529 * sysdeps/s390/ifunc-wcscat.h: New file.
3530
3531 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3532
3533 * sysdeps/s390/multiarch/Makefile
3534 (sysdep_routines): Remove wcpncpy variants.
3535 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3536 * sysdeps/s390/multiarch/ifunc-impl-list.c
3537 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3538 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3539 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3540 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3541 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3542 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3543 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3544 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3545
3546 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3547
3548 * sysdeps/s390/multiarch/Makefile
3549 (sysdep_routines): Remove wcsncpy variants.
3550 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3551 * sysdeps/s390/multiarch/ifunc-impl-list.c
3552 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3553 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3554 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3555 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3556 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3557 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3558 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3559 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3560
3561 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3562
3563 * sysdeps/s390/multiarch/Makefile
3564 (sysdep_routines): Remove wcpcpy variants.
3565 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3566 * sysdeps/s390/multiarch/ifunc-impl-list.c
3567 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3568 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3569 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3570 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3571 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3572 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3573 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3574 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3575
3576 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3577
3578 * sysdeps/s390/multiarch/Makefile
3579 (sysdep_routines): Remove wcscpy variants.
3580 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3581 * sysdeps/s390/multiarch/ifunc-impl-list.c
3582 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3583 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3584 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3585 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3586 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3587 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3588 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3589 * sysdeps/s390/ifunc-wcscpy.h: New file.
3590
3591 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3592
3593 * sysdeps/s390/multiarch/Makefile
3594 (sysdep_routines): Remove wcsnlen variants.
3595 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3596 * sysdeps/s390/multiarch/ifunc-impl-list.c
3597 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3598 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3599 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3600 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3601 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3602 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3603 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3604 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3605
3606 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3607
3608 * sysdeps/s390/multiarch/Makefile
3609 (sysdep_routines): Remove wcslen variants.
3610 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3611 * sysdeps/s390/multiarch/ifunc-impl-list.c
3612 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3613 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3614 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3615 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3616 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3617 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3618 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3619 * sysdeps/s390/ifunc-wcslen.h: New file.
3620
3621 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3622
3623 * sysdeps/s390/multiarch/Makefile
3624 (sysdep_routines): Remove memrchr variants.
3625 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3626 * sysdeps/s390/multiarch/ifunc-impl-list.c
3627 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3628 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3629 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3630 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3631 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3632 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3633 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3634 * sysdeps/s390/ifunc-memrchr.h: New file.
3635
3636 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3637
3638 * sysdeps/s390/multiarch/Makefile
3639 (sysdep_routines): Remove memccpy variants.
3640 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3641 * sysdeps/s390/multiarch/ifunc-impl-list.c
3642 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3643 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3644 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3645 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3646 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3647 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3648 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3649 * sysdeps/s390/ifunc-memccpy.h: New file.
3650
3651 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3652
3653 * sysdeps/s390/multiarch/Makefile
3654 (sysdep_routines): Remove rawmemchr variants.
3655 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3656 * sysdeps/s390/multiarch/ifunc-impl-list.c
3657 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3658 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3659 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3660 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3661 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3662 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3663 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3664 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3665
3666 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3667
3668 * sysdeps/s390/multiarch/Makefile
3669 (sysdep_routines): Remove memchr variants.
3670 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3671 * sysdeps/s390/multiarch/ifunc-impl-list.c
3672 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3673 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3674 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3675 * sysdeps/s390/multiarch/memchr.c: Move to ...
3676 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3677 * sysdeps/s390/ifunc-memchr.h: New file.
3678 * sysdeps/s390/s390-64/memchr.S: Move to ...
3679 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3680 for 31/64bit and ifunc handling.
3681 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3682 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3683 * sysdeps/s390/s390-32/memchr.S: Likewise.
3684
3685 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3686
3687 * sysdeps/s390/multiarch/Makefile
3688 (sysdep_routines): Remove strcspn variants.
3689 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3690 * sysdeps/s390/multiarch/ifunc-impl-list.c
3691 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3692 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3693 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3694 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3695 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3696 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3697 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3698 * sysdeps/s390/ifunc-strcspn.h: New file.
3699
3700 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3701
3702 * sysdeps/s390/multiarch/Makefile
3703 (sysdep_routines): Remove strpbrk variants.
3704 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3705 * sysdeps/s390/multiarch/ifunc-impl-list.c
3706 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3707 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3708 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3709 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3710 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3711 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3712 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3713 * sysdeps/s390/ifunc-strpbrk.h: New file.
3714
3715 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3716
3717 * sysdeps/s390/multiarch/Makefile
3718 (sysdep_routines): Remove strspn variants.
3719 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3720 * sysdeps/s390/multiarch/ifunc-impl-list.c
3721 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3722 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3723 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3724 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3725 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3726 * sysdeps/s390/multiarch/strspn.c: Move to ...
3727 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3728 * sysdeps/s390/ifunc-strspn.h: New file.
3729
3730 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3731
3732 * sysdeps/s390/multiarch/Makefile
3733 (sysdep_routines): Remove strrchr variants.
3734 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3735 * sysdeps/s390/multiarch/ifunc-impl-list.c
3736 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3737 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3738 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3739 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3740 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3741 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3742 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3743 * sysdeps/s390/ifunc-strrchr.h: New file.
3744
3745 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3746
3747 * sysdeps/s390/multiarch/Makefile
3748 (sysdep_routines): Remove strchrnul variants.
3749 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3750 * sysdeps/s390/multiarch/ifunc-impl-list.c
3751 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3752 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3753 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3754 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3755 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3756 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3757 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3758 * sysdeps/s390/ifunc-strchrnul.h: New file.
3759
3760 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3761
3762 * sysdeps/s390/multiarch/Makefile
3763 (sysdep_routines): Remove strchr variants.
3764 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3765 * sysdeps/s390/multiarch/ifunc-impl-list.c
3766 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3767 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3768 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3769 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3770 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3771 * sysdeps/s390/multiarch/strchr.c: Move to ...
3772 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3773 * sysdeps/s390/ifunc-strchr.h: New file.
3774
3775 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3776
3777 * sysdeps/s390/multiarch/Makefile
3778 (sysdep_routines): Remove strncmp variants.
3779 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3780 * sysdeps/s390/multiarch/ifunc-impl-list.c
3781 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3782 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3783 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3784 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3785 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3786 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3787 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3788 * sysdeps/s390/ifunc-strncmp.h: New file.
3789
3790 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3791
3792 * sysdeps/s390/multiarch/Makefile
3793 (sysdep_routines): Remove strcmp variants.
3794 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3795 * sysdeps/s390/multiarch/ifunc-impl-list.c
3796 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3797 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3798 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3799 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3800 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3801 * sysdeps/s390/ifunc-strcmp.h: New file.
3802 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3803 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3804 for 31/64bit and ifunc handling.
3805 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3806 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3807 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3808
3809 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3810
3811 * sysdeps/s390/multiarch/Makefile
3812 (sysdep_routines): Remove strncat variants.
3813 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3814 * sysdeps/s390/multiarch/ifunc-impl-list.c
3815 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3816 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3817 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3818 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3819 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3820 * sysdeps/s390/multiarch/strncat.c: Move to ...
3821 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3822 * sysdeps/s390/ifunc-strncat.h: New file.
3823
3824 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3825
3826 * sysdeps/s390/multiarch/Makefile
3827 (sysdep_routines): Remove strcat variants.
3828 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3829 * sysdeps/s390/multiarch/ifunc-impl-list.c
3830 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3831 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3832 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3833 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3834 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3835 * sysdeps/s390/multiarch/strcat.c: Move to ...
3836 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3837 * sysdeps/s390/ifunc-strcat.h: New file.
3838
3839 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3840
3841 * sysdeps/s390/multiarch/Makefile
3842 (sysdep_routines): Remove stpncpy variants.
3843 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3844 * sysdeps/s390/multiarch/ifunc-impl-list.c
3845 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3846 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3847 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3848 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3849 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3850 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3851 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3852 * sysdeps/s390/ifunc-stpncpy.h: New file.
3853
3854 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3855
3856 * sysdeps/s390/multiarch/Makefile
3857 (sysdep_routines): Remove strncpy variants.
3858 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3859 * sysdeps/s390/multiarch/ifunc-impl-list.c
3860 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3861 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3862 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3863 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3864 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3865 * sysdeps/s390/ifunc-strncpy.h: New file.
3866 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3867 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3868 and adjust ifunc handling.
3869 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3870 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3871 and adjust ifunc handling.
3872 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3873 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3874
3875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3876
3877 * sysdeps/s390/multiarch/Makefile
3878 (sysdep_routines): Remove stpcpy variants.
3879 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3880 * sysdeps/s390/multiarch/ifunc-impl-list.c
3881 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3882 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3883 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3884 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3885 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3886 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3887 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3888 * sysdeps/s390/ifunc-stpcpy.h: New file.
3889
3890 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3891
3892 * sysdeps/s390/multiarch/Makefile
3893 (sysdep_routines): Remove strcpy variants.
3894 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3895 * sysdeps/s390/multiarch/ifunc-impl-list.c
3896 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3897 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3898 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3899 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3900 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3901 * sysdeps/s390/ifunc-strcpy.h: New file.
3902 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3903 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3904 for 31/64bit and ifunc handling.
3905 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3906 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3907 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3908
3909 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3910
3911 * sysdeps/s390/multiarch/Makefile
3912 (sysdep_routines): Remove strnlen variants.
3913 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3914 * sysdeps/s390/multiarch/ifunc-impl-list.c
3915 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3916 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3917 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3918 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3919 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3920 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3921 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3922 * sysdeps/s390/ifunc-strnlen.h: New file.
3923
3924 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3925
3926 * sysdeps/s390/multiarch/Makefile
3927 (sysdep_routines): Remove strlen variants.
3928 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3929 * sysdeps/s390/multiarch/ifunc-impl-list.c
3930 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3931 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3932 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3933 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3934 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3935 * sysdeps/s390/multiarch/strlen.c: Move to ...
3936 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3937 * sysdeps/s390/ifunc-strlen.h: New file.
3938
3939 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3940
3941 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3942 * sysdeps/s390/multiarch/ifunc-impl-list.c
3943 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3944 * sysdeps/s390/ifunc-memmem.h: New file.
3945 * sysdeps/s390/memmem.c: Likewise.
3946 * sysdeps/s390/memmem-c.c: Likewise.
3947 * sysdeps/s390/memmem-vx.c: Likewise.
3948
3949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3950
3951 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3952 * sysdeps/s390/multiarch/ifunc-impl-list.c
3953 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3954 * sysdeps/s390/ifunc-strstr.h: New file.
3955 * sysdeps/s390/strstr.c: Likewise.
3956 * sysdeps/s390/strstr-c.c: Likewise.
3957 * sysdeps/s390/strstr-vx.c: Likewise.
3958
3959 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3960
3961 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3962 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3963 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3964 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3965 New defines.
3966 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3967 * sysdeps/s390/memmove-c.c: New file.
3968 * sysdeps/s390/memmove.c: Likewise.
3969 * sysdeps/s390/multiarch/ifunc-impl-list.c
3970 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3971
3972 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3973
3974 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3975 * sysdeps/s390/configure.ac: Add check for z13 support.
3976 * sysdeps/s390/configure: Regenerated.
3977
3978 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3979
3980 * sysdeps/s390/memcopy.h: New file.
3981
3982 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3983
3984 * sysdeps/s390/s390-32/bcopy.S: Remove.
3985 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3986
3987 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3988
3989 * sysdeps/s390/ifunc-memcpy.h: New File.
3990 * sysdeps/s390/memcpy.S: Move to ...
3991 * sysdeps/s390/memcpy-z900.S ... here.
3992 Move implementations from memcpy-s390x.s to here.
3993 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3994 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3995 Remove memcpy/mempcpy variants.
3996 * sysdeps/s390/Makefile (sysdep_routines):
3997 Add memcpy/mempcpy variants.
3998 * sysdeps/s390/multiarch/ifunc-impl-list.c
3999 (__libc_ifunc_impl_list): Adjust ifunc variants for
4000 memcpy and mempcpy.
4001 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
4002 to ...
4003 * sysdeps/s390/memcpy.c: ... here.
4004 Adjust ifunc variants for memcpy.
4005 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
4006 * sysdeps/s390/mempcpy.c: ... here.
4007 Adjust ifunc variants for mempcpy.
4008 * sysdeps/s390/mempcpy.S: Delete file.
4009
4010 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4011
4012 * sysdeps/s390/s390-64/memcpy.S: Move to ...
4013 * sysdeps/s390/memcpy.S: ... here.
4014 Adjust to be usable for 31/64bit.
4015 * sysdeps/s390/s390-32/memcpy.S: Delete File.
4016 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
4017 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
4018 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4019 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
4020 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
4021 Adjust to be usable for 31/64bit.
4022 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
4023 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
4024 * sysdeps/s390/multiarch/memcpy.c: ... here.
4025 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
4026
4027 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4028
4029 * sysdeps/s390/ifunc-memcmp.h: New File.
4030 * sysdeps/s390/memcmp.S: Move to ...
4031 * sysdeps/s390/memcmp-z900.S ... here.
4032 Move implementations from memcmp-s390x.s to here.
4033 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4034 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4035 Remove memcmp variants.
4036 * sysdeps/s390/Makefile (sysdep_routines):
4037 Add memcmp variants.
4038 * sysdeps/s390/multiarch/ifunc-impl-list.c
4039 (__libc_ifunc_impl_list): Adjust ifunc variants for
4040 memcmp.
4041 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4042 to ...
4043 * sysdeps/s390/memcmp.c: ... here.
4044 Adjust ifunc variants for memcmp.
4045
4046 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4047
4048 * sysdeps/s390/s390-64/memcmp.S: Move to ...
4049 * sysdeps/s390/memcmp.S: ... here.
4050 Adjust to be usable for 31/64bit.
4051 * sysdeps/s390/s390-32/memcmp.S: Delete File.
4052 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4053 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4054 Remove memcmp.
4055 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4056 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4057 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4058 Adjust to be usable for 31/64bit.
4059 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4060 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4061 * sysdeps/s390/multiarch/memcmp.c: ... here.
4062 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4063
4064 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4065
4066 * sysdeps/s390/s390-32/bzero.S: Delete file.
4067 * sysdeps/s390/s390-64/bzero.S: Likewise.
4068 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4069 * sysdeps/s390/bzero.c: New file.
4070 * sysdeps/s390/memset-z900.S: Add bzero entry points.
4071 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4072 * sysdeps/s390/multiarch/ifunc-impl-list.c
4073 (__libc_ifunc_impl_list): Add bzero ifunc variants.
4074
4075 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4076
4077 * sysdeps/s390/ifunc-memset.h: New File.
4078 * sysdeps/s390/memset.S: Move to ...
4079 * sysdeps/s390/memset-z900.S ... here.
4080 Move implementations from memset-s390x.s to here.
4081 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4082 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4083 Remove memset variants.
4084 * sysdeps/s390/Makefile (sysdep_routines):
4085 Add memset variants.
4086 * sysdeps/s390/multiarch/ifunc-impl-list.c
4087 (__libc_ifunc_impl_list): Adjust ifunc variants for
4088 memset.
4089 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4090 to ...
4091 * sysdeps/s390/memset.c: ... here.
4092 Adjust ifunc variants for memset.
4093
4094 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4095
4096 * sysdeps/s390/s390-64/memset.S: Move to ...
4097 * sysdeps/s390/memset.S: ... here.
4098 Adjust to be usable for 31/64bit.
4099 * sysdeps/s390/s390-32/memset.S: Delete File.
4100 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4101 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4102 Remove memset.
4103 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4104 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4105 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4106 Adjust to be usable for 31/64bit.
4107 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4108 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4109 * sysdeps/s390/multiarch/memset.c: ... here.
4110 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4111
4112 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4113
4114 * sysdeps/s390/multiarch/ifunc-resolve.h
4115 (s390_libc_ifunc_init, s390_libc_ifunc,
4116 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4117
4118 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4119
4120 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4121 * sysdeps/s390/configure.ac: Add check for z10 support.
4122 * sysdeps/s390/configure: Regenerated.
4123
4124 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
4125
4126 * sysdeps/i386/atomic-machine.h: Merged with ...
4127 * sysdeps/x86_64/atomic-machine.h: To ...
4128 * sysdeps/x86/atomic-machine.h: This. New file.
4129
4130 2018-12-18 Florian Weimer <fweimer@redhat.com>
4131
4132 Rewrite locale/gen-translit.pl in Python.
4133 * locale/Makefile (generated): Add C-translit.h.
4134 (before-compile): Add $(objpfx)C-translit.h.
4135 (C-translit.h): Move to $(objpfx). Create target directory.
4136 Build using Python script.
4137 * locale/gen-translit.py: New file.
4138 * locale/gen-translit.pl: Remove file.
4139 * locale/C-translit.h.in: Change comment character to '#' for
4140 easier parsing without a C preprocessor.
4141 * locale/C-translit.h: Remove generated file.
4142 * manual/install.texi (Tools for Compilation): Do not mention
4143 C-translit.h.
4144 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4145 Remove locale/C-translit.h.
4146 * scripts/update-copyrights: Likewise.
4147 * INSTALL: Regenerate.
4148
4149 2018-12-18 Florian Weimer <fweimer@redhat.com>
4150
4151 [BZ #23995]
4152 * localedata/locales/bi_VU: Remove executable bit from file.
4153
4154 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
4155
4156 * include/time.h
4157 (__localtime64): Add.
4158 * manual/maint.texi: Document Y2038 symbol handling.
4159 * time/localtime.c
4160 (__localtime64): Add.
4161 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4162
4163 2018-12-17 Joseph Myers <joseph@codesourcery.com>
4164
4165 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4166 Do not clobber r12.
4167
4168 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4169 to allow extra macros from first or second sources.
4170 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4171 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4172 (tests-special): Add $(objpfx)tst-mman-consts.out.
4173 ($(objpfx)tst-mman-consts.out): New makefile target.
4174
4175 2018-12-17 Mao Han <han_mao@c-sky.com>
4176
4177 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4178 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4179 without stat64 system call support.
4180 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4181 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4182 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4183 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4184 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4185 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4186 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4187 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4188 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4189 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4190 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4191
4192 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4193
4194 regex: fix storage-exhaustion error
4195 [BZ #18040]
4196 * posix/regexec.c (get_subexp):
4197 Do not continue if storage is exhausted.
4198
4199 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4200
4201 regex: fix heap-use-after-free error
4202 [BZ #18040]
4203 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4204 https://debbugs.gnu.org/32592
4205 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4206 call extend_buffers which reallocates the re_string_t internal buffer.
4207 Local variable 'buf' was not updated in such case, resulting in
4208 use-after-free.
4209 * posix/regexec.c (get_subexp): Update 'buf' after call to
4210 get_subexp_sub.
4211
4212 2018-12-15 Florian Weimer <fweimer@redhat.com>
4213
4214 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4215 (minimum_stride_size): Use it.
4216 (support_blob_repeat_allocate): Likewise.
4217
4218 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4219
4220 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4221 definition.
4222 (acosh): Likewise.
4223 (atanh): Likewise.
4224
4225 2018-12-14 Florian Weimer <fweimer@redhat.com>
4226
4227 * manual/process.texi (Process Creation Concepts): Remove
4228 documentation of process (ID) lifetime. List more process
4229 creation functions. Reference Process Identification section.
4230 (Process Identification): Add information about process ID
4231 lifetime. Describe Linux thread/task IDs.
4232 * manual/signal.texi (Signaling Another Process): Mention that the
4233 signal is always sent to the process.
4234
4235 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4236
4237 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4238 and tst-ldbl-efgcvt.
4239 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4240 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4241 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4242 (fcvt_tests, output_error, output_r_error, do_test): Use the
4243 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4244 select the type of floating-point variables and arguments; to
4245 produce extra tests for double and conversion specifiers for
4246 printf; and to set the names of called functions.
4247 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4248 in tst-efgcvt-template.c.
4249 * misc/tst-ldbl-efgcvt.c: Likewise.
4250
4251 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4252
4253 * nss/Makefile (tst-nss-test3.out): New rule.
4254
4255 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4256
4257 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4258 clobber sp.
4259
4260 2018-12-13 fanjinke <fanjinke@hygon.cn>
4261
4262 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4263 "HygonGenuine".
4264
4265 2018-12-13 Andreas Schwab <schwab@suse.de>
4266
4267 [BZ #23861]
4268 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4269 (__pthread_rwlock_rdlock_full): Update expected value for
4270 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4271 * nptl/tst-rwlock-pwn.c: New file.
4272 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4273
4274 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4275
4276 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4277 definition.
4278
4279 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4280
4281 * benchtests/scripts/compare_bench.py (do_compare): write to
4282 stderr in casestat is not present.
4283 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4284 stderr in case timings field is not present. Also string showing
4285 the output filename goes into the stderr.
4286
4287 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4288
4289 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4290 and ZeroDivisorError exceptions.
4291 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4292 argument to loop through user provided statistics.
4293 * benchtests/scripts/compare_bench.py (main): Include the --stats
4294 argument.
4295
4296 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4297
4298 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4299 instead of return.
4300
4301 2018-12-12 Florian Weimer <fweimer@redhat.com>
4302
4303 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4304 clause to copyright header.
4305
4306 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4307
4308 [BZ #23614]
4309 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4310 registers saved in the stack frame.
4311 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4312 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4313
4314 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4315
4316 * include/bits/monetary-ldbl.h: New file.
4317 * include/bits/printf-ldbl.h: Likewise.
4318 * include/bits/stdio-ldbl.h: Likewise.
4319 * include/bits/stdlib-ldbl.h: Likewise.
4320 * include/bits/syslog-ldbl.h: Likewise.
4321 * include/bits/wchar-ldbl.h: Likewise.
4322
4323 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4324
4325 * libio/libio.h: Remove redirection for _IO_vfprintf.
4326
4327 2018-12-11 Andreas Schwab <schwab@suse.de>
4328
4329 * Makerules: Remove all references to abilist-pattern.
4330 (update-all-abi): Simplify find expression.
4331
4332 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4333
4334 [BZ #23961]
4335 * math/auto-libm-test-in: Add new test case.
4336 * math/auto-libm-test-out-pow: Regenerated.
4337 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4338
4339 2018-12-10 DJ Delorie <dj@redhat.com>
4340
4341 [BZ #23948]
4342 * support/test-container.c: Move postclean step to before we
4343 change namespaces.
4344
4345 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4346
4347 * scripts/gen-as-const.py (main): Handle --python option.
4348 * scripts/gen-py-const.awk: Remove.
4349 * Makerules (py-const-script): Use gen-as-const.py.
4350 ($(py-const)): Likewise.
4351 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4352 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4353 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4354 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4355 ~PTHREAD_MUTEX_NO_ELISION_NP.
4356 * manual/README.pretty-printers: Update reference to
4357 gen-py-const.awk.
4358
4359 * scripts/glibcextract.py: New file.
4360 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4361 or tempfile. Import glibcexctract.
4362 (compute_c_consts): Remove. Moved to glibcextract.py.
4363 (gen_test): Update reference to compute_c_consts.
4364 (main): Likewise.
4365 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4366 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4367 * sysdeps/unix/sysv/linux/Makefile
4368 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4369 Redirect stderr as well as stdout.
4370
4371 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4372
4373 [BZ #19767]
4374 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4375 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4376 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4377 ALWAYS_USE_VSYSCALL.
4378 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4379 ALWAYS_USE_VSYSCALL.
4380 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4381 ALWAYS_USE_VSYSCALL.
4382
4383 2018-12-10 Florian Weimer <fweimer@redhat.com>
4384
4385 [BZ #23972]
4386 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4387 offset instead of count for clarity. Fix typo in comment.
4388 (__old_getdents64): Keep track of previous offset. Use it to call
4389 handle_overflow.
4390 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4391 that d_off is never zero.
4392
4393 2018-12-10 Andreas Schwab <schwab@suse.de>
4394
4395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4396 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4398 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4399 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4400
4401 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4402
4403 * timezone/private.h: Update from tzcode 2018g.
4404 * timezone/tzfile.h: Likewise.
4405 * timezone/tzselect.ksh: Likewise.
4406 * timezone/zdump.c: Likewise.
4407 * timezone/zic.c: Likewise.
4408
4409 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4410
4411 [BZ #23490]
4412 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4413 (do_test): Adjust buffer size and fix format.
4414
4415 2018-12-07 DJ Delorie <dj@redhat.com>
4416
4417 [BZ #23907]
4418 * malloc/tst-tcfree3.c: New.
4419 * malloc/Makefile: Add it.
4420
4421 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4422
4423 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4424
4425 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4426
4427 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4428 used as a mask for the mode argument of __vfscanf_internal and
4429 __vfwscanf_internal.
4430 * stdio-common/vfscanf-internal.c
4431 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4432 (__strtof128_internal): Define to __wcstof128_internal.
4433 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4434 __strtof128_internal or __wcstof128_internal when the format of
4435 long double is the same as _Float128.
4436
4437 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4438
4439 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4440 * posix/confstr.c (confstr): Rename to __confstr.
4441 (__confstr): Add hidden def.
4442 (confstr): Add weak alias for __confstr.
4443 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4444 confstr.
4445
4446 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4447
4448 * NEWS: Mention getcpu.
4449 * include/sched.h (__getcpu): New libc_hidden_proto.
4450 * manual/resource.texi: Document getcpu.
4451 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4452 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4453 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4454 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4455 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4456 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4457 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4458 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4459 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4460 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4461 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4462 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4463 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4464 Likewise.
4465 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4466 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4467 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4469 Likewise.
4470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4471 Likewise.
4472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4473 Likewise.
4474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4475 Likewise.
4476 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4477 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4478 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4479 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4480 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4481 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4482 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4483 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4484 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4485 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4486 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4487 Also check getcpu.
4488
4489 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4490
4491 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4492 functions.
4493 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4494
4495 2018-12-07 Florian Weimer <fweimer@redhat.com>
4496
4497 [BZ #17405]
4498 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4499 * posix/Versions (GLIBC_2.29): Export
4500 posix_spawn_file_actions_addfchdir_np.
4501 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4502 * posix/spawn_faction_destroy.c
4503 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4504 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4505 and the field action.fchdir_action.
4506 * posix/tst-spawn-chdir.c (add_chdir): New function.
4507 (do_test): Add do_fchdir loop. Call add_chdir.
4508 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4509 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4510 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4511 posix_spawn_file_actions_addfchdir_np.
4512 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4513 Likewise.
4514 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4515 Likewise.
4516 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4517 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4518 Likewise.
4519 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4520 Likewise.
4521 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4522 Likewise.
4523 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4524 Likewise.
4525 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4526 Likewise.
4527 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4528 Likewise.
4529 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4530 (GLIBC_2.29): Likewise.
4531 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4532 (GLIBC_2.29): Likewise.
4533 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4534 (GLIBC_2.29): Likewise.
4535 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4536 (GLIBC_2.29): Likewise.
4537 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4538 Likewise.
4539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4540 (GLIBC_2.29): Likewise.
4541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4542 (GLIBC_2.29): Likewise.
4543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4544 (GLIBC_2.29): Likewise.
4545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4546 (GLIBC_2.29): Likewise.
4547 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4548 Likewise.
4549 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4550 Likewise.
4551 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4552 Likewise.
4553 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4554 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4555 Likewise.
4556 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4557 Likewise.
4558 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4559 Likewise.
4560 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4561 Likewise.
4562
4563 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4564
4565 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4566 trailing whitespace removed.
4567 * scripts/config.guess: Update to version 2018-11-28.
4568 * scripts/config.sub: Update to version 2018-11-28.
4569 * scripts/install-sh: Update to version 2018-03-11.20.
4570 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4571 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4572
4573 2018-12-07 Florian Weimer <fweimer@redhat.com>
4574
4575 [BZ #23927]
4576 CVE-2018-19591
4577 * inet/tst-if_index-long.c: New file.
4578 * inet/Makefile (tests): Add tst-if_index-long.
4579
4580 2018-12-07 Florian Weimer <fweimer@redhat.com>
4581
4582 * support/check.h (support_record_failure_is_failed): Declare.
4583 * support/descriptors.h: New file.
4584 * support/support_descriptors.c: Likewise.
4585 * support/tst-support_descriptors.c: Likewise.
4586 * support/support_record_failure.c
4587 (support_record_failure_is_failed): New function.
4588 * support/Makefile (libsupport-routines): Add support_descriptors.
4589 (tests): Add tst-support_descriptors.
4590
4591 2018-12-05 Zack Weinberg <zackw@panix.com>
4592 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4593
4594 * stdio-common/vfprintf-internal.c
4595 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4596 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4597 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4598 and __no_long_double.
4599 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4600 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4601 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4602 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4603 and __nldbl_*syslog* functions.
4604 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4605 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4606 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4607 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4608 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4609 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4610 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4611 (__nldbl_vwprintf, __nldbl_wprintf):
4612 Directly call the appropriate __v*printf_internal routine, passing
4613 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4614 variable names.
4615 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4616 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4617 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4618 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4619 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4620 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4621 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4622 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4623 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4624 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4625 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4626 (__nldbl_syslog, __nldbl_vsyslog):
4627 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4628 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4629 appropriate.
4630 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4631 appropriate.
4632
4633 2018-12-05 Zack Weinberg <zackw@panix.com>
4634 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4635
4636 [BZ #11319]
4637 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4638 Moved here from debug/vsprintf_chk.c.
4639 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4640 and completion logic for the strfile to match exactly what
4641 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4642 _IO_str_init_static_internal instead of maxlen-1.
4643 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4644 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4645 __vsprintf_internal.
4646
4647 * debug/vsprintf_chk.c (__vsprintf_chk)
4648 * debug/sprintf_chk.c (__sprintf_chk):
4649 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4650 'flags' argument is positive, and slen as maxlen. No need to lock
4651 the FILE and/or construct a temporary FILE. Minimize and normalize
4652 header inclusions and variable names. Do not libc_hidden_def anything.
4653
4654 * debug/asprintf_chk.c (__asprintf_chk)
4655 * debug/dprintf_chk.c (__dprintf_chk)
4656 * debug/fprintf_chk.c (__fprintf_chk)
4657 * debug/fwprintf_chk.c (__fwprintf_chk)
4658 * debug/printf_chk.c (__printf_chk)
4659 * debug/snprintf_chk.c (__snprintf_chk)
4660 * debug/swprintf_chk.c (__swprintf_chk)
4661 * debug/vasprintf_chk.c (__vasprintf_chk)
4662 * debug/vdprintf_chk.c (__vdprintf_chk)
4663 * debug/vfprintf_chk.c (__vfprintf_chk)
4664 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4665 * debug/vprintf_chk.c (__vprintf_chk)
4666 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4667 * debug/vswprintf_chk.c (__vswprintf_chk)
4668 * debug/vwprintf_chk.c (__vwprintf_chk)
4669 * debug/wprintf_chk.c (__wprintf_chk):
4670 Directly call the corresponding vxxprintf_internal function, passing
4671 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4672 the FILE and/or construct a temporary FILE. Minimize and normalize
4673 header inclusions and variable names. Do not libc_hidden_def anything.
4674
4675 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4676 __obstack_vprintf_internal.
4677 (__obstack_vprintf_chk): Convert into a wrapper that calls
4678 __obstack_vprintf_internal (these two functions already had the
4679 same code) and move to new file...
4680 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4681 file.
4682 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4683 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4684 * debug/Makefile (routines): Add vobprintf_chk.
4685
4686 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4687 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4688 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4689 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4690 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4691 (__nldbl___obstack_vfprintf_chk):
4692 Directly call the corresponding vxxprintf_internal function,
4693 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4694 duplicate comparison of slen with 0 or maxlen from the corresponding
4695 non-__nldbl function.
4696
4697 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4698 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4699 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4700 Remove libc_hidden_proto.
4701
4702 * stdio-common/vfprintf-internal.c
4703 (__vfprintf_internal, __vfwprintf_internal):
4704 Do not check _IO_FLAGS2_FORTIFY.
4705 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4706 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4707 a comment explaining why it has the maxlen argument.
4708 (_IO_acquire_lock_clear_flags2_fct): Remove.
4709 (_IO_acquire_lock_clear_flags2): Remove.
4710 (_IO_release_lock): Remove conditional statement which will
4711 now never execute.
4712 (_IO_acquire_lock): Remove variable which is now unused.
4713 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4714 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4715
4716 * stdio-common/Makefile (tests): Add tst-bz11319 and
4717 tst-bz11319-fortify2.
4718 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4719 * stdio-common/tst-bz11319-fortify2.c: New file.
4720 * stdio-common/tst-bz11319.c: Likewise.
4721
4722 2018-12-05 Zack Weinberg <zackw@panix.com>
4723 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4724
4725 * misc/syslog.c: Include libioP.h, not iolibio.h.
4726 (__vsyslog_internal): New function with the former body of
4727 __vsyslog_chk; takes mode_flags argument same as
4728 __v*printf_internal. Call __vfprintf_internal directly.
4729
4730 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4731 Remove libc_hidden_def.
4732 (__syslog, __syslog_chk): Use __vsyslog_internal.
4733 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4734
4735 * include/sys/syslog.h: Add multiple inclusion guard.
4736 Add prototype for __vsyslog_internal.
4737 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4738
4739 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4740 Use __vsyslog_internal.
4741
4742 2018-12-05 Zack Weinberg <zackw@panix.com>
4743 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4744
4745 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4746 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4747 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4748 New functions.
4749 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4750 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4751
4752 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4753 Include wctype.h here if COMPILE_WPRINTF is defined.
4754 Define __vfprintf_internal or __vfwprintf_internal, depending
4755 on COMPILE_WPRINTF.
4756 Temporarily, on entry to this function, update mode_flags
4757 according to the environmental settings corresponding to
4758 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4759 Throughout, check mode_flags instead of __ldbl_is_dbl and
4760 _IO_FLAGS2_FORTIFY on the destination FILE.
4761 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4762 Include vfprintf-internal.c. Don't include wctype.h.
4763 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4764 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4765 and vfprintf.
4766 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4767 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4768 and vfwprintf.
4769 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4770
4771 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4772 and add mode_flags argument; use __vfprintf_internal.
4773 (__vdprintf): New function. Alias vdprintf to this.
4774 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4775 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4776 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4777 (__obstack_printf): Use __obstack_printf_internal.
4778 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4779 public aliases __vsnprintf and vsnprintf.
4780 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4781 called internally.
4782 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4783 public aliases _IO_vsprintf and vsprintf.
4784 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4785 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4786 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4787 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4788 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4789
4790 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4791 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4792 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4793 * stdio-common/printf.c: Use __vfprintf_internal.
4794
4795 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4796 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4797 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4798
4799 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4800 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4801 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4802 __vfwprintf_internal.
4803
4804 * libio/libio.h: Remove libc_hidden_proto and declaration for
4805 _IO_vfprintf.
4806 Remove declaration of _IO_vfwprintf.
4807 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4808 _IO_vsprintf.
4809 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4810 _IO_obstack_printf.
4811 * include/stdio.h: Add prototype for __vasprintf.
4812 (__vsnprintf): Remove declaration, because there are no more
4813 internal calls.
4814 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4815 declaration, because there are no more internal calls.
4816
4817 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4818 __vsnprintf_internal, instead of _IO_vsnprintf.
4819 * argp/argp-help.c (__argp_error, __argp_failure): Use
4820 __vasprintf_internal, instead of _IO_vasprintf.
4821 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4822 redefine, because there are no more internal calls.
4823
4824 2018-12-05 Zack Weinberg <zackw@panix.com>
4825 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4826
4827 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4828 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4829 Include libio/strfile.h instead of libioP.h.
4830 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4831 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4832 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4833 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4834 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4835 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4836 necessary. Do not set __no_long_double. Normalize variable names.
4837 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4838 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4839 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4840 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4841 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4842 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4843 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4844 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4845 Do not set __no_long_double. Normalize variable names.
4846
4847 2018-12-05 Zack Weinberg <zackw@panix.com>
4848 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4849
4850 * stdio-common/isoc99_scanf.c
4851 * stdio-common/isoc99_fscanf.c
4852 * stdio-common/isoc99_sscanf.c
4853 * stdio-common/isoc99_vscanf.c
4854 * stdio-common/isoc99_vfscanf.c
4855 * stdio-common/isoc99_vsscanf.c
4856 * wcsmbs/isoc99_wscanf.c
4857 * wcsmbs/isoc99_fwscanf.c
4858 * wcsmbs/isoc99_swscanf.c
4859 * wcsmbs/isoc99_vwscanf.c
4860 * wcsmbs/isoc99_vfwscanf.c
4861 * wcsmbs/isoc99_vswscanf.c:
4862 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4863 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4864 No need to lock and unlock the FILE passed to that function.
4865
4866 * stdio-common/vfscanf-internal.c
4867 (__vfscanf_internal, __vfwscanf_internal):
4868 Don't look at _IO_FLAGS2_SCANF_STD.
4869 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4870 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4871 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4872
4873 2018-12-05 Zack Weinberg <zackw@panix.com>
4874 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4875
4876 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4877 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4878 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4879 * libio/strfile.h: Add multiple inclusion guard.
4880 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4881
4882 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4883 consistency with the other version of this file.
4884 (ldbl_compat_symbol): New macro.
4885 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4886 New macro.
4887
4888 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4889 Define __vfscanf_internal or __vfwscanf_internal, depending on
4890 COMPILE_WSCANF; don't define any other public symbols.
4891 Remove errval and code to set errp.
4892 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4893 as the mode_flags argument.
4894 (encode_error, conv_error, input_error): Don't set errval.
4895 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4896 Include vfscanf-internal.c.
4897 * stdio-common/vfscanf.c: New file defining the public entry
4898 point vfscanf, which calls __vfscanf_internal.
4899 * stdio-common/vfwscanf.c: New file defining the public entry
4900 point vfwscanf, which calls __vfwscanf_internal.
4901
4902 * stdio-common/iovfscanf.c: New file.
4903 * stdio-common/iovfwscanf.c: Likewise.
4904
4905 * stdio-common/Makefile (routines): Add vfscanf-internal,
4906 vfwscanf-internal, iovfscanf, iovfwscanf.
4907 * stdio-common/Versions: Mention GLIBC_2.29, so that
4908 it can be used in SHLIB_COMPAT expressions.
4909 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4910 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4911 Call __vfscanf_internal, instead of _IO_vfscanf.
4912 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4913 _IO_vfscanf.
4914 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4915 _IO_vfwscanf.
4916
4917 * libio/iovsscanf.c: Clean up includes, when possible. Use
4918 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4919 __vfscanf_internal or __vfwscanf_internal directly.
4920 * libio/iovswscanf.c: Likewise.
4921 * libio/swscanf.c: Likewise.
4922 * libio/vscanf.c: Likewise.
4923 * libio/vwscanf.c: Likewise.
4924 * libio/wscanf.c: Likewise.
4925 * stdio-common/isoc99_fscanf.c: Likewise.
4926 * stdio-common/isoc99_scanf.c: Likewise.
4927 * stdio-common/isoc99_sscanf.c: Likewise.
4928 * stdio-common/isoc99_vfscanf.c: Likewise.
4929 * stdio-common/isoc99_vscanf.c: Likewise.
4930 * stdio-common/isoc99_vsscanf.c: Likewise.
4931 * stdio-common/scanf.c: Likewise.
4932 * stdio-common/sscanf.c: Likewise.
4933 * wcsmbs/isoc99_fwscanf.c: Likewise.
4934 * wcsmbs/isoc99_swscanf.c: Likewise.
4935 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4936 * wcsmbs/isoc99_vswscanf.c: Likewise.
4937 * wcsmbs/isoc99_vwscanf.c: Likewise.
4938 * wcsmbs/isoc99_wscanf.c: Likewise.
4939
4940 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4941
4942 * include/time.h
4943 (__tz_compute): Replace time_t with __time64_t.
4944 (__tz_convert): Replace time_t* with __time64_t.
4945 (__offtime): Replace time_t* with __time64_t.
4946 * time/gmtime.c
4947 (__gmtime_r): Adjust call to __tz_convert.
4948 (gmtime): Likewise.
4949 * time/localtime.c
4950 (__localtime_r): Likewise.
4951 (localtime): Likewise.
4952 * time/offtime.c: Replace time_t with __time64_t.
4953 * time/tzset.c: Likewise.
4954
4955 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4956
4957 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4958 dynamic linker unless [$(run-built-tests) = yes].
4959
4960 2018-12-03 DJ Delorie <dj@delorie.com>
4961
4962 * support/test-container.c (check_for_unshare_hints): New.
4963 (main): Call it if unshare fails. Add support for "su" scriptlet
4964 command.
4965
4966 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4967
4968 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4969 'START' to indicate that start text should be output.
4970 (gen_test): Likewise.
4971 (main): Generate 'START' for first symbol or '--' line, or at end
4972 of input if not previously generated.
4973
4974 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4975
4976 [BZ #19767]
4977 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4978 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4979 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4980 ALWAYS_USE_VSYSCALL.
4981
4982 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4983
4984 [BZ #23913]
4985 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4986 new_argv by one.
4987
4988 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4989
4990 [BZ #23923]
4991 * locale/programs/localedef.c: Declare boolean hard_links default true.
4992 (options): Add --no-hard-links option.
4993 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4994 * locale/programs/localedef.h: Declare prototype for hard_links.
4995 * locale/programs/locfile.c (write_locale_data): Don't use hard
4996 links if hard_links is false.
4997
4998 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4999
5000 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
5001 cpu_features_basic.
5002 (__cache_sysconf): Likewise.
5003 (init_cacheinfo): Likewise.
5004 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
5005 populate COMMON_CPUID_INDEX_80000007 and
5006 COMMON_CPUID_INDEX_80000008.
5007 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
5008 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
5009 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
5010 (init_cpu_features): Use _Static_assert on
5011 index_arch_Fast_Unaligned_Load.
5012 __get_cpuid_registers and __get_arch_feature. Updated for
5013 cpu_features_basic. Set stepping in cpu_features.
5014 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
5015 (FEATURE_INDEX_2): New.
5016 (FEATURE_INDEX_MAX): Changed to enum.
5017 (COMMON_CPUID_INDEX_D_ECX_1): New.
5018 (COMMON_CPUID_INDEX_80000007): Likewise.
5019 (COMMON_CPUID_INDEX_80000008): Likewise.
5020 (cpuid_registers): Likewise.
5021 (cpu_features_basic): Likewise.
5022 (CPU_FEATURE_USABLE): Likewise.
5023 (bit_arch_XXX_Usable): Likewise.
5024 (cpu_features): Use cpuid_registers and cpu_features_basic.
5025 (bit_arch_XXX): Reweritten.
5026 (bit_cpu_XXX): Likewise.
5027 (index_cpu_XXX): Likewise.
5028 (reg_XXX): Likewise.
5029 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5030 <support/check.h>.
5031 (CHECK_CPU_FEATURE): New.
5032 (CHECK_CPU_FEATURE_USABLE): Likewise.
5033 (cpu_kinds): Likewise.
5034 (do_test): Print vendor, family, model and stepping. Check
5035 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5036 (TEST_FUNCTION): Removed.
5037 Include <support/test-driver.c> instead of
5038 "../../test-skeleton.c".
5039 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5040 Check POPCNT instead of POPCOUNT.
5041 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5042
5043 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5044
5045 * scripts/gen-as-const.py (main): Avoid emitting empty line when
5046 there is no element in `consts'.
5047
5048 2018-12-01 Florian Weimer <fweimer@redhat.com>
5049
5050 * support/support_capture_subprocess.c
5051 (support_capture_subprocess): Check that pipe descriptors have
5052 expected values. Close original pipe descriptors in subprocess.
5053
5054 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5055
5056 [BZ #23032]
5057 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5058 attr with __pthread_default_barrierattr.
5059 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5060 attr with __pthread_default_condattr.
5061 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5062 attr with __pthread_default_mutexattr.
5063 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5064 attr with __pthread_default_rwlockattr.
5065
5066 2018-12-01 Kemi Wang <kemi.wang@intel.com>
5067
5068 * manual/tunables.texi (POSIX Thread Tunables): New node.
5069 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5070 * nptl/nptl-init.c: Include pthread_mutex_conf.h
5071 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5072 __pthread_tunables_init.
5073 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5074 (max_adaptive_count): Define.
5075 * nptl/pthread_mutex_conf.c: New file.
5076 * nptl/pthread_mutex_conf.h: New file.
5077 * sysdeps/generic/adaptive_spin_count.h: New file.
5078 * sysdeps/nptl/dl-tunables.list: New file.
5079 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5080 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5081 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5082 Likewise.
5083
5084 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5085
5086 [BZ #20544]
5087 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5088 * stdlib/on_exit.c (__on_exit): Likewise.
5089 * stdlib/Makefile (tests): Add tst-bz20544.
5090 * stdlib/tst-bz20544.c: New test.
5091
5092 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
5093
5094 [BZ #19767]
5095 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5096 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5097 New.
5098
5099 2018-11-30 Florian Weimer <fweimer@redhat.com>
5100
5101 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5102 Extend error logging.
5103 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5104 symbol.
5105
5106 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5107
5108 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5109 __sigismember instead of sigismember.
5110 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5111 cancel_handler): New definitions.
5112 (do_system): Use posix_spawn instead of fork and execl and remove
5113 reentracy code.
5114 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5115 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5116 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5117 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5118 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5119 * sysdeps/unix/sysv/linux/system.c: Likewise.
5120
5121 [BZ #22834]
5122 [BZ #17490]
5123 * NEWS: Add new semantic for atfork with popen and system.
5124 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5125 fork and execl.
5126
5127 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5128
5129 [BZ #23690]
5130 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5131 modification order when accessing reloc_result->addr.
5132 * include/link.h (reloc_result): Add field init.
5133 * nptl/Makefile (tests): Add tst-audit-threads.
5134 (modules-names): Add tst-audit-threads-mod1 and
5135 tst-audit-threads-mod2.
5136 Add rules to build tst-audit-threads.
5137 * nptl/tst-audit-threads-mod1.c: New file.
5138 * nptl/tst-audit-threads-mod2.c: Likewise.
5139 * nptl/tst-audit-threads.c: Likewise.
5140 * nptl/tst-audit-threads.h: Likewise.
5141
5142 2018-11-30 Joseph Myers <joseph@codesourcery.com>
5143
5144 * scripts/gen-as-const.py: New file.
5145 * scripts/gen-as-const.awk: Remove.
5146 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5147 gen-as-const.py.
5148 ($(objpfx)test-as-const-%.c): Likewise.
5149
5150 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5151
5152 * elf/dl-exception.c: Include <_itoa.h>.
5153
5154 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5155
5156 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5157 returned by __f_setlk.
5158
5159 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5160 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5161
5162 * elf/Makefile (tests-internal): Add tst-create_format1.
5163 * elf/dl-exception.c (_dl_exception_create_format): Support
5164 %x, %lx and %zx.
5165 * elf/tst-create_format1.c: New file.
5166
5167 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5168
5169 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5170 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5171 gnulib.)
5172 * argp/argp-help.c (__argp_failure): Likewise.
5173
5174 2018-11-29 Mao Han <han_mao@c-sky.com>
5175
5176 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5177 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5178 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5179 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5180 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5181 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5182 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5183 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5184 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5185 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5186 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5187 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5188 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5189 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5190 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5191 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5192 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5193 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5194 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5195 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5196 (R_CKCORE_TLS_TPOFF32): New defines.
5197
5198 2018-11-29 Florian Weimer <fweimer@redhat.com>
5199
5200 * posix/Makefile (before-compile): Remove testcases.h and
5201 ptestcases.h.
5202 (generated): Add testcases.h and ptestcases.h.
5203 (testcases.h, ptestcases.h): Move to $(objpfx).
5204 (runtests.o): Add dependency on testcases.h.
5205 (runptests.o): Add dependency on ptestcases.h.
5206 * posix/testcases.h, posix/ptestcases.h: Remove files.
5207 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5208 not touch posix/testcases.h and posix/ptestcases.h.
5209
5210 2018-11-28 Florian Weimer <fweimer@redhat.com>
5211
5212 support: Add signal support to support_capture_subprocess_check.
5213 * support/capture_subprocess.h (support_capture_subprocess_check):
5214 Adjust comment and rename parameter.
5215 * support/support_capture_subprocess_check.c
5216 (print_actual_status): New function.
5217 (support_capture_subprocess_check): Support negative
5218 status_or_signal. Call print_actual_status.
5219 * support/tst-support_capture_subprocess.c (do_test): Call
5220 support_capture_subprocess_check.
5221 * libio/tst-vtables-common.c (termination_status)
5222 (init_termination_status): Remove.
5223 (check_for_termination): Adjust support_capture_subprocess_check
5224 call.
5225 (do_test): Remove call to init_termination_status.
5226
5227 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5228
5229 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5230 source directory instead of a copy.
5231 (CommandList.create_copy_dir): Remove.
5232
5233 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5234
5235 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5236
5237 2018-11-28 Florian Weimer <fweimer@redhat.com>
5238
5239 * support/support.h (support_quote_string): Do not use str
5240 parameter name.
5241
5242 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5243
5244 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5245 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5246
5247 2018-11-27 Florian Weimer <fweimer@redhat.com>
5248
5249 * support/support.h (support_quote_string): Declare.
5250 * support/support_quote_string.c: New file.
5251 * support/tst-support_quote_string.c: Likewise.
5252 * support/Makefile (libsupport-routines): Add
5253 support_quote_string.
5254 (tests): Add tst-support_quote_string.
5255
5256 2018-11-27 Florian Weimer <fweimer@redhat.com>
5257
5258 [BZ #23927]
5259 CVE-2018-19591
5260 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5261 descriptor leak in case of ENODEV error.
5262
5263 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5264
5265 [BZ #19767]
5266 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5267 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5268 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5269
5270 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5271
5272 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5273 Error for unknown lines.
5274
5275 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5276
5277 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5278 Touch additional files.
5279
5280 2018-11-26 Florian Weimer <fweimer@redhat.com>
5281
5282 [BZ #23907]
5283 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5284 double-frees.
5285
5286 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5287
5288 [BZ #19767]
5289 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5290 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5291 SHARED. Include sysdep.h.
5292 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5293 ALWAYS_USE_VSYSCALL.
5294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5295 ALWAYS_USE_VSYSCALL.
5296
5297 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5298
5299 [BZ #19767]
5300 * nptl/Makefile (tests-static): Add tst-cond11-static.
5301 (tests): Likewise.
5302 * nptl/tst-cond11-static.c: New File.
5303 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5304 tst-affinity-static.
5305 (tests): Likewise.
5306 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5307 instead of SHARED.
5308 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5309 (USE_VSYSCALL): Likewise.
5310 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5311 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5312 instead of SHARED.
5313 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5314 SHARED.
5315 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5316 New.
5317
5318 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5319
5320 [BZ #23915]
5321 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5322 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5323 Undefine.
5324
5325 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5326
5327 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5328 (tst-cet-legacy-1a-ARGS): New.
5329 ($(objpfx)tst-cet-legacy-1a): New target.
5330 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5331
5332 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5333
5334 * conform/conformtest.py (CompileSubTest.__init__): Set
5335 self.run_early to False.
5336 (ExecuteSubTest.__init__): Likewise.
5337 (HeaderTests.run): Try running all non-optional, non-XFAILed
5338 compilation tests in a single execution of the compiler.
5339
5340 * conform/conformtest.py (CompileSubTest): New class.
5341 (ExecuteSubTest): Likewise.
5342 (ElementTest.run): Rename to gen_subtests. Append tests to
5343 self.subtests instead of running them.
5344 (ConstantTest.run): Likewise.
5345 (SymbolTest.run): Likewise.
5346 (TypeTest.run): Likewise.
5347 (TagTest.run): Likewise.
5348 (FunctionTest.run): Likewise.
5349 (VariableTest.run): Likewise.
5350 (MacroFunctionTest.run): Likewise.
5351 (MacroStrTest.run): Likewise.
5352 (HeaderTests.handle_test_line): Generate subtests for tests.
5353 (HeaderTests.run): Run subtests for tests.
5354
5355 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5356
5357 * math/Versions (GLIBC_2.29): Add pow.
5358 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5359 symbol.
5360 * math/w_pow.c: New file.
5361 * sysdeps/i386/fpu/w_pow.c: New file.
5362 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5363 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5364 and add necessary aliases.
5365 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5366 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5367 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5368 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5369 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5370 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5371 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5372 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5373 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5374 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5375 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5376 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5377 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5378 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5379 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5384 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5385 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5386 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5387 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5388 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5389 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5390 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5391 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5392 __pow.
5393 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5394 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5395 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5396
5397 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5398
5399 * math/Versions (GLIBC_2.29): Add log2.
5400 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5401 symbol.
5402 * math/w_log2.c: New file.
5403 * sysdeps/i386/fpu/w_log2.c: New file.
5404 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5405 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5406 and add necessary aliases.
5407 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5408 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5409 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5410 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5411 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5412 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5413 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5414 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5415 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5416 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5417 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5418 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5419 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5420 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5421 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5426 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5427 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5428 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5429 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5430 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5431 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5432 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5433
5434 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5435
5436 * math/Versions (GLIBC_2.29): Add log.
5437 * math/w_log_compat.c (__log_compat): Change to versioned compat
5438 symbol.
5439 * math/w_log.c: New file.
5440 * sysdeps/i386/fpu/w_log.c: New file.
5441 * sysdeps/ia64/fpu/e_log.S: Update.
5442 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5443 and add necessary aliases.
5444 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5445 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5446 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5447 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5448 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5449 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5450 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5451 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5452 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5453 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5454 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5455 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5456 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5457 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5458 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5460 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5463 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5464 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5465 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5466 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5467 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5468 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5469 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5470 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5471 __log.
5472 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5473 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5474 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5475 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5476
5477 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5478
5479 * math/Versions (GLIBC_2.29): Add exp and exp2.
5480 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5481 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5482 * math/w_exp_compat.c (__exp_compat): Likewise.
5483 * math/w_exp.c: New file.
5484 * math/w_exp2.c: New file.
5485 * sysdeps/i386/fpu/w_exp.c: New file.
5486 * sysdeps/i386/fpu/w_exp2.c: New file.
5487 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5488 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5489 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5490 and add necessary aliases.
5491 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5492 and add necessary aliases.
5493 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5494 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5495 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5496 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5497 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5498 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5499 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5500 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5501 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5502 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5503 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5504 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5505 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5506 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5507 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5508 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5509 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5514 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5515 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5516 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5517 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5518 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5519 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5520 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5521 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5522 (__ieee754_exp): Rename to __exp.
5523 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5524 (__ieee754_exp): Rename to __exp.
5525 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5526 (__ieee754_exp): Rename to __exp.
5527 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5528 __exp.
5529 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5530
5531 2018-11-20 DJ Delorie <dj@redhat.com>
5532
5533 * malloc/malloc.c (tcache_entry): Add key field.
5534 (tcache_put): Set it.
5535 (tcache_get): Likewise.
5536 (_int_free): Check for double free in tcache.
5537 * malloc/tst-tcfree1.c: New.
5538 * malloc/tst-tcfree2.c: New.
5539 * malloc/Makefile: Run the new tests.
5540 * manual/probes.texi: Document memory_tcache_double_free probe.
5541
5542 * dlfcn/dlerror.c (check_free): Prevent double frees.
5543
5544 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5545
5546 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5547
5548 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5549
5550 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5551 in tests. Use names for format arguments.
5552 (ConstantTest.run): Likewise.
5553 (SymbolTest.run): Likewise.
5554 (TypeTest.run): Likewise.
5555 (TagTest.run): Likewise.
5556 (FunctionTest.run): Likewise.
5557 (VariableTest.run): Likewise.
5558 (MacroFunctionTest.run): Likewise.
5559 (MacroStrTest.run): Likewise.
5560 (HeaderTests.__init__): Set self.num_tests.
5561 (HeaderTests.handle_test_line): Set test.num. Increment
5562 self.num_tests.
5563
5564 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5565
5566 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5567 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5568 SEEK_SET.
5569
5570 2018-11-19 Mao Han <han_mao@c-sky.com>
5571
5572 * scripts/config.guess: Update to version 2018-08-29.
5573 * scripts/config.sub: Update to version 2018-08-29.
5574
5575 2018-11-19 Florian Weimer <fweimer@redhat.com>
5576
5577 support: Print timestamps in timeout handler.
5578 * support/support_test_main.c (print_timestamp): New function.
5579 (signal_handler): Use it to print the termination time and the
5580 time of the last write to standard output.
5581
5582 2018-11-16 Zack Weinberg <zackw@panix.com>
5583 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5584
5585 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5586 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5587 argument.
5588 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5589 and add flags argument. Check flags instead of __ldbl_is_dbl when
5590 deciding whether to set is_long_double.
5591 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5592 passing zero for flags argument.
5593 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5594
5595 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5596 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5597 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5598 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5599 variable names. Remove libc_hidden_def/libc_hidden_proto from
5600 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5601 longer called from within the library.
5602 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5603 for __nldbl___vstrfmon_l, declare it explicitly.
5604
5605 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5606
5607 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5608
5609 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5610 macros
5611 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5612 F_SETLK64, F_SETLKW64, respectively.
5613 * sysdeps/mach/hurd/f_setlk.c: New file.
5614 * sysdeps/mach/hurd/f_setlk.h: New file.
5615 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5616 f_setlk.
5617 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5618 (__libc_fcntl): Move non-flock operations to...
5619 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5620 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5621
5622 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5623
5624 mktime: DEBUG_MKTIME cleanup
5625 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5626 And it’s no longer needed now that glibc and Gnulib both have
5627 their own testing mechanisms for mktime.
5628 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5629
5630 mktime: fix non-EOVERFLOW errno handling
5631 [BZ#23789]
5632 mktime was not properly reporting failures when the underlying
5633 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5634 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5635 The problem could happen on non-glibc platforms, with Gnulib.
5636 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5637 (tm_diff): ... this simpler function, which does not change errno.
5638 All callers changed to deal with errno themselves.
5639 (ranged_convert, __mktime_internal): Return failure immediately if
5640 the underlying function reports any failure other than EOVERFLOW.
5641 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5642 gap code fails.
5643
5644 mktime: fix bug with Y2038 DST transition
5645 [BZ#23789]
5646 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5647 mishandle a DST transition that jumps over the Y2038 boundary.
5648 No such DST transitions are known so this is only a theoretical
5649 bug, but we might as well do things right.
5650
5651 mktime: make more room for overflow
5652 [BZ#23789]
5653 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5654 This is so that we can add tm_diff results to a previous guess,
5655 which will be useful in a later patch.
5656
5657 mktime: simplify offset guess
5658 [BZ#23789]
5659 * time/mktime.c (__mktime_internal): Omit excess precision.
5660
5661 mktime: new test for mktime failure
5662 [BZ#23789]
5663 Based on a test suggested by Albert Aribaud in:
5664 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5665 * time/Makefile (tests): Add bug-mktime4.
5666 * time/bug-mktime4.c: New file.
5667
5668 mktime: fix EOVERFLOW bug
5669 [BZ#23789]
5670 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5671 Include libc-config.h, not config.h, for __set_errno.
5672 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5673
5674 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5675
5676 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5677 __attribute_copy__ to copy attributes from name. Drop static qualifier
5678 to avoid warnings about leaf attribute not having effect on static
5679 functions.
5680
5681 2018-11-13 Florian Weimer <fweimer@redhat.com>
5682
5683 * malloc/malloc.c (fastbin_push_entry): New function.
5684 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5685 (REMOVE_FB): Remove macro.
5686 (_int_malloc): Use fastbin_pop_entry and reindent.
5687 (_int_free): Use fastbin_push_entry.
5688 (malloc_consolidate): Use atomic_exchange_acquire.
5689
5690 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5691
5692 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5693 alias attribute, not with strong_alias.
5694
5695 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5696 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5697 with additional parameter thread.
5698 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5699 in terms of __hidden_ver2.
5700 (hidden_tls_def): New macro.
5701 (libc_hidden_tls_def): Likewise.
5702 (rtld_hidden_tls_def): Likewise.
5703 (libm_hidden_tls_def): Likewise.
5704 (libmvec_hidden_tls_def): Likewise.
5705 (libresolv_hidden_tls_def): Likewise.
5706 (librt_hidden_tls_def): Likewise.
5707 (libdl_hidden_tls_def): Likewise.
5708 (libnss_files_hidden_tls_def): Likewise.
5709 (libnsl_hidden_tls_def): Likewise.
5710 (libnss_nisplus_hidden_tls_def): Likewise.
5711 (libutil_hidden_tls_def): Likewise.
5712 (libutil_hidden_tls_def): Likweise.
5713 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5714 libc_hidden_tls_def.
5715 (__sim_disabled_exceptions_thread): Likewise.
5716 (__sim_round_mode_thread): Likewise.
5717
5718 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5719 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5720 copy attributes from name.
5721
5722 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5723
5724 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5725 Use __attribute_copy__ to copy attributes from name.
5726
5727 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5728 with __hidden_ver1 call.
5729 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5730 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5731 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5732 (__cosf): Do not declare here.
5733 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5734 (__sincosf): Do not declare here.
5735 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5736 (__sinf): Do not declare here.
5737
5738 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5739 (__BIG_ENDIAN): Likewise.
5740 (__BYTE_ORDER): Likewise.
5741 (strong_alias): Likewise.
5742 (_strong_alias): Likewise.
5743
5744 2018-11-12 Florian Weimer <fweimer@redhat.com>
5745
5746 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5747 function. Move after the definition of in_smallbin_range. Do not
5748 use __builtin_expect for paths that lead to a noreturn function.
5749 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5750 because it is unclear whether this is in fact an unlikely
5751 condition.
5752 (_int_malloc, _int_free): Adjust.
5753 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5754 variables.
5755 * malloc/arena.c (heap_trim): Likewise.
5756
5757 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5758
5759 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5760 it, free it if needed.
5761 (reauthenticate): Test and use ccwdir.
5762 (child_init_port): In non-resetids case, test and use ccwdir.
5763 (child_chdir): New nested function to set ccwdir.
5764 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5765 * hurd/hurd/port.h (_hurd_port_move): New function.
5766 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5767 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5768 * hurd/Versions (_hurd_port_move): Export function.
5769 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5770 symbol.
5771 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5772 of dtablesize for allocating dtable_cloexec.
5773
5774 2018-11-09 Martin Sebor <msebor@redhat.com>
5775
5776 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5777 it's already defined.
5778 (_strong_alias): Use __attribute_copy__.
5779 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5780 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5781 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5782 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5783 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5784 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5785 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5786 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5787 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5788 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5789 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5790 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5791 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5792 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5793 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5794 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5795 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5796 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5797 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5798
5799 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5800
5801 * misc/tst-efgcvt.c: Include support/check.h and
5802 support/test-driver.c. Do not include test-skeleton.c.
5803 (error_count): Remove.
5804 (output_error): Replace increments to error_count with calls to
5805 support_record_failure.
5806 (output_r_error): Likewise.
5807 (special): Likewise.
5808 (do_test): Unconditionally return zero.
5809 (TEST_FUNCTION): Remove.
5810
5811 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5812
5813 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5814 not $(@D)/scratch.
5815 ($(linknamespace-header-tests)): Likewise.
5816
5817 * conform/conformtest.py: New file.
5818 * conform/conformtest.pl: Remove.
5819 * conform/GlibcConform.pm: Likewise.
5820 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5821 (KEYWORDS_C99): Likewise.
5822 (KEYWORDS): Likewise.
5823 * conform/Makefile ($(conformtest-header-tests)): Use
5824 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5825 option. Use --header instead of --headers.
5826 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5827 function entries.
5828 * conform/data/spawn.h-data: Likewise.
5829 * conform/data/fcntl.h-data (openat): Add space after function
5830 name.
5831 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5832 (wcscasecmp_l): Likewise.
5833 * conform/data/termios.h-data (c_cc): Add space after element
5834 name.
5835
5836 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5837
5838 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5839 instead of manually comparing and reporting mismatching strings.
5840 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5841 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5842
5843 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5844
5845 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5846 __ASSUME_SOCKETCALL.
5847 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5848 (__ASSUME_SOCKETCALL): Remove.
5849 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5850 (__ASSUME_SOCKETCALL): Likewise.
5851 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5852 (__ASSUME_SOCKETCALL): Likewise.
5853 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5854 (__ASSUME_SOCKETCALL): Likewise.
5855 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5856 (__ASSUME_SOCKETCALL): Likewise.
5857 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5858 (__ASSUME_SOCKETCALL): Likewise.
5859 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5860 (__ASSUME_SOCKETCALL): Likewise.
5861
5862 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5863
5864 [BZ #23509]
5865 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5866 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5867 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5868 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5869 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5870 lc_unknown.
5871
5872 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5873
5874 [BZ #17630]
5875 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5876
5877 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5878
5879 [BZ #23867]
5880 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5881 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5882 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5883 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5884
5885 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5886
5887 * support/support_test_compare_string.c
5888 (support_test_compare_string): Fix printf format.
5889
5890 2018-11-07 Florian Weimer <fweimer@redhat.com>
5891
5892 Implement TEST_COMPARE_STRING.
5893 * support/check.h (TEST_COMPARE_STRING): Define.
5894 (support_test_compare_string): Declare.
5895 * support/Makefile (libsupport-routines): Add
5896 support_test_compare_string.
5897 (tests): Add tst-test_compare_string.
5898 * support/support_test_compare_string.c: New file.
5899 * support/tst-test_compare_string.c: Likewise.
5900
5901 2018-11-07 Andreas Schwab <schwab@suse.de>
5902
5903 [BZ #23864]
5904 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5905 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5906 Undef.
5907
5908 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5909
5910 [BZ #23862]
5911 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5912 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5913 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5914 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5915 Likewise.
5916
5917 2018-11-06 Florian Weimer <fweimer@redhat.com>
5918
5919 [BZ #17405]
5920 * posix/Makefile (routines): Add spawn_faction_addchdir.
5921 (tests): Add tst-spawn-chdir.
5922 * posix/Versions (GLIBC_2.29): Add
5923 posix_spawn_file_actions_addchdir_np.
5924 * posix/spawn_faction_addchdir.c: New file.
5925 * posix/spawn_faction_destroy.c
5926 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5927 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5928 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5929 chdir_action.
5930 * posix/tst-spawn-chdir.c: New file.
5931 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5932 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5933 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5934 posix_spawn_file_actions_addchdir_np.
5935 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5936 Likewise.
5937 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5938 Likewise.
5939 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5940 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5941 Likewise.
5942 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5943 Likewise.
5944 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5945 Likewise.
5946 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5947 Likewise.
5948 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5949 Likewise.
5950 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5951 Likewise.
5952 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5953 (GLIBC_2.29): Likewise.
5954 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5955 (GLIBC_2.29): Likewise.
5956 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5957 (GLIBC_2.29): Likewise.
5958 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5959 (GLIBC_2.29): Likewise.
5960 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5961 Likewise.
5962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5963 (GLIBC_2.29): Likewise.
5964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5965 (GLIBC_2.29): Likewise.
5966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5967 (GLIBC_2.29): Likewise.
5968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5969 (GLIBC_2.29): Likewise.
5970 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5971 Likewise.
5972 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5973 Likewise.
5974 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5975 Likewise.
5976 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5977 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5978 Likewise.
5979 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5980 Likewise.
5981 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5982 Likewise.
5983 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5984 Likewise.
5985
5986 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5987
5988 * misc/Makefile (tests): Add tst-ldbl-error.
5989 * misc/tst-ldbl-error.c: New file.
5990
5991 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5992
5993 * misc/Makefile (tests): Add tst-ldbl-warn.
5994 * misc/tst-ldbl-warn.c: New file.
5995
5996 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5997
5998 * argp/Makefile (tests): Add tst-ldbl-argp.
5999 * argp/tst-ldbl-argp.c: New file.
6000
6001 2018-11-05 Arjun Shankar <arjun@redhat.com>
6002
6003 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
6004 __gconv_path_elem and call __gconv_get_path unconditionally.
6005
6006 2018-11-05 Andreas Schwab <schwab@suse.de>
6007
6008 [BZ #22927]
6009 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
6010 creating the first helper thread failed.
6011
6012 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6013
6014 * sysdeps/mach/hurd/msync.c: New file.
6015
6016 2018-11-02 Florian Weimer <fweimer@redhat.com>
6017
6018 * support/shell-container.c (copy_func): Call
6019 support_copy_file_range instead of copy_file_range to support
6020 cross-device copies.
6021
6022 2018-11-02 Florian Weimer <fweimer@redhat.com>
6023
6024 * support/test-container.c: Include <libc-pointer-arith.h> for
6025 ALIGN_UP.
6026
6027 2018-11-01 Zong Li <zong@andestech.com>
6028
6029 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6030 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6031 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6032 (__FP_FRAC_SET_8): Add implementation for RV32 use.
6033
6034 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6035 variable to avoid overlap arguments.
6036
6037 2018-11-01 Joseph Myers <joseph@codesourcery.com>
6038
6039 * posix/bug-regex22.c (main): Use puts with distinct error
6040 messages for unexpected success of re_compile_pattern, not printf
6041 with NULL argument to %s.
6042
6043 * stdio-common/bug22.c: Include <libc-diag.h>.
6044 (do_test): Disable -Wformat-overflow= warnings around fprintf
6045 calls outputting more than INT_MAX characters.
6046 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6047 around printf call with NULL %s argument.
6048
6049 [BZ #23848]
6050 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6051 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6052 Undefine.
6053 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6054 (__ASSUME_RECVMSG_SYSCALL): Likewise.
6055 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6056 (__ASSUME_SENDTO_SYSCALL): Likewise.
6057 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6058 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6059 [!__arch64__].
6060 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6061 (__ASSUME_CONNECT_SYSCALL): Likewise.
6062 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6063 (__ASSUME_RECVFROM_SYSCALL): Likewise.
6064 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6065 Define.
6066 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6067 Likewise.
6068 [__LINUX_KERNEL_VERSION >= 0x040400]
6069 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6070 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6071 Remove.
6072 (listen): Likewise.
6073 (setsockopt): Likewise.
6074
6075 2018-11-01 Fredrik Noring <noring@nocrew.org>
6076
6077 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6078 with the ISA override.
6079
6080 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
6081
6082 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6083 #endif.
6084
6085 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6086
6087 * manual/errno.texi (EIEIO): Document how translators should
6088 translate the error message.
6089 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
6090 printing trailing whitespaces refused by git.
6091 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6092 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6093 * hurd/Makefile (user-interfaces): Add pci.
6094
6095 2018-10-30 Joseph Myers <joseph@codesourcery.com>
6096
6097 * conform/linknamespace.py: New file.
6098 * conform/linknamespace.pl: Remove file.
6099 * conform/Makefile ($(linknamespace-header-tests)): Use
6100 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
6101 option.
6102
6103 2018-10-30 Florian Weimer <fweimer@redhat.com>
6104
6105 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6106 memory leaks.
6107
6108 2018-10-30 Florian Weimer <fweimer@redhat.com>
6109
6110 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6111
6112 2018-10-30 Florian Weimer <fweimer@redhat.com>
6113
6114 * stdlib/tst-strtod-overflow.c (do_test): Switch to
6115 support_blob_repeat.
6116
6117 2018-10-30 Florian Weimer <fweimer@redhat.com>
6118
6119 Avoid spurious test failures in stdlib/test-bz22786.
6120 * support/Makefile (libsupport-routines): Add blob_repeat.
6121 (tests): Add tst-support_blob_repeat.
6122 * support/blob_repeat.h: New file.
6123 * support/blob_repeat.c: Likewise.
6124 * support/tst-support_blob_repeat.c: Likewise.
6125 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6126 support_blob_repeat_allocate.
6127
6128 2018-10-30 Andreas Schwab <schwab@suse.de>
6129
6130 [BZ #23125]
6131 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6132 Don't use tail call.
6133 * elf/tst-unwind-main.c: New file.
6134 * elf/Makefile (tests): Add tst-unwind-main.
6135 (CFLAGS-tst-unwind-main.c): Define.
6136
6137 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
6138
6139 [BZ #23791]
6140 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6141 n_cs_precedes to 0.
6142 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6143
6144 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6145
6146 * conform/glibcconform.py: Do not import shutil.
6147 (list_exported_functions): Use tempfile.TemporaryDirectory instead
6148 of mkdtemp.
6149
6150 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
6151 critic_missing for versions before 3.4.
6152 * configure: Regenerated.
6153 * manual/install.texi (Tools for Compilation): Document
6154 requirement for Python to build glibc.
6155 * INSTALL: Regenerated.
6156 * Rules [PYTHON]: Make code unconditional.
6157 * benchtests/Makefile [PYTHON]: Likewise.
6158 * conform/Makefile [PYTHON]: Likewise.
6159 * manual/Makefile [PYTHON]: Likewise.
6160 * math/Makefile [PYTHON]: Likewise.
6161
6162 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6163
6164 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6165 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6166 answer to interrupt_operation, return EIEIO instead of EINTR.
6167 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6168 _hurd_intr_rpc_msg_about_to global point to start of controlled
6169 assembly snippet. Make it check canceled flag.
6170 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6171 the _hurd_intr_rpc_msg_about_to point.
6172 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6173 issue, remove cancel flag check.
6174
6175 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6176
6177 * scripts/build-many-glibcs.py: Remove compatibility for missing
6178 os.cpu_count and re.fullmatch.
6179
6180 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6181
6182 [BZ #23822]
6183 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6184 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6185 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6186
6187 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6188
6189 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6190 macro.
6191
6192 2018-10-25 Florian Weimer <fweimer@redhat.com>
6193
6194 [BZ #23562]
6195 [BZ #23821]
6196 XFAIL siginfo_t si_band conform test on sparc64.
6197 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6198 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6199 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6200 (conformtest-xfail-conds): Add sparc64-linux.
6201 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6202 sparc64.
6203 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6204
6205 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6206
6207 * elf/elf.h (NT_MIPS_DSP): New macro.
6208 (NT_MIPS_FP_MODE): Likewise.
6209
6210 2018-10-25 Zong Li <zong@andestech.com>
6211
6212 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6213 name by adding the file extension (.so).
6214
6215 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6216
6217 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6218 (test-xfail-ISO11/threads.h/linknamespace,
6219 test-xfail-ISO11/threads.h/conform): Add.
6220
6221 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6222
6223 * math/gen-libm-test.py: Import os.
6224 (ALL_FLOATS_MANUAL): New constant.
6225 (ALL_FLOATS_SUFFIX): Likewise.
6226 (Ulps.all_functions): New function.
6227 (real_all_ulps): Likewise.
6228 (generate_err_table_sub): Likewise.
6229 (generate_err_table): Likewise.
6230 (main): Handle -s and -m options.
6231 * manual/libm-err-tab.pl: Remove.
6232 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6233 instead of libm-err-tab.pl.
6234 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6235 != no].
6236 * manual/install.texi (Tools for Compilation): Document
6237 requirement for Python to build manual.
6238 * INSTALL: Regenerated.
6239
6240 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6241
6242 * bits/time64.h: New file.
6243 * include/time.h: Replace internal_time_t with __time64_t.
6244 * posix/bits/types (__time64_t): Add.
6245 * stdlib/Makefile: Add bits/time64.h to includes.
6246 * time/tzfile.c: Replace internal_time_t with __time64_t.
6247
6248 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6249
6250 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6251 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6252 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6253 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6254 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6255 prototype.
6256 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6257 * posix/spawn_faction_addclose.c
6258 (__posix_spawn_file_actions_addclose): Add hidden definition.
6259 * posix/spawn_faction_adddup2.c
6260 (__posix_spawn_file_actions_adddup2): Likewise.
6261 * posix/spawn_faction_destroy.c
6262 (__posix_spawn_file_actions_destroy): Likewise.
6263 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6264 Likewise.
6265 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6266 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6267 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6268 Likewise.
6269 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6270 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6271 Likewise.
6272
6273 2018-10-24 Andreas Schwab <schwab@suse.de>
6274
6275 [BZ #18093]
6276 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6277 format cache.
6278 * elf/cache.c (print_cache): Likewise.
6279
6280 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6281
6282 * bits/timesize.h: New file.
6283 * stdlib/Makefile (headers): Add bits/timesize.h.
6284 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6285 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6286 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6287 (__SEM_PAD_AFTER_TIME): Likewise.
6288 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6289 (__SHM_PAD_AFTER_TIME): Likewise.
6290 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6291 (__MSQ_PAD_BEFORE_TIME): Likewise.
6292 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6293 (__SEM_PAD_BEFORE_TIME): Likewise.
6294 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6295 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6296 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6297 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6298 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6299 (__MSQ_PAD_BEFORE_TIME): Likewise.
6300 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6301 (__SEM_PAD_BEFORE_TIME): Likewise.
6302 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6303 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6304 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6305 (__MSQ_PAD_BEFORE_TIME): Likewise.
6306 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6307 (__SEM_PAD_BEFORE_TIME): Likewise.
6308 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6309 (__SHM_PAD_BEFORE_TIME): Likewise.
6310 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6311 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6312 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6313
6314 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6315
6316 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6317 USE_RDTSCP is defined.
6318 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6319 USE_RDTSCP is defined.
6320
6321 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6322
6323 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6324 defined.
6325
6326 [BZ #23709]
6327 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6328 independently of other flags.
6329
6330 2018-10-23 Florian Weimer <fweimer@redhat.com>
6331
6332 * time/tst-mktime2.c (N_STRINGS): Remove.
6333 (set_timezone): New function.
6334 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6335 (mktime_test1): Report localtime failure and check errno value.
6336 Use TEST_COMPARE.
6337 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6338 (do_test): Remove alarm call. Use set_timezone and array_length.
6339
6340 2018-10-23 Andreas Schwab <schwab@suse.de>
6341
6342 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6343 (__start_context): Use END instead of PSEUDO_END.
6344
6345 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6346
6347 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6348 version to 4.19.
6349
6350 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6351 version to 4.19.
6352
6353 [BZ #23793]
6354 * wcsmbs/c32rtomb.c: New file.
6355 * wcsmbs/mbrtoc32.c: Likewise.
6356 * wcsmbs/tst-c32-state.c: Likewise.
6357 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6358 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6359 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6360 (tests): Add tst-c32-state.
6361 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6362 $(gen-locales).
6363
6364 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6365
6366 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6367 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6368
6369 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6370
6371 [BZ #23794]
6372 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6373 pair and return 0 in that case, and use saved character to
6374 interpret following character.
6375 * wcsmbs/tst-c16-surrogate.c: New file.
6376 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6377 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6378 Depend on $(gen-locales)
6379
6380 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6381
6382 [BZ #23562]
6383 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6384 (struct siginfo_t): Use correct type for si_band.
6385
6386 2018-10-19 Florian Weimer <fweimer@redhat.com>
6387
6388 [BZ #23689]
6389 * resource/bits/types/struct_rusage.h (struct rusage): Update
6390 comment on struct. Remove extraneous field comment.
6391
6392 2018-10-18 David S. Miller <davem@davemloft.net>
6393
6394 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6395 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6396 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6397 sysdep_routines in subdir elf.
6398 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6399 version for __vdso_clock_gettime.
6400 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6401 Define.
6402 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6403 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6404
6405 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6406
6407 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6408
6409 * sysdeps/i386/init-arch.h: Removed.
6410 * sysdeps/i386/i586/init-arch.h: Likewise.
6411 * sysdeps/i386/i686/init-arch.h: Likewise.
6412 * sysdeps/i386/i686/hp-timing.h: Likewise.
6413 * sysdeps/x86_64/hp-timing.h: Likewise.
6414 * sysdeps/i386/isa.h: New file.
6415 * sysdeps/i386/i586/isa.h: Likewise.
6416 * sysdeps/i386/i686/isa.h: Likewise.
6417 * sysdeps/x86_64/isa.h: Likewise.
6418 * sysdeps/x86/hp-timing.h: New file.
6419 * sysdeps/x86/init-arch.h: Include <isa.h>.
6420
6421 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6422
6423 * math/libm-test-pow.inc (pow_test_data): Do not allow
6424 divide-by-zero exception for pow(+/- 0, -Inf).
6425
6426 2018-10-17 Zack Weinberg <zackw@panix.com>
6427
6428 * manual/job.texi (Job Control is Optional): Remove node, as
6429 job control has not been optional in quite some time.
6430 (Job Control): Mention briefly that systems older than
6431 POSIX.1-2001 might not support job control.
6432 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6433 defined on systems conforming to POSIX.1-2001.
6434
6435 2018-10-17 Arjun Shankar <arjun@redhat.com>
6436
6437 [BZ #22062]
6438 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6439 indentation.
6440 * (__gconv_read_conf): Mark function static.
6441 * (once): New static variable.
6442 * (__gconv_load_conf): New function.
6443 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6444 * iconv/gconv_db.c (once): Remove static variable.
6445 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6446 __gconv_read_conf.
6447 * (__gconv_find_transform): Likewise.
6448 * iconv/tst-iconv-mt.c: New test.
6449 * iconv/Makefile: Add tst-iconv_mt.
6450
6451 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6452
6453 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6454 bits/shm-pad.h.
6455 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6456 (shmatt_t): Define as __syscall_ulong_t.
6457 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6458 and [__SHM_PAD_AFTER_TIME].
6459 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6460 Define shm_segsz and associated padding based on
6461 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6462 Use __syscall_ulong_t instead of unsigned long int.
6463 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6464 unsigned long int.
6465 [__USE_MISC] (struct shm_info): Likewise.
6466 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6467 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6468 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6469 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6470 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6471 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6472 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6473 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6474 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6475 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6476 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6477
6478 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6479 bits/shmlba.h.
6480 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6481 (SHMLBA): Remove macro.
6482 (__getpagesize): Remove function declaration.
6483 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6484 <bits/shmlba.h>.
6485 (SHMLBA): Remove macro.
6486 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6487 <bits/shmlba.h>.
6488 (SHMLBA): Remove macro.
6489 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6490 <bits/shmlba.h>.
6491 (SHMLBA): Remove macro.
6492 (__getpagesize): Remove function declaration.
6493 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6494 <bits/shmlba.h>.
6495 (SHMLBA): Remove macro.
6496 (__getshmlba): Remove function declaration.
6497 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6498 (SHMLBA): Remove macro.
6499 (__getpagesize): Remove function declaration.
6500 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6501 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6502 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6503 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6504 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6505 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6506 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6507 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6508 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6509 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6510
6511 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6512
6513 [BZ #23275]
6514 * nptl/tst-mutex10.c: New File.
6515 * nptl/Makefile (tests): Add tst-mutex10.
6516 (tst-mutex10-ENV): New variable.
6517 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6518 Ensure that elision path is used if elision is available.
6519 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6520 Likewise.
6521 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6522 Likewise.
6523 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6524 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6525 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6526 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6527 Likewise.
6528 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6529 (__pthread_mutex_cond_lock_adjust): Likewise.
6530 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6531 Likewise.
6532 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6533 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6534 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6535 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6536 Add comments.
6537 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6538 Use atomic_load_relaxed and atomic_store_relaxed.
6539 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6540 Use atomic_store_relaxed.
6541
6542 2018-10-17 Andreas Schwab <schwab@suse.de>
6543
6544 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6545 * crypt/badsalttest.c (TIMEOUT): Likewise.
6546 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6547 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6548 * io/test-lfs.c (TIMEOUT): Likewise.
6549 * libio/tst-atime.c (TIMEOUT): Likewise.
6550 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6551 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6552 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6553 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6554 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6555 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6556 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6557 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6558 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6559 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6560 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6561 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6562 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6563 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6564 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6565 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6566 * nptl/tst-once2.c (TIMEOUT): Likewise.
6567 * nptl/tst-once3.c (TIMEOUT): Likewise.
6568 * nptl/tst-once4.c (TIMEOUT): Likewise.
6569 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6570 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6571 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6572 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6573 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6574 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6575 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6576 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6577 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6578 * posix/tst-chmod.c (TIMEOUT): Likewise.
6579 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6580 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6581 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6582 * posix/tst-regex2.c (TIMEOUT): Likewise.
6583 * posix/tst-waitid.c (TIMEOUT): Likewise.
6584 * rt/tst-aio.c (TIMEOUT): Likewise.
6585 * rt/tst-aio10.c (TIMEOUT): Likewise.
6586 * rt/tst-aio4.c (TIMEOUT): Likewise.
6587 * rt/tst-aio5.c (TIMEOUT): Likewise.
6588 * rt/tst-aio6.c (TIMEOUT): Likewise.
6589 * rt/tst-aio64.c (TIMEOUT): Likewise.
6590 * rt/tst-aio7.c (TIMEOUT): Likewise.
6591 * rt/tst-aio9.c (TIMEOUT): Likewise.
6592 * rt/tst-clock.c (TIMEOUT): Likewise.
6593 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6594 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6595 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6596 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6597 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6598 * rt/tst-timer4.c (TIMEOUT): Likewise.
6599 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6600 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6601 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6602 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6603 * time/tst-ftime.c (TIMEOUT): Likewise.
6604 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6605
6606 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6607
6608 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6609 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6610 for thunderX2.
6611
6612 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6613
6614 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6615 bits/sem-pad.h.
6616 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6617 instead of <bits/wordsize.h>.
6618 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6619 and [__SEM_PAD_AFTER_TIME].
6620 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6621 __syscall_ulong_t instead of unsigned long int.
6622 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6623 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6624 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6625 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6626 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6627 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6628 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6629 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6630 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6631 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6632 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6633
6634 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6635
6636 regex: simplify by using intprops.h
6637 [BZ#23744]
6638 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6639 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6640 intprops.h defines them.
6641
6642 regex: __builtin_expect → __glibc_unlikely
6643 [BZ#23744]
6644 This refactoring was prompted by a problem when the regex code is
6645 used as part of Gnulib and when the builder’s compiler does not grok
6646 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6647 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6648 Although this refactoring does not fix the problem directly,
6649 we might as well have Gawk use the now-preferred glibc style for when
6650 __builtin_expect is unavailable.
6651 * posix/regex_internal.h (BE): Remove.
6652 All uses replaced by __glibc_unlikely or __glibc_likely.
6653
6654 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6655
6656 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6657 bits/msq-pad.h.
6658 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6659 instead of <bits/wordsize.h>.
6660 (msgqnum_t): Define as __syscall_ulong_t.
6661 (msglen_t): Likewise.
6662 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6663 and [__MSQ_PAD_AFTER_TIME].
6664 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6665 __syscall_ulong_t instead of unsigned long int.
6666 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6667 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6668 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6669 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6670 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6671 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6672 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6673 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6674 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6675 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6676 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6677
6678 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6679
6680 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6681 (struct shmid_ds): Condition padding after time fields on
6682 [__WORDSIZE == 32].
6683 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6684 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6685 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6686
6687 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6688 (struct semid_ds): Condition padding after time fields on
6689 [__WORDSIZE == 32].
6690 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6691 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6692 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6693 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6694
6695 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6696 (struct msqid_ds): Condition padding after time fields on
6697 [__WORDSIZE == 32].
6698 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6699 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6700 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6701 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6702
6703 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6704
6705 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6706
6707 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6708
6709 * libio/tst-readline.c (TIMEOUT): Define.
6710
6711 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6712
6713 mktime fix for Gnulib + coreutils
6714 [BZ#23745]
6715 This fix affects only Gnulib. Problem discovered when
6716 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6717 * time/mktime.c:
6718 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6719 Do not define since it is not used. Defining an unused static
6720 function prompts a warning from GCC when Coreutils is configured
6721 with --enable-gcc-warnings.
6722
6723 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6724
6725 * benchtests/scripts/compare_bench.py (main): set float type on
6726 threshold argument.
6727
6728 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6729
6730 [BZ #23740]
6731 * localedata/locales/kl_GL (mon): Update, the relative case.
6732 (alt_mon): Add, fill with month names in the nominative case.
6733 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6734 (d_fmt): Set to "%b %d %Y".
6735
6736 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6737
6738 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6739 <bits/mman-linux.h>.
6740 (PROT_READ): Don't define here.
6741 (PROT_WRITE): Likewise.
6742 (PROT_EXEC): Likewise.
6743 (PROT_NONE): Likewise.
6744 (PROT_GROWSDOWN): Likewise.
6745 (PROT_GROWSUP): Likewise.
6746 (MAP_SHARED): Likewise.
6747 (MAP_PRIVATE): Likewise.
6748 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6749 [__USE_MISC] (MAP_FILE): Likewise.
6750 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6751 [__USE_MISC] (MAP_ANON): Likewise.
6752 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6753 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6754 (MCL_CURRENT): Likewise.
6755 (MCL_FUTURE): Likewise.
6756 (MCL_ONFAULT): Likewise.
6757 [__USE_MISC] (MADV_NORMAL): Likewise.
6758 [__USE_MISC] (MADV_RANDOM): Likewise.
6759 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6760 [__USE_MISC] (MADV_WILLNEED): Likewise.
6761 [__USE_MISC] (MADV_DONTNEED): Likewise.
6762 [__USE_MISC] (MADV_FREE): Likewise.
6763 [__USE_MISC] (MADV_REMOVE): Likewise.
6764 [__USE_MISC] (MADV_DONTFORK): Likewise.
6765 [__USE_MISC] (MADV_DOFORK): Likewise.
6766 [__USE_MISC] (MADV_HWPOISON): Likewise.
6767 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6768 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6769 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6770 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6771 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6772 (__MAP_ANONYMOUS): New macro.
6773 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6774 <bits/mman-linux.h> inclusion.
6775 (MAP_FIXED): Likewise.
6776 (MS_SYNC): Likewise.
6777 (MS_ASYNC): Likewise.
6778 (MS_INVALIDATE): Likewise.
6779 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6780 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6781 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6782 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6783 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6784 [__USE_MISC] (MADV_DODUMP): Likewise.
6785 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6786 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6787
6788 [BZ #23735]
6789 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6790 Define.
6791 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6792 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6793 Add test-nldbl-redirect.
6794 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6795 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6796 $(objpfx)libnldbl_nonshared.a.
6797
6798 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6799
6800 * support/support.h (support_objdir_elf_ldso): New variable.
6801 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6802 * support/Makefile (CFLAGS-support_paths.c): Add definition
6803 for OBJDIR_ELF_LDSO_PATH.
6804 * support/test-container.c (main): Search for the ld.so
6805 which is also used by the testsuite.
6806
6807 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6808
6809 [BZ #20209]
6810 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6811 should be "sap" rather than "sab".
6812 (day): Fix spelling of Sunday, should be "sapaat" rather than
6813 "sabaat".
6814
6815 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6816
6817 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6818
6819 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6820
6821 [BZ #19444]
6822 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6823 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6824 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6825
6826 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6827
6828 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6829
6830 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6831
6832 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6833 Add -mrtm.
6834 (CFLAGS-elision-unlock.c): Likewise.
6835 (CFLAGS-elision-timed.c): Likewise.
6836 (CFLAGS-elision-trylock.c): Likewise.
6837 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6838
6839 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6840
6841 [BZ #21037]
6842 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6843 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6844 new fd_to_filename interface.
6845 * libio/freopen64.c (freopen64): Likewise.
6846 * libio/tst-memstream.h: New file.
6847 * libio/tst-memstream4.c: Likewise.
6848 * libio/tst-wmemstream4.c: Likewise.
6849 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6850 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6851 and remove internal dynamic allocation.
6852
6853 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6854
6855 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6856 (MREMAP_MAYMOVE): Do not define here.
6857 [__USE_GNU] (MREMAP_FIXED): Likewise.
6858 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6859 (MREMAP_MAYMOVE): Define here instead.
6860 [__USE_GNU] (MREMAP_FIXED): Likewise.
6861 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6862 (MREMAP_MAYMOVE): Remove.
6863 [__USE_GNU] (MREMAP_FIXED): Likewise.
6864
6865 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6866
6867 * math/fromfp.h: Do not include <math_private.h>.
6868 * math/s_cacosh_template.c: Likewise.
6869 * math/s_casin_template.c: Likewise.
6870 * math/s_casinh_template.c: Likewise.
6871 * math/s_ccos_template.c: Likewise.
6872 * math/s_cproj_template.c: Likewise.
6873 * math/s_fdim_template.c: Likewise.
6874 * math/s_fmaxmag_template.c: Likewise.
6875 * math/s_fminmag_template.c: Likewise.
6876 * math/s_iseqsig_template.c: Likewise.
6877 * math/s_ldexp_template.c: Likewise.
6878 * math/s_nextdown_template.c: Likewise.
6879 * math/w_log1p_template.c: Likewise.
6880 * math/w_scalbln_template.c: Likewise.
6881 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6882 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6883 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6884 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6885 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6886 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6887 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6888 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6889 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6890 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6891 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6892 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6893 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6894 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6895 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6896 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6897 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6898 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6899 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6900 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6901 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6902 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6903 * sysdeps/ieee754/k_standardf.c: Likewise.
6904 * sysdeps/ieee754/k_standardl.c: Likewise.
6905 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6906 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6907 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6908 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6909 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6910 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6911 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6912 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6913 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6914 * sysdeps/ieee754/s_signgam.c: Likewise.
6915 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6916 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6917 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6918 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6919 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6920 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6921 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6922 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6923 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6924 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6925 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6926 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6927 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6928 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6929 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6930 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6931 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6932 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6933 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6934 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6935 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6936 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6937 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6938 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6939 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6940 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6941 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6942 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6943 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6944 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6945 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6946 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6947 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6948 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6949 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6950 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6951 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6952 <math_private.h>.
6953 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6954
6955 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6956
6957 [BZ #23716]
6958 * sysdeps/i386/dl-cet.c: Removed.
6959 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6960 prototype.
6961 (_dl_runtime_profile_shstk): Likewise.
6962 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6963 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6964
6965 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6966
6967 [BZ #23579]
6968 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6969 do_test_with_invalid_iov): New tests.
6970 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6971 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6972 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6973 errno is ENOSYS.
6974 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6975 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6976 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6977
6978 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6979
6980 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6981 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6982 (MATH_REDIRECT_BINARY_ARGS): New macro.
6983 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6984 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6985 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6986 header inclusion.
6987 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6988 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6989 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6990 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6991 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6992 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6993 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6994 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6995 Likewise.
6996 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6997 Likewise.
6998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
7000 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
7001 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
7002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
7003 Likewise.
7004 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
7005 Likewise.
7006 * sysdeps/generic/math_private_calls.h
7007 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
7008 Do not declare and define as an inline function.
7009 * math/divtc3.c (__divtc3): Use copysign functions instead of
7010 __copysign variants.
7011 * math/multc3.c (__multc3): Likewise.
7012 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
7013 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
7014 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7015 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7016 Likewise.
7017 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7018 (__ieee754_yn): Likewise.
7019 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7020 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
7021 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7022 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7023 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
7024 (__sin): Likewise.
7025 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
7026 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7027 Likewise.
7028 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7029 Likewise.
7030 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7031 Likewise.
7032 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7033 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7034 Likewise.
7035 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7036 (__ieee754_ynf): Likewise.
7037 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7038 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7039 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7040 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7041 Likewise.
7042 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7043 (__ieee754_ynl): Likewise.
7044 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7045 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7046 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7047 Likewise.
7048 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7049 (__ieee754_ynl): Likewise.
7050 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7051 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7052 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7053 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7054 Likewise.
7055 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7056 (__ieee754_ynl)
7057 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7058 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7059 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7060 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7061 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7062
7063 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7064 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7065 using MATH_REDIRECT.
7066 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7067 header inclusion.
7068 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7069 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7070 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7071 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7072 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7073 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7074 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7075 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7076 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7079 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7080 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7081 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7082 (round): Redirect to __round.
7083 (__roundl): Call round instead of __round.
7084 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7085 Remove macro.
7086 [_ARCH_PWR5X] (__roundf): Likewise.
7087 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7088 functions instead of __round variants.
7089 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7090 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7091 Likewise.
7092 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7093 Likewise.
7094 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7095 Likewise.
7096 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7097 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7098 __lroundl.
7099 (__ieee754_expl): Call roundl instead of __roundl.
7100
7101 2018-09-27 Andreas Schwab <schwab@suse.de>
7102
7103 [BZ #23717]
7104 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7105 (do_test): Make st1 static.
7106
7107 2018-09-26 Andreas Schwab <schwab@suse.de>
7108
7109 [BZ #23707]
7110 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7111 * elf/Makefile (tests): Add tst-unwind-ctor.
7112 (modules-names): Add tst-unwind-ctor-lib.
7113 ($(objpfx)tst-unwind-ctor): Depend on
7114 $(objpfx)tst-unwind-ctor-lib.so.
7115
7116 2018-09-26 Joseph Myers <joseph@codesourcery.com>
7117
7118 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7119 file. Most contents moved from ....
7120 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
7121 and include <bits/mman-map-flags-generic.h>.
7122 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7123 (sysdep_headers): Add bits/mman-map-flags-generic.h.
7124 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7125 <bits/mman-map-flags-generic.h>.
7126 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7127 macros defined in <bits/mman-map-flags-generic.h>.
7128 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7129 <bits/mman-map-flags-generic.h>.
7130 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7131 defined in <bits/mman-map-flags-generic.h>.
7132
7133 2018-09-26 Andreas Schwab <schwab@suse.de>
7134
7135 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7136 output.
7137
7138 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
7139 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7140 Fangrui Song <maskray@google.com>
7141
7142 [BZ #20480]
7143 * config.make.in (have-textrel_ifunc): New define.
7144 * configure.ac: Add check if linker supports textrel relocation with
7145 ifunc.
7146 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7147 tst-ifunc-textrel.
7148 (CFLAGS-tst-ifunc-textrel.c): New rule.
7149 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7150 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7151 * elf/tst-ifunc-textrel.c: New file.
7152
7153 2018-09-25 Joseph Myers <joseph@codesourcery.com>
7154
7155 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7156 <bits/procfs-prregset.h>.
7157 (prgregset_t): Define using __prgregset_t.
7158 (prfpregset_t): Define using __prfpregset_t.
7159 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7160 (sysdep_headers): Add bits/procfs-prregset.h.
7161 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7162 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7163 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7164 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7165
7166 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7167 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7168 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7169 pr_uid and pr_gid.
7170 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7171 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7172 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7173 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7174 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7175 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7176 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7177 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7178 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7179 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7180 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7181 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7182 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7183 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7184 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7185 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7186 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7187 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7188 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7189 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7190 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7191 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7192 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7193 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7194
7195 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7196 AArch64 version. Include <bits/procfs.h>.
7197 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7198 (sysdep_headers): Add bits/procfs.h.
7199 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7200 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7201 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7202 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7203 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7204 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7205 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7206 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7207 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7208 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7209 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7210 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7211 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7212 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7213 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7214 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7215 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7216
7217 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7218
7219 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7220 Use libsupport.
7221
7222 2018-09-25 Arjun Shankar <arjun@redhat.com>
7223
7224 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7225 (__gconv_max_path_elem_len): Likewise.
7226 (__gconv_nmodules): Likewise.
7227 (__gconv_get_path): Likewise.
7228 (path_elem): Move to ...
7229 * iconv/gconv_conf.c: ... here.
7230 (__gconv_get_path): Mark function static.
7231 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7232 * iconv/gconv_open.c: ... here.
7233
7234 2018-09-24 Andreas Schwab <schwab@suse.de>
7235
7236 * scripts/haveversions.awk: New file.
7237 * Makerules ($(common-objpfx)Versions.def)
7238 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7239 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7240 Move rules ...
7241 * Makeconfig ($(common-objpfx)Versions.def)
7242 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7243 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7244 ... here.
7245 ($(common-objpfx)Versions.mk): New rule. Include it.
7246 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7247 Emit error if build-obsolete-nsl = yes.
7248 * manual/install.texi (Configuring and compiling): Describe
7249 --enable-obsolete-nsl as unavaiable after version 2.28.
7250 * INSTALL: Regenerate.
7251
7252 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7253
7254 * NEWS: Add note about new TLE support on powerpc64le.
7255 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7256 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7257 __ununsed1.
7258 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7259 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7260 * sysdeps/powerpc/powerpc32/sysdep.h,
7261 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7262 ABORT_TRANSACTION): Remove macros.
7263 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7264 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7265 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7267 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7268 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7269 usage.
7270 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7271
7272 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7273
7274 [BZ #10425]
7275 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7276 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7277 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7278 which is the same as in it_IT.
7279 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7280 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7281
7282 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7283
7284 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7285 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7286 using MATH_REDIRECT.
7287 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7288 header inclusion.
7289 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7290 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7291 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7292 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7293 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7294 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7295 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7296 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7297 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7298 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7299 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7300 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7301 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7302 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7303 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7304 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7305 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7306 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7307 (ceil): Redirect to __ceil.
7308 (floor): Redirect to __floor.
7309 (trunc): Redirect to __trunc.
7310 (__truncl): Call trunc instead of __trunc.
7311 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7312 Remove macro.
7313 [_ARCH_PWR5X] (__truncf): Likewise.
7314 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7315 trunc functions instead of __trunc variants.
7316 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7317 Likewise.
7318 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7319 Likewise.
7320 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7321 Likewise.
7322 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7323 Likewise.
7324
7325 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7326 [__i586__ || __pentium__].
7327 [__i486__]: Handle explicitly.
7328 (HAS_CPUID): Define to 1 if above macros are undefined.
7329 (HAS_I586): Likewise.
7330 (HAS_I686): Likewise.
7331
7332 2018-09-20 Florian Weimer <fweimer@redhat.com>
7333
7334 * misc/tst-gethostid.c: New file.
7335 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7336 (tst-gethostid): Link with -ldl.
7337
7338 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7339
7340 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7341 value from gethostbyname_r.
7342
7343 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7344
7345 * stdlib/tst-setcontext9.c (f1): Rename to...
7346 (f1a): ... this.
7347 (f1b): New function implementing lower half of f1 in alternate stack.
7348
7349 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7350
7351 Fix mktime localtime offset confusion
7352 [BZ #23603]
7353 * include/time.h (__mktime_internal): The localtime offset is now
7354 of type long int instead of time_t. This is the longstanding type
7355 in glibc, and it is more than enough to represent difference
7356 between localtime and gmtime even if it is 32 bits and time_t is
7357 64. Changing it now will let us avoid an unnecessary change when
7358 time_t is widened to 64 bits on 32-bit platforms.
7359 * time/mktime-internal.h (mktime_offset_t): Now long int.
7360
7361 Merge mktime, timegm from upstream Gnulib
7362 [BZ #23603][BZ #16346]
7363 This fixes some obscure problems with integer overflow.
7364 Although it looks scary, it is almost all a byte-for-byte copy
7365 from Gnulib, and the Gnulib code has been tested reasonably well.
7366 * include/intprops.h: New file, copied from Gnulib.
7367 * include/verify.h, time/mktime-internal.h:
7368 New tiny files, simplified from Gnulib.
7369 * time/mktime.c: Copy from Gnulib. This has the following changes:
7370 Do not include config.h if DEBUG_MKTIME is nonzero.
7371 Include stdbool.h, intprops.h, verify.h.
7372 Include string.h only if needed.
7373 Include stdlib.h on MS-Windows.
7374 Include mktime-internal.h.
7375 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7376 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7377 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7378 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7379 simplify later conditionals; default the others to zero. Use
7380 these conditionals to express only the code needed on the current
7381 platform. In uses of these conditionals, explicitly spell out how
7382 _LIBC affects things, so it’s easier to review from a glibc
7383 viewpoint.
7384 (WRAPV): Remove; no longer needed now that we have
7385 systematic overflow checking.
7386 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7387 compartmentalize tzset issues. Move system-dependent tzsettish
7388 code here from mktime.
7389 (verify): Remove; now done by verify.h. All uses changed.
7390 (long_int): Use a more-conservative definition, to avoid
7391 integer overflow.
7392 (SHR): Remove, replacing with ...
7393 (shr): New function, which means we needn’t worry about side
7394 effects in args, and conversion analysis is simpler.
7395 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7396 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7397 (time_t_avg, time_t_add_ok): Remove.
7398 (mktime_min, mktime_max): New constants.
7399 (leapyear, isdst_differ): Use bool for booleans.
7400 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7401 Use long_int, not time_t, for mktime differences.
7402 (long_int_avg): New function, replacing time_t_avg.
7403 INT_ADD_WRAPV replaces time_t_add_ok.
7404 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7405 All uses changed.
7406 (convert_time): New function.
7407 (ranged_convert): Use it.
7408 (__mktime_internal): Last arg now points to mktime_offset_t, not
7409 time_t. All uses changed. This is a no-op on glibc, where
7410 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7411 offset guess. Directly check for integer overflow instead of
7412 using a heuristic that works only 99.9...% of the time.
7413 Access *OFFSET only once, to avoid an unlikely race if the
7414 compiler delays a load and if this cascades into a signed integer
7415 overflow.
7416 (mktime): Move tzsettish code to my_tzset, and move
7417 localtime_offset to within mktime so that it doesn’t
7418 need a separate ifdef.
7419 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7420 instead of localtime.
7421 * time/timegm.c: Copy from Gnulib. This has the following changes:
7422 Include mktime-internal.h.
7423 [!_LIBC]: Include config.h and time.h. Do not include
7424 timegm.h or time_r.h. Make __mktime_internal a macro,
7425 and include mktime-internal.h to get its declaration.
7426 (timegm): Temporary is now mktime_offset_t, not time_t.
7427 This affects only Gnulib.
7428
7429 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7430
7431 [BZ #23637]
7432 * string/test-strstr.c (pr23637): New function.
7433 (test_main): Add tests with longer needles.
7434 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7435 * string/strstr.c (AVAILABLE): Likewise.
7436
7437 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7438
7439 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7440
7441 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7442
7443 * NEWS: Mention pow improvements.
7444 * math/Makefile (type-double-routines): Add e_pow_log_data.
7445 * sysdeps/generic/math_private.h (__exp1): Remove.
7446 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7447 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7448 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7449 contraction.
7450 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7451 (exp_inline): Remove.
7452 (__ieee754_exp): Only single double input is handled.
7453 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7454 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7455 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7456 (__pow_log_data): Define.
7457 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7458 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7459 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7460 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7461 contraction.
7462 (CFLAGS-e_pow-fma4.c): Likewise.
7463
7464 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7465
7466 Simplify tzfile fstat failure code
7467 [BZ #21716]
7468 * time/tzfile.c (__tzfile_read): Simplify slightly.
7469
7470 Fix tzfile low-memory assertion failure
7471 [BZ #21716]
7472 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7473 when registering time zone abbreviations.
7474
7475 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7476
7477 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7478 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7479 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7480 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7481 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7482 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7483 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7484 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7485 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7486
7487 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7488 __ceil.
7489 (__ceill): Call ceil instead of __ceil.
7490 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7491 __floor.
7492 (__floorl): Call floor instead of __floor.
7493
7494 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7495
7496 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7497 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7498 using MATH_REDIRECT.
7499 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7500 header inclusion.
7501 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7502 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7503 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7504 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7505 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7506 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7507 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7508 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7509 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7511 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7513 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7514 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7515 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7516 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7517 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7518 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7519 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7520 Remove macro.
7521 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7522 functions instead of __ceil variants.
7523 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7524 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7525 Likewise.
7526 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7527 Likewise.
7528 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7529 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7530 Likewise.
7531 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7532 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7533
7534 [BZ #21286]
7535 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7536 constant.
7537 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7538 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7539 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7540 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7541 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7542 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7543 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7544 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7545 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7546 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7547 (ILL_BADIADDR): Remove constant.
7548 (TRAP_BRANCH): Likewise.
7549 (TRAP_HWBKPT): Likewise.
7550
7551 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7552
7553 [BZ #23656]
7554 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7555 Remove [_MIPS_SIM = _ABIN32] conditional case.
7556 (struct elf_prpsinfo): Likewise.
7557
7558 [BZ #23649]
7559 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7560 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7561 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7562 Likewise.
7563 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7564 elf_prpsinfo): Likewise.
7565 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7566 elf_prpsinfo): Likewise.
7567 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7568 Likewise.
7569
7570 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7571 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7572 using MATH_REDIRECT.
7573 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7574 header inclusion.
7575 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7576 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7577 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7578 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7579 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7580 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7581 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7582 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7583 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7584 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7585 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7586 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7587 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7588 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7589 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7590 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7591 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7592 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7593 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7594 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7595 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7596 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7597 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7598 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7599 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7600 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7601 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7602 __rint variants.
7603 * math/e_scalbf.c (invalid_fn): Likewise.
7604 * math/e_scalbl.c (invalid_fn): Likewise.
7605 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7606 Likewise.
7607 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7608 Likewise.
7609 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7610 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7611 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7612 Likewise.
7613 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7614 Likewise.
7615 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7616 Likewise.
7617 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7618 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7619
7620 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7621 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7622 New macro.
7623 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7624 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7625 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7626 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7627 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7628 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7629 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7630 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7631 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7632 && !NO_MATH_REDIRECT] (floor): Likewise.
7633 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7634 header inclusion.
7635 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7636 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7637 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7638 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7639 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7640 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7641 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7642 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7643 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7647 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7648 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7649 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7650 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7651 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7652 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7653 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7654 Remove macro.
7655 [_ARCH_PWR5X] (__floorf): Likewise.
7656 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7657 inline function.
7658 [__SSE4_1__] (__floorf): Likewise.
7659 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7660 instead of __floor variants.
7661 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7662 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7663 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7664 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7665 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7666 * math/w_tgamma_compat.c (__tgamma): Likewise.
7667 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7668 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7669 * math/w_tgammal_compat.c (__tgammal): Likewise.
7670 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7671 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7672 Likewise.
7673 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7674 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7675 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7676 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7677 Likewise.
7678 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7679 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7680 Likewise.
7681 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7682 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7683 Likewise.
7684 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7685 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7686 Likewise.
7687 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7688 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7689 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7690 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7691 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7692 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7693
7694 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7695
7696 * elf/Makefile (modules-names-tests): New variable.
7697
7698 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7699
7700 * NEWS: Mention log2 improvements.
7701 * math/Makefile (type-double-routines): Add e_log2_data.
7702 * sysdeps/i386/fpu/e_log2_data.c: New file.
7703 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7704 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7705 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7706 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7707 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7708 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7709
7710 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7711
7712 * NEWS: Mention log improvement.
7713 * math/Makefile (type-double-routines): Add e_log_data.
7714 * sysdeps/i386/fpu/e_log_data.c: New file.
7715 * sysdeps/ia64/fpu/e_log_data.c: New file.
7716 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7717 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7718 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7719 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7720 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7721 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7722
7723 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7724 Xuepeng Guo <xuepeng.guo@intel.com>
7725
7726 [BZ #23606]
7727 * sysdeps/i386/start.S: Include <sysdep.h>
7728 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7729 enabled. Add cfi_undefined (eip).
7730
7731 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7732
7733 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7734 (MOVQ): Likewise.
7735 (EXTRACT_WORDS64): Likewise.
7736 (INSERT_WORDS64): Likewise.
7737 (GET_FLOAT_WORD): Likewise.
7738 (SET_FLOAT_WORD): Likewise.
7739
7740 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7741 argument.
7742 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7743 build, but not for second build if --full-gcc. Use
7744 --enable-languages=all for second build if --full-gcc.
7745 (get_parser): Add --full-gcc option.
7746 (main): Update call to Context.
7747
7748 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7749
7750 [BZ #10797]
7751 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7752 Single Quotation Mark).
7753 (thousands_sep): Likewise.
7754 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7755 * localedata/locales/it_IT (thousands_sep): Use ".".
7756 (grouping): Use "3;3".
7757
7758 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7759
7760 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7761 x86_64 and i686 configs using --enable-obsolete-rpc
7762 --enable-obsolete-nsl.
7763
7764 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7765
7766 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7767
7768 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7769
7770 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7771 Increment size of new_argv by one.
7772
7773 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7774
7775 [BZ #17426]
7776 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7777 * localedata/locales/ar_IN (d_fmt): Likewise.
7778 * localedata/locales/bhb_IN (d_fmt): Likewise.
7779 * localedata/locales/bho_IN (d_fmt): Likewise.
7780 * localedata/locales/bn_BD (d_fmt): Likewise.
7781 * localedata/locales/bn_IN (d_fmt): Likewise.
7782 * localedata/locales/doi_IN (d_fmt): Likewise.
7783 * localedata/locales/gu_IN (d_fmt): Likewise.
7784 * localedata/locales/hi_IN (d_fmt): Likewise.
7785 * localedata/locales/hne_IN (d_fmt): Likewise.
7786 * localedata/locales/kn_IN (d_fmt): Likewise.
7787 * localedata/locales/mag_IN (d_fmt): Likewise.
7788 * localedata/locales/mai_IN (d_fmt): Likewise.
7789 * localedata/locales/mjw_IN (d_fmt): Likewise.
7790 * localedata/locales/ml_IN (d_fmt): Likewise.
7791 * localedata/locales/mni_IN (d_fmt): Likewise.
7792 * localedata/locales/mr_IN (d_fmt): Likewise.
7793 * localedata/locales/pa_IN (d_fmt): Likewise.
7794 * localedata/locales/raj_IN (d_fmt): Likewise.
7795 * localedata/locales/sat_IN (d_fmt): Likewise.
7796 * localedata/locales/sd_IN (d_fmt): Likewise.
7797 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7798 * localedata/locales/ta_IN (d_fmt): Likewise.
7799 * localedata/locales/ta_LK (d_fmt): Likewise.
7800 * localedata/locales/tcy_IN (d_fmt): Likewise.
7801 * localedata/locales/ur_IN (d_fmt): Likewise.
7802
7803 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7804 * localedata/locales/ks_IN (d_fmt): Likewise.
7805 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7806
7807 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7808 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7809 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7810 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7811
7812 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7813
7814 * NEWS: Mention exp and exp2 improvements.
7815 * math/Makefile (libm-support): Remove t_exp.
7816 (type-double-routines): Add math_err and e_exp_data.
7817 * sysdeps/aarch64/libm-test-ulps: Update.
7818 * sysdeps/arm/libm-test-ulps: Update.
7819 * sysdeps/i386/fpu/e_exp_data.c: New file.
7820 * sysdeps/i386/fpu/math_err.c: New file.
7821 * sysdeps/i386/fpu/t_exp.c: Remove.
7822 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7823 * sysdeps/ia64/fpu/math_err.c: New file.
7824 * sysdeps/ia64/fpu/t_exp.c: Remove.
7825 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7826 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7827 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7828 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7829 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7830 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7831 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7832 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7833 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7834 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7835 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7836 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7837 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7838 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7839 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7840 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7841
7842 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7843
7844 * sysdeps/alpha/fpu/math_private.h: Remove.
7845
7846 * sysdeps/generic/math_private.h
7847 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7848 Move this inline function ....
7849 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7850 * include/math.h [!_ISOMAC]: To here....
7851
7852 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7853
7854 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7855 code ....
7856 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7857 * include/fenv.h [!_ISOMAC]: ... to here.
7858 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7859 (feraiseexcept): Likewise.
7860 * math/fromfp.h: Do not include <fenv_private.h>.
7861 * math/s_cexp_template.c: Likewise.
7862 * math/s_csin_template.c: Likewise.
7863 * math/s_csinh_template.c: Likewise.
7864 * math/s_ctan_template.c: Likewise.
7865 * math/s_ctanh_template.c: Likewise.
7866 * math/s_iseqsig_template.c: Likewise.
7867 * math/w_acos_compat.c: Likewise.
7868 * math/w_acosf_compat.c: Likewise.
7869 * math/w_acosl_compat.c: Likewise.
7870 * math/w_asin_compat.c: Likewise.
7871 * math/w_asinf_compat.c: Likewise.
7872 * math/w_asinl_compat.c: Likewise.
7873 * math/w_j0_compat.c: Likewise.
7874 * math/w_j0f_compat.c: Likewise.
7875 * math/w_j0l_compat.c: Likewise.
7876 * math/w_j1_compat.c: Likewise.
7877 * math/w_j1f_compat.c: Likewise.
7878 * math/w_j1l_compat.c: Likewise.
7879 * math/w_jn_compat.c: Likewise.
7880 * math/w_jnf_compat.c: Likewise.
7881 * math/w_log10_compat.c: Likewise.
7882 * math/w_log10f_compat.c: Likewise.
7883 * math/w_log10l_compat.c: Likewise.
7884 * math/w_log2_compat.c: Likewise.
7885 * math/w_log2f_compat.c: Likewise.
7886 * math/w_log2l_compat.c: Likewise.
7887 * math/w_log_compat.c: Likewise.
7888 * math/w_logf_compat.c: Likewise.
7889 * math/w_logl_compat.c: Likewise.
7890 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7891 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7892 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7893 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7894 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7895 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7896 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7897 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7898 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7899 * sysdeps/ieee754/k_standardl.c: Likewise.
7900 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7901 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7902 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7903 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7904 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7905 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7906 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7907 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7908 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7909 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7910 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7911 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7912 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7913 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7914 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7915 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7916 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7917 * math/w_ilogb_template.c: Include <fenv.h> instead of
7918 <fenv_private.h>.
7919 * math/w_llogb_template.c: Likewise.
7920 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7921 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7922
7923 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7924
7925 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7926 * math/fromfp.h: Include <fenv_private.h>.
7927 * math/math-narrow.h: Likewise.
7928 * math/s_cexp_template.c: Likewise.
7929 * math/s_csin_template.c: Likewise.
7930 * math/s_csinh_template.c: Likewise.
7931 * math/s_ctan_template.c: Likewise.
7932 * math/s_ctanh_template.c: Likewise.
7933 * math/s_iseqsig_template.c: Likewise.
7934 * math/w_acos_compat.c: Likewise.
7935 * math/w_acosf_compat.c: Likewise.
7936 * math/w_acosl_compat.c: Likewise.
7937 * math/w_asin_compat.c: Likewise.
7938 * math/w_asinf_compat.c: Likewise.
7939 * math/w_asinl_compat.c: Likewise.
7940 * math/w_ilogb_template.c: Likewise.
7941 * math/w_j0_compat.c: Likewise.
7942 * math/w_j0f_compat.c: Likewise.
7943 * math/w_j0l_compat.c: Likewise.
7944 * math/w_j1_compat.c: Likewise.
7945 * math/w_j1f_compat.c: Likewise.
7946 * math/w_j1l_compat.c: Likewise.
7947 * math/w_jn_compat.c: Likewise.
7948 * math/w_jnf_compat.c: Likewise.
7949 * math/w_llogb_template.c: Likewise.
7950 * math/w_log10_compat.c: Likewise.
7951 * math/w_log10f_compat.c: Likewise.
7952 * math/w_log10l_compat.c: Likewise.
7953 * math/w_log2_compat.c: Likewise.
7954 * math/w_log2f_compat.c: Likewise.
7955 * math/w_log2l_compat.c: Likewise.
7956 * math/w_log_compat.c: Likewise.
7957 * math/w_logf_compat.c: Likewise.
7958 * math/w_logl_compat.c: Likewise.
7959 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7960 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7961 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7962 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7963 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7964 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7965 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7966 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7967 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7968 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7969 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7970 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7971 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7972 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7973 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7974 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7975 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7976 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7977 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7978 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7979 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7980 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7981 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7982 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7983 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7984 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7985 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7986 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7987 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7988 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7989 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7990 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7991 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7992 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7993 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7994 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7995 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7996 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7997 * sysdeps/ieee754/k_standardl.c: Likewise.
7998 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7999 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8000 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8001 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8002 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
8003 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
8004 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8005 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8006 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8007 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8008 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8009 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8010 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8011 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8012 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8013 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8014 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8015 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
8016 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8017 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8018 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8019 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8020 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8021 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8022 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8023 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8024 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8025 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8026 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8027 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8028 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8029 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8030 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8031 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8032 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8033 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8034 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8035 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8036 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8037 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8038 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8039 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8040 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8041 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8042 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8043 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8044 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8045 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8046 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8047 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8048 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8049 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8050 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8051 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8052 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8053 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8054 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8055 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8056 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8057 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8058 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8059 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8060 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8061 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8062 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8063 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8064 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8065 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8066 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8067 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8068 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8069
8070 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8071
8072 [BZ #20271]
8073 * include/stdio.h (__libc_fatal): Mention newline in comment.
8074 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8075 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8076 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8077 * nss/nsswitch.c (__nss_next2): Likewise.
8078 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8079 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8080 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8081 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8082 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8083 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8084 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8085 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8086 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8087 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8088 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8089 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8090 (__netlink_assert_response): Likewise.
8091
8092 2018-08-31 Joseph Myers <joseph@codesourcery.com>
8093
8094 * conform/glibcconform.py: New file.
8095 * conform/list-header-symbols.py: Likewise.
8096 * conform/list-header-symbols.pl: Remove.
8097 * conform/Makefile (tests-special): Only add linknamespace tests
8098 if [PYTHON].
8099 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8100
8101 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
8102
8103 [BZ #23597]
8104 * support/Makefile (libsupport-routines): Add
8105 support_copy_file_range and xcopy_file_range.
8106 * support/support.h: Include <sys/types.h>.
8107 (support_copy_file_range): New prototype.
8108 * support/support_copy_file_range.c: New file. Copied and
8109 modified from io/copy_file_range-compat.c.
8110 * support/test-container.c (copy_one_file): Call xcopy_file_rang
8111 instead of copy_file_range.
8112 * support/xcopy_file_range.c: New file.
8113 * support/xunistd.h (xcopy_file_range): New prototype.
8114
8115 2018-08-30 Carlos O'Donell <carlos@redhat.com>
8116
8117 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8118 xpthread_create and xpthread_join.
8119
8120 2018-08-30 Florian Weimer <fweimer@redhat.com>
8121
8122 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8123
8124 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
8125
8126 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8127 if malloc fails.
8128
8129 2018-08-29 Joseph Myers <joseph@codesourcery.com>
8130
8131 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8132 and minus_oflow as non-finite.
8133
8134 2018-08-28 Joseph Myers <joseph@codesourcery.com>
8135
8136 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
8137 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
8138 moved to fenv_private.h except for ...
8139 (TOINT_INTRINSICS): Kept in math_private.h.
8140 (roundtoint): Likewise.
8141 (converttoint): Likewise.
8142 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8143 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8144 * sysdeps/arm/math_private.h: Remove.
8145 * sysdeps/generic/fenv_private.h: New file. Contents moved from
8146 ....
8147 * sysdeps/generic/math_private.h: ... this file. Include
8148 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
8149 Include <fenv_private.h>. Remove functions and macros moved to
8150 fenv_private.h.
8151 * sysdeps/i386/fpu/math_private.h: Remove.
8152 * sysdeps/mips/math_private.h: Move to ....
8153 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
8154 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
8155 [__mips_hard_float] conditional. Include next <fenv_private.h>.
8156 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8157 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8158 * sysdeps/powerpc/fpu/math_private.h: Do not include
8159 <fenv_private.h>.
8160 * sysdeps/riscv/rvf/math_private.h: Move to ....
8161 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
8162 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
8163 <fenv_private.h>.
8164 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8165 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8166 * sysdeps/sparc/fpu/math_private.h: Remove.
8167 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8168 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8169 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8170 <fenv_private.h>.
8171 * sysdeps/x86_64/fpu/math_private.h: Do not include
8172 <sysdeps/i386/fpu/fenv_private.h>.
8173
8174 2018-08-28 Florian Weimer <fweimer@redhat.com>
8175
8176 [BZ #23578]
8177 * posix/tst-regcomp-truncated.c: New file.
8178 * posix/Makefile (tests): Add it.
8179 (tst-regcomp-truncated.out): Depend on generated locales.
8180
8181 2018-08-28 Florian Weimer <fweimer@redhat.com>
8182
8183 * support/test-container.c (main): Treat unshare failure with
8184 EPERM as an unsupported test.
8185
8186 2018-08-28 Florian Weimer <fweimer@redhat.com>
8187
8188 [BZ #23520]
8189 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8190 * nscd/netgroupcache.c
8191 (addgetnetgrentX): Add tofreep parameter. Do not free
8192 heap-allocated buffer.
8193 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8194 (addgetnetgrentX_ignore): New function.
8195 (addgetnetgrent): Call it.
8196 (readdgetnetgrent): Likewise.
8197
8198 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8199
8200 * string/memmem.c: Use memcmp for first match.
8201
8202 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8203
8204 [BZ #17426]
8205 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8206
8207 2018-08-27 DJ Delorie <dj@redhat.com>
8208
8209 * support/Makefile (others): Don't list programs explicitly as a
8210 dependency of "others".
8211
8212 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8213
8214 * sysdeps/generic/math-tests-trap-force.h: New file.
8215 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8216 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8217 * sysdeps/powerpc/math-tests.h: Remove file.
8218 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8219
8220 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8221 Torvald Riegel <triegel@redhat.com>
8222
8223 [BZ #23538]
8224 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8225 Update r to include the set wake-request flag if waiters are
8226 remaining after spinning.
8227
8228 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8229
8230 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8231
8232 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8233
8234 [BZ #23578]
8235 regex: fix uninitialized memory access
8236 I introduced this bug into gnulib in commit
8237 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8238 eventually it was merged into glibc. The bug was found by
8239 project-repo <bugs@feusi.co> and reported here:
8240 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8241 Diagnosis and draft fix reported by Assaf Gordon here:
8242 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8243 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8244 * posix/regex_internal.c (build_wcs_upper_buffer):
8245 Fix bug when mbrtowc returns 0.
8246
8247 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8248
8249 * po/be.po: Update translation.
8250
8251 2018-08-24 DJ Delorie <dj@delorie.com>
8252
8253 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8254 $(libunwind).
8255
8256 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8257
8258 [BZ #23400]
8259 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8260 create temporary files in source tree.
8261
8262 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8263
8264 * sysdeps/generic/math-tests-trap.h: New file.
8265 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8266 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8267 * sysdeps/aarch64/math-tests.h: Remove file.
8268 * sysdeps/arm/math-tests.h: Likewise.
8269 * sysdeps/riscv/math-tests.h: Likewise.
8270 * sysdeps/aarch64/math-tests-trap.h: New file.
8271 * sysdeps/arm/math-tests-trap.h: Likewise.
8272 * sysdeps/riscv/math-tests-trap.h: Likewise.
8273
8274 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8275
8276 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8277 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8278 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8279 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8280 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8281 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8282 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8283 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8284 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8285 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8286 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8287 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8288 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8289 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8290 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8291 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8292 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8293 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8294
8295 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8296
8297 * sysdeps/generic/math-tests-exceptions.h: New file.
8298 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8299 (EXCEPTION_TESTS_float): Do not define here.
8300 (EXCEPTION_TESTS_double): Likewise.
8301 (EXCEPTION_TESTS_long_double): Likewise.
8302 (EXCEPTION_TESTS_float128): Likewise.
8303 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8304 Likewise.
8305 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8306 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8307 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8308 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8309 * sysdeps/mips/math-tests.h: Likewise.
8310 * sysdeps/nios2/math-tests.h: Likewise.
8311 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8312 (EXCEPTION_TESTS_float): Do not define here.
8313 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8314 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8315 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8316
8317 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8318
8319 * NEWS: Move optimized sinf entry to 2.29.
8320
8321 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8322
8323 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8324
8325 2018-08-22 DJ Delorie <dj@redhat.com>
8326
8327 * Makefile (testroot.pristine): New rules to initialize the
8328 test-in-container "testroot".
8329 * Makerules (all-testsuite): Add tests-container.
8330 * Rules (tests-expected): Add tests-container.
8331 (binaries-all-tests): Likewise.
8332 (tests-container): New, run these tests in the testroot container.
8333 * support/Makefile (others): Add *-container, support_paths.c,
8334 xmkdirp, and links-dso-program.
8335 * support/links-dso-program-c.c: New.
8336 * support/links-dso-program.cc: New.
8337 * support/test-container.c: New.
8338 * support/shell-container.c: New.
8339 * support/echo-container.c: New.
8340 * support/true-container.c: New.
8341 * support/xmkdirp.c: New.
8342 * support/xsymlink.c: New.
8343 * support/support_paths.c: New.
8344 * support/support.h: Add support paths prototypes.
8345 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8346
8347 * nss/tst-nss-test3.c: Convert to test-in-container.
8348 * nss/tst-nss-test3.root/: New.
8349
8350 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8351
8352 regex: port Gnulib code to z/OS POSIX environment
8353 Problem reported by Arnold Robbins in:
8354 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8355 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8356 Undef.
8357
8358 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8359
8360 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8361 (ROUNDING_TESTS_double): Remove.
8362 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8363 (ROUNDING_TESTS_double): Remove.
8364 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8365 (ROUNDING_TESTS_double): Remove.
8366 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8367 (ROUNDING_TESTS_float): Remove.
8368 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8369 (ROUNDING_TESTS_float): Remove.
8370 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8371 (ROUNDING_TESTS_float): Remove.
8372 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8373 !TEST_MATHVEC here.
8374 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8375 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8376
8377 * sysdeps/generic/math-tests-rounding.h: New file.
8378 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8379 (ROUNDING_TESTS_float): Do not define here.
8380 (ROUNDING_TESTS_double): Likewise.
8381 (ROUNDING_TESTS_long_double): Likewise.
8382 (ROUNDING_TESTS_float128): Likewise.
8383 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8384 (ROUNDING_TESTS_double): Undefine before defining.
8385 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8386 (ROUNDING_TESTS_double): Undefine before defining.
8387 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8388 (ROUNDING_TESTS_double): Undefine before defining.
8389 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8390 (ROUNDING_TESTS_float): Undefine before defining.
8391 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8392 (ROUNDING_TESTS_float): Undefine before defining.
8393 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8394 (ROUNDING_TESTS_float): Undefine before defining.
8395 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8396 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8397 not define here.
8398 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8399 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8400 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8401 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8402 (ROUNDING_TESTS_float): Do not define here.
8403 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8404 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8405 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8406 (ROUNDING_TESTS_float): Likewise.
8407 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8408 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8409 * sysdeps/mips/math-tests.h [__mips_soft_float]
8410 (ROUNDING_TESTS_float): Likewise.
8411 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8412 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8413 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8414 (ROUNDING_TESTS_double): Likewise.
8415 (ROUNDING_TESTS_long_double): Likewise.
8416
8417 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8418
8419 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8420 (PF_XDP): New macro.
8421 (AF_XDP): New macro.
8422 (SOL_XDP): New macro.
8423
8424 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8425
8426 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8427 (TCP_INQ): Likewise.
8428 (TCP_CM_INQ): Likewise.
8429 (TCP_REPAIR_ON): Likewise.
8430 (TCP_REPAIR_OFF): Likewise.
8431 (TCP_REPAIR_OFF_NO_WP): Likewise.
8432 (struct tcp_zerocopy_receive): New type.
8433
8434 2018-08-21 Florian Weimer <fweimer@redhat.com>
8435
8436 * support/support.h (support_descriptor_supports_holes): Declare.
8437 * support/Makefile (libsupport-routines): Add
8438 support_descriptor_supports_holes.
8439 * support/support_descriptor_supports_holes.c: New file.
8440 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8441 and stop testing if holes are not supported.
8442 * io/test-lfs.c (do_prepare): Likewise.
8443 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8444 Likewise.
8445 * timezone/tst-tzset.c (create_tz_file): Likewise.
8446 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8447 variable.
8448 (do_prepare): Set it.
8449 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8450
8451 2018-08-21 Florian Weimer <fweimer@redhat.com>
8452
8453 [BZ #17248]
8454 * Makeconfig (+cflags): Do not sort (and deduplicate).
8455
8456 2018-08-21 Florian Weimer <fweimer@redhat.com>
8457
8458 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8459 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8460
8461 2018-08-20 Florian Weimer <fweimer@redhat.com>
8462
8463 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8464 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8465
8466 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8467
8468 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8469 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8470 and ssi_arch members.
8471
8472 * elf/elf.c (NT_VMCOREDD): New macro.
8473 (AT_MINSIGSTKSZ): Likewise.
8474
8475 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8476
8477 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8478 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8479 s_cosf-ppc64 and s_cosf-power8.
8480 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8481 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8482 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8483 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8485 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8487 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8488 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8490 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8491 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8492
8493 2018-08-17 Florian Weimer <fweimer@redhat.com>
8494
8495 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8496
8497 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8498
8499 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8500
8501 2018-08-16 Florian Weimer <fweimer@redhat.com>
8502
8503 * configure.ac: Add --with-nonshared-cflags option.
8504 * config.make.in (extra-nonshared-cflags): Set variable.
8505 * Makeconfig (CFLAGS-.oS): Use it.
8506 * manual/install.texi (Configuring and compiling): Document
8507 --with-nonshared-cflags.
8508 * configure: Regenerate.
8509 * INSTALL: Likewise.
8510
8511 2018-08-16 Florian Weimer <fweimer@redhat.com>
8512
8513 * Makeconfig (ASFLAGS): Always append required assembler flags.
8514
8515 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8516
8517 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8518 (malloc_consolidate): Likewise.
8519
8520 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8521
8522 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8523
8524 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8525
8526 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8527 every strlen call.
8528
8529 * benchtests/bench-strlen.c: Print performance numbers in json.
8530
8531 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8532
8533 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8534 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8535 only for little endian.
8536 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8537 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8538 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8539 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8540 Add check for little endian.
8541 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8542 (__strcmp_power9): Add check for little endian.
8543 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8544 Add check for little endian.
8545 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8546 (__strncmp_power9): Add check for little endian.
8547 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8548 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8549 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8550 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8551 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8552
8553 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8554
8555 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8556 [!STRLEN](STRLEN): Set to __strlen.
8557 * sysdeps/aarch64/multiarch/strlen.c: New file.
8558 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8559 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8560 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8561 (__libc_ifunc_impl_list): Add strlen.
8562 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8563 strlen_generic and strlen_asimd.
8564
8565 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8566
8567 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8568 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8569 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8570
8571 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8572
8573 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8574
8575 2018-08-14 Florian Weimer <fweimer@redhat.com>
8576
8577 [BZ #23519]
8578 * include/stdio.h (__vfxprintf): Declare.
8579 * stdio-common/fxprintf.c (__vfxprintf): New function.
8580 (__fxprintf): Call it.
8581 * misc/err.c (convert_and_print): Remove function.
8582 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8583 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8584 * misc/Makefile (tests): Add tst-warn-wide.
8585 * misc/tst-warn-wide.c: New file.
8586
8587 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8588 Szabolcs Nagy <szabolcs.nagy@arm.com>
8589
8590 * NEWS: Mention sinf, cosf, sincosf.
8591 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8592 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8593 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8594 constants rather than including generic sincosf.h.
8595 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8596 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8597 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8598 (reduced_cos): Remove.
8599 (sinf_poly): New function.
8600 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8601
8602 2018-08-14 Florian Weimer <fweimer@redhat.com>
8603
8604 [BZ #23521]
8605 [BZ #23522]
8606 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8607 processing, bail out if no room, and close the stream before
8608 returning ERANGE.
8609 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8610 (tst-nss-files-alias-leak): Link with libdl.
8611 (tst-nss-files-alias-leak.out): Depend on nss_files.
8612
8613 * nss/tst-nss-files-alias-leak.c: New file.
8614
8615 2018-08-14 Florian Weimer <fweimer@redhat.com>
8616
8617 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8618 server_user, stat_user.
8619
8620 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8621
8622 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8623 version to 4.18.
8624 (io_pgetevents): New syscall.
8625 (rseq): Likewise.
8626
8627 * manual/install.texi (Configuring and compiling): Do not list
8628 tools used for testing pretty printers here.
8629 (Tools for Compilation): List Python, PExpect and GDB here.
8630 Update descriptions of uses of Perl and Python.
8631 * INSTALL: Regenerate.
8632
8633 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8634 version to 4.18.
8635
8636 2018-08-13 Florian Weimer <fweimer@redhat.com>
8637
8638 * misc/error.c (error): Add missing va_end call.
8639 (error_at_line): Likewise.
8640
8641 2018-08-13 Florian Weimer <fweimer@redhat.com>
8642
8643 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8644
8645 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8646
8647 * benchtests/scripts/benchout.schema.json (properties): Add
8648 new properties.
8649
8650 * benchtests/bench-skeleton.c (main): Add duration and
8651 iterations attributes.
8652
8653 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8654
8655 regex: Gnulib unibyte RRI uses bytes not chars
8656 Adjust the non-glibc code to agree with what Gawk needs for
8657 rational range interpretation (RRI) for regular expression ranges.
8658 In unibyte locales, Gawk wants ranges to use the underlying byte
8659 rather than the character code point. This change does not affect
8660 glibc proper.
8661 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8662 In unibyte locales, use the byte value rather than
8663 running it through btowc.
8664
8665 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8666
8667 * sysdeps/generic/math-tests-snan.h: New file.
8668 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8669 (SNAN_TESTS_float): Do not define here.
8670 (SNAN_TESTS_double): Likewise.
8671 (SNAN_TESTS_long_double): Likewise.
8672 (SNAN_TESTS_float128): Likewise.
8673 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8674 * sysdeps/i386/fpu/math-tests.h: Remove file.
8675 * sysdeps/ia64/math-tests-snan.h: New file.
8676 * sysdeps/ia64/math-tests.h: Remove file.
8677 * sysdeps/x86/math-tests.h: Likewise.
8678 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8679
8680 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8681 Szabolcs Nagy <szabolcs.nagy@arm.com>
8682
8683 * math/Makefile: Add s_sincosf_data.c.
8684 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8685 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8686 (sincosf_poly): Likewise.
8687 (reduce_small): Likewise.
8688 (reduce_large): Likewise.
8689 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8690 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8691 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8692 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8693
8694 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8695 Szabolcs Nagy <szabolcs.nagy@arm.com>
8696
8697 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8698 (converttoint): Use lround.
8699 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8700 document the semantics when TOINT_INTRINSICS is set.
8701 (converttoint): Likewise.
8702 (TOINT_RINT): Remove.
8703 (TOINT_SHIFT): Remove.
8704 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8705 path.
8706
8707 2018-08-10 Florian Weimer <fweimer@redhat.com>
8708
8709 [BZ #23497]
8710 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8711 function.
8712 (__old_getdents64): Use getdents64. Convert entries without
8713 moving them.
8714 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8715 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8716 tst-readdir64-compat.
8717
8718 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8719
8720 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8721 Fix unwind.
8722
8723 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8724
8725 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8726 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8727 code to s390x-mcount.h and #include it.
8728 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8729 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8730 (__fentry__): Add.
8731
8732 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8733
8734 * stdlib/Versions: Remove __fentry__.
8735 * sysdeps/i386/Versions: Add __fentry__.
8736 * sysdeps/x86_64/Versions: Add __fentry__.
8737
8738 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8739
8740 * sysdeps/s390/Makefile: Register the new tests.
8741 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8742 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8743 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8744 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8745 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8746 * sysdeps/s390/tst-dl-runtime.c: New file.
8747
8748 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8749
8750 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8751 Do not clobber R0.
8752
8753 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8754
8755 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8756 Do not clobber R0.
8757
8758 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8759
8760 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8761 Do not clobber R0.
8762
8763 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8764
8765 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8766 Do not clobber R0.
8767
8768 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8769
8770 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8771 Use symbolic offsets for stack variables.
8772
8773 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8774
8775 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8776 Use symbolic offsets for stack variables.
8777
8778 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8779
8780 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8781 Use symbolic offsets for stack variables.
8782
8783 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8784
8785 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8786 Use symbolic offsets for stack variables.
8787
8788 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8789
8790 * math/gen-libm-test.py: New file.
8791 * math/gen-libm-test.pl: Remove.
8792 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8793 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8794 gen-libm-test.pl.
8795 ($(libm-test-c-noauto-obj)): Likewise.
8796 ($(libm-test-c-auto-obj)): Likewise.
8797 ($(libm-test-c-narrow-obj)): Likewise.
8798 (regen-ulps): Likewise.
8799 * math/README.libm-test: Update references to gen-libm-test.pl.
8800 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8801 referencing gen-libm-test.pl.
8802 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8803 * math/libm-test-support.c: Likewise.
8804 * math/libm-test-support.h: Likewise.
8805 * sysdeps/generic/libm-test-ulps: Likewise.
8806
8807 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8808
8809 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8810 Fix value.
8811
8812 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8813
8814 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8815 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8816
8817 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8818
8819 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8820 symbols.
8821 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8822 __pthread_setspecific): Add hidden proto.
8823 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8824 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8825
8826 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8827
8828 * benchtests/bench-string.h (buf1_size, buf2_size): New
8829 variables.
8830 (init_sizes): New function.
8831 (test_init): Use it.
8832 (alloc_buf, exit_error): New functions.
8833 (alloc_bufs): Use ALLOC_BUF.
8834 (realloc_bufs): Remove.
8835 * benchtests/bench-memcmp.c (do_test): Adjust.
8836 * benchtests/bench-memset-large.c (do_test): Likewise.
8837 * benchtests/bench-memset-walk.c (do_test): Likewise.
8838 * benchtests/bench-memset.c (do_test): Likewise.
8839 * benchtests/bench-strncmp.c (do_test): Likewise.
8840
8841 2018-08-06 Andreas Schwab <schwab@suse.de>
8842
8843 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8844 of CONST_THREAD_AREA.
8845
8846 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8847
8848 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8849 (STATE_SAVE_MASK): Likewise.
8850 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8851 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8852 (STATE_SAVE_MASK): Likewise.
8853 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8854 instead of <cpu-features.h>.
8855
8856 2018-08-03 DJ Delorie <dj@redhat.com>
8857
8858 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8859 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8860
8861 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8862
8863 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8864
8865 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8866 after TEST_* calls.
8867 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8868 * math/libm-test-logb.inc (logb_test_data): Likewise.
8869
8870 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8871
8872 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8873 * string/strstr.c (AVAILABLE): Likewise.
8874
8875 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8876
8877 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8878 <init-arch.h>.
8879 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8880 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8881 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8882
8883 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8884
8885 * po/be.po: Update translation.
8886
8887 * po/be.po: Update translation.
8888
8889 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8890
8891 * sysdeps/x86/cpu-features-offsets.sym
8892 (rtld_global_ro_offsetof): Removed.
8893 (CPU_FEATURES_SIZE): Likewise.
8894 (CPUID_OFFSET): Likewise.
8895 (CPUID_SIZE): Likewise.
8896 (CPUID_EAX_OFFSET): Likewise.
8897 (CPUID_EBX_OFFSET): Likewise.
8898 (CPUID_ECX_OFFSET): Likewise.
8899 (CPUID_EDX_OFFSET): Likewise.
8900 (FAMILY_OFFSET): Likewise.
8901 (MODEL_OFFSET): Likewise.
8902 (FEATURE_OFFSET): Likewise.
8903 (FEATURE_SIZ): Likewise.
8904 (COMMON_CPUID_INDEX_1): Likewise.
8905 (COMMON_CPUID_INDEX_7): Likewise.
8906 (FEATURE_INDEX_1): Likewise.
8907 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8908
8909 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8910
8911 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8912 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8913 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8914 (install-locales): Depend on install-locale-archive.
8915 (install-locale-archive): Define.
8916 (install-locale-files): Define.
8917 (build-one-locale): Define macro.
8918 * manual/install.texi (Running make install): Document.
8919 * manual/INSTALL: Regenerate.
8920
8921 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8922
8923 * benchtests/scripts/compare_strings.py: Import traceback.
8924 (parse_file): Pretty-print error.
8925
8926 * NEWS: Mention the change.
8927 * elf/dl-tunables.list: Rename tune namespace to cpu.
8928 * sysdeps/powerpc/dl-tunables.list: Likewise.
8929 * sysdeps/x86/dl-tunables.list: Likewise.
8930 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8931 cpu.name.
8932 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8933 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8934 * manual/README.tunables: Likewise.
8935 * manual/tunables.texi: Likewise.
8936 * sysdeps/powerpc/cpu-features.c: Likewise.
8937 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8938 (init_cpu_features): Likewise.
8939 * sysdeps/x86/cpu-features.c: Likewise.
8940 * sysdeps/x86/cpu-features.h: Likewise.
8941 * sysdeps/x86/cpu-tunables.c: Likewise.
8942 * sysdeps/x86_64/Makefile: Likewise.
8943 * sysdeps/x86/dl-cet.c: Likewise.
8944
8945 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8946
8947 [BZ #23479]
8948 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8949 [__mips_hard_float].
8950 (FE_UNDERFLOW): Likewise.
8951 (FE_OVERFLOW): Likewise.
8952 (FE_DIVBYZERO): Likewise.
8953 (FE_INVALID): Likewise.
8954 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8955 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8956 (FE_UPWARD): Likewise.
8957 (FE_DOWNWARD): Likewise.
8958 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8959 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8960 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8961 [__mips_hard_float].
8962 (FP_ROUNDMODE): Likewise.
8963 (FP_RND_NEAREST): Likewise.
8964 (FP_RND_ZERO): Likewise.
8965 (FP_RND_PINF): Likewise.
8966 (FP_RND_MINF): Likewise.
8967 (FP_EX_INVALID): Likewise.
8968 (FP_EX_OVERFLOW): Likewise.
8969 (FP_EX_UNDERFLOW): Likewise.
8970 (FP_EX_DIVZERO): Likewise.
8971 (FP_EX_INEXACT): Likewise.
8972 (FP_INIT_ROUNDMODE): Likewise.
8973 * sysdeps/mips/nofpu/fesetenv.c: New file.
8974 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8975
8976 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8977
8978 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8979 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8980 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8981 conditional on [FE_UPWARD].
8982
8983 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8984
8985 regex: fix memory leak in Gnulib
8986 Problem and fix reported by Assaf Gordon in:
8987 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8988 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8989 range_ends members too, as they are defined in 'struct
8990 re_charset_t' even if not _LIBC. This affects only Gnulib.
8991
8992 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8993
8994 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8995 ...
8996 (get_common_indices): This.
8997 (init_cpu_features): Updated.
8998
8999 2018-08-01 Joseph Myers <joseph@codesourcery.com>
9000
9001 * sysdeps/generic/math-tests-snan-payload.h: New file.
9002 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
9003 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
9004 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
9005 * sysdeps/generic/math-tests.h: Include
9006 <math-tests-snan-payload.h>.
9007 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9008 * sysdeps/hppa/math-tests.h: Remove file.
9009 * sysdeps/mips/math-tests.h [!__mips_nan2008]
9010 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9011 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
9012 Likewise.
9013
9014 * sysdeps/generic/math-tests-snan-cast.h: New file.
9015 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
9016 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
9017 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
9018 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
9019
9020 2018-08-01 Carlos O'Donel <carlos@redhat.com>
9021
9022 * version.h (RELEASE): Set to "development".
9023 (VERSION): Set to "2.28.9000".
9024 * NEWS (2.29): New section.
9025
9026 * version.h (RELEASE): Set to "stable".
9027 (VERSION): Set to "2.28".
9028 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9029 * NEWS: Add the list of bugs fixed in 2.28.
9030
9031 * po/ca.po: Update to latest version.
9032 * po/cs.po: Likewise
9033 * po/da.po: Likewise
9034 * po/el.po: Likewise
9035 * po/eo.po: Likewise
9036 * po/es.po: Likewise
9037 * po/fi.po: Likewise
9038 * po/fr.po: Likewise
9039 * po/gl.po: Likewise
9040 * po/hu.po: Likewise
9041 * po/ia.po: Likewise
9042 * po/id.po: Likewise
9043 * po/it.po: Likewise
9044 * po/ja.po: Likewise
9045 * po/ko.po: Likewise
9046 * po/lt.po: Likewise
9047 * po/nb.po: Likewise
9048 * po/nl.po: Likewise
9049 * po/pt_BR.po: Likewise
9050 * po/ru.po: Likewise
9051 * po/rw.po: Likewise
9052 * po/sk.po: Likewise
9053 * po/sl.po: Likewise
9054 * po/tr.po: Likewise
9055 * po/zh_CN.po: Likewise
9056 * po/zh_TW.po: Likewise
9057
9058 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
9059
9060 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9061 initialization...
9062 (init): ... before initializing libpthread.
9063
9064 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9065 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9066 (__mach_setup_tls): ... new function.
9067 (mach_setup_tls): New alias.
9068 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9069 __mach_setup_thread.
9070 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9071 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9072 * mach/Versions [libc] (mach_setup_tls): Add symbol.
9073 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9074
9075 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9076
9077 * manual/install.texi: Update versions.
9078 * INSTALL: Regenerate.
9079
9080 * manual/contrib.texi (Contributors): Update contributions.
9081
9082 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9083
9084 * po/be.po: Update translations.
9085
9086 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9087
9088 * sysdeps/sh/libm-test-ulps: Update.
9089
9090 2018-07-30 Carlos O'Donell <carlos@redhat.com>
9091
9092 * po/bg.po: Update translations.
9093 * po/de.po: Likewise.
9094 * po/hr.po: Likewise.
9095 * po/pt_BR.po: Likewise.
9096 * po/sv.po: Likewise.
9097 * po/vi.po: Likewise.
9098
9099 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9100
9101 [BZ #23467]
9102 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9103 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9104 (CFLAGS-tst-cet-property-1.o): New.
9105 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9106 ($(objpfx)tst-cet-property-2): Likewise.
9107 ($(objpfx)tst-cet-property-2.out): Likewise.
9108 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9109 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9110 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9111 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9112 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9113
9114 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9115
9116 [BZ #23458]
9117 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9118
9119 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9120
9121 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9122 __sbrk): Do not set attribute_hidden.
9123 * sysdeps/mach/hurd/not-errno.h: New file.
9124 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9125 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9126
9127 2018-07-27 Carlos O'Donell <carlos@redhat.com>
9128
9129 * po/uk.po: Update translations.
9130 * po/cs.po: Likewise.
9131 * po/pl.po: Likewise.
9132
9133 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
9134
9135 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9136 parse beyond the note end.
9137
9138 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9139
9140 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9141 kernel does not support OFD locks.
9142 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9143
9144 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9145
9146 * sysdeps/mach/hurd/Versions (libc): Make __access and
9147 __access_noerrno external so they can override the ld symbols.
9148 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9149 __writev, __open64, __access_noerrno extern so they can be overrided.
9150 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9151 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9152
9153 2018-07-26 Carlos O'Donell <carlos@redhat.com>
9154
9155 * po/libc.pot: Regenerate.
9156
9157 2018-07-26 Joseph Myers <joseph@codesourcery.com>
9158
9159 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9160
9161 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9162
9163 [BZ #23459]
9164 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9165 function.
9166 (init_cpu_features): Call get_extended_indices for both Intel
9167 and AMD CPUs.
9168 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9169 Remove "for AMD" comment.
9170
9171 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9172
9173 [BZ # 23456]
9174 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9175 COMMON_CPUID_INDEX_80000001.
9176
9177 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9178
9179 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9180 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9181
9182 2018-07-26 Florian Weimer <fweimer@redhat.com>
9183
9184 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9185 aliases for symbols not in the implementation namespace.
9186
9187 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9188
9189 [BZ #23393]
9190 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9191 lowercase in LATIN script.
9192 * localedata/Makefile (test-input): Add en_US.UTF-8.
9193 * localedata/en_US.UTF-8.in: New file.
9194 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9195 and restore old tests.
9196 * posix/tst-regexloc.c (do_test): Add back range expression test.
9197
9198 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9199
9200 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9201
9202 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9203
9204 * nptl/threads.h: Move to ...
9205 * sysdeps/nptl/threads.h: ... here.
9206 * sysdeps/hurd/stdc-predef.h: New file.
9207
9208 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9209
9210 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9211 tst-cet-setcontext-1 if CET is enabled.
9212 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9213 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9214
9215 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9216
9217 * include/threads.h: Move to ...
9218 * sysdeps/nptl/threads.h: ... here.
9219 * sysdeps/htl/threads.h: New file.
9220 * conform/Makefile (linknamespace-libs-ISO11): Use
9221 static-thread-library instead of linking libpthread.
9222 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9223
9224 2018-07-25 Florian Weimer <fweimer@redhat.com>
9225
9226 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9227 nanoseconds into seconds.
9228 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9229 (do_test): Likewise.
9230 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9231 (do_test): Likewise. Avoid nanosecond overflow and spurious
9232 timeouts due to system load.
9233 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9234 (child_wait): Increment it.
9235 (do_test): Wait as long as necessary until all expected threads
9236 have arrived.
9237
9238 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9239 H.J. Lu <hongjiu.lu@intel.com>
9240
9241 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9242 __ssp.
9243 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9244 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9245 (__push___start_context): New.
9246 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9247 <asm/prctl.h>.
9248 (__getcontext): Record the current shadow stack base. Save the
9249 caller's shadow stack pointer and base.
9250 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9251 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9252 (__push___start_context): New prototype.
9253 (__makecontext): Call __push___start_context to allocate a new
9254 shadow stack, push __start_context onto the new stack as well
9255 as the new shadow stack.
9256 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9257 <asm/prctl.h>.
9258 (__setcontext): Restore the target shadow stack.
9259 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9260 <asm/prctl.h>.
9261 (__swapcontext): Record the current shadow stack base. Save
9262 the caller's shadow stack pointer and base. Restore the target
9263 shadow stack.
9264 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9265 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9266 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9267
9268 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9269
9270 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9271 tst-setcontext8 and tst-setcontext9.
9272 * stdlib/tst-setcontext6.c: New file.
9273 * stdlib/tst-setcontext7.c: Likewise.
9274 * stdlib/tst-setcontext8.c: Likewise.
9275 * stdlib/tst-setcontext9.c: Likewise.
9276
9277 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9278
9279 * stdlib/Makefile ((tests): Add tst-setcontext5.
9280 * stdlib/tst-setcontext5.c: New file.
9281
9282 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9283
9284 * stdlib/Makefile (tests): Add tst-setcontext4.
9285 * stdlib/tst-setcontext4.c: New file.
9286
9287 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9288
9289 * stdlib/Makefile (tests): Add tst-swapcontext1.
9290 * stdlib/tst-swapcontext1.c: New test.
9291
9292 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9293
9294 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9295 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9296 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9297 and tst-cet-legacy-4c.
9298 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9299 and tst-cet-legacy-mod-4.
9300 (CFLAGS-tst-cet-legacy-2.c): New.
9301 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9302 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9303 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9304 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9305 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9306 ($(objpfx)tst-cet-legacy-1): Likewise.
9307 ($(objpfx)tst-cet-legacy-2): Likewise.
9308 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9309 ($(objpfx)tst-cet-legacy-2a): Likewise.
9310 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9311 ($(objpfx)tst-cet-legacy-4): Likewise.
9312 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9313 ($(objpfx)tst-cet-legacy-4a): Likewise.
9314 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9315 (tst-cet-legacy-4a-ENV): Likewise.
9316 ($(objpfx)tst-cet-legacy-4b): Likewise.
9317 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9318 (tst-cet-legacy-4b-ENV): Likewise.
9319 ($(objpfx)tst-cet-legacy-4c): Likewise.
9320 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9321 (tst-cet-legacy-4c-ENV): Likewise.
9322 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9323 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9324 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9325 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9326 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9327 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9328 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9329 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9330 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9331 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9332 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9333
9334 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9335
9336 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9337 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9338 with ssp_base.
9339 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9340 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9341 with ssp_base.
9342
9343 2018-07-25 Andreas Schwab <schwab@suse.de>
9344
9345 [BZ #23442]
9346 * locale/weightwc.h (findidx): Handle the case where usrc is a
9347 prefix of cp but one character too short.
9348
9349 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9350
9351 * NEWS: Add ISO C threads addition.
9352
9353 2018-07-24 Florian Weimer <fweimer@redhat.com>
9354
9355 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9356 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9357 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9358 4.13.
9359
9360 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9361
9362 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9363 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9364 <sys/prctl.h> and <asm/prctl.h>.
9365 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9366 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9367 and <asm/prctl.h>.
9368 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9369 ARCH_CET_LEGACY_BITMAP.
9370 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9371 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9372 * sysdeps/x86/libc-start.c: Include <startup.h>.
9373
9374 2018-07-24 Florian Weimer <fweimer@redhat.com>
9375
9376 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9377 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9378
9379 2018-07-24 Rical Jasan <rj@2c3t.io>
9380 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9381 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9382
9383 [BZ #14092]
9384 * manual/debug.texi: Update adjacent chapter name.
9385 * manual/probes.texi: Likewise.
9386 * manual/threads.texi (ISO C Threads): New section.
9387 (POSIX Threads): Convert to a section.
9388
9389 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9390 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9391
9392 [BZ# 14092]
9393 * nptl/Makefile (tests): Add new test files.
9394 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9395 * nptl/tst-cnd-basic.c: Likewise.
9396 * nptl/tst-cnd-broadcast.c: Likewise.
9397 * nptl/tst-cnd-timedwait.c: Likewise.
9398 * nptl/tst-mtx-basic.c: Likewise.
9399 * nptl/tst-mtx-recursive.c: Likewise.
9400 * nptl/tst-mtx-timedlock.c: Likewise.
9401 * nptl/tst-mtx-trylock.c: Likewise.
9402 * nptl/tst-thrd-basic.c: Likewise.
9403 * nptl/tst-thrd-detach.c: Likewise.
9404 * nptl/tst-thrd-sleep.c: Likewise.
9405 * nptl/tst-tss-basic.c: Likewise.
9406
9407 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9408
9409 [BZ #14092]
9410 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9411 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9412 symbols.
9413 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9414 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9415 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9416 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9417 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9418 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9419 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9420 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9421 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9422 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9423 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9424 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9426 Likewise.
9427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9428 Likewise.
9429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9430 Likewise.
9431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9432 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9433 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9434 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9435 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9436 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9437 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9438 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9439 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9440 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9441 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9442 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9443 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9444 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9445 Likewise.
9446 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9447 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9448 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9449 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9450 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9451 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9452 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9453 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9454 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9455 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9456 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9457 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9458 ikewise.
9459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9461 Likewise.
9462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9463 Likewise.
9464 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9465 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9466 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9467 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9468 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9469 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9470 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9471 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9472
9473 [BZ #14092]
9474 * conform/data/threads.h-data (thread_local): New macro.
9475 (TSS_DTOR_ITERATIONS): Likewise.
9476 (tss_t): New type.
9477 (tss_dtor_t): Likewise.
9478 (tss_create): New function.
9479 (tss_get): Likewise.
9480 (tss_set): Likewise.
9481 (tss_delete): Likewise.
9482 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9483 tss_get, and tss_set objects.
9484 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9485 * nptl/tss_create.c: New file.
9486 * nptl/tss_delete.c: Likewise.
9487 * nptl/tss_get.c: Likewise.
9488 * nptl/tss_set.c: Likewise.
9489 * sysdeps/nptl/threads.h (thread_local): New define.
9490 (TSS_DTOR_ITERATIONS): Likewise.
9491 (tss_t): New typedef.
9492 (tss_dtor_t): Likewise.
9493 (tss_create): New prototype.
9494 (tss_get): Likewise.
9495 (tss_set): Likewise.
9496 (tss_delete): Likewise.
9497
9498 [BZ #14092]
9499 * conform/data/threads.h-data (cnd_t): New type.
9500 (cnd_init): New function.
9501 (cnd_signal): Likewise.
9502 (cnd_broadcast): Likewise.
9503 (cnd_wait): Likewise.
9504 (cnd_timedwait): Likewise.
9505 (cnd_destroy): Likewise.
9506 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9507 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9508 object.
9509 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9510 * nptl/cnd_broadcast.c: New file.
9511 * nptl/cnd_destroy.c: Likewise.
9512 * nptl/cnd_init.c: Likewise.
9513 * nptl/cnd_signal.c: Likewise.
9514 * nptl/cnd_timedwait.c: Likewise.
9515 * nptl/cnd_wait.c: Likewise.
9516 * sysdeps/nptl/threads.h (cnd_t): New type.
9517 (cnd_init): New prototype.
9518 (cnd_signa): Likewise.
9519 (cnd_broadcast): Likewise.
9520 (cnd_wait): Likewise.
9521 (cnd_timedwait): Likewise.
9522 (cnd_destroy): Likewise.
9523
9524 [BZ #14092]
9525 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9526 (once_flag): New type.
9527 (call_once): New function.
9528 * nptl/Makefile (libpthread-routines): Add call_once object.
9529 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9530 * nptl/call_once.c: New file.
9531 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9532 (once_flag): New type.
9533 (call_once): New prototype.
9534
9535 [BZ #14092]
9536 * conform/data/threads.h-data (mtx_plain): New constant.
9537 (mtx_recursive): Likewise.
9538 (mtx_timed): Likewise.
9539 (mtx_t): New type.
9540 (mtx_init): New function.
9541 (mtx_lock): Likewise.
9542 (mtx_timedlock): Likewise.
9543 (mtx_trylock): Likewise.
9544 (mtx_unlock): Likewise.
9545 (mtx_destroy): Likewise.
9546 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9547 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9548 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9549 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9550 * nptl/mtx_destroy.c: New file.
9551 * nptl/mtx_init.c: Likewise.
9552 * nptl/mtx_lock.c: Likewise.
9553 * nptl/mtx_timedlock.c: Likewise.
9554 * nptl/mtx_trylock.c: Likewise.
9555 * nptl/mtx_unlock.c: Likewise.
9556 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9557 (mtx_recursive): Likewise.
9558 (mtx_timed): Likewise.
9559 (mtx_t): New type.
9560 (mtx_init): New prototype.
9561 (mtx_lock): Likewise.
9562 (mtx_timedlock): Likewise.
9563 (mtx_trylock): Likewise.
9564 (mtx_unlock): Likewise.
9565 (mtx_destroy): Likewise.
9566
9567 [BZ #14092]
9568 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9569 (linknamespace-libs-ISO11): Add libpthread.a.
9570 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9571 functions.
9572 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9573 * nptl/Makefile (headers): Add threads.h.
9574 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9575 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9576 thrd_yield.
9577 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9578 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9579 thrd_join, thrd_sleep, and thrd_yield symbols.
9580 * nptl/descr.h (struct pthread): Add c11 field.
9581 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9582 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9583 routine with expected function prototype.
9584 (__pthread_create_2_1): Add C11 threads check based on attribute
9585 value.
9586 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9587 * nptl/thrd_create.c: New file.
9588 * nptl/thrd_current.c: Likewise.
9589 * nptl/thrd_detach.c: Likewise.
9590 * nptl/thrd_equal.c: Likewise.
9591 * nptl/thrd_exit.c: Likewise.
9592 * nptl/thrd_join.c: Likewise.
9593 * nptl/thrd_priv.h: Likewise.
9594 * nptl/thrd_sleep.c: Likewise.
9595 * nptl/thrd_yield.c: Likewise.
9596 * include/threads.h: Likewise.
9597
9598 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9599
9600 * bits/indirect-return.h: New file.
9601 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9602 * sysdeps/x86/bits/indirect-return.h: Likewise.
9603 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9604 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9605 (swapcontext): Add __INDIRECT_RETURN.
9606 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9607 (prepare_test_buffer): Use it.
9608
9609 2018-07-24 Andreas Schwab <schwab@suse.de>
9610
9611 [BZ #23448]
9612 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9613 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9614
9615 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9616
9617 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9618 Redefine if shadow stack is enabled.
9619 (SYSCALL_ERROR_LABEL): Likewise.
9620 (__vfork): Pop shadow stack and jump back to to caller directly
9621 when shadow stack is in use.
9622 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9623 Redefine if shadow stack is enabled.
9624 (SYSCALL_ERROR_LABEL): Likewise.
9625 (__vfork): Pop shadow stack and jump back to to caller directly
9626 when shadow stack is in use.
9627
9628 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9629
9630 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9631 enabled.
9632 (foo): Likewise.
9633 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9634 (foo): Likewise.
9635
9636 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9637
9638 * scripts/build-many-glibcs.py (Context.checkout): Default
9639 binutils version to 2.31 branch.
9640
9641 2018-07-20 Zong Li <zong@andestech.com>
9642
9643 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9644 URL of gcc's tarball.
9645
9646 2018-07-20 Florian Weimer <fweimer@redhat.com>
9647
9648 [BZ #23396]
9649 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9650 not compare an extra byte after the end of the weights.
9651
9652 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9653
9654 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9655 to 1.
9656 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9657 hidden prototypes.
9658 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9659 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9660 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9661 list of libraries whose stack executability is expected.
9662 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9663 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9664 variable.
9665 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9666 libc.so libpthread.so.
9667
9668 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9669
9670 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9671 SOCK_NONBLOCK.
9672 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9673 and SOCK_NONBLOCK.
9674 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9675 implement __pipe2.
9676 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9677
9678 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9679
9680 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9681 library to improve command line parsing.
9682 (__main__): make schema file as optional parameter (--schema),
9683 defaulting to benchtests/scripts/benchout.schema.json.
9684 (main): move out of the parsing stuff to __main_  and leave it
9685 only as caller of main comparison functions.
9686
9687 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9688
9689 * NEWS: Add a note for Intel CET status.
9690 * manual/install.texi: Likewise.
9691 * INSTALL: Regenerated.
9692
9693 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9694
9695 [BZ #23140]
9696 * localedata/locales/oc_FR (mon): Rename to...
9697 (alt_mon): This, then update October (typo fix).
9698 (mon): New content (genitive case, month names preceded by
9699 "de" or "d’").
9700
9701 [BZ #23422]
9702 * localedata/locales/oc_FR (abday): Update all items.
9703 (day): Update Wednesday and Saturday (typo fixes).
9704 (abmon): Update all items, except May.
9705 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9706 (LC_IDENTIFICATION): Bump the revision number and date.
9707 Keep the "category" entries in alphabetic order.
9708 (LC_ADDRESS): Remove no longer needed comment.
9709 (LC_COLLATE): Use “copy "ca_ES"”.
9710 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9711 "name_mrs".
9712
9713 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9714
9715 * grp/tst_fgetgrent.c: Include <unistd.h>.
9716 (main): Use mkstemp instead of tmpnam.
9717 * io/test-utime.c (main): Likewise.
9718 * posix/annexc.c (macrofile): Change to modifiable array.
9719 (main): Remove macrofile here.
9720 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9721 macrofile here.
9722 (check_header): Do not remove macrofile here.
9723 * posix/bug-getopt1.c: Include <stdlib.h>.
9724 (do_test): Use mkstemp instead of tmpnam.
9725 * posix/bug-getopt2.c: Include <stdlib.h>.
9726 (do_test): Use mkstemp instead of tmpnam.
9727 * posix/bug-getopt3.c: Include <stdlib.h>.
9728 (do_test): Use mkstemp instead of tmpnam.
9729 * posix/bug-getopt4.c: Include <stdlib.h>.
9730 (do_test): Use mkstemp instead of tmpnam.
9731 * posix/bug-getopt5.c: Include <stdlib.h>.
9732 (do_test): Use mkstemp instead of tmpnam.
9733 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9734 (main): Use mkstemp instead of tmpnam.
9735 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9736 (main): Use mkstemp instead of tmpnam.
9737 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9738 (main): use mkstemp instead of tmpnam.
9739 * stdlib/isomac.c (macrofile): Change to modifiable array.
9740 (main): Remove macrofile here.
9741 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9742 macrofile here.
9743 (check_header): Do not remove macrofile here.
9744
9745 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9746
9747 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9748 glibc.tune.x86_shstk.
9749
9750 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9751
9752 * NEWS: Mention --enable-cet.
9753 * manual/install.texi: Document --enable-cet.
9754 * INSTALL: Regenerated.
9755
9756 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9757
9758 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9759 Add _CET_NOTRACK before indirect jump to jump table.
9760
9761 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9762
9763 * sysdeps/i386/i686/multiarch/memset-sse2-rep.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/strcat-sse2.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/strcpy-sse2.S
9776 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9777 to jump table.
9778
9779 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9780
9781 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9782 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9783 to jump table.
9784
9785 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9786
9787 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9788 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9789 to jump table.
9790 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9791
9792 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9793
9794 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9795 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9796 to jump table.
9797
9798 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9799
9800 * sysdeps/i386/i686/multiarch/memset-sse2.S
9801 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9802 to jump table.
9803
9804 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9805
9806 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9807 indirect jump to jump table.
9808
9809 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9810
9811 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9812 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9813 to jump table.
9814 (MEMCPY): Likewise.
9815
9816 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9817
9818 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9819 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9820 to jump table.
9821 (MEMCPY): Likewise.
9822
9823 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9824
9825 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9826 _CET_NOTRACK before indirect jump to jump table.
9827
9828 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9829
9830 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9831 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9832 to jump table.
9833
9834 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9835
9836 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9837 indirect jump to jump table.
9838
9839 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9840
9841 [BZ #22241]
9842 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9843 (LOCALES): Likewise.
9844 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9845 * localedata/locales/sah_RU: New file.
9846 * localedata/sah_RU.UTF-8.in: New file.
9847
9848 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9849
9850 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9851 "sysdep.h".
9852 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9853 _CET_ENDBR to indirect jump targets and adjust jump destination
9854 for _CET_ENDBR.
9855 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9856 "sysdep.h".
9857 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9858 _CET_ENDBR to indirect jump targets and adjust jump destination
9859 for _CET_ENDBR.
9860 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9861 "sysdep.h".
9862 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9863 _CET_ENDBR to indirect jump targets and adjust jump destination
9864 for _CET_ENDBR.
9865
9866 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9867
9868 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9869 _CET_ENDBR.
9870
9871 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9872
9873 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9874 _CET_ENDBR.
9875 (_dl_tlsdesc_undefweak): Likewise.
9876 (_dl_tlsdesc_dynamic): Likewise.
9877 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9878 (_dl_tlsdesc_resolve_rel): Likewise.
9879 (_dl_tlsdesc_resolve_rela): Likewise.
9880 (_dl_tlsdesc_resolve_hold): Likewise.
9881 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9882 (_dl_tlsdesc_undefweak): Likewise.
9883 (_dl_tlsdesc_dynamic): Likewise.
9884 (_dl_tlsdesc_resolve_rela): Likewise.
9885 (_dl_tlsdesc_resolve_hold): Likewise.
9886
9887 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9888
9889 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9890 (_fini): Likewise.
9891 * sysdeps/x86_64/crti.S (_init): Likewise.
9892 (_fini): Likewise.
9893
9894 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9895
9896 [BZ #23140]
9897 * localedata/locales/os_RU (mon): Rename to...
9898 (alt_mon): This.
9899 (mon): Import from CLDR (genitive case).
9900
9901 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9902
9903 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9904 cet-tunables.h> when CET is enabled.
9905
9906 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9907
9908 [BZ #21598]
9909 * configure.ac: Add --enable-cet.
9910 * configure: Regenerated.
9911 * elf/Makefille (all-built-dso): Add a comment.
9912 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9913 Include <dl-prop.h>.
9914 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9915 segment.
9916 * elf/dl-open.c: Include <dl-prop.h>.
9917 (dl_open_worker): Call _dl_open_check.
9918 * elf/rtld.c: Include <dl-prop.h>.
9919 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9920 _rtld_main_check.
9921 * sysdeps/generic/dl-prop.h: New file.
9922 * sysdeps/i386/dl-cet.c: Likewise.
9923 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9924 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9925 * sysdeps/x86/cet-tunables.h: Likewise.
9926 * sysdeps/x86/check-cet.awk: Likewise.
9927 * sysdeps/x86/configure: Likewise.
9928 * sysdeps/x86/configure.ac: Likewise.
9929 * sysdeps/x86/dl-cet.c: Likewise.
9930 * sysdeps/x86/dl-procruntime.c: Likewise.
9931 * sysdeps/x86/dl-prop.h: Likewise.
9932 * sysdeps/x86/libc-start.h: Likewise.
9933 * sysdeps/x86/link_map.h: Likewise.
9934 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9935 _CET_ENDBR.
9936 (_dl_runtime_profile): Likewise.
9937 (_dl_runtime_resolve_shstk): New.
9938 (_dl_runtime_profile_shstk): Likewise.
9939 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9940 if CET is enabled.
9941 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9942 (CFLAGS-.os): Likewise.
9943 (CFLAGS-.op): Likewise.
9944 (CFLAGS-.oS): Likewise.
9945 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9946 is enabled.
9947 (tests-special): Add $(objpfx)check-cet.out.
9948 (cet-built-dso): New.
9949 (+$(cet-built-dso:=.note)): Likewise.
9950 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9951 ($(objpfx)check-cet.out): New.
9952 (generated): Add check-cet.out.
9953 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9954 <cet-tunables.h>.
9955 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9956 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9957 (init_cpu_features): Call get_cet_status to check CET status
9958 and update dl_x86_feature_1 with CET status. Call
9959 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9960 (set_x86_shstk). Disable and lock CET in libc.a.
9961 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9962 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9963 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9964 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9965 (_CET_ENDBR): Define if not defined.
9966 (ENTRY): Add _CET_ENDBR.
9967 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9968 x86_shstk.
9969 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9970 _CET_ENDBR.
9971 (_dl_runtime_profile): Likewise.
9972
9973 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9974
9975 [BZ #21895]
9976 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9977 restore r2 on longjmp.
9978 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9979 test list.
9980 Added rules to build test tst-setjmp-bug21895-static.
9981 Added module setjmp-bug21895 and rules to build a shared object from it.
9982 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9983 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9984
9985 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9986
9987 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9988 * benchtests/bench-strstr.c: Likewise.
9989 * string/memmem.c (FASTSEARCH): Define.
9990 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9991 Add support for FASTSEARCH.
9992 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9993 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9994 (FASTSEARCH): Define.
9995 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9996 * string/test-strstr.c: Likewise.
9997
9998 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9999
10000 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
10001 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
10002
10003 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10004 H.J. Lu <hongjiu.lu@intel.com>
10005
10006 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
10007 (__longjmp): Restore shadow stack pointer if shadow stack is
10008 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10009 isn't defined for __longjmp_cancel.
10010 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
10011 (_setjmp): Save shadow stack pointer if shadow stack is enabled
10012 and SHADOW_STACK_POINTER_OFFSET is defined.
10013 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
10014 (setjmp): Save shadow stack pointer if shadow stack is enabled
10015 and SHADOW_STACK_POINTER_OFFSET is defined.
10016 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
10017 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10018 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10019 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
10020 <jmp_buf-ssp.h>.
10021 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10022 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10023 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
10024 Remove jmp_buf-ssp.sym.
10025 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10026 <jmp_buf-ssp.h>.
10027 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10028 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10029 * sysdeps/x86/Makefile (gen-as-const-headers): Add
10030 jmp_buf-ssp.sym.
10031 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10032 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10033 (__longjmp): Restore shadow stack pointer if shadow stack is
10034 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10035 isn't defined for __longjmp_cancel.
10036 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10037 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10038 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10039
10040 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
10041
10042 [BZ #22563]
10043 * nptl/pthread_create.c: Include <tls-setup.h>.
10044 (__pthread_create_2_1): Call tls_setup_tcbhead.
10045 * sysdeps/generic/tls-setup.h: New file.
10046 * sysdeps/x86/nptl/tls-setup.h: Likewise.
10047 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10048 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10049 Likewise.
10050 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10051 to feature_1.
10052 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10053 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10054 (X86_FEATURE_1_SHSTK): Likewise.
10055 (CET_ENABLED): Likewise.
10056 (IBT_ENABLED): Likewise.
10057 (SHSTK_ENABLED): Likewise.
10058
10059 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
10060
10061 [BZ #23208]
10062 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10063 (LOCALES): Likewise.
10064 * localedata/dsb_DE.UTF-8.in: New file.
10065 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10066
10067 2018-07-12 Florian Weimer <fweimer@redhat.com>
10068
10069 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10070 __mprotect, not mprotect.
10071
10072 2018-07-11 Florian Weimer <fweimer@redhat.com>
10073
10074 * io/Makefile (headers): Add bits/statx.h.
10075
10076 2018-07-10 Mike FABIAN <mfabian@redhat.com>
10077
10078 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10079 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10080 and headers.
10081 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10082 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10083 for utf8_gen.py
10084
10085 2018-07-10 Florian Weimer <fweimer@redhat.com>
10086
10087 * io/Makefile (routines): Add statx.
10088 (tests-internal): Add tst-statx.
10089 * io/Versions (GLIBC_2.28): Export statx.
10090 * io/bits/statx.h: New file.
10091 * io/sys/stat.h [__USE_GNU]: Include it.
10092 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10093 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10094 Define.
10095 * io/statx.c: New file.
10096 * io/statx_generic.: Likewise.
10097 * io/tst-statx.: Likewise.
10098 * include/bits/statx.h: Likewise.
10099 * sysdeps/unix/sysv/linux/kernel-features.h
10100 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10101 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10102 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10103 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10104 Undefine.
10105 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10106 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10107 * sysdeps/unix/sysv/linux/statx.c: New file.
10108 * manual/filesys.texi: Note that statx is undocumented.
10109 * sysdeps/**/libc*.abilist: Update.
10110
10111 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10112
10113 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10114 a kernel issue which lead to test failure in some cases.
10115
10116 2018-07-10 Florian Weimer <fweimer@redhat.com>
10117
10118 [BZ #23036]
10119 * posix/regexec.c (check_node_accept_bytes): When comparing
10120 weights, do not compare an extra byte after the end of the
10121 weights.
10122
10123 2018-07-10 Florian Weimer <fweimer@redhat.com>
10124
10125 * libio/readline.c: Fix copyright year.
10126 * libio/tst-readline.c Likewise.
10127 * nss/tst-nss-files-hosts-getent.c: Likewise.
10128
10129 2018-07-06 Florian Weimer <fweimer@redhat.com>
10130
10131 [BZ #18991]
10132 * nss/nss_files/files-XXX.c (internal_getent): Use
10133 __libc_readline_unlocked. Seek back to the start of the line if
10134 parsing failes with ERANGE.
10135 (get_contents_ret, get_contents): Remove.
10136 * nss/tst-nss-files-hosts-getent.c: New file.
10137 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10138 (tst-nss-files-hosts-getent): Link with -ldl.
10139
10140 2018-07-06 Florian Weimer <fweimer@redhat.com>
10141
10142 * include/stdio.h (__libc_readline_unlocked): Declare.
10143 (__ftello64, __fseeko64): Declare aliases.
10144 * libio/readline.c: New file.
10145 * libio/tst-readline.c: Likewise.
10146 (routines): Add readline.
10147 (tests-internal): Add tst-readlime.
10148 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10149 __libc_readline_unlocked.
10150 * libio/fseeko.c (__fseeko): Rename from fseeko.
10151 (fseeko): Add alias.
10152 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10153 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10154 (fseeko64): Add alias.
10155 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10156 * libio/ftello64.c (__ftello64): Rename from ftello64.
10157 (ftello64): Add alias.
10158
10159 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10160
10161 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10162 HWCAP_ATOMICS.
10163
10164 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10165
10166 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10167 Use dl_hwcap without masking.
10168 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10169 Remove HWCAP_CPUID.
10170
10171 2018-07-06 Florian Weimer <fweimer@redhat.com>
10172
10173 * conform/conformtest.pl (checknamespace): Escape literal braces
10174 in regular expressions.
10175
10176 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10177
10178 * sysdeps/x86/cpu-features.c (get_common_indeces):
10179 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10180 * sysdeps/x86/cpu-features.c (init_cpu_features):
10181 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10182
10183 2018-07-05 Florian Weimer <fweimer@redhat.com>
10184
10185 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10186 protector.
10187 (CFLAGS-elf-init.oS): Likewise.
10188
10189 2018-07-05 Florian Weimer <fweimer@redhat.com>
10190 Carlos O'Donell <carlos@redhat.com>
10191
10192 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10193 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10194 with stack protector enabled because there is no risk of infinite
10195 recursion.
10196
10197 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10198
10199 [BZ #19818]
10200 [BZ #23307]
10201 * libc-abis (ABSOLUTE): New ABI.
10202 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10203 * NEWS: Mention the new ABI.
10204
10205 2018-07-05 Florian Weimer <fweimer@redhat.com>
10206
10207 [BZ # 17662]
10208 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10209 (RENAME_WHITEOUT): Define.
10210 [__USE_GNU] (renameat2): Declare.
10211 * stdio-common/Makefile (routines): Add renameat2.
10212 (tests): Add tst-renameat2.
10213 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10214 * stdio-common/renameat2.c: New file.
10215 * stdio-common/tst-renameat2.c: Likewise.
10216 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10217 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10218 undocumented.
10219 * sysdeps/unix/sysv/linux/kernel-features.h
10220 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10221 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10222 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10223 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10224 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10225 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10226 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10227 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10228 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10229 * include/stdio.h (__renameat): Add alias for renameat.
10230 * stdio-common/renameat.c (__renameat): Rename from renameat.
10231 Add hidden definition and alias.
10232 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10233 * sysdeps/mach/hurd/renameat.c: Likewise.
10234 * sysdeps/**/libc*.abilist: Add renameat2.
10235
10236 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10237
10238 * posix/bug-regex33.c: Fix build after regex sync.
10239
10240 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10241
10242 [BZ #23164]
10243 * localedata/tst-langinfo-setlocale.c: New file.
10244 * localedata/tst-langinfo-setlocale-static.c: New file.
10245 * localedata/tst-langinfo-newlocale.c: New file.
10246 * localedata/tst-langinfo-newlocale-static.c: New file.
10247 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10248 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10249 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10250 (tests-static): Remove tst-langinfo-static. Add
10251 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10252 (tests-special): Remove $(objpfx)tst-langinfo.out,
10253 $(objpfx)tst-langinfo-static.out. Add
10254 $(objpfx)tst-langinfo-setlocale.out,
10255 $(objpfx)tst-langinfo-newlocale.out,
10256 $(objpfx)tst-langinfo-setlocale-static.out,
10257 $(objpfx)tst-langinfo-newlocale-static.out.
10258 ($(objpfx)tst-langinfo.out): Remove.
10259 ($(objpfx)tst-langinfo-static.out): Remove.
10260 ($(objpfx)tst-langinfo-newlocale.out): New target.
10261 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10262 (test-xfail-tst-langinfo-newlocale-static): Add.
10263 ($(objpfx)tst-langinfo-setlocale.out): New target.
10264 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10265 * localedata/tst-langinfo.c: Call test_locale.
10266 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10267 data.
10268
10269 2018-07-04 Florian Weimer <fweimer@redhat.com>
10270
10271 testrun.sh: Implement --tool=strace, --tool=valgrind
10272 * Makefile (testrun-script): Define variable.
10273 (testrun.sh): Use variable.
10274 * manual/install.texi (Tools for Compilation): make 4.0 or later
10275 is required.
10276 * configure.ac: Check for make 4.0 or later.
10277 * INSTALL: Regenerate.
10278 * configure: Likewise.
10279
10280 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10281
10282 [BZ #23233]
10283 [BZ #21163]
10284 [BZ #18986]
10285 [BZ #13762]
10286 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10287 * posix/PCRE.tests: Remove invalid test.
10288 * posix/bug-regex28.c: Fix expected values for used syntax.
10289 * posix/bug-regex37.c: New file.
10290 * posix/bug-regex38.c: Likewise.
10291 * posix/regcomp.c: Sync with gnulib.
10292 * posix/regex.c: Likewise.
10293 * posix/regex.h: Likewise.
10294 * posix/regex_internal.c: Likewise.
10295 * posix/regex_internal.h: Likewise.
10296 * posix/regexec.c: Likewise.
10297
10298 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10299
10300 [BZ #23308]
10301 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10302 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10303 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10304 * localedata/unicode-gen/PropList.txt: likewise.
10305 * localedata/unicode-gen/UnicodeData.txt: likewise.
10306 * localedata/charmaps/UTF-8: Regenerate.
10307 * localedata/locales/i18n_ctype: likewise.
10308 * localedata/locales/tr_TR: likewise.
10309 * localedata/locales/translit_circle: likewise.
10310 * localedata/locales/translit_cjk_compat: likewise.
10311 * localedata/locales/translit_combining: likewise.
10312 * localedata/locales/translit_compat: likewise.
10313 * localedata/locales/translit_font: likewise.
10314 * localedata/locales/translit_fraction: likewise.
10315
10316 2018-07-03 Florian Weimer <fweimer@redhat.com>
10317
10318 [BZ #23363]
10319 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10320 * stdio-common/tst-printf.sh: Adjust expected output.
10321 * LICENSES: Update.
10322
10323 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10324
10325 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10326 symbol.
10327
10328 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10329
10330 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10331 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10332 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10333 * stdio-common/tst-printfsz-islongdouble.c: New file.
10334 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10335 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10336 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10337 [subdir == stdio-common] (tests-internal): Add
10338 test-printf-size-ieee128, and test-printf-size-ibm128.
10339 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10340 (CFLAGS-test-printf-size-ibm128.c): New variables.
10341 [subdir == stdio-common] (tests-special): Add
10342 $(objpfx)test-printf-size-ieee128.out and
10343 $(objpfx)test-printf-size-ibm128.out.
10344 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10345 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10346 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10347 __printf_sizeieee128.
10348 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10349 New file.
10350 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10351 Likewise.
10352 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10353 Likewise.
10354
10355 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10356
10357 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10358 (exp2f_inline): Likewise.
10359 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10360 (__math_uflowf): Likewise.
10361 (__math_may_uflowf): Likewise.
10362 (__math_divzerof): Likewise.
10363 (__math_invalidf): Likewise.
10364 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10365 (__math_oflowf): Likewise.
10366 (__math_uflowf): Likewise.
10367 (__math_may_uflowf): Likewise.
10368 (__math_divzerof): Likewise.
10369 (__math_invalidf): Likewise.
10370
10371 2018-06-29 DJ Delorie <dj@redhat.com>
10372 Carlos O'Donell <carlos@redhat.com>
10373
10374 [BZ #23329]
10375 * include/libc-symbols.h: Comment the freeres framework.
10376 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10377 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10378 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10379 * dlfcn/dlerror.c: Include libc-symbols.h
10380 (__dlerror_main_freeres): New function.
10381 * dlfcn/dlfreeres.c: New file.
10382 * dlfcn/sdlfreeres.c: New file.
10383 * include/dlfcn.h: Declare __dlerror_main_freeres.
10384 * malloc/set-freeres.c: Declare __libdl_freeres, and
10385 __libpthread_freeres.
10386 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10387 the releavant libraries are loaded.
10388 * malloc/thread-freeres.c: Add comments.
10389 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10390 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10391 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10392 (__free_stacks): Rename to...
10393 (free_stacks): ...this. Mark static.
10394 (queue_stack): Call free_stacks.
10395 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10396 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10397 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10398 ptr_freeres element from struct.
10399 (pthread_functions): Remove .ptr_freeres from struct initializer.
10400 [SHARED] (nptl_freeres): Remove.
10401 * nptl/nptlfreeres.c: New file.
10402 * nptl/pthreadP.h
10403 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10404 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10405 attribute_hidden.
10406 (__free_stacks): Rename to...
10407 (__nptl_stacks_freeres): ...this.
10408 (__shm_directory_freeres): Declare.
10409 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10410 (__nptl_unwind_freeres): ...this.
10411 * resolv/res-close.c: Add comment.
10412 * resolv/resolv_conf.c: Include libc-symbols.h.
10413 * string/strerror_l.c: Include libc-symbols.h.
10414 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10415 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10416 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10417 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10418
10419 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10420
10421 * stdlib/tst-strfmon_l.c: Add tests for long double.
10422
10423 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10424
10425 [BZ #23208]
10426 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10427 * localedata/locales/dsb_DE: New file.
10428
10429 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10430
10431 [BZ #23140]
10432 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10433 genitive case).
10434 (alt_mon): New entry, import from CLDR (nominative case).
10435
10436 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10437
10438 [BZ #22996]
10439 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10440
10441 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10442
10443 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10444 Use vector registers.
10445
10446 * sysdeps/aarch64/multiarch/memmove_falkor.S
10447 (__memcpy_falkor): Use vector registers.
10448
10449 2018-06-29 Martin Sebor <msebor@redhat.com>
10450
10451 * manual/stdio.texi (Customizing Printf): Mention interaction
10452 with GCC built-ins.
10453
10454 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10455
10456 [BZ #23307]
10457 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10458 `st_value' is 0 if `st_shndx' is SHN_ABS.
10459 * elf/tst-absolute-zero.c: New file.
10460 * elf/tst-absolute-zero-lib.c: New file.
10461 * elf/tst-absolute-zero-lib.lds: New file.
10462 * elf/Makefile (tests): Add `tst-absolute-zero'.
10463 (modules-names): Add `tst-absolute-zero-lib'.
10464 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10465 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10466 ($(objpfx)tst-absolute-zero: New dependency.
10467
10468 2018-06-29 Zack Weinberg <zackw@panix.com>
10469
10470 * configure.ac: New command-line option --disable-crypt.
10471 Force --disable-nss-crypt when --disable-crypt is given, with a
10472 warning if it was explicitly enabled.
10473 * configure: Regenerate.
10474 * config.make.in: New boolean substitution variable $(build-crypt).
10475 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10476 when $(build-crypt).
10477 * manual/install.texi: Document --disable-crypt.
10478 * INSTALL: Regenerate.
10479
10480 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10481 which is never set.
10482 * conform/Makefile: Only include libcrypt.a in
10483 linknamespace-libs-xsi and linknamespace-libs-XPG4
10484 when $(build-crypt).
10485 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10486 USE_CRYPT to 1 when $(build-crypt).
10487 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10488 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10489 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10490
10491 2018-06-29 Zack Weinberg <zackw@panix.com>
10492
10493 * crypt/crypt.h, posix/unistd.h: Update comments and
10494 prototypes for crypt and crypt_r.
10495
10496 * manual/crypt.texi (Cryptographic Functions): New initial
10497 exposition.
10498 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10499 (Unpredictable Bytes): Improve initial exposition. Clarify error
10500 behavior of getentropy and getrandom.
10501 * manual/examples/genpass.c: Generate a salt using getentropy
10502 instead of the current time. Use hash $5$ (SHA-2-256).
10503 * manual/examples/testpass.c: Demonstrate validation against
10504 hashes generated with three different one-way functions.
10505
10506 * manual/intro.texi: crypt.texi does not need an overview
10507 anymore.
10508
10509 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10510 * manual/terminal.texi: Consistently refer to "passphrases"
10511 * instead of "passwords", and to the "user database" instead
10512 * of the "password database".
10513 * manual/users.texi: Similarly. Add notes about how actual
10514 passphrase hashes are now stored in the shadow database.
10515 Remove 20-year-old junk todo note.
10516
10517 2018-06-29 Zack Weinberg <zackw@panix.com>
10518
10519 * manual/crypt.texi: Use a normal top-level @node declaration.
10520 Move most of the introductory text to the 'crypt' section.
10521 Move the example programs below the @deftypefun for 'crypt_r'.
10522 Move the 'getpass' section...
10523 * manual/terminal.texi: ...here.
10524
10525 2018-06-29 Zack Weinberg <zackw@panix.com>
10526 Florian Weimer <fweimer@redhat.com>
10527
10528 * posix/unistd.h: Do not declare encrypt.
10529 (_XOPEN_CRYPT): Remove macro definition.
10530 (crypt): Declare only for _USE_MISC.
10531 * stdlib/stdlib.h: Do not declare setkey.
10532 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10533 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10534
10535 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10536 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10537 into compat symbols. Don't define initial_perm if it's not
10538 going to be used.
10539 * crypt/cert.c: Link explicitly with the expected versions for
10540 setkey and encrypt. If they are not available at all, mark
10541 the test as unsupported.
10542
10543 * sunrpc/des_crypt.c: Unconditionally block linkage with
10544 cbc_crypt and ecb_crypt for new binaries.
10545 * sunrpc/des_soft.c: Unconditionally block linkage with
10546 des_setparity for new binaries.
10547
10548 * manual/crypt.texi: Remove the entire "DES Encryption"
10549 section. Also remove the paragraph talking about FIPS 140-2
10550 from the introduction.
10551 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10552 of libgcrypt for "real" encryption, not DES.
10553 * manual/conf.texi (Constants for Sysconf): Mention that
10554 _XOPEN_CRYPT is no longer impelemented.
10555
10556 * conform/data/unistd.h-data: Remove crypt function declaration.
10557
10558 2018-06-29 Florian Weimer <fweimer@redhat.com>
10559
10560 [BZ #23351]
10561 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10562 (disallow_malloc_check): Remove variable.
10563 (__malloc_check_init): Adjust.
10564 (malloc_set_state): Update comment.
10565 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10566 declarations.
10567
10568 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10569
10570 [BZ #23140]
10571 * localedata/locales/ast_ES (mon): Rename to...
10572 (alt_mon): This.
10573 (mon): Import from CLDR (genitive case).
10574
10575 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10576 Jakub Sitnicki <jkbs@redhat.com>
10577
10578 [BZ #21812]
10579 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10580 on NLM_F_DUMP_INTR.
10581
10582 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10583
10584 * manual/llio.texi: Remove spurious space.
10585
10586 2018-06-28 Florian Weimer <fweimer@redhat.com>
10587
10588 [BZ #23349]
10589 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10590 _STRUCT_TIMESPEC.
10591
10592 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10593
10594 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10595 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10596 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10597 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10598 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10599 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10600 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10601
10602 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10603
10604 [BZ #23266]
10605 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10606 Copy and null-terminate entries that are not terminated, in
10607 addition to empty ones.
10608
10609 2018-06-27 Florian Weimer <fweimer@redhat.com>
10610
10611 [BZ #18023]
10612 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10613 (extend_alloca_account): Remove.
10614 * manual/stdio.texi (Variable Arguments Output): Update comment.
10615
10616 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10617
10618 * nptl/sockperf.c: Remove file.
10619
10620 2018-06-27 Florian Weimer <fweimer@redhat.com>
10621
10622 [BZ #18023]
10623 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10624 scratch_buffer instead of extend_alloca.
10625
10626 2018-06-27 Florian Weimer <fweimer@redhat.com>
10627
10628 [BZ #18023]
10629 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10630 scratch_buffer instead of extend_alloca. Update comments.
10631
10632 2018-06-27 Florian Weimer <fweimer@redhat.com>
10633
10634 [BZ #18023]
10635 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10636 instead of extend_alloca.
10637
10638 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10639
10640 [BZ #13888]
10641 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10642 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10643 /tmp.
10644 * scripts/test-installation.pl: Put temporary files in build
10645 directory, not /tmp.
10646 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10647 (CFLAGS-bug4.c): Likewise.
10648 (CFLAGS-bug5.c): Likewise.
10649 (CFLAGS-test-fseek.c): Likewise.
10650 (CFLAGS-test-popen.c): Likewise.
10651 (CFLAGS-test_rdwr.c): Likewise.
10652 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10653 /tmp.
10654 * stdio-common/bug4.c (main): Likewise.
10655 * stdio-common/bug5.c (main): Likewise.
10656 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10657 * stdio-common/test-popen.c (do_test): Likewise.
10658 * stdio-common/test_rdwr.c (main): Likewise.
10659
10660 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10661
10662 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10663 (sem_open): Set sem.newsem.pad to zero for valgrind.
10664
10665 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10666
10667 [BZ #20251]
10668 * NEWS: Mention fcntl64 addition.
10669 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10670 * login/utmp_file.c: Likewise.
10671 * sysdeps/posix/fdopendir.c: Likewise.
10672 * sysdeps/posix/opendir.c: Likewise.
10673 * sysdeps/unix/pt-fcntl.c: Likewise.
10674 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10675 __fcntl64_nocancel_adjusted): New prototype.
10676 (__fcntl_nocancel_adjusted): Remove prototype.
10677 * io/Makefile (routines): Add fcntl64.
10678 (CFLAGS-fcntl64.c): New rule.
10679 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10680 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10681 * io/fcntl.h (fcntl64): Add prototype and redirect if
10682 __USE_FILE_OFFSET64 is defined.
10683 * io/fcntl64.c: New file.
10684 * manual/llio.text: Add a note for which commands fcntl acts a
10685 cancellation point.
10686 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10687 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10688 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10689 New symbols.
10690 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10691 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10692 non-LFS case.
10693 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10694 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10695 to __fcntl64_nocancel.
10696 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10697 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10698 to __fcntl64_nocancel.
10699 * sysdeps/generic/not-cancel.h: Likewise.
10700 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10701 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10702 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10703 (fcntl64): New symbol.
10704 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10705 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10706 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10709 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10710 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10711 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10712 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10713 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10714 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10715 fcntl64): Likewise.
10716 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10717 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10718 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10719 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10720 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10721 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10722 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10723 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10724 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10726 Likewise.
10727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10728 Likewise.
10729 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10730 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10731 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10732
10733 2018-06-26 Florian Weimer <fweimer@redhat.com>
10734
10735 Run thread shutdown functions in an explicit order.
10736 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10737 definition.
10738 (__libc_thread_freeres): Call thread shutdown functions
10739 explicitly.
10740 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10741 * include/string.h (__strerror_thread_freeres): Declare.
10742 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10743 arena_thread_freeres. No longer static. Remove thread shutdown
10744 hook registration.
10745 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10746 Declare.
10747 * resolv/res-close.c (__res_thread_freeres): Renamed from
10748 res_thread_freeres. No longer static. Remove thread shutdown
10749 hook registration.
10750 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10751 * resolv/resolv_conf.c (freeres): Remove incorrect section
10752 attribute and use libc_freeres_fn.
10753 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10754 strerror_thread_freeres. No longer static. Remove thread
10755 shutdown hook registration.
10756 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10757 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10758 shutdown hook registration.
10759 * Makerules (shlib.lds): Do not provide section boundary symbols
10760 for __libc_thread_subfreeres.
10761 * manual/memory.texi (Basic Allocation): Update comment.
10762
10763 2018-06-26 Florian Weimer <fweimer@redhat.com>
10764
10765 Remove always-defined _RPC_THREAD_SAFE_ macro.
10766 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10767 Do not define _RPC_THREAD_SAFE_.
10768 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10769 conditional.
10770 * sunrpc/clnt_perr.c: Likewise.
10771 * sunrpc/clnt_raw.c: Likewise.
10772 * sunrpc/clnt_simp.c: Likewise.
10773 * sunrpc/key_call.c: Likewise.
10774 * sunrpc/rpc_common.c: Likewise.
10775 * sunrpc/rpc_main.c: Likewise.
10776 * sunrpc/rpc_thread.c: Likewise.
10777 * sunrpc/svc.c: Likewise.
10778 * sunrpc/svc_raw.c: Likewise.
10779 * sunrpc/svc_simple.c: Likewise.
10780 * sumrpc/svcauth_des.c: Likewise.
10781
10782 2018-06-26 Florian Weimer <fweimer@redhat.com>
10783
10784 * libio/Makefile (tests-internal): Add tst-vtables,
10785 tst-vtables-interposed.
10786 * libio/tst-vtables.c: New file.
10787 * libio/tst-vtables-common.c: Likewise.
10788 * libio/tst-vtables-interposed.c: Likewise.
10789
10790 2018-06-26 Florian Weimer <fweimer@redhat.com>
10791
10792 * support/support_test_main.c (support_test_main): Only call
10793 setvbuf if not disables.
10794 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10795 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10796
10797 2018-06-26 Florian Weimer <fweimer@redhat.com>
10798
10799 [BZ #23313]
10800 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10801
10802 2018-06-25 Florian Weimer <fweimer@redhat.com>
10803
10804 [BZ #18023]
10805 * nss/nss_files/files-initgroups.c (_nss_files_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/getent.c (initgroups_keys): Use dynarray instead of
10812 extend_alloca.
10813
10814 2018-06-25 Florian Weimer <fweimer@redhat.com>
10815
10816 [BZ #18023]
10817 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10818 Use struct scratch_buffer instead of extend_alloca.
10819
10820 2018-06-25 Florian Weimer <fweimer@redhat.com>
10821
10822 [BZ #18023]
10823 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10824 back to malloc directly, without stack allocations.
10825
10826 2018-06-25 Florian Weimer <fweimer@redhat.com>
10827
10828 [BZ #18023]
10829 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10830 of extend_alloca.
10831
10832 2018-06-25 Florian Weimer <fweimer@redhat.com>
10833
10834 [BZ #18023]
10835 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10836 of extend_alloca.
10837 * nscd/hstcache.c (addhstbyX): Likewise.
10838 * nscd/pwdcache.c (addpwbyX): Likewise.
10839 * nscd/servicescache.c (addservbyX): Likewise.
10840
10841 2018-06-25 Florian Weimer <fweimer@redhat.com>
10842
10843 [BZ #18023]
10844 * nscd/connections.c (read_cmdline): New function.
10845 (restart): Use it. Update comment.
10846
10847 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10848
10849 [BZ #23140]
10850 * localedata/locales/csb_PL (mon): Rename to...
10851 (alt_mon): This.
10852 (abmon): Rename to...
10853 (ab_alt_mon): This.
10854 (mon): Add with proper genitive forms, copy from Wikipedia.
10855 (abmon): Likewise.
10856
10857 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10858
10859 [BZ #19485]
10860 * localedata/locales/csb_PL (mon): Fix typos:
10861 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10862 (yesstr): Add, value is "jo".
10863 (nostr): Add, value is "nié".
10864
10865 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10866
10867 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10868 all log1p and significand functions on m680x0.
10869 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10870 of s_significand.c..
10871 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10872 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10873 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10874 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10875 s_log1p.c and include it..
10876
10877 2018-06-21 Vincent Chen <vincentc@andestech.com>
10878
10879 * elf/elf.h (R_NDS32_NONE): New define.
10880 (R_NDS32_32_RELA): Likewise.
10881 (R_NDS32_COPY): Likewise.
10882 (R_NDS32_GLOB_DAT): Likewise.
10883 (R_NDS32_JUMP_SLOT): Likewise.
10884 (R_NDS32_RELATIVE): Likewise.
10885 (R_NDS32_TLS_TPOFF): Likewise.
10886 (R_NDS32_TLS_DESC): Likewise.
10887
10888 2018-06-21 Mark Wielaard <mark@klomp.org>
10889
10890 * elf/elf.h (R_BPF_MAP_FD): Removed.
10891 (R_BPF_64_64, R_BPF_64_32): New.
10892
10893 2018-06-21 Florian Weimer <fweimer@redhat.com>
10894
10895 [BZ #23253]
10896 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10897 Renamed from libc_feholdsetround_ctx.
10898 (default_libc_feresetround_ctx): Renamed from
10899 libc_feresetround_ctx.
10900 (default_libc_feholdsetround_noex_ctx): Renamed from
10901 libc_feholdsetround_noex_ctx.
10902 (default_libc_feresetround_noex_ctx): Renamed from
10903 libc_feresetround_noex_ctx.
10904 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10905 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10906 forwardning to the old implementations under the new names.
10907 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10908 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10909 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10910 (libc_feresetround_ctx): Forward to default implements for i386
10911 and MATH_SET_BOTH_ROUNDING_MODES.
10912 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10913 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10914
10915 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10916
10917 * string/tst-cmp.c: Include <libc-diag.h>.
10918 (strncmp_max): Disable -Wstringop-overflow= around call to
10919 strncmp.
10920 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10921 strncasecmp.
10922
10923 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10924 (main): Disable -Wunused-value around call to strpbrk.
10925 * string/bug-strspn1.c: Include <libc-diag.h>.
10926 (main): Disable -Wunused-value around call to strspn.
10927
10928 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10929 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10930
10931 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10932 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10933
10934 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10935
10936 * math/Makefile (libm-calls): Move s_significandF to...
10937 (gen-libm-calls): ... here.
10938 * math/s_significand_template.c: New file.
10939 * math/s_significand.c: Removed.
10940 * math/s_significandf.c: Removed.
10941 * math/s_significandl.c: Removed.
10942 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10943 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10944
10945 * math/e_exp2_template.c (declare_mgen_finite_alias,
10946 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10947 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10948 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10949
10950 2018-06-20 Florian Weimer <fweimer@redhat.com>
10951
10952 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10953
10954 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10955
10956 [BZ #23280]
10957 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10958 floating-point number to strtod functions rather than possibly
10959 negating result of those functions.
10960 * stdio-common/tst-scanf-round.c: New file.
10961 * stdio-common/Makefile (tests): Add tst-scanf-round.
10962 ($(objpfx)tst-scanf-round): Depend on $(libm).
10963
10964 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10965
10966 * sysdeps/mach/hurd/localplt.data: Move to...
10967 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10968 R_386_GLOB_DAT like on Linux i386.
10969
10970 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10971
10972 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10973 (SHM_STAT_ANY): New macro.
10974 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10975 (SHM_STAT_ANY): Likewise.
10976 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10977 (SHM_STAT_ANY): Likewise.
10978 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10979 (SHM_STAT_ANY): Likewise.
10980 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10981 (SHM_STAT_ANY): Likewise.
10982 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10983 (SHM_STAT_ANY): Likewise.
10984 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10985 (SHM_STAT_ANY): Likewise.
10986 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10987 (SHM_STAT_ANY): Likewise.
10988 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10989 (SHM_STAT_ANY): Likewise.
10990 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10991 (SHM_STAT_ANY): Likewise.
10992 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10993 (SHM_STAT_ANY): Likewise.
10994 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10995 (SHM_STAT_ANY): Likewise.
10996
10997 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10998 (SEM_STAT_ANY): New macro.
10999 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
11000 (SEM_STAT_ANY): Likewise.
11001 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
11002 (SEM_STAT_ANY): Likewise.
11003 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
11004 (SEM_STAT_ANY): Likewise.
11005 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
11006 (SEM_STAT_ANY): Likewise.
11007 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
11008 (SEM_STAT_ANY): Likewise.
11009 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
11010 (SEM_STAT_ANY): Likewise.
11011 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
11012 (SEM_STAT_ANY): Likewise.
11013 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
11014 (SEM_STAT_ANY): Likewise.
11015 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
11016 (SEM_STAT_ANY): Likewise.
11017
11018 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
11019 (MSG_STAT_ANY): New macro.
11020 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
11021 (MSG_STAT_ANY): Likewise.
11022 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
11023 (MSG_STAT_ANY): Likewise.
11024 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
11025 (MSG_STAT_ANY): Likewise.
11026 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11027 (MSG_STAT_ANY): Likewise.
11028 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11029 (MSG_STAT_ANY): Likewise.
11030 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11031 (MSG_STAT_ANY): Likewise.
11032 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11033 (MSG_STAT_ANY): Likewise.
11034 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11035 (MSG_STAT_ANY): Likewise.
11036 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11037 (MSG_STAT_ANY): Likewise.
11038
11039 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11040 (MAP_TYPE): Change value to 0x2b.
11041
11042 2018-06-18 Florian Weimer <fweimer@redhat.com>
11043
11044 [BZ #15722]
11045 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11046 socket with SOCK_CLOEXEC.
11047
11048 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11049
11050 [BZ #23303]
11051 * sysdeps/powerpc/powerpc64/le/Makefile
11052 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11053 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11054 (gnulib-tests): Also add $(f128-loader-link) for
11055 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11056
11057 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11058
11059 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11060 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11061 of sendfile.
11062 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11063 (sendfile64): New strong alias.
11064 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11065 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11066 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11067 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11068 attribute.
11069 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11070 ___pthread_get_cleanup_stack.
11071 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11072 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11073 * mach/shortcut.awk: Make syscall stubs include
11074 <mach-shortcuts-hidden.h> and add hidden definition.
11075 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11076 (__mach_msg): Add hidden prototype.
11077 * mach/msg.c: Include <mach.h>.
11078 (__mach_msg): Add hidden definition.
11079 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11080 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11081 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11082 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11083 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11084 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11085 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11086 prototype and definition.
11087 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11088 hidden target for _hurd_self_sigstate.
11089
11090 2018-06-15 Joseph Myers <joseph@codesourcery.com>
11091
11092 [BZ #23007]
11093 * stdlib/tst-strtod-nan-sign-main.c: New file.
11094 * stdlib/tst-strtod-nan-sign.c: Likewise.
11095 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11096 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11097 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11098 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11099 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11100
11101 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
11102
11103 [BZ #23007]
11104 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11105 appropriate sign.
11106
11107 2018-06-14 Florian Weimer <fweimer@redhat.com>
11108
11109 [BZ #23290]
11110 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11111 that the result stays within the ISO-8859-1 range.
11112 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11113 characters are defined in IBM273.
11114
11115 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11116
11117 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11118 __mach_task_self): Remove attribute_hidden.
11119
11120 2018-06-14 Joseph Myers <joseph@codesourcery.com>
11121
11122 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11123 ignore -Wrestrict for one test.
11124
11125 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
11126 Szabolcs Nagy <szabolcs.nagy@arm.com>
11127
11128 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11129
11130 2018-06-14 Florian Weimer <fweimer@redhat.com>
11131
11132 * scripts/update-abilist.sh: Accept empty list of files to patch.
11133
11134 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
11135
11136 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11137 test-xfail-check-abi-libmachuser): Add.
11138 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11139 __libc_read and __libc_write to __read and __write.
11140 * sysdeps/hurd/include/hurd/port.h: New file.
11141 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11142 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11143 __thread_switch, __evc_wait): Move declarations to...
11144 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11145 attribute_hidden.
11146 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11147 use PLT to call _hurd_self_sigstate.
11148
11149 2018-06-13 Joseph Myers <joseph@codesourcery.com>
11150
11151 [BZ #23279]
11152 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11153 MAX_EXP as overflowing.
11154 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11155 overflow flag.
11156 (round_str): Output also whether result overflows in each rounding
11157 mode.
11158 * stdlib/tst-strtod-round-data: Add more tests.
11159 * stdlib/tst-strtod-round-data.h: Regenerated.
11160 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11161 (TEST): Handle extra arguments for overflow flags.
11162 (struct test_overflow): New type.
11163 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11164 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11165 (test_in_one_mode): Take argument with overflow information.
11166 (do_test): Update calls to test_in_one_mode.
11167
11168 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11169
11170 * elf/dl-load (_dl_dst_substitute): Correct comment.
11171 (_dl_dst_count): Likewise.
11172
11173 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11174 lll_futex_timed_wait.
11175
11176 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11177
11178 [BZ #23277]
11179 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11180 attribute.
11181 * math/test-nan-const.c: New file.
11182 * math/Makefile (tests): Add test-nan-const.
11183 (CFLAGS-test-nan-const.c): New variable.
11184
11185 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11186
11187 * benchtests/scripts/compare_strings.py (process_results): Add
11188 funcs argument. Compare only functions which are selected.
11189 (main): Check if base function is among selected functions.
11190 Pass selected functions to process_results.
11191 (__main__): Add -f/--functions argument.
11192
11193 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11194 Hongbo Zhang <hongbo.zhang@linaro.org>
11195
11196 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11197 __memcpy_falkor for phecda core.
11198 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11199 __memmove_falkor for phecda core.
11200 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11201 __memset_falkor for phecda core.
11202 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11203 for phecda core.
11204 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11205 macro to identify phecda core.
11206
11207 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11208 Andreas Schwab <schwab@suse.de>
11209 Dmitry V. Levin <ldv@altlinux.org>
11210 Florian Weimer <fweimer@redhat.com>
11211
11212 [BZ #23102]
11213 [BZ #21942]
11214 [BZ #18018]
11215 [BZ #23259]
11216 CVE-2011-0536
11217 * elf/dl-dst.h: Remove DL_DST_COUNT.
11218 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11219 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11220 (is_dst): Comment. Support ELF gABI.
11221 (_dl_dst_count): Comment. Simplify and count DSTs.
11222 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11223 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11224 locals.
11225
11226 2018-06-12 Zack Weinberg <zackw@panix.com>
11227
11228 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11229 * sysdeps/unix/sysv/linux/dl-sysdep.c
11230 Include not-cancel.h. Use __close_nocancel instead of __close,
11231 __open64_nocancel instead of __open, __read_nocancel instead of
11232 __libc_read, and __write_nocancel instead of __libc_write.
11233
11234 * csu/check_fds.c (check_one_fd)
11235 * sysdeps/posix/fdopendir.c (__fdopendir)
11236 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11237 instead of __fcntl and/or __libc_fcntl.
11238
11239 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11240 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11241 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11242 Use __open64_nocancel instead of __open_nocancel.
11243
11244 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11245 hidden_proto declarations to the end and issue them if either
11246 IS_IN(libc) or IS_IN(rtld).
11247 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11248 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11249 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11250 read_nocancel, waitpid_nocancel, write_nocancel.
11251
11252 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11253 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11254 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11255
11256 * nptl/pt-fcntl.c: New file.
11257 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11258 (libpthread-routines): Add pt-fcntl.
11259 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11260 (__libc_fcntl): Remove attribute_hidden.
11261 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11262 __fcntl_nocancel_adjusted, not fcntl_common.
11263 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11264 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11265 to fcntl_nocancel.c.
11266 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11269 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11270
11271 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11272 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11273 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11274 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11275 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11276 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11277 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11278 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11279 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11280 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11281 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11282 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11283 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11284 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11285 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11286 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11287 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11288 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11289 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11290 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11291
11292 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11293 libpthread-routines.
11294 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11295 defines nothing.
11296
11297 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11298 __libc_read, and __write instead of __libc_write. Define
11299 __open64 in addition to __open.
11300
11301 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11302
11303 [BZ #23250]
11304 [BZ #10686]
11305 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11306 to _private_tm[3] and add __glibc_reserved2.
11307 Add _Static_assert of offset of __private_ss == 0x30.
11308 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11309 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11310
11311 2018-06-12 Florian Weimer <fweimer@redhat.com>
11312
11313 x86: Make strncmp usable from rtld.
11314 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11315 __strncmp_ia32 if in libc (and not in rtld).
11316 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11317 strncmp if not in libc (and not to __strncmp_sse2).
11318
11319 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11320
11321 [BZ #23140]
11322 * localedata/locales/gd_GB (mon): Rename to...
11323 (alt_mon): This.
11324 (mon): Import from CLDR (genitive case).
11325 * localedata/locales/hsb_DE (mon): Rename to...
11326 (alt_mon): This.
11327 (mon): Import from CLDR (genitive case).
11328 * localedata/locales/wa_BE (mon): Rename to...
11329 (alt_mon): This.
11330 (mon): Add, fill with the proper genitive forms, but CLDR data
11331 is incomplete; completed according to the comments in this file.
11332 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11333
11334 * localedata/locales/wa_BE (country_name): Reword
11335 "Beljike" -> "Beldjike".
11336
11337 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11338
11339 [BZ #23272]
11340 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11341 cases of non-finite arguments.
11342 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11343
11344 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11345
11346 [BZ #23174]
11347 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11348
11349 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11350
11351 [BZ #23264]
11352 * include/unistd.h (__execvpex): New prototype.
11353 * posix/Makefile (tests): Add tst-spawn4.
11354 (tests-internal): Add tst-spawn4-compat.
11355 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11356 * posix/tst-spawn4-compat.c: New file.
11357 * posix/tst-spawn4.c: Likewise.
11358 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11359 binaries as shell scripts.
11360 * sysdeps/posix/spawni.c (__spawni): Likewise.
11361
11362 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11363
11364 [BZ #23145]
11365 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11366 ($(all-built-dso:=.dynsym): New target.
11367 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11368 ($(objpfx)check-initfini.out): New target.
11369 (generated): Add check-initfini.out.
11370 * scripts/check-initfini.awk: New file.
11371 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11372 (_fini): Likewise.
11373 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11374 (_fini): Likewise.
11375 * sysdeps/arm/crti.S (_init): Mark as hidden.
11376 (_fini): Likewise.
11377 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11378 (_fini): Likewise.
11379 * sysdeps/i386/crti.S (_init): Mark as hidden.
11380 (_fini): Likewise.
11381 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11382 (_fini): Likewise.
11383 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11384 (_fini): Likewise.
11385 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11386 (_fini): Likewise.
11387 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11388 (_fini): Likewise.
11389 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11390 (_fini): Likewise.
11391 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11392 (_fini): Likewise.
11393 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11394 (_fini): Likewise.
11395 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11396 (_fini): Likewise.
11397 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11398 (_fini): Likewise.
11399 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11400 (_fini): Likewise.
11401 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11402 (_fini): Likewise.
11403 * sysdeps/sh/crti.S (_init): Mark as hidden.
11404 (_fini): Likewise.
11405 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11406 (_fini): Likewise.
11407 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11408 (_fini): Likewise.
11409
11410 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11411
11412 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11413 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11414 and TF redirection to KFtype and KF only when the default
11415 long double type is not the IEEE 128-bit floating point type.
11416
11417 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11418
11419 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11420 macro.
11421 (HWCAP_USCAT): Likewise.
11422 (HWCAP_ILRCPC): Likewise.
11423 (HWCAP_FLAGM): Likewise.
11424 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11425 Increase to 28.
11426 (_dl_aarch64_cap_flags): Add new flag names.
11427
11428 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11429 (MAP_FIXED_NOREPLACE): New macro.
11430 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11431 (MAP_FIXED_NOREPLACE): Likewise.
11432 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11433 (MAP_FIXED_NOREPLACE): Likewise.
11434 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11435 (MAP_FIXED_NOREPLACE): Likewise.
11436 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11437 (MAP_FIXED_NOREPLACE): Likewise.
11438 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11439 (MAP_FIXED_NOREPLACE): Likewise.
11440 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11441 (MAP_FIXED_NOREPLACE): Likewise.
11442 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11443 (MAP_FIXED_NOREPLACE): Likewise.
11444 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11445 (MAP_FIXED_NOREPLACE): Likewise.
11446 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11447 (MAP_FIXED_NOREPLACE): Likewise.
11448 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11449 (MAP_FIXED_NOREPLACE): Likewise.
11450 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11451 (MAP_FIXED_NOREPLACE): Likewise.
11452 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11453 (MAP_FIXED_NOREPLACE): Likewise.
11454 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11455 (MAP_FIXED_NOREPLACE): Likewise.
11456 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11457 (MAP_FIXED_NOREPLACE): Likewise.
11458
11459 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11460 version to 4.17.
11461
11462 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11463
11464 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11465 version to 4.17
11466
11467 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11468
11469 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11470 int.
11471 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11472
11473 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11474
11475 * benchtests/scripts/compare_string.py: (process_results) Catch
11476 exception in non-existent base_func and catch exception in
11477 non-existent attribute.
11478 (parse_file) Catch exception if input file does not exist.
11479
11480 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11481
11482 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11483 options to avoid diff calculation and omit header, respectively.
11484 (main): process --no-diff and --no-header
11485
11486 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11487 H.J. Lu <hongjiu.lu@intel.com>
11488
11489 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11490 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11491 wcsncmp-sse2.
11492 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11493 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11494 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11495 and __wcsncmp_sse2.
11496 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11497 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11498 AVX unaligned load is fast and vzeroupper is preferred.
11499 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11500 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11501 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11502 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11503 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11504 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11505 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11506 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11507 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11508 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11509 is undefined.
11510
11511 2018-06-01 Florian Weimer <fweimer@redhat.com>
11512
11513 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11514 configuring with --disable-multi-arch, building with
11515 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11516 Haswell-era CPU.
11517
11518 2018-06-01 Florian Weimer <fweimer@redhat.com>
11519
11520 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11521 results from building with “-march=x86-64 -mtune=generic
11522 -mfpmath=sse” and running on a Haswell-era CPU.
11523
11524 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11525
11526 [BZ #18473]
11527 * soft-fp/sqrttf2.c: Remove file.
11528 * soft-fp/sqrtdf2.c: Move to ....
11529 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11530 <shlib-compat.h>.
11531 (__sqrtdf2): Make conditional on
11532 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11533 symbol.
11534 * soft-fp/sqrtsf2.c: Move to ....
11535 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11536 <shlib-compat.h>.
11537 (__sqrtsf2): Make conditional on
11538 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11539 symbol.
11540 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11541 (gcc-double-routines): Remove sqrtdf2.
11542 (gcc-quad-routines): Remove sqrttf2.
11543 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11544 Do not filter out sqrtsf2 and sqrtdf2.
11545 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11546 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11547
11548 2018-06-01 Florian Weimer <fweimer@redhat.com>
11549
11550 * sysdeps/generic/libcidn.abilist: Remove file.
11551
11552 2018-06-01 Florian Weimer <fweimer@redhat.com>
11553
11554 [BZ #23236]
11555 * libio/strfile.h (struct _IO_str_fields): Rename members to
11556 discourage their use and add comment.
11557 (_IO_STR_DYNAMIC): Remove unused macro.
11558 * libio/strops.c (_IO_str_init_static_internal): Do not use
11559 callback pointers. Call malloc and free.
11560 (_IO_str_overflow): Do not use callback pointers. Call malloc
11561 and free.
11562 (enlarge_userbuf): Likewise.
11563 (_IO_str_finish): Call free.
11564 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11565 _allocate_buffer_unused.
11566 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11567 and free.
11568 (enlarge_userbuf): Likewise.
11569 (_IO_wstr_finish): Call free.
11570 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11571 _allocate_buffer_unused, _free_buffer_unused.
11572 * libio/memstream.c (__open_memstream): Likewise.
11573 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11574 * libio/wmemstream.c (open_wmemstream): Likewise.
11575
11576 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11577
11578 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11579 AMD Ryzen 7 1800X.
11580
11581 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11582
11583 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11584 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11585 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11586 New file.
11587 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11588 Likewise.
11589 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11590
11591 2018-05-29 Florian Weimer <fweimer@redhat.com>
11592
11593 * support/Makefile (libsupport-routines): Add
11594 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11595 xpthread_barrierattr_setpshared.
11596 * support/xpthread_barrierattr_destroy.c: New file.
11597 * support/xpthread_barrierattr_init.c: Likewise.
11598 * support/xpthread_barrierattr_setpshared.c: Likewise.
11599
11600 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11601
11602 [BZ #23206]
11603 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11604 _r_debug and update DT_DEBUG for debugger.
11605
11606 2018-05-29 Florian Weimer <fweimer@redhat.com>
11607
11608 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11609 (tst-strtod5i.out): Likewise.
11610
11611 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11612
11613 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11614 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11615 (sparc64-quad-routines): New variable. Moved from ....
11616 [$(subdir) = soft-fp] (sysdep_routines): Add
11617 $(sparc64-quad-routines). Moved from ....
11618 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11619 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11620 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11621 moved from ....
11622 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11623 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11624 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11625 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11626 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11627 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11628 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11629 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11630 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11631 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11632 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11633 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11634 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11635 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11636 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11637 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11638 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11639 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11640 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11641 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11642 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11643 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11644 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11645 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11646 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11647 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11648 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11649 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11650 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11651 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11652 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11653 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11654 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11655 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11656 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11657 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11658 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11659 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11660 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11661 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11662 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11663 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11664 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11665 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11666 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11667 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11668 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11669 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11670 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11671 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11672 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11673 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11674 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11675 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11676 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11677 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11678 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11679 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11680
11681 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11682 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11683 (sparc32-quad-routines): New variable. Moved from ....
11684 [$(subdir) = soft-fp] (sysdep_routines): Add
11685 $(sparc32-quad-routines). Moved from ....
11686 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11687 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11688 moved from ....
11689 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11690 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11691 * sysdeps/sparc/sparc32/q_add.c: ... here.
11692 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11693 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11694 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11695 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11696 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11697 * sysdeps/sparc/sparc32/q_div.c: ... here.
11698 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11699 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11700 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11701 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11702 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11703 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11704 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11705 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11706 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11707 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11708 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11709 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11710 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11711 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11712 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11713 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11714 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11715 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11716 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11717 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11718 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11719 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11720 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11721 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11722 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11723 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11724 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11725 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11726 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11727 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11728 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11729 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11730 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11731 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11732 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11733 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11734 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11735 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11736 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11737 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11738 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11739 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11740 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11741 * sysdeps/sparc/sparc32/q_util.c: ... here.
11742 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11743 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11744 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11745 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11746
11747 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11748 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11749
11750 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11751 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11752 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11753 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11754
11755 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11756
11757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11758 powerpc/soft-fp.
11759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11760 Likewise.
11761 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11762 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11763
11764 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11765
11766 [BZ #23171]
11767 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11768 double version.
11769
11770 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11771
11772 * sysdeps/sh/Implies: Remove sh/soft-fp.
11773 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11774 * sysdeps/sh/sfp-machine.h: ... here.
11775
11776 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11777
11778 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11779 (__mempcpy_erms): Skip zero length.
11780 (__memmove_erms): Likewise.
11781 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11782 (__memset_erms): Likewise.
11783
11784 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11785
11786 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11787 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11788 Add functions moved from ....
11789 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11790 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11791 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11792 from ....
11793 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11794 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11795 * sysdeps/alpha/e_sqrtl.c: ... here.
11796 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11797 * sysdeps/alpha/local-soft-fp.h: ... here.
11798 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11799 * sysdeps/alpha/ots_add.c: ... here.
11800 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11801 * sysdeps/alpha/ots_cmp.c: ... here.
11802 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11803 * sysdeps/alpha/ots_cmpe.c: ... here.
11804 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11805 * sysdeps/alpha/ots_cvtqux.c: ... here.
11806 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11807 * sysdeps/alpha/ots_cvtqx.c: ... here.
11808 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11809 * sysdeps/alpha/ots_cvttx.c: ... here.
11810 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11811 * sysdeps/alpha/ots_cvtxq.c: ... here.
11812 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11813 * sysdeps/alpha/ots_cvtxt.c: ... here.
11814 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11815 * sysdeps/alpha/ots_div.c: ... here.
11816 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11817 * sysdeps/alpha/ots_mul.c: ... here.
11818 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11819 * sysdeps/alpha/ots_nintxq.c: ... here.
11820 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11821 * sysdeps/alpha/ots_sub.c: ... here.
11822 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11823 * sysdeps/alpha/sfp-machine.h: ... here.
11824
11825 2018-05-23 Florian Weimer <fweimer@redhat.com>
11826
11827 [BZ #19728]
11828 [BZ #19729]
11829 [BZ #22247]
11830 CVE-2016-6261
11831 CVE-2016-6263
11832 CVE-2017-14062
11833 Switch to extern IDNA implementation (libidn2).
11834 * libidn: Remove subdirectory.
11835 * LICENSES: Do not mention licensing conditions for the removed
11836 libidn code.
11837 * config.h.in (HAVE_LIBIDN): Remove.
11838 * include/dlfcn.h (__libc_dlopen): Update comment.
11839 * include/idna.h: Remove file.
11840 * inet/Makefile (routines): Add idna.
11841 (tests-static, tests-internal): Add tst-idna_name_classify.
11842 (LOCALES): Generate locales for tests.
11843 (tst-idna_name_classify.out): Depend on generated locales.
11844 * inet/idna_name_classify.c: New file.
11845 * inet/tst-idna_name_classify.c: Likewise.
11846 * inet/net-internal.h (__idna_to_dns_encoding)
11847 (__idna_from_dns_encoding): Declare.
11848 * inet/net-internal.h (enum idna_name_classification): Define.
11849 (__idna_name_classify): Declare.
11850 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11851 __idna_from_dns_encoding.
11852 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11853 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11854 name as a fallback in case of encoding errors.
11855 (getnameinfo): Use DEPRECATED_NI_IDN.
11856 * inet/idna.c: New file.
11857 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11858 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11859 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11860 (modules-names): Add tst-no-libidn2.
11861 (extra-test-objs): Add tst-no-libidn2.os.
11862 (LDFLAGS-tst-no-libidn2.so): Set soname.
11863 (LOCALES): Set, and generate locales.
11864 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11865 (tst-resolv-ai_idn-latin1): Likewise.
11866 (tst-resolv-ai_idn-nolibidn2): Likewise.
11867 (tst-resolv-ai_idn.out): Depend on locales.
11868 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11869 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11870 tst-no-libidn2.so.
11871 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11872 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11873 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11874 * resolv/tst-resolv-ai_idn.c: New file.
11875 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11876 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11877 * resolv/tst-no-libidn2.c: Likewise.
11878 * support/support_format_addrinfo.c (format_ai_flags): Do not
11879 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11880 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11881 (gaih_inet): Call __idna_to_dns_encoding and
11882 __idna_from_dns_encoding, and use the original (punycode) name if
11883 __idna_from_dns_encoding fails due to an encoding error.
11884 (getaddrinfo): Use DEPRECATED_AI_IDN.
11885 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11886 * sysdeps/unix/inet/configure: Remove file.
11887 * sysdeps/unix/inet/configure.ac: Likewise.
11888
11889 2018-05-23 Florian Weimer <fweimer@redhat.com>
11890
11891 Implement allocate_once.
11892 * include/allocate_once.h: New file.
11893 * misc/allocate_once.c: Likewise.
11894 * misc/tst-allocate_once.c: Likewise.
11895 * misc/Makefile (routines): Add allocate_once.
11896 (tests-internal): Add tst-allocate_once.
11897 (generated): Add tst-allocate_once.mtrace,
11898 tst-allocate_once-mem.out.
11899 (tests-special): Add tst-allocate_once-mem.out.
11900 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11901 (tst-allocate_once-mem.out): Call mtrace.
11902 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11903
11904 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11905
11906 [BZ #23196]
11907 * string/test-memcpy.c (do_test1): New function.
11908 (test_main): Call it.
11909
11910 2018-05-23 Andreas Schwab <schwab@suse.de>
11911
11912 [BZ #23196]
11913 CVE-2018-11237
11914 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11915 (L(preloop_large)): Save initial destination pointer in %r11 and
11916 use it instead of %rax after the loop.
11917 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11918
11919 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11920
11921 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11922 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11923 -I../soft-fp. Moved from ....
11924 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11925 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11926 * sysdeps/aarch64/e_sqrtl.c: ... here.
11927 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11928 * sysdeps/aarch64/sfp-machine.h: ... here.
11929
11930 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11931 -Wmaybe-uninitialized around access to fq[0].
11932 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11933 Likewise.
11934
11935 [BZ #18471]
11936 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11937 aliases for non-libc case of versioned symbols.
11938 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11939 (llseek): Define as compat symbol if
11940 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11941 with link warning.
11942 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11943 Make into a compat symbol, disabled for minimum symbol version
11944 GLIBC_2.28 and later.
11945 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11946
11947 2018-05-22 Florian Weimer <fweimer@redhat.com>
11948
11949 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11950 not add -mpreferred-stack-boundary=4.
11951 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11952 (stack-align-test-flags): Likewise.
11953 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11954 Likewise.
11955 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11956 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11957 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11958 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11959 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11960 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11961 (CFLAGS-tst-align2.c): Likewise.
11962
11963 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11964
11965 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11966 (index_arch_Prefer_FSRM): Likewise.
11967 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11968 Also check Prefer_FSRM.
11969 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11970 Also return OPTIMIZE (erms) for Prefer_FSRM.
11971
11972 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11973
11974 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11975 (index_cpu_FSRM): Likewise.
11976 (reg_FSRM): Likewise.
11977
11978 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11979
11980 * math/gen-tgmath-tests.py: Import sys.
11981 (Tests.__init__): Initialize macros_seen.
11982 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11983 if requested to do so for this macro.
11984 (Tests.add_all_tests): Take argument for macro for which to
11985 generate tests.
11986 (Tests.check_macro_list): New function.
11987 (main): Handle check-list argument and argument specifying macro
11988 for which to generate tests.
11989 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11990 [PYTHON] (tgmath3-macro-tests): Likewise.
11991 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11992 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11993 not test-tgmath3.c.
11994 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11995 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11996 to CFLAGS.
11997 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11998 [PYTHON] ($(foreach
11999 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
12000 rule.
12001 [PYTHON] (tests-special): Add
12002 $(objpfx)test-tgmath3-macro-list.out.
12003 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
12004
12005 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
12006 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
12007 later.
12008
12009 [BZ #22639]
12010 * time/tzset.c (SECSPERDAY): Cast to time_t.
12011 * time/tst-y2039.c: New file.
12012 * time/Makefile (tests): Add tst-y2039.
12013
12014 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12015
12016 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12017 (PREFETCH_ONE_SET): Remove duplicate line.
12018
12019 2018-05-17 Florian Weimer <fweimer@redhat.com>
12020
12021 * sysdeps/generic/math-type-macros-double.h: Include
12022 <math-nan-payload-double.h> after <libm-alias-double.h>.
12023 * sysdeps/generic/math-type-macros-float.h: Include
12024 <math-nan-payload-float.h> after <libm-alias-float.h>.
12025 * sysdeps/generic/math-type-macros-float128.h: Include
12026 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12027 * sysdeps/generic/math-type-macros-ldouble.h: Include
12028 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12029
12030 2018-05-17 Andreas Schwab <schwab@suse.de>
12031
12032 * resolv/res_send.c (__res_context_send): Don't set errno when
12033 returing error after malloc failure.
12034
12035 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
12036
12037 * nptl/allocatestack.c (allocate_stack): Remove the
12038 !__ASSUME_PRIVATE_FUTEX paths.
12039 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12040 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12041 Likewise.
12042 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12043 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12044 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12045 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12046 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12047 !__ASSUME_PRIVATE_FUTEX path.
12048 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12049 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12050 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12051 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12052 !__ASSUME_PRIVATE_FUTEX macros.
12053 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12054 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12055 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12056 * sysdeps/unix/sysv/linux/kernel-features.h
12057 (__ASSUME_PRIVATE_FUTEX): Removed.
12058
12059 2018-05-17 Joseph Myers <joseph@codesourcery.com>
12060
12061 * math/Makefile (libm-narrow-fns): Add div.
12062 (libm-test-funcs-narrow): Likewise.
12063 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12064 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12065 * math/gen-auto-libm-tests.c (test_functions): Add div.
12066 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12067 (NARROW_DIV_ROUND_TO_ODD): Likewise.
12068 (NARROW_DIV_TRIVIAL): Likewise.
12069 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12070 macro.
12071 (__ddivl): Likewise.
12072 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12073 ddiv.
12074 (CFLAGS-nldbl-ddiv.c): New variable.
12075 (CFLAGS-nldbl-fdiv.c): Likewise.
12076 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12077 __nldbl_ddivl.
12078 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12079 prototype.
12080 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12081 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12082 * math/auto-libm-test-in: Add tests of div.
12083 * math/auto-libm-test-out-narrow-div: New generated file.
12084 * math/libm-test-narrow-div.inc: New file.
12085 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12086 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12087 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12088 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12089 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12090 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12091 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12092 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12093 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12094 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12095 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12096 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12097 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12098 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12099 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12100 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12101 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12102 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12103 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12104 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12109 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12110 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12111 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12112 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12121 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12127 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12128 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12129
12130 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12131
12132 [BZ #23178]
12133 * nscd/nscd-client.h (sendfileall): Remove prototype.
12134 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12135 (handle_request): Use writeall instead of sendfileall.
12136 * nscd/aicache.c (addhstaiX): Likewise.
12137 * nscd/grpcache.c (cache_addgr): Likewise.
12138 * nscd/hstcache.c (cache_addhst): Likewise.
12139 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12140 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12141 * nscd/pwdcache.c (cache_addpw): Likewise.
12142 * nscd/servicescache.c (cache_addserv): Likewise.
12143 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12144 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12145 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12146 Remove define.
12147
12148 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
12149
12150 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12151 Include <string/strncat.c>.
12152 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12153 alias.
12154 (__GI___strncat): New hidden alias.
12155
12156 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12157
12158 * sysdeps/mips/mips32/libm-test-ulps: Update.
12159 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12160
12161 2018-05-16 Florian Weimer <fweimer@redhat.com>
12162
12163 * support/Makefile (libsupport-routines): Add support_quote_blob,
12164 support_test_compare_blob.
12165 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12166 * support/check.h (TEST_COMPARE_BLOB): Define.
12167 (support_test_compare_blob): Declare.
12168 * support/support.h (support_quote_blob): Declare.
12169 * support/support_quote_blob.c: New file.
12170 * support/support_test_compare_blob.c: Likewise.
12171 * support/tst-support_quote_blob.c: Likewise.
12172 * support/tst-test_compare_blob.c: Likewise.
12173
12174 2018-05-16 Florian Weimer <fweimer@redhat.com>
12175
12176 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12177 of <strtod_nan_double.h>.
12178 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12179 instead of SET_MANTISSA.
12180 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12181 of include <strtod_nan_float.h>.
12182 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12183 instead of <strtod_nan_ldouble.h>.
12184 * stdlib/strtod_nan_double.h: Move to ...
12185 * sysdeps/generic/math-nan-payload-double.h: ... here.
12186 (FLOAT): Remove definition.
12187 (SET_MANTISSA): Rename to ...
12188 (SET_NAN_PAYLOAD): ... this.
12189 * stdlib/strtod_nan_float.h: Move to ...
12190 * sysdeps/generic/math-nan-payload-float.h: ... here.
12191 (FLOAT): Remove definition.
12192 (SET_MANTISSA): Rename to ...
12193 (SET_NAN_PAYLOAD): ... this.
12194 * sysdeps/generic/math-type-macros-double.h: Include
12195 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12196 instead of <math-svid-compat.h>.
12197 * sysdeps/generic/math-type-macros-float.h: Include
12198 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12199 instead of <math-svid-compat.h>.
12200 * sysdeps/generic/math-type-macros-float128.h: Include
12201 <math-nan-payload-float128.h>.
12202 * sysdeps/generic/math-type-macros-ldouble.h: Include
12203 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12204 instead of <math-svid-compat.h>.
12205 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12206 check for definition.
12207 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12208 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12209 Include <ieee754_float128.h>.
12210 (FLOAT): Remove definition.
12211 (SET_MANTISSA): Rename to ...
12212 (SET_NAN_PAYLOAD): ... this.
12213 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12214 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12215 Do not include <float128_private.h>.
12216 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12217 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12218 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12219 (FLOAT): Remove definition.
12220 (SET_MANTISSA): Rename to ...
12221 (SET_NAN_PAYLOAD): ... this.
12222 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12223 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12224 (FLOAT): Remove definition.
12225 (SET_MANTISSA): Rename to ...
12226 (SET_NAN_PAYLOAD): ... this.
12227 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12228 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12229 (FLOAT): Remove definition.
12230 (SET_MANTISSA): Rename to ...
12231 (SET_NAN_PAYLOAD): ... this.
12232 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12233 of "../stdlib/strtod_nan_double.h".
12234 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12235 of "../stdlib/strtod_nan_float.h".
12236 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12237 instead of "../stdlib/strtod_nan_ldouble.h".
12238 * manual/arith.texi (Parsing of Floats): Adjust comment.
12239
12240 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12241
12242 * math/Makefile (libm-narrow-fns): Add mul.
12243 (libm-test-funcs-narrow): Likewise.
12244 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12245 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12246 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12247 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12248 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12249 (NARROW_MUL_TRIVIAL): Likewise.
12250 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12251 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12252 macro.
12253 (__dmull): Likewise.
12254 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12255 dmul.
12256 (CFLAGS-nldbl-dmul.c): New variable.
12257 (CFLAGS-nldbl-fmul.c): Likewise.
12258 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12259 __nldbl_dmull.
12260 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12261 prototype.
12262 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12263 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12264 * math/auto-libm-test-in: Add tests of mul.
12265 * math/auto-libm-test-out-narrow-mul: New generated file.
12266 * math/libm-test-narrow-mul.inc: New file.
12267 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12268 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12269 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12270 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12271 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12272 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12273 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12274 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12275 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12276 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12277 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12278 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12279 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12280 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12281 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12282 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12283 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12284 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12285 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12286 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12311
12312 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12313
12314 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12315 with *%eax in call.
12316
12317 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12318
12319 * sysdeps/i386/ldsodefs.h: Removed.
12320 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12321 * sysdeps/x86/ldsodefs.h: This.
12322 (La_i86_regs): New.
12323 (La_i86_retval): Likewise.
12324 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12325 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12326
12327 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12328
12329 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12330 unnecessary testl.
12331
12332 2018-05-13 Alan Modra <amodra@gmail.com>
12333
12334 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12335 R_PARISC_TLS_DTPOFF32 reloc addend.
12336
12337 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12338
12339 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12340 * math/math.h: Restrict the prototype definition for the functions
12341 issignaling(_Float128) and iszero(_Float128); and template
12342 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12343 __HAVE_FLOAT128_UNLIKE_LDBL.
12344 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12345 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12346 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12347 __f128() constants; define the type _Float128 as long double;
12348 and reuse long double in __CFLOAT128.
12349
12350 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12351
12352 * sysdeps/generic/math_private.h: Do not include
12353 <math-barriers.h>.
12354 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12355 <math_private.h>.
12356 * math/fromfp.h: Include <math-barriers.h>.
12357 * math/math-narrow.h: Likewise.
12358 * math/s_nextafter.c: Likewise.
12359 * math/s_nexttowardf.c: Likewise.
12360 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12361 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12362 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12363 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12364 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12365 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12366 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12367 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12368 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12369 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12370 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12371 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12372 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12373 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12374 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12375 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12376 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12377 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12378 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12379 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12380 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12381 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12382 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12383 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12384 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12385 * sysdeps/ieee754/k_standardl.c: Likewise.
12386 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12387 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12388 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12389 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12390 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12391 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12392 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12393 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12394 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12395 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12396 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12397 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12398 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12399 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12400 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12401 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12402 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12403 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12404 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12405 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12406 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12407 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12408
12409 2018-05-11 Florian Weimer <fweimer@redhat.com>
12410
12411 Use 64-bit epoch values in the time zone file parser.
12412 * include/time.h (internal_time_t): Define.
12413 (__tzfile_compute): Use it.
12414 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12415 member.
12416 (transitions): Switch to internal_time_t.
12417 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12418 types.
12419 (__tzfile_compute): Use internal_time_t for timer argument. Check
12420 for truncation before calling __offtime.
12421
12422 2018-05-11 Florian Weimer <fweimer@redhat.com>
12423
12424 [BZ #23166]
12425 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12426 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12427 Likewise.
12428 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12429 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12430 export without --enable-obsolete-rpc.
12431 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12432 symbol. This should not have been exported, ever.
12433
12434 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12435
12436 [BZ #23152]
12437 * localedata/locales/gd_GB (abmon): Fix typo in May:
12438 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12439
12440 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12441
12442 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12443 Use multiple registers to copy data in loop tail.
12444
12445 * sysdeps/aarch64/multiarch/memmove_falkor.S
12446 (__memmove_falkor): Use multiple registers to move data in
12447 loop tail.
12448
12449 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12450
12451 * math/math-underflow.h: New file.
12452 * sysdeps/generic/math_private.h: Do not include <float.h>.
12453 (fabs_tg): Remove macro. Moved to math-underflow.h.
12454 (min_of_type_f): Likewise.
12455 (min_of_type_): Likewise.
12456 (min_of_type_l): Likewise.
12457 (min_of_type_f128): Likewise.
12458 (min_of_type): Likewise.
12459 (math_check_force_underflow): Likewise.
12460 (math_check_force_underflow_nonneg): Likewise.
12461 (math_check_force_underflow_complex): Likewise.
12462 * math/e_exp2_template.c: Include <math-underflow.h>.
12463 * math/k_casinh_template.c: Likewise.
12464 * math/s_catan_template.c: Likewise.
12465 * math/s_catanh_template.c: Likewise.
12466 * math/s_ccosh_template.c: Likewise.
12467 * math/s_cexp_template.c: Likewise.
12468 * math/s_clog10_template.c: Likewise.
12469 * math/s_clog_template.c: Likewise.
12470 * math/s_csin_template.c: Likewise.
12471 * math/s_csinh_template.c: Likewise.
12472 * math/s_csqrt_template.c: Likewise.
12473 * math/s_ctan_template.c: Likewise.
12474 * math/s_ctanh_template.c: Likewise.
12475 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12476 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12477 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12478 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12479 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12480 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12481 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12482 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12483 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12484 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12485 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12486 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12487 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12488 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12489 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12490 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12491 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12492 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12493 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12494 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12495 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12496 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12497 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12498 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12499 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12500 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12501 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12502 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12503 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12504 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12505 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12506 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12507 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12508 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12509 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12510 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12511 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12512 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12513 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12514 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12515 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12516 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12517 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12518 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12519 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12520 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12521 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12522 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12523 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12524 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12525 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12526 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12527 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12528 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12529 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12530 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12531 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12532 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12533 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12534 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12535 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12536 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12537 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12538 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12539 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12540 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12541 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12542 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12543 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12544 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12545 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12546 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12547 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12548 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12549 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12550 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12551 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12552 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12553 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12554 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12555 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12556 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12557 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12558 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12559
12560 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12561
12562 * sysdeps/generic/math-barriers.h: New file.
12563 * sysdeps/generic/math_private.h [!math_opt_barrier]
12564 (math_opt_barrier): Move to math-barriers.h.
12565 [!math_opt_barrier] (math_force_eval): Likewise.
12566 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12567 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12568 math-barriers.h.
12569 (math_force_eval): Likewise.
12570 * sysdeps/alpha/fpu/math-barriers.h: New file.
12571 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12572 math-barriers.h.
12573 (math_force_eval): Likewise.
12574 * sysdeps/x86/fpu/math-barriers.h: New file.
12575 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12576 math-barriers.h.
12577 (math_force_eval): Likewise.
12578 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12579 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12580 multiple-include guard for rename.
12581 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12582 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12583 math-barriers.h.
12584 (math_force_eval): Likewise.
12585
12586 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12587
12588 [BZ #22786]
12589 CVE-2018-11236
12590 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12591 computation.
12592 * stdlib/Makefile (test-bz22786): New test.
12593 * stdlib/test-bz22786.c: New test.
12594
12595 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12596
12597 * include/math-narrow-eval.h: New file. Contents moved from ....
12598 * sysdeps/generic/math_private.h: ... here.
12599 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12600 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12601 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12602 * stdlib/strtod_l.c: Likewise.
12603 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12604 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12605 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12606 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12607 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12608 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12609 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12610 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12611 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12612 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12613 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12614 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12615 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12616 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12617 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12618 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12619 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12620 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12621 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12622 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12623 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12624 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12625 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12626 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12627 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12628 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12629 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12630 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12631 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12632
12633 2018-05-08 Andreas Schwab <schwab@suse.de>
12634
12635 * sysdeps/nptl/internaltypes.h: Fix comment.
12636
12637 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12638
12639 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12640 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12641 hidden.
12642
12643 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12644
12645 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12646 of I into loop header.
12647 * benchtests/bench-memmove-walk.c
12648 (test_main): Likewise.
12649
12650 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12651
12652 Revert:
12653 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12654 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12655
12656 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12657
12658 [BZ #20419]
12659 * elf/dl-load.c (open_verify): Fix stack overflow.
12660 * elf/Makefile (tst-big-note): New test.
12661 * elf/tst-big-note-lib.S: New.
12662 * elf/tst-big-note.c: New.
12663
12664 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12665
12666 * scripts/abilist.awk: Ignore absolute symbols.
12667 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12668 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12669 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12670 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12671 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12672 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12673 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12674 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12675 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12676 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12677 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12678 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12683 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12690 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12691 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12697 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12698 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12699 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12700 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12704 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12705 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12706 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12707 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12726 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12727 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12740 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12741 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12747 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12748 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12755 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12759 Likewise.
12760 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12762 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12765 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12773 Likewise.
12774 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12775 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12779 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12795 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12801 Likewise.
12802 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12822 Likewise.
12823 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12826 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12827 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12828 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12829 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12832 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12833 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12834 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12835 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12836 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12837 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12842 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12843 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12844 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12845 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12847 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12848 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12849 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12850 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12851 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12854 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12855 Likewise.
12856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12857 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12859 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12861 Likewise.
12862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12863 Likewise.
12864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12865 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12866 Likewise.
12867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12869 Likewise.
12870 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12871 Likewise.
12872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12875 Likewise.
12876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12877 Likewise.
12878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12879 Likewise.
12880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12884 Likewise.
12885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12891 Likewise.
12892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12894 Likewise.
12895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12896 Likewise.
12897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12898 Likewise.
12899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12900 Likewise.
12901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12904 Likewise.
12905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12906 Likewise.
12907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12908 Likewise.
12909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12910 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12911 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12912 Likewise.
12913 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12914 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12915 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12916 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12917 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12918 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12919 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12920 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12921 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12922 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12923 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12924 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12925 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12926 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12927 Likewise.
12928 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12929 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12930 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12931 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12932 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12933 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12934 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12935 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12936 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12937 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12938 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12939 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12940 Likewise.
12941 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12942 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12943 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12944 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12945 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12946 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12947 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12948 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12949 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12950 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12951 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12952 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12953 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12954 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12955 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12956 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12957 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12958 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12959 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12960 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12961 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12962 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12963 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12964 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12965 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12966 Likewise.
12967 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12968 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12969 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12970 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12971 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12972 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12973 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12974 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12975 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12976 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12977 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12978 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12979 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12980 Likewise.
12981 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12982 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12983 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12984 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12985 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12986 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12987 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12988 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12989 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12990 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12991 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12992 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12993 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12994 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12995 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12996 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12997 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12998 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12999 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
13000 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
13001 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
13002 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
13003 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
13004 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
13005 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
13006 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
13007 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
13008 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
13009 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13010 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
13011 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
13012 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13013 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
13014 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13015 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
13016 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
13017 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
13018 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
13019
13020 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
13021
13022 [BZ #23137]
13023 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
13024 Use atomic_load_acquire to load __tid.
13025
13026 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13027
13028 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13029 Restore the pointer into %rdx, after syscall and use %rdx,
13030 instead of %rsi, to restore context.
13031
13032 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13033
13034 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13035 Pop the pointer into %rdx after syscall and use %rdx, instead
13036 of %rsi, to restore context.
13037
13038 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13039
13040 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13041 handlers after setjmp.
13042 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13043 defined.
13044 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13045 <libc-pointer-arith.h>.
13046 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13047 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13048 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13049 _JUMP_BUF_SIGSET_BITS_PER_WORD.
13050 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13051 * sysdeps/x86/__longjmp_cancel.S: New file.
13052 * sysdeps/x86/longjmp.c: Likewise.
13053 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13054
13055 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13056
13057 * NEWS: Add ustat.h deprecation entry.
13058 * bits/ustat.h: Remove file.
13059 * misc/sys/ustat.h: Likewise.
13060 * misc/ustat.h: Likewise.
13061 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13062 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13063 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13064 compatibility mode.
13065 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13066 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13067 generic Linux implementation.
13068
13069 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13070
13071 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13072 * math/w_expl_compat.c: Likewise.
13073 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
13074
13075 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13076
13077 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13078
13079 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13080
13081 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13082 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13083 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13084 Remove.
13085 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13087 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13088 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13089 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13090 and SYSCALL_LL64.
13091
13092 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13093
13094 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13095
13096 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13097 * math/w_asin_template.c: Likewise.
13098 * math/w_atanh_template.c: Likewise.
13099
13100 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13101
13102 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13103 to powerpc/powerpc64/be for big-endian.
13104 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13105 little-endian.
13106
13107 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13108 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13109 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13110 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13111 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13112 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13113 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13114 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13115 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13116 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13117 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13118 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13119 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13120 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13121 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13122 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13123 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13124 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13125 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13126 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13127 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13128 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13129 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13130 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13131 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13132 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13133 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13134 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13135 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13136 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13137 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13138 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13139
13140 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13141 adjusted to imply powerpc64 and older processors on powerpc64/be.
13142 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13143 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13144 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13145 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13146 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13147 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13148 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13149 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13150 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13151 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13152 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13153 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13154 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13155 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13156 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13157 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13158 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13159 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13160 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13161 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13162 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13163 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13164 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13165 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13166 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13167 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13168 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13169 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13170 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13171 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13172 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13173
13174 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13175 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13176 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13177 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13178
13179 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13180 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13181 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13182 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13183
13184 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13185 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13186 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13187 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13188 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13189 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13190 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13191 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13192 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13193 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13194 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13195
13196 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13197 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13198 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13199 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13200 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13201 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13202 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13203 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13204 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13205 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13206 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13207
13208 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13209 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13210 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13211 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13212 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13213 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13214 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13215 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13216 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13217 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13218 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13219 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13220
13221 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13222 and adjusted to imply olders processors.
13223 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13224 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13225 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13226 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13227 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13228 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13229 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13230 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13231 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13232 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13233 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13234
13235 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13236 powerpc64/le.
13237 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13238 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13239
13240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13241 powerpc64le.
13242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13244
13245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13246 powerpc64/be.
13247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13250
13251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13252 powerpc64 and adjusted.
13253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13256 Likewise.
13257
13258 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13259
13260 * sysdeps/tile: Remove.
13261 * sysdeps/unix/sysv/linux/tile: Likewise.
13262 * README (tilegx-*-linux-gnu): Remove from list of supported
13263 configurations.
13264 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13265 contribution of support for generic Linux kernel syscall
13266 interface.
13267 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13268 tilegx configurations.
13269 (Config.install_linux_headers): Do not handle tile.
13270 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13271 in comment.
13272 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13273 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13274 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13275 conditional undefine and redefine.
13276 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13277 in comment.
13278 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13279 conditional undefine and redefine.
13280
13281 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13282
13283 * signal/tst-sigaction.c: New file to test BZ #23069.
13284 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13285
13286 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13287
13288 [BZ #22766]
13289 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13290 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13291 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13292 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13293
13294 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13295
13296 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13297 _DIRENT_MATCHES_DIRENT64 is not defined.
13298 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13299 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13300 is defined.
13301 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13302 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13303
13304 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13305
13306 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13307 version to GCC 8 branch.
13308
13309 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13310
13311 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13312 (check_no_hidden): Use type of original function when declaring
13313 alias.
13314
13315 * sysdeps/unix/sysv/linux/sys/ptrace.h
13316 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13317 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13318 (struct __ptrace_seccomp_metadata): New type.
13319 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13320 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13321 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13322 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13323 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13324 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13325 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13326 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13327 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13328 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13329 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13330 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13331 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13332 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13333 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13334 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13335
13336 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13337
13338 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13339 defined.
13340 * dirent/versionsort.c (versionsort): Likewise.
13341 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13342 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13343 * dirent/versionsort64.c (versionsort64): Likewise.
13344 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13345 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13346 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13347 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13348 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13349 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13350 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13351 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13352 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13353 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13356 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13357 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13358
13359 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13360
13361 * elf/elf.h (NT_PPC_PKEY): New macro.
13362
13363 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13364
13365 [BZ #23094]
13366 * localedata/locales/hr_HR: fix thousands_sep and
13367 mon_thousands_sep
13368
13369 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13370
13371 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13372 (XTABS): Define to TAB3.
13373
13374 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13375
13376 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13377
13378 * dirent/scandir-tail-common.c: New file.
13379 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13380 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13381 * dirent/scandir.c: Use scandir-tail-common.c.
13382 * dirent/scandirat.c: Likewise.
13383 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13384 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13385 if _DIRENT_MATCHES_DIRENT64 is defined.
13386 * dirent/scandirat64.c (scandirat64): Likewise.
13387 * include/dirent.h (__scandir_tail): Only define iff
13388 _DIRENT_MATCHES_DIRENT64 is not defined.
13389 (__scandir64_tail): Define regardless.
13390 (__scandirat, scandirat64): Remove libc_hidden_proto.
13391 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13392 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13394 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13395 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13396 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13397 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13398
13399 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13400
13401 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13402 New macro.
13403 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13404 Increase to 24.
13405 (_dl_aarch64_cap_flags): Add asimdfhm.
13406
13407 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13408
13409 * sysdeps/nios2/libm-test-ulps: Update.
13410
13411 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13412
13413 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13414 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13415
13416 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13417 requirements.
13418 (_DIRENT_MATCHES_DIRENT64): Undef
13419 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13420 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13421 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13422 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13423 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13424 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13425 use getdents64 syscalls as base.
13426 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13427 symbol if required.
13428 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13429 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13430 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13431 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13432 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13433 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13434 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13435 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13436 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13437 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13438 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13439
13440 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13441
13442 * scripts/test_printers_common.py (init_test): Disable lock elision.
13443
13444 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13445
13446 * math/test-tgmath.c (count_double, count_float,
13447 count_ldouble, count_cdouble, count_cfloat,
13448 count_cldouble): Use volatile int.
13449
13450 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13451
13452 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13453 (conformtest-xfail-conds): Add i386-gnu.
13454 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13455 i386-gnu.
13456 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13457 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13458 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13459 msqid_ds.msg_lrpid): Likewise.
13460 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13461 Likewise.
13462 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13463 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13464 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13465 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13466 unsigned int.
13467 (struct statvfs64): Likewise.
13468 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13469 Likewise.
13470 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13471 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13472 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13473 instead of wait_queue.
13474 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13475 instead of vm_area_struct.
13476 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13477 struct sched_param definition to it.
13478 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13479 * bits/types/struct_sched_param.h: New file.
13480 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13481 <bits/types/struct_sched_param.h> instead of <sched.h>.
13482 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13483 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13484 generic version but include <bits/pthreadtypes.h> to make struct
13485 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13486 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13487 non-compliant.
13488 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13489 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13490 [__USE_XOPEN] (OFDEL): New macro.
13491 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13492 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13493 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13494 prototypes.
13495 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13496 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13497 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13498 non-compliant.
13499 * sysdeps/i386/sys/ucontext.h: Likewise.
13500 * sysdeps/m68k/sys/ucontext.h: Likewise.
13501 * sysdeps/mips/sys/ucontext.h: Likewise.
13502 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13503 * sysdeps/mach/hurd/i386/Makefile
13504 (test-xfail-POSIX/fcntl.h/conform): Add.
13505 (test-xfail-POSIX/signal.h/conform): Add.
13506 (test-xfail-POSIX/semaphore.h/conform): Add.
13507 (test-xfail-POSIX/regex.h/conform): Add.
13508 (test-xfail-POSIX/aio.h/conform): Add.
13509 (test-xfail-POSIX/mqueue.h/conform): Add.
13510 (test-xfail-POSIX/sys/types.h/conform): Add.
13511 (test-xfail-UNIX98/fcntl.h/conform): Add.
13512 (test-xfail-UNIX98/netdb.h/conform): Add.
13513 (test-xfail-UNIX98/signal.h/conform): Add.
13514 (test-xfail-UNIX98/semaphore.h/conform): Add.
13515 (test-xfail-UNIX98/regex.h/conform): Add.
13516 (test-xfail-UNIX98/aio.h/conform): Add.
13517 (test-xfail-UNIX98/ftw.h/conform): Add.
13518 (test-xfail-UNIX98/mqueue.h/conform): Add.
13519 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13520 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13521 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13522 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13523 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13524 (test-xfail-UNIX98/sys/types.h/conform): Add.
13525 (test-xfail-UNIX98/stdlib.h/conform): Add.
13526 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13527 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13528 (test-xfail-POSIX2008/netdb.h/conform): Add.
13529 (test-xfail-POSIX2008/signal.h/conform): Add.
13530 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13531 (test-xfail-POSIX2008/regex.h/conform): Add.
13532 (test-xfail-POSIX2008/aio.h/conform): Add.
13533 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13534 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13535 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13536 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13537 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13538 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13539 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13540 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13541 (test-xfail-XOPEN2K/signal.h/conform): Add.
13542 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13543 (test-xfail-XOPEN2K/regex.h/conform): Add.
13544 (test-xfail-XOPEN2K/aio.h/conform): Add.
13545 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13546 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13547 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13548 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13549 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13550 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13551 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13552 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13553 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13554 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13555 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13556 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13557 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13558 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13559 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13560 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13561 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13562 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13563 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13564 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13565 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13566 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13567 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13568 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13569 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13570 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13571 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13572 i386-gnu.
13573 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13574 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13575
13576 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13577
13578 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13579 --enable-obsolete for powerpc-linux-gnuspe.
13580
13581 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13582
13583 * conform/data/sys/un.h-data: Allow sun_ prefix.
13584 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13585 prototypes.
13586 * sysdeps/mach/include/mach.h: Likewise.
13587 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13588 * sysdeps/mach/include/mach_error.h: Likewise.
13589
13590 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13591
13592 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13593 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13594 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13595 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13596
13597 2018-04-16 Andreas Schwab <schwab@suse.de>
13598
13599 [BZ #19527]
13600 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13601
13602 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13603
13604 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13605 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13606
13607 2018-04-12 DJ Delorie <dj@redhat.com>
13608
13609 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13610 version to 4.16.
13611
13612 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13613
13614 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13615 (struct kernel_sigaction): Use the same definition on 31bit as is used
13616 on 64bit.
13617
13618 2018-04-09 Florian Weimer <fweimer@redhat.com>
13619
13620 [BZ #23037]
13621 * resolv/res_send.c (send_dg): Use designated initializers instead
13622 of assignment to zero-initialize other fields of struct mmsghdr.
13623
13624 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13625
13626 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13627 __READDIR_ALIAS): Undefine after usage.
13628 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13629 __READDIR_R_ALIAS): Likewise.
13630 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13631 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13632 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13633 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13634 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13635 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13636 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13637 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13638 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13639 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13640 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13641 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13642 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13643 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13644 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13645 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13646 * sysdeps/unix/sysv/linux/readdir.c: New file.
13647 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13648 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13649 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13650
13651 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13652
13653 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13654
13655 * manual/charset.texi (Converting a Character): Fix typo.
13656
13657 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13658
13659 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13660
13661 * sysdeps/arm/libm-test-ulps: Update.
13662
13663 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13664 as base implementation.
13665 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13666 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13667 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13668 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13669 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13670 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13671 remove unrequired definitions and update comments.
13672 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13673 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13674 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13675 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13676 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13677 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13678 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13679 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13680 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13681 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13682 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13683 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13684 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13685 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13686 and RESET_SA_RESTORER hooks.
13687
13688 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13689
13690 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13691
13692 2018-04-05 Florian Weimer <fweimer@redhat.com>
13693
13694 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13695 integer overflow, memory leak on error, and indeterminate errno
13696 value. Add a null wide character to terminate the result string.
13697 * manual/charset.texi (Converting a Character): Mention embedded
13698 null bytes in the mbrtowc input string. Explain what happens in
13699 the -2 result case. Do not claim that mbrtowc is simple or
13700 obvious to use. Adjust the description of the code example. Use
13701 @code, not @var, for concrete variables.
13702
13703 2018-04-05 Florian Weimer <fweimer@redhat.com>
13704
13705 * manual/examples/mbstouwcs.c: New file.
13706 * manual/charset.texi (Converting a Character): Include it.
13707
13708 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13709
13710 * include/dirent.h (dirfd): Add hidden proto.
13711 * dirent/dirfd.c (dirfd): Add hidden def.
13712 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13713 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13714
13715 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13716
13717 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13718 sin, cos and sincos to 1 ULP.
13719
13720 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13721
13722 [BZ #19818]
13723 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13724 symbols.
13725 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13726 * elf/tst-absolute-sym.c: New file.
13727 * elf/tst-absolute-sym-lib.c: New file.
13728 * elf/tst-absolute-sym-lib.lds: New file.
13729 * elf/Makefile (tests): Add `tst-absolute-sym'.
13730 (modules-names): Add `tst-absolute-sym-lib'.
13731 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13732 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13733 ($(objpfx)tst-absolute-sym): New dependency.
13734
13735 [BZ #19818]
13736 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13737 parameter.
13738 (SYMBOL_ADDRESS): New macro.
13739 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13740 SYMBOL_ADDRESS for symbol address calculation.
13741 * elf/dl-runtime.c (_dl_fixup): Likewise.
13742 (_dl_profile_fixup): Likewise.
13743 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13744 * elf/rtld.c (dl_main): Likewise.
13745 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13746 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13747 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13748 (elf_machine_rela): Likewise.
13749 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13750 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13751 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13752 (elf_machine_rela): Likewise.
13753 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13754 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13755 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13756 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13757 Likewise.
13758 (elf_machine_reloc): Likewise.
13759 (elf_machine_got_rel): Likewise.
13760 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13761 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13762 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13763 Likewise.
13764 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13765 Likewise.
13766 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13767 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13768 Likewise.
13769 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13770 Likewise.
13771 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13772 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13773 Likewise.
13774 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13775 Likewise.
13776 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13777 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13778
13779 2018-04-04 Zack Weinberg <zackw@panix.com>
13780
13781 * sysdeps/generic/internal-signals.h: Include signal.h,
13782 sigsetops.h, and stdbool.h.
13783 (__libc_signal_block_all): Actually block all signals.
13784 (__libc_signal_block_app): Likewise.
13785 (__libc_signal_restore_set): Actually restore the signal mask.
13786
13787 2018-04-04 Florian Weimer <fweimer@redhat.com>
13788
13789 inet: Actually build and run tst-deadline.
13790 * inet/Makefile (tests-internal): Add tst-deadline and do not
13791 overwrite the variable.
13792 (tests-static-internal): Remove variable.
13793
13794 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13795
13796 [BZ #22947]
13797 * bits/uio-ext.h (RWF_APPEND): New.
13798 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13799 * manual/llio.texi: Document RWF_APPEND.
13800 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13801 (RWF_SUPPORTED): Add RWF_APPEND.
13802
13803 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13804
13805 [BZ #22391]
13806 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13807 check for internal nptl signals.
13808 * nptl/sigaction.c (__sigaction): Likewise.
13809 * signal/sigaddset.c (sigaddset): Likewise.
13810 * signal/sigdelset.c (sigdelset): Likewise.
13811 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13812 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13813 value.
13814 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13815 to filter out internal nptl signals.
13816 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13817 also check realtime signals using standard macros.
13818 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13819 __is_internal_signal, __libc_signal_block_all,
13820 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13821 * sysdeps/nptl/sigfillset.c: Remove file.
13822 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13823 Change return to bool.
13824 (__clear_internal_signals): Remove SIGTIMER clean since it is
13825 equal to SIGCANEL on Linux.
13826 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13827 signal set was constructed using standard functions.
13828
13829 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13830
13831 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13832 ifname is too long.
13833 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13834 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13835 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13836 hidden def.
13837 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13838 * signal/sigaddset.c: Include <sigsetopts.h>.
13839 * signal/sigdelset.c: Likewise.
13840
13841 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13842
13843 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13844 (__cos): Likewise.
13845 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13846 logic as sin and cos.
13847
13848 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13849
13850 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13851 inputs. Return correct sign.
13852 (do_sincos): Remove small input check before do_sin, let do_sin set
13853 the sign.
13854 (__sin): Likewise.
13855 (__cos): Likewise.
13856
13857 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13858
13859 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13860 (do_cos_slow): Likewise.
13861 (do_sin_slow): Likewise.
13862 (reduce_and_compute): Likewise.
13863 (slow): Likewise.
13864 (slow1): Likewise.
13865 (slow2): Likewise.
13866 (sloww): Likewise.
13867 (sloww1): Likewise.
13868 (sloww2): Likewise.
13869 (bslow): Likewise.
13870 (bslow1): Likewise.
13871 (bslow2): Likewise.
13872 (cslow2): Likewise.
13873
13874 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13875
13876 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13877 (do_cos): Remove corp parameter and calculations.
13878 (do_sin): Likewise.
13879 (do_sincos): Remove cor variable.
13880 (__sin): Use do_sincos for huge inputs.
13881 (__cos): Likewise.
13882 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13883 (reduce_and_compute_sincos): Remove unused function.
13884
13885 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13886
13887 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13888 reduce_sincos, improve accuracy to 136 bits.
13889 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13890 (__sin): Use improved reduction and simplified do_sincos calculation.
13891 (__cos): Likewise.
13892 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13893
13894 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13895
13896 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13897 (do_sincos_2): Likewise.
13898 (__sin): Remove middle range reduction case.
13899 (__cos): Likewise.
13900 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13901 reduction case.
13902
13903 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13904
13905 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13906 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13907 inputs.
13908 (__cos): Likewise.
13909 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13910
13911 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13912
13913 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13914 version to 4.16
13915
13916 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13917
13918 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13919 Remove definitions.
13920 (opendir_oflags): Use O_DIRECTORY regardless.
13921 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13922 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13923
13924 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13925
13926 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13927 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13928 macros.
13929 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13930 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13931 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13932 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13933 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13934 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13935
13936 * htl/Makefile: Bump licence to LGPL 2.1+.
13937 * htl/alloca_cutoff.c: Likewise.
13938 * htl/cthreads-compat.c: Likewise.
13939 * htl/lockfile.c: Likewise.
13940 * htl/pt-alloc.c: Likewise.
13941 * htl/pt-cancel.c: Likewise.
13942 * htl/pt-cleanup.c: Likewise.
13943 * htl/pt-create.c: Likewise.
13944 * htl/pt-dealloc.c: Likewise.
13945 * htl/pt-detach.c: Likewise.
13946 * htl/pt-exit.c: Likewise.
13947 * htl/pt-getattr.c: Likewise.
13948 * htl/pt-initialize.c: Likewise.
13949 * htl/pt-internal.h: Likewise.
13950 * htl/pt-join.c: Likewise.
13951 * htl/pt-self.c: Likewise.
13952 * htl/pt-setcancelstate.c: Likewise.
13953 * htl/pt-setcanceltype.c: Likewise.
13954 * htl/pt-sigmask.c: Likewise.
13955 * htl/pt-spin-inlines.c: Likewise.
13956 * htl/pt-testcancel.c: Likewise.
13957 * htl/pt-yield.c: Likewise.
13958 * htl/tests/test-1.c: Likewise.
13959 * htl/tests/test-10.c: Likewise.
13960 * htl/tests/test-11.c: Likewise.
13961 * htl/tests/test-12.c: Likewise.
13962 * htl/tests/test-13.c: Likewise.
13963 * htl/tests/test-14.c: Likewise.
13964 * htl/tests/test-15.c: Likewise.
13965 * htl/tests/test-16.c: Likewise.
13966 * htl/tests/test-17.c: Likewise.
13967 * htl/tests/test-2.c: Likewise.
13968 * htl/tests/test-3.c: Likewise.
13969 * htl/tests/test-4.c: Likewise.
13970 * htl/tests/test-5.c: Likewise.
13971 * htl/tests/test-6.c: Likewise.
13972 * htl/tests/test-7.c: Likewise.
13973 * htl/tests/test-8.c: Likewise.
13974 * htl/tests/test-9.c: Likewise.
13975 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13976 * sysdeps/htl/bits/cancelation.h: Likewise.
13977 * sysdeps/htl/bits/pthread-np.h: Likewise.
13978 * sysdeps/htl/bits/pthread.h: Likewise.
13979 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13980 * sysdeps/htl/bits/semaphore.h: Likewise.
13981 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13982 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13983 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13984 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13985 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13986 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13987 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13988 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13989 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13990 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13991 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13992 * sysdeps/htl/old_pt-atfork.c: Likewise.
13993 * sysdeps/htl/pt-atfork.c: Likewise.
13994 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13995 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13996 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13997 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13998 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13999 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
14000 * sysdeps/htl/pt-attr-getscope.c: Likewise.
14001 * sysdeps/htl/pt-attr-getstack.c: Likewise.
14002 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
14003 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
14004 * sysdeps/htl/pt-attr-init.c: Likewise.
14005 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
14006 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
14007 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
14008 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
14009 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
14010 * sysdeps/htl/pt-attr-setscope.c: Likewise.
14011 * sysdeps/htl/pt-attr-setstack.c: Likewise.
14012 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
14013 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
14014 * sysdeps/htl/pt-attr.c: Likewise.
14015 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
14016 * sysdeps/htl/pt-barrier-init.c: Likewise.
14017 * sysdeps/htl/pt-barrier-wait.c: Likewise.
14018 * sysdeps/htl/pt-barrier.c: Likewise.
14019 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
14020 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
14021 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
14022 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
14023 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
14024 * sysdeps/htl/pt-cond-destroy.c: Likewise.
14025 * sysdeps/htl/pt-cond-init.c: Likewise.
14026 * sysdeps/htl/pt-cond-signal.c: Likewise.
14027 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14028 * sysdeps/htl/pt-cond-wait.c: Likewise.
14029 * sysdeps/htl/pt-cond.c: Likewise.
14030 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14031 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14032 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14033 * sysdeps/htl/pt-condattr-init.c: Likewise.
14034 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14035 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14036 * sysdeps/htl/pt-destroy-specific.c: Likewise.
14037 * sysdeps/htl/pt-equal.c: Likewise.
14038 * sysdeps/htl/pt-getconcurrency.c: Likewise.
14039 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14040 * sysdeps/htl/pt-getschedparam.c: Likewise.
14041 * sysdeps/htl/pt-getspecific.c: Likewise.
14042 * sysdeps/htl/pt-init-specific.c: Likewise.
14043 * sysdeps/htl/pt-key-create.c: Likewise.
14044 * sysdeps/htl/pt-key-delete.c: Likewise.
14045 * sysdeps/htl/pt-key.h: Likewise.
14046 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14047 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14048 * sysdeps/htl/pt-mutex-init.c: Likewise.
14049 * sysdeps/htl/pt-mutex-lock.c: Likewise.
14050 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14051 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14052 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14053 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14054 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14055 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14056 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14057 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14058 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14059 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14060 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14061 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14062 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14063 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14064 * sysdeps/htl/pt-mutexattr.c: Likewise.
14065 * sysdeps/htl/pt-once.c: Likewise.
14066 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14067 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14068 * sysdeps/htl/pt-rwlock-init.c: Likewise.
14069 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14070 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14071 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14072 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14073 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14074 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14075 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14076 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14077 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14078 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14079 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14080 * sysdeps/htl/pt-setconcurrency.c: Likewise.
14081 * sysdeps/htl/pt-setschedparam.c: Likewise.
14082 * sysdeps/htl/pt-setschedprio.c: Likewise.
14083 * sysdeps/htl/pt-setspecific.c: Likewise.
14084 * sysdeps/htl/pt-spin.c: Likewise.
14085 * sysdeps/htl/pt-startup.c: Likewise.
14086 * sysdeps/htl/pthread.h: Likewise.
14087 * sysdeps/htl/sem-close.c: Likewise.
14088 * sysdeps/htl/sem-destroy.c: Likewise.
14089 * sysdeps/htl/sem-getvalue.c: Likewise.
14090 * sysdeps/htl/sem-init.c: Likewise.
14091 * sysdeps/htl/sem-open.c: Likewise.
14092 * sysdeps/htl/sem-post.c: Likewise.
14093 * sysdeps/htl/sem-timedwait.c: Likewise.
14094 * sysdeps/htl/sem-trywait.c: Likewise.
14095 * sysdeps/htl/sem-unlink.c: Likewise.
14096 * sysdeps/htl/sem-wait.c: Likewise.
14097 * sysdeps/hurd/htl/pt-kill.c: Likewise.
14098 * sysdeps/i386/htl/pt-machdep.h: Likewise.
14099 * sysdeps/mach/htl/pt-block.c: Likewise.
14100 * sysdeps/mach/htl/pt-spin.c: Likewise.
14101 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14102 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14103 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14104 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14105 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14106 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14107 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14108 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14109 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14110 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14111 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14112 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14113 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14114 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14115 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14116 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14117 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14118 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14119 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14120 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14121 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14122 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14123 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14124 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14125 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14126 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14127 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14128 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14129 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14130 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14131 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14132 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14133 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14134 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14135 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14136 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14137 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14138 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14139 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14140 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14141 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14142 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14143 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14144
14145 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14146 * README: Remove the mention of out-of-tree patches needed for
14147 GNU/Hurd.
14148
14149 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14150 (UTIME_NOW, UTIME_OMIT): Define macros.
14151
14152 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14153 instead of pthread_detach.
14154 (__cthread_fork): Call __pthread_create instead of pthread_create.
14155 (__cthread_keycreate): Call __pthread_key_create instead of
14156 pthread_key_create.
14157 (__cthread_getspecific): Call __pthread_getspecific instead of
14158 pthread_getspecific.
14159 (__cthread_setspecific): Call __pthread_setspecific instead of
14160 pthread_setspecific.
14161 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14162 __pthread_mutex_unlock instead of pthread_mutex_lock and
14163 pthread_mutex_unlock.
14164 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14165 ___pthread_get_cleanup_stack.
14166 (__pthread_get_cleanup_stack): New strong alias.
14167 * htl/pt-create.c: Include <pthreadP.h>.
14168 (entry_point): Call __pthread_exit instead of pthread_exit.
14169 (pthread_create): Rename to __pthread_create.
14170 (pthread_create): New strong alias.
14171 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14172 (pthread_detach): New strong alias.
14173 (__pthread_detach): Call __pthread_cond_broadcast instead of
14174 pthread_cond_broadcast.
14175 * htl/pt-exit.c: Include <pthreadP.h>.
14176 (__pthread_exit): Call __pthread_setcancelstate and
14177 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14178 __pthread_get_cleanup_stack.
14179 * htl/pt-testcancel.c: Include <pthreadP.h>.
14180 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14181 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14182 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14183 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14184 pthread_attr_getstacksize.
14185 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14186 Rename to __pthread_attr_getstackaddr.
14187 (pthread_attr_getstackaddr): New strong alias.
14188 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14189 Rename to __pthread_attr_getstacksize.
14190 (pthread_attr_getstacksize): New strong alias.
14191 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14192 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14193 (pthread_attr_setstack): New strong alias.
14194 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14195 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14196 pthread_attr_getstacksize, pthread_attr_setstacksize and
14197 pthread_attr_setstackaddr.
14198 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14199 Rename to __pthread_attr_setstackaddr.
14200 (pthread_attr_setstackaddr): New strong alias.
14201 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14202 Rename to __pthread_attr_setstacksize.
14203 (pthread_attr_setstacksize): New strong alias.
14204 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14205 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14206 pthread_exit.
14207 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14208 (__pthread_key_create): New hidden def.
14209 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14210 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14211 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14212 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14213 __pthread_setspecific, __pthread_setcancelstate,
14214 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14215 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14216 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14217 declarations.
14218 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14219 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14220 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14221 (pthread_attr_setstackaddr): New strong alias.
14222 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14223 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14224 (pthread_attr_setstacksize): New strong alias.
14225 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14226 (call_exit): Call __pthread_exit instead of pthread_exit.
14227 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14228 (_pthread_mutex_init): New hidden definition.
14229 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14230 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14231 instead of pthread_attr_init and pthread_attr_setstack.
14232
14233 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14234 __vm_deallocate instead of vm_allocate and vm_deallocate.
14235 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14236 setenv.
14237 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14238 of geteuid.
14239 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14240 strdup.
14241 * hurd/siginfo.c: Include <libioP.h>.
14242 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14243 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14244 munmap.
14245 * mach/devstream.c: Include <libioP.h>.
14246 (dealloc_ref): Call __mach_port_deallocate instead of
14247 mach_port_deallocate.
14248 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14249 Call __mach_port_deallocate instead of mach_port_deallocate.
14250 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14251 pathconf.
14252 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14253 munmap.
14254 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14255 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14256 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14257 of munmap.
14258 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14259 of close.
14260 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14261 instead of sysconf.
14262 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14263 __clock_gettime instead of clock_gettime.
14264 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14265 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14266 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14267 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14268 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14269 tcgetattr.
14270 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14271 __clock_gettime and __nanosleep instead of clock_gettime and
14272 nanosleep.
14273 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14274 __hurd_catch_signal.
14275 (hurd_catch_signal): New strong alias.
14276 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14277 __hurd_catch_signal instead of hurd_catch_signal.
14278 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14279 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14280 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14281 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14282 (_hurd_thread_sigstate): Add hidden def.
14283 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14284 mutex_unlock.
14285 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14286 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14287 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14288 __hurd_file_name_path_lookup.
14289 (hurd_file_name_path_lookup): New strong alias.
14290 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14291 hurd_file_name_path_lookup.
14292 * mach/errstring.c (mach_error_type): Add hidden def.
14293 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14294 * mach/mutex-init.c (__mutex_init): Add hidden def.
14295 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14296 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14297 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14298 * sysdeps/mach/hurd/getcwd.c
14299 (_hurd_canonicalize_directory_name_internal): Rename to
14300 __hurd_canonicalize_directory_name_internal.
14301 (_hurd_canonicalize_directory_name_internal): New strong alias.
14302 (__canonicalize_directory_name_internal, __getcwd): Call
14303 __hurd_canonicalize_directory_name_internal instead of
14304 _hurd_canonicalize_directory_name_internal.
14305 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14306 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14307 hidden defs.
14308 * sysdeps/hurd/include/hurd.h: New file.
14309 * sysdeps/hurd/include/hurd/fd.h: New file.
14310 * sysdeps/hurd/include/hurd/signal.h: New file.
14311 * sysdeps/mach/include/lock-intern.h: New file.
14312 * sysdeps/mach/include/mach.h: New file.
14313 * sysdeps/mach/include/mach/mig_support.h: New file.
14314 * sysdeps/mach/include/mach_error.h: New file.
14315 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14316 prototype.
14317 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14318 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14319 _HEADER_H_HIDDEN_DEF macro.
14320 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14321 _hurd_fd_error_signal): Add hidden prototype.
14322 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14323 hidden def.
14324 * libio/iolibio.h (_IO_puts): New hidden prototype.
14325 * libio/ioputs.c (_IO_puts): New hidden def.
14326 * sysdeps/mach/hurd/localplt.data: New file.
14327
14328 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14329 Amos Jeffries <squid3@treenet.co.nz>
14330 David Michael <fedora.dm0@gmail.com>
14331 Marco Gerards <marco@gnu.org>
14332 Marcus Brinkmann <marcus@gnu.org>
14333 Neal H. Walfield <neal@gnu.org>
14334 Pino Toscano <toscano.pino@tiscali.it>
14335 Richard Braun <rbraun@sceen.net>
14336 Roland McGrath <roland@gnu.org>
14337 Samuel Thibault <samuel.thibault@ens-lyon.org>
14338 Thomas DiModica <ricinwich@yahoo.com>
14339 Thomas Schwinge <tschwinge@gnu.org>
14340
14341 * htl: New directory.
14342 * sysdeps/htl: New directory.
14343 * sysdeps/hurd/htl: New directory.
14344 * sysdeps/i386/htl: New directory.
14345 * sysdeps/mach/htl: New directory.
14346 * sysdeps/mach/hurd/htl: New directory.
14347 * sysdeps/mach/hurd/i386/htl: New directory.
14348 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14349 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14350 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14351
14352 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14353
14354 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14355 signals in thread created for runing timers.
14356
14357 2018-04-01 Florian Weimer <fweimer@redhat.com>
14358
14359 * support/support_format_addrinfo.c (support_format_addrinfo):
14360 Include unknown error number in formatted result.
14361
14362 2018-03-29 Florian Weimer <fweimer@redhat.com>
14363
14364 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14365 capture SIGBUS.
14366
14367 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14368
14369 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14370 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14371 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14372 (__ASSUME_CLONE_BACKWARDS): Define.
14373
14374 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14375
14376 [BZ #23024]
14377 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14378 early when linux sentinel value is set.
14379
14380 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14381
14382 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14383
14384 2018-03-27 Andreas Schwab <schwab@suse.de>
14385
14386 [BZ #23005]
14387 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14388 allocation of private copy of nsaddr_list fails.
14389
14390 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14391
14392 [BZ #16552]
14393 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14394 * sysdeps/unix/sysv/linux/umount.c: ... here.
14395 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14396 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14397 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14398 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14400 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14401 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14402
14403 2018-03-26 Andreas Schwab <schwab@suse.de>
14404
14405 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14406 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14407 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14408 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14409 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14410 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14411 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14412 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14413 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14414 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14415 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14416 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14417 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14418 (R_RISCV_NUM): Define.
14419
14420 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14421
14422 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14423 TLS declaration of errno.
14424 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14425 __libc_setup_tls.
14426 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14427 (ARCH_SETUP_TLS): Likewise.
14428 * sysdeps/mach/hurd/libc-start.h: New file copied from
14429 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14430 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14431 instead of __libc_setup_tls.
14432 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14433 __libc_setup_tls before initializing libpthread and running _hurd_init
14434 which starts the signal thread.
14435 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14436 Declare function.
14437 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14438
14439 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14440
14441 [BZ #22998]
14442 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14443 after it is defined.
14444
14445 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14446 Max Horn <max@quendi.de>
14447
14448 [BZ #22644]
14449 CVE-2017-18269
14450 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14451 branch conditions.
14452 * string/test-memmove.c (do_test2): New testcase.
14453
14454 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14455
14456 * sysdeps/generic/frame.h: Remove file.
14457 * sysdeps/arm/frame.h: Likewise.
14458 * sysdeps/hppa/frame.h: Likewise.
14459 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14460 macro.
14461 (GET_FRAME): Likewise.
14462 (GET_STACK): Likewise.
14463 (CALL_SIGHANDLER): Likewise.
14464 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14465 Likewise.
14466 (GET_FRAME): Likewise.
14467 (GET_STACK): Likewise.
14468 (CALL_SIGHANDLER): Likewise.
14469 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14470 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14471 (GET_FRAME): Likewise.
14472 (GET_STACK): Likewise.
14473 (CALL_SIGHANDLER): Likewise.
14474 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14475 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14476 (GET_FRAME): Likewise.
14477 (GET_STACK): Likewise.
14478 (ADVANCE_STACK_FRAME): Likewise.
14479 (CALL_SIGHANDLER): Likewise.
14480 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14481 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14482 (GET_FRAME): Likewise.
14483 (GET_STACK): Likewise.
14484 (CALL_SIGHANDLER): Likewise.
14485 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14486 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14487 (GET_FRAME): Likewise.
14488 (GET_STACK): Likewise.
14489 (CALL_SIGHANDLER): Likewise.
14490 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14491 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14492 (GET_FRAME): Likewise.
14493 (GET_STACK): Likewise.
14494 (CALL_SIGHANDLER): Likewise.
14495 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14496 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14497 (GET_FRAME): Likewise.
14498 (GET_STACK): Likewise.
14499 (CALL_SIGHANDLER): Likewise.
14500 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14501 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14502 (GET_FRAME): Likewise.
14503 (GET_STACK): Likewise.
14504 (CALL_SIGHANDLER): Likewise.
14505 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14506 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14507 (GET_FRAME): Likewise.
14508 (GET_STACK): Likewise.
14509 (CALL_SIGHANDLER): Likewise.
14510 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14511 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14512 (GET_FRAME): Likewise.
14513 (GET_STACK): Likewise.
14514 (CALL_SIGHANDLER): Likewise.
14515 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14516 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14517 (GET_FRAME): Likewise.
14518 (GET_STACK): Likewise.
14519 (CALL_SIGHANDLER): Likewise.
14520 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14521 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14522 (GET_FRAME): Likewise.
14523 (GET_STACK): Likewise.
14524 (CALL_SIGHANDLER): Likewise.
14525 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14526 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14527 (FIRST_FRAME_POINTER): Likewise.
14528 (ADVANCE_STACK_FRAME): Likewise.
14529 (GET_STACK): Likewise.
14530 (GET_FRAME): Likewise.
14531 (CALL_SIGHANDLER): Likewise.
14532 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14533 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14534 (ADVANCE_STACK_FRAME): Likewise.
14535 (GET_STACK): Likewise.
14536 (GET_FRAME): Likewise.
14537 (CALL_SIGHANDLER): Likewise.
14538 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14539 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14540 (GET_FRAME): Likewise.
14541 (GET_STACK): Likewise.
14542 (CALL_SIGHANDLER): Likewise.
14543 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14544 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14545 (GET_FRAME): Likewise.
14546 (GET_STACK): Likewise.
14547 (CALL_SIGHANDLER): Likewise.
14548
14549 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14550
14551 * sysdeps/x86_64/backtrace.c: Move to ....
14552 * debug/backtrace.c: ... here.
14553 * sysdeps/aarch64/backtrace.c: Remove file.
14554 * sysdeps/alpha/backtrace.c: Likewise.
14555 * sysdeps/hppa/backtrace.c: Likewise.
14556 * sysdeps/ia64/backtrace.c: Likewise.
14557 * sysdeps/mips/backtrace.c: Likewise.
14558 * sysdeps/nios2/backtrace.c: Likewise.
14559 * sysdeps/riscv/backtrace.c: Likewise.
14560 * sysdeps/sh/backtrace.c: Likewise.
14561 * sysdeps/tile/backtrace.c: Likewise.
14562
14563 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14564
14565 [BZ #22987]
14566 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14567 function.
14568 (fdimf): Likewise.
14569 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14570
14571 [BZ #17343]
14572 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14573 possibly overflowing computations.
14574
14575 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14576
14577 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14578 values from Linux-specific section now that it is in the GNU section.
14579 * sysdeps/gnu/errlist.c: Regenerate.
14580
14581 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14582
14583 * math/Makefile (libm-narrow-fns): Add sub.
14584 (libm-test-funcs-narrow): Likewise.
14585 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14586 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14587 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14588 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14589 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14590 (NARROW_SUB_TRIVIAL): Likewise.
14591 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14592 macro.
14593 (__dsubl): Likewise.
14594 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14595 dsub.
14596 (CFLAGS-nldbl-dsub.c): New variable.
14597 (CFLAGS-nldbl-fsub.c): Likewise.
14598 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14599 __nldbl_dsubl.
14600 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14601 prototype.
14602 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14603 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14604 * math/auto-libm-test-in: Add tests of sub.
14605 * math/auto-libm-test-out-narrow-sub: New generated file.
14606 * math/libm-test-narrow-sub.inc: New file.
14607 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14608 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14609 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14610 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14611 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14612 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14613 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14614 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14615 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14616 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14617 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14618 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14619 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14620 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14621 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14622 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14623 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14624 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14625 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14626 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14631 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14632 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14633 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14634 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14635 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14638 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14646 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14647 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14653
14654 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14655
14656 [BZ #20079]
14657 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14658
14659 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14660
14661 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14662
14663 2018-03-18 Richard Braun <rbraun@sceen.net>
14664
14665 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14666 thread reference.
14667
14668 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14669
14670 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14671 (__libc_cleanup_fct): Define function.
14672 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14673 __libc_cleanup_end): Rewrite implementation using
14674 __attribute__ ((__cleanup__)).
14675 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14676 * hurd/Makefile (routines): Add hurdlock.
14677 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14678 interface.
14679 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14680 * hurd/hurdpid.c: Include <lowlevellock.h>
14681 (_S_msg_proc_newids): Use lll_wait to synchronize.
14682 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14683 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14684 * mach/Makefile (lock-headers): Remove machine-lock.h.
14685 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14686 <machine-lock.h>.
14687 (__spin_lock_t): New type.
14688 (__SPIN_LOCK_INITIALIZER): New macro.
14689 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14690 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14691 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14692 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14693 (__mutex_init): Initialize with lll.
14694 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14695 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14696 needing lll.
14697 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14698 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14699 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14700 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14701 (__setpgid): Use lll for synchronization.
14702 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14703 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14704 instead of <cthreads.h>.
14705 (_IO_lock_inexpensive): New macro
14706 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14707 (__libc_lock_self0): New declaration.
14708 (__libc_lock_owner_self): New macro.
14709 (__libc_key_t): Remove type.
14710 (_LIBC_LOCK_INITIALIZER): New macro.
14711 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14712 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14713 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14714 __libc_lock_define_initialized_recursive,
14715 __rtld_lock_define_initialized_recursive,
14716 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14717 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14718 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14719 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14720 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14721 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14722 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14723 New macros.
14724 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14725 * hurd/hurdlock.c: New file.
14726 * hurd/hurdlock.h: New file.
14727 * mach/lowlevellock.h: New file
14728
14729 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14730
14731 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14732 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14733 when opening a symlink with O_NOFOLLOW.
14734 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14735 path when flags contains O_NOFOLLOW.
14736 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14737 if flags contains O_DIRECTORY and the result is a directory.
14738 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14739 oneself when the pointer given in D is nul (as set by ext2fs).
14740 * sysdeps/mach/hurd/mlockall.c: New file.
14741 * sysdeps/mach/hurd/munlockall.c: New file.
14742
14743 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14744
14745 * hurd/hurdsig.c: Include <pthread.h>.
14746 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14747 get the signal thread stack layout.
14748 * hurd/Makefile (headers): Remove threadvar.h.
14749 (inline-headers): Remove threadvar.h.
14750 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14751 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14752 __hurd_threadvar_max, __hurd_errno_location.
14753 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14754 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14755 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14756 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14757 unless TLS is not initialized yet, in which case we do not need a
14758 critical section yet anyway.
14759 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14760 <machine-sp.h>.
14761 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14762 declarations.
14763 (__hurd_threadvar_index): Remove enum.
14764 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14765 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14766 inlines.
14767 (__hurd_reply_port0): New variable declaration.
14768 (__hurd_local_reply_port): New macro.
14769 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14770 (interrupted_reply_port_location): Add thread_t parameter. Use it
14771 with THREAD_TCB to access thread-local variables.
14772 (_hurdsig_abort_rpcs): Pass ss->thread to
14773 interrupted_reply_port_location.
14774 (_hurd_internal_post_signal): Likewise.
14775 (_hurdsig_init): Use presence of cthread_fork instead of
14776 __hurd_threadvar_stack_mask to start signal thread by hand.
14777 Remove signal thread threadvar initialization.
14778 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14779 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14780 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14781 of threadvar.
14782 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14783 __libc_lock_self0.
14784 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14785 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14786 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14787 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14788 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14789 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14790 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14791 define variables.
14792 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14793 <hurd/threadvar.h>.
14794 [IS_IN(rtld)] (rtld_errno): New variable.
14795 [IS_IN(rtld)] (__errno_location): New weak function.
14796 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14797 * sysdeps/mach/hurd/errno.c: Remove file.
14798 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14799 (__fork): Remove THREADVAR_SPACE macro and its use.
14800 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14801 variable.
14802 (init): Do not initialize threadvar.
14803 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14804 symbol.
14805 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14806 __hurd_local_reply_port instead of threadvar.
14807 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14808 _hurd_sigstate fields.
14809 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14810 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14811 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14812 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14813 instead of threadvar.
14814 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14815 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14816 (use_threadvar, global_reply_port): Remove variables.
14817 (__hurd_reply_port0): New variable.
14818 (__mig_get_reply_port): Use __hurd_local_reply_port and
14819 __hurd_reply_port0 instead of threadvar.
14820 (__mig_dealloc_reply_port): Likewise.
14821 (__mig_init): Do not initialize threadvar.
14822 * sysdeps/mach/hurd/profil.c: Fix comment.
14823 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14824 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14825 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14826 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14827 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14828 __cthread_setspecific.
14829 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14830 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14831 __cthread_t instead of cthread_fork, cthread_detach,
14832 pthread_getattr_np, pthread_attr_getstack.
14833 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14834 __cthread_keycreate.
14835 (cthread_getspecific): Rename to __cthread_getspecific.
14836 (cthread_setspecific): Rename to __cthread_setspecific.
14837 (__libc_getspecific): Use __cthread_getspecific instead of
14838 cthread_getspecific.
14839 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14840 __cthread_keycreate instead of cthread_keycreate.
14841 (__libc_setspecific): Use __cthread_setspecific instead of
14842 cthread_setspecific.
14843 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14844 Likewise.
14845 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14846 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14847 testing whether it is defined.
14848
14849 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14850
14851 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14852 Define macro.
14853 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14854 * sysdeps/mach/i386/thread_state.h
14855 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14856 i386_THREAD_STATE.
14857 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14858 i386_THREAD_STATE.
14859 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14860
14861 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14862 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14863
14864 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14865 macros.
14866 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14867 descriptor instead of creating a new one.
14868 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14869
14870 * mach/setup-thread.c: Include <ldsodefs.h>.
14871 (__mach_setup_thread): Call _dl_allocate_tls, pass
14872 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14873 MACHINE_THREAD_STATE_FLAVOR, before getting
14874 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14875 MACHINE_THREAD_STATE_FLAVOR with the result.
14876 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14877 MACHINE_THREAD_STATE_FIX_NEW.
14878 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14879 too. Add original thread parameter.
14880
14881 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14882
14883 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14884 Remove inline function.
14885
14886 * sysdeps/i386/fpu/libm-test-ulps: Update.
14887 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14888
14889 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14890
14891 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14892 commit.
14893
14894 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14895
14896 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14897 (__sincos_code): Remove define and undefine.
14898 [__FAST_MATH__] (__sincos): Remove inline function.
14899 [__FAST_MATH__] (__sincosf): Remove inline function.
14900 [__FAST_MATH__] (__sincosl): Remove inline function.
14901 (__atan2l): Remove inline functions.
14902 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14903 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14904 function.
14905 (floor): Remove inline function.
14906 (ceil): Likewise.
14907 [__FAST_MATH__] (__ldexp_code): Remove macro.
14908 [__FAST_MATH__] (ldexp): Remove inline function.
14909 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14910 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14911 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14912 [__USE_ISOC99] (__lrint_code): Remove macro.
14913 [__USE_ISOC99] (__llrint_code): Likewise.
14914 [__USE_ISOC99] (lrintf): Remove inline function.
14915 [__USE_ISOC99] (lrint): Likewise.
14916 [__USE_ISOC99] (lrintl): Likewise.
14917 [__USE_ISOC99] (llrint): Likewise.
14918 [__USE_ISOC99] (llrintf): Likewise.
14919 [__USE_ISOC99] (llrintl): Likewise.
14920
14921 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14922
14923 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14924 (__ieee754_sqrtf): Remove.
14925 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14926 (__ieee754_sqrtf): Remove.
14927 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14928 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14929 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14930 (__ieee754_sqrtf): Remove.
14931 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14932 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14933 (sqrtf): Remove.
14934 (sqrtl): Remove.
14935 (__ieee754_sqrt): Remove.
14936 (__ieee754_sqrtf): Remove.
14937 (__ieee754_sqrtl): Remove.
14938 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14939 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14940 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14941 (__ieee754_sqrtf): Remove.
14942 (__ieee754_sqrtl): Remove.
14943
14944 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14945
14946 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14947 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14948 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14949 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14950 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14951 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14952 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14953 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14954 Likewise.
14955 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14956 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14957 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14958 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14959 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14960 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14961 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14962 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14963 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14964 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14965 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14966 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14967 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14968 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14969 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14970 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14971 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14972 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14973 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14974 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14975 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14976 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14977 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14978 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14979 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14980 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14981 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14982 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14983 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14984 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14985 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14986 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14987 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14988 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14989 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14990 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14991 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14992 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14993 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14994 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14995
14996 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14997
14998 * include/math.h (sqrt): Declare with asm redirect.
14999 (sqrtf): Likewise.
15000 (sqrtl): Likewise.
15001 (sqrtf128): Likewise.
15002 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
15003 nonlib and libnldbl with -fmath-errno.
15004 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
15005 * math/w_sqrt_template.c: Likewise.
15006 * math/w_sqrtf_compat.c: Likewise.
15007 * math/w_sqrtl_compat.c: Likewise.
15008 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
15009 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
15010 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
15011 complex.h.
15012
15013 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15014
15015 * benchtests/Makefile: Define _ISOMAC.
15016 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
15017 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
15018 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
15019 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
15020 * benchtests/bench-timing.h: Define attribute_hidden.
15021
15022 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
15023
15024 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
15025 mov + lsr.
15026
15027 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15028
15029 [BZ #22963]
15030 * localedata/locales/cs_CZ (mon): Rename to...
15031 (alt_mon): This.
15032 (mon): Import from CLDR (genitive case).
15033
15034 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15035
15036 [BZ #22937]
15037 * localedata/locales/el_CY (abmon): Rename to...
15038 (ab_alt_mon): This.
15039 (abmon): Import from CLDR (abbreviated genitive case).
15040 * localedata/locales/el_GR (abmon): Rename to...
15041 (ab_alt_mon): This.
15042 (abmon): Import from CLDR (abbreviated genitive case).
15043
15044 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15045
15046 [BZ #22932]
15047 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15048
15049 2018-03-15 Robert Buj <robert.buj@gmail.com>
15050
15051 [BZ #22848]
15052 * localedata/locales/ca_ES (abmon): Rename to...
15053 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15054 (mon): Rename to...
15055 (alt_mon): This.
15056 (abmon): Import from CLDR (genitive case, month names preceded by
15057 "de" or "d’").
15058 (mon): Likewise.
15059 (abday): Synchronize with CLDR.
15060 (d_t_fmt): Likewise.
15061 (d_fmt): Likewise.
15062 (am_pm): Likewise.
15063
15064 (LC_TIME): Improve indentation.
15065 (LC_TELEPHONE): Likewise.
15066 (LC_NAME): Likewise.
15067 (LC_ADDRESS): Likewise.
15068
15069 2018-03-14 Joseph Myers <joseph@codesourcery.com>
15070
15071 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15072 (lrintf): Remove definitions used only with old GCC.
15073 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15074 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15075 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15076 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15077 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15078 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15079 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15080 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15081 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15082 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15083 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15084 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15085 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15086 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15087 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15088 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15089 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15090 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15091 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15092 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15093 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15094 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15095 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15096 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15097 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15098 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15099 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15100 [__FAST_MATH__] (__M_SQRT2): Remove macro.
15101
15102 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15103
15104 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15105 instruction to unbreak builds with binutils 2.26 and older.
15106
15107 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15108
15109 * sysdeps/aarch64/strncmp.S (count): New macro.
15110 (strncmp): Store misaligned length in SRC1 in COUNT.
15111 (mutual_align): Adjust.
15112 (misaligned8): Load dword at a time when it is safe.
15113
15114 2018-03-12 Zack Weinberg <zackw@panix.com>
15115
15116 [BZ #1190]
15117 [BZ #19476]
15118 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15119 if the _IO_EOF_SEEN bit is already set; update commentary.
15120 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15121 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15122
15123 * support/support_openpty.c, support/tty.h: New files.
15124 * support/Makefile (libsupport-routines): Add support_openpty.
15125
15126 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15127 New test cases.
15128 * libio/Makefile (tests): Add tst-fgetc-after-eof.
15129 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15130
15131 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
15132
15133 * po/pt_BR.po: Update translations.
15134
15135 2018-03-12 David Michael <fedora.dm0@gmail.com>
15136
15137 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15138 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15139 get a port to the startup server.
15140
15141 2018-03-11 Zack Weinberg <zackw@panix.com>
15142
15143 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15144 before nldbl-compat.h.
15145
15146 2018-03-10 Zack Weinberg <zackw@panix.com>
15147
15148 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15149 math.h or math_private.h.
15150
15151 * sysdeps/alpha/fpu/s_isnan.c
15152 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15153 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15154 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15155 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15156 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15157 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15158 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15159 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15160 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15161 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15162 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15163 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15164 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15165 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15166 Include math_private.h.
15167
15168 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15169 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15170 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15171 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15172 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15173 * sysdeps/powerpc/power7/fpu/s_logb.c:
15174 Include math.h and math_private.h.
15175
15176 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15177 uses of $at in .set noat / .set at.
15178
15179 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15180
15181 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15182 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15183 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15184 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15185 Likewise.
15186
15187 2018-03-09 Florian Weimer <fweimer@redhat.com>
15188
15189 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15190 in comment.
15191
15192 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15193
15194 [BZ #22919]
15195 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15196 Add nop before __startcontext, add explaining comments.
15197
15198 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15199
15200 [BZ #22926]
15201 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15202 empty for __SPE__.
15203 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15204 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15205 Do not build hardware transactional code for __SPE__.
15206 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15207 (__lll_trylock_elision): Likewise.
15208 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15209 (__lll_unlock_elision): Likewise.
15210
15211 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15212 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15213 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15214 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15215 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15216 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15217 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15218 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15219 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15220 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15221 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15222 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15223 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15224 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15225 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15226 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15227 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15228 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15229 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15230 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15231 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15232 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15233 (__ASSUME_CLONE_BACKWARDS): Define.
15234 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15235 __clone2 if __NR_clone2 is defined.
15236 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15237 (__ASSUME_CLONE_BACKWARDS): Likewise.
15238 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15239 (__ASSUME_CLONE_BACKWARDS): Likewise.
15240 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15241 (__ASSUME_CLONE2): Likewise.
15242 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15243 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15244 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15245 variants and the define architecture can use.
15246 (__ASSUME_CLONE_DEFAULT): Define as default.
15247 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15248 (__ASSUME_CLONE_BACKWARDS): Likewise.
15249 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15250 (__ASSUME_CLONE_BACKWARDS): Likewise.
15251 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15252 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15253
15254 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15255
15256 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15257
15258 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15259 time.
15260
15261 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15262 (do_test_limit): Likewise.
15263
15264 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15265 for every implementation.
15266 (do_test): Likewise.
15267
15268 * benchtests/bench-strncmp.c: Convert output to json.
15269
15270 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15271
15272 * io/futimens.c: Add missing start-of-file descriptive comment.
15273 * io/utime.c: Likewise.
15274 * misc/futimesat.c: Likewise.
15275 * misc/utimes.c: Likewise.
15276 * sysdeps/mach/hurd/futimesat.c: Likewise.
15277 * sysdeps/mach/hurd/utimes.c: Likewise.
15278 * sysdeps/posix/utime.c: Likewise.
15279 * sysdeps/posix/utimes.c: Likewise.
15280 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15281 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15282 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15283 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15284
15285 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15286
15287 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15288 hurd_futimes.
15289 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15290 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15291 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15292 (__futimens): Move implementation to...
15293 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15294 utime_tvalue_from_tspec): ... new helper functions.
15295 (hurd_futimens): New function.
15296 * sysdeps/mach/hurd/futimesat.c: New file.
15297 * sysdeps/mach/hurd/utimensat.c: New file.
15298
15299 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15300
15301 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15302 UTIME_OMIT): New macros.
15303 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15304 before reverting to converting time spec to time value and calling
15305 __file_utimes.
15306 * sysdeps/mach/hurd/utime-helper.c: New file.
15307 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15308 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15309 reverting to utime_tvalue_from_tval and __file_utimes.
15310 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15311 (__lutimes): Just call hurd_futimens after lookup.
15312 * sysdeps/mach/hurd/utimes.c: Likewise.
15313
15314 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15315
15316 * bits/sigaction.h: Add include guard.
15317 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15318 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15319 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15320 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15321 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15322 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15323 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15324 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15325 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15326
15327 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15328
15329 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15330 -Wmaybe-uninitialized for -Os.
15331 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15332 this disabling.
15333
15334 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15335
15336 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15337 __INO_T_MATCHES_INO64_T is defined.
15338 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15339 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15340 of definition.
15341 * dirent/alphasort64.c: Likewise.
15342 * dirent/scandir.c: Likewise.
15343 * dirent/scandir64-tail.c: Likewise.
15344 * dirent/scandir64.c: Likewise.
15345 * dirent/scandirat.c: Likewise.
15346 * dirent/scandirat64.c: Likewise.
15347 * dirent/versionsort.c: Likewise.
15348 * dirent/versionsort64.c: Likewise.
15349 * include/dirent.h: Likewise.
15350
15351 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15352 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15353 for socketpair endpoint.
15354 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15355 WRITE_BUFFER_SIZE as buffer size for sending socket.
15356 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15357 issue on system where send is implemented with sendto syscall.
15358 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15359 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15360 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15361 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15362
15363 [BZ #21269]
15364 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15365 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15366 sa_restorer for vDSO case.
15367 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15368
15369 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15370
15371 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15372 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15373 * hurd/hurd/ioctl.h: Include <mach/port.h>
15374 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15375 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15376 <mach/mach_types.h> and <mach/message.h>.
15377 (headers): Move mach/param.h to bits/mach/param.h.
15378 * sysdeps/mach/i386/mach/param.h: Move file to ...
15379 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15380 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15381 of <mach/param.h>.
15382 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15383 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15384 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15385 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15386 trivial, for C++ conformity.
15387 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15388 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15389 Process mig output through $(migheadersed).
15390 * hurd/Makefile (migheadersed): Define variable.
15391 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15392 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15393 headers.
15394 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15395 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15396 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15397 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15398 <bits/types/sigset_t.h>.
15399 [!defined __USE_GNU]: Do not #error out.
15400 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15401 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15402 Include <stddef.h> and <bits/types/sigset_t.h>
15403 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15404 instead of sighandler_t.
15405 * stdlib/errno.h (error_t): Move definition to...
15406 * bits/types/error_t.h: ... new header.
15407 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15408 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15409 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15410 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15411 * hurd/hurd.h: Include <bits/types/error_t.h>
15412 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15413 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15414 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15415 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15416 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15417 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15418 * sysdeps/mach/hurd/futimens.c: New file.
15419
15420 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15421
15422 [BZ #22918]
15423 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15424 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15425 * nscd/gai.c (__nss_hosts_database): Readd definition.
15426 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15427 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15428 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15429
15430 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15431
15432 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15433 (ifunc_one): Likewise.
15434
15435 2018-03-01 DJ Delorie <dj@delorie.com>
15436
15437 [BZ #22342]
15438 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15439 key value.
15440
15441 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15442
15443 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15444 `match_pid' parameter.
15445 (td_ta_thr_iter): Update accordingly.
15446
15447 2018-03-01 Florian Weimer <fweimer@redhat.com>
15448
15449 * nptl/Makefile (install-lib-ldscripts): Remove.
15450 (install): Remove rule.
15451 ($(inst_libdir)/libpthread.so): Likewise.
15452
15453 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15454
15455 [BZ #22896]
15456 * localedata/locales/an_ES: update month and day names,
15457 improve d_fmt, improve postal_fmt, add country_post,
15458 add country_isbn
15459
15460 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15461
15462 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15463 Ukrainian instead of Bulgarian.
15464
15465 2018-03-01 Florian Weimer <fweimer@redhat.com>
15466
15467 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15468 reference.
15469
15470 2018-03-01 Florian Weimer <fweimer@redhat.com>
15471
15472 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15473 * nptl/Makefile (routines): Add pthread_atfork.
15474 (static-only-routines): Set to pthread_atfork.
15475 (libpthread-routines): Remove pthread_atfork.
15476 (libpthread-static-only-routines): Remove.
15477 (install): Update comment.
15478 (libpthread.so): Do not install libpthread_nonshared.a.
15479 (tests): Do not link with libpthread_nonshared.a.
15480 (generated): Remove libpthread_nonshared.a.
15481 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15482 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15483 with libpthread_nonshared.a.
15484
15485 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15486
15487 [BZ #22902]
15488 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15489 (libc_feholdexcept_setroundf128): New macro.
15490 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15491
15492 [BZ #15105]
15493 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15494 libc_hidden_def.
15495 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15496 * include/inttypes.h: New file.
15497
15498 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15499
15500 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15501 -Os in two more places.
15502
15503 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15504
15505 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15506 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15507 be sorted correctly at the moment because of a bug.
15508
15509 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15510
15511 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15512 treat ñ as a primary different character, sync the collation
15513 for Spanish with CLDR.
15514 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15515 * localedata/Makefile: Add new test files.
15516 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15517 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15518 collation order.
15519 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15520 * localedata/am_ET.UTF-8.in: New test file.
15521 * localedata/az_AZ.UTF-8.in: Likewise.
15522 * localedata/be_BY.UTF-8.in: Likewise.
15523 * localedata/ber_DZ.UTF-8.in: Likewise.
15524 * localedata/ber_MA.UTF-8.in: Likewise.
15525 * localedata/bg_BG.UTF-8.in: Likewise.
15526 * localedata/br_FR.UTF-8.in: Likewise.
15527 * localedata/cmn_TW.UTF-8.in: Likewise.
15528 * localedata/crh_UA.UTF-8.in: Likewise.
15529 * localedata/csb_PL.UTF-8.in: Likewise.
15530 * localedata/cv_RU.UTF-8.in: Likewise.
15531 * localedata/cy_GB.UTF-8.in: Likewise.
15532 * localedata/dz_BT.UTF-8.in: Likewise.
15533 * localedata/eo.UTF-8.in: Likewise.
15534 * localedata/es_ES.UTF-8.in: Likewise.
15535 * localedata/fa_IR.UTF-8.in: Likewise.
15536 * localedata/fi_FI.UTF-8.in: Likewise.
15537 * localedata/fil_PH.UTF-8.in: Likewise.
15538 * localedata/fur_IT.UTF-8.in: Likewise.
15539 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15540 * localedata/ha_NG.UTF-8.in: Likewise.
15541 * localedata/ig_NG.UTF-8.in: Likewise.
15542 * localedata/ik_CA.UTF-8.in: Likewise.
15543 * localedata/kk_KZ.UTF-8.in: Likewise.
15544 * localedata/ku_TR.UTF-8.in: Likewise.
15545 * localedata/ky_KG.UTF-8.in: Likewise.
15546 * localedata/ln_CD.UTF-8.in: Likewise.
15547 * localedata/mi_NZ.UTF-8.in: Likewise.
15548 * localedata/ml_IN.UTF-8.in: Likewise.
15549 * localedata/mn_MN.UTF-8.in: Likewise.
15550 * localedata/mr_IN.UTF-8.in: Likewise.
15551 * localedata/mt_MT.UTF-8.in: Likewise.
15552 * localedata/nb_NO.UTF-8.in: Likewise.
15553 * localedata/om_KE.UTF-8.in: Likewise.
15554 * localedata/os_RU.UTF-8.in: Likewise.
15555 * localedata/ps_AF.UTF-8.in: Likewise.
15556 * localedata/ro_RO.UTF-8.in: Likewise.
15557 * localedata/ru_RU.UTF-8.in: Likewise.
15558 * localedata/sc_IT.UTF-8.in: Likewise.
15559 * localedata/se_NO.UTF-8.in: Likewise.
15560 * localedata/sq_AL.UTF-8.in: Likewise.
15561 * localedata/sv_SE.UTF-8.in: Likewise.
15562 * localedata/szl_PL.UTF-8.in: Likewise.
15563 * localedata/tg_TJ.UTF-8.in: Likewise.
15564 * localedata/tk_TM.UTF-8.in: Likewise.
15565 * localedata/tt_RU.UTF-8.in: Likewise.
15566 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15567 * localedata/ug_CN.UTF-8.in: Likewise.
15568 * localedata/uz_UZ.UTF-8.in: Likewise.
15569 * localedata/vi_VN.UTF-8.in: Likewise.
15570 * localedata/yi_US.UTF-8.in: Likewise.
15571 * localedata/yo_NG.UTF-8.in: Likewise.
15572 * localedata/zh_CN.UTF-8.in: Likewise.
15573 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15574 file and fix bugs in the collation.
15575 * localedata/locales/az_AZ: Likewise.
15576 * localedata/locales/be_BY: Likewise.
15577 * localedata/locales/ber_DZ: Likewise.
15578 * localedata/locales/ber_MA: Likewise.
15579 * localedata/locales/bg_BG: Likewise.
15580 * localedata/locales/br_FR: Likewise.
15581 * localedata/locales/br_FR@euro: Likewise.
15582 * localedata/locales/ca_ES: Likewise.
15583 * localedata/locales/cns11643_stroke: Likewise.
15584 * localedata/locales/crh_UA: Likewise.
15585 * localedata/locales/cs_CZ: Likewise.
15586 * localedata/locales/csb_PL: Likewise.
15587 * localedata/locales/cv_RU: Likewise.
15588 * localedata/locales/cy_GB: Likewise.
15589 * localedata/locales/da_DK: Likewise.
15590 * localedata/locales/dz_BT: Likewise.
15591 * localedata/locales/en_CA: Likewise.
15592 * localedata/locales/eo: Likewise.
15593 * localedata/locales/es_CU: Likewise.
15594 * localedata/locales/es_EC: Likewise.
15595 * localedata/locales/es_ES: Likewise.
15596 * localedata/locales/es_US: Likewise.
15597 * localedata/locales/et_EE: Likewise.
15598 * localedata/locales/fa_IR: Likewise.
15599 * localedata/locales/fi_FI: Likewise.
15600 * localedata/locales/fil_PH: Likewise.
15601 * localedata/locales/fur_IT: Likewise.
15602 * localedata/locales/gez_ER@abegede: Likewise.
15603 * localedata/locales/ha_NG: Likewise.
15604 * localedata/locales/hr_HR: Likewise.
15605 * localedata/locales/hsb_DE: Likewise.
15606 * localedata/locales/hu_HU: Likewise.
15607 * localedata/locales/ig_NG: Likewise.
15608 * localedata/locales/ik_CA: Likewise.
15609 * localedata/locales/is_IS: Likewise.
15610 * localedata/locales/iso14651_t1_pinyin: Likewise.
15611 * localedata/locales/kk_KZ: Likewise.
15612 * localedata/locales/ku_TR: Likewise.
15613 * localedata/locales/ky_KG: Likewise.
15614 * localedata/locales/ln_CD: Likewise.
15615 * localedata/locales/lt_LT: Likewise.
15616 * localedata/locales/lv_LV: Likewise.
15617 * localedata/locales/mi_NZ: Likewise.
15618 * localedata/locales/ml_IN: Likewise.
15619 * localedata/locales/mn_MN: Likewise.
15620 * localedata/locales/mr_IN: Likewise.
15621 * localedata/locales/mt_MT: Likewise.
15622 * localedata/locales/nb_NO: Likewise.
15623 * localedata/locales/om_KE: Likewise.
15624 * localedata/locales/os_RU: Likewise.
15625 * localedata/locales/pl_PL: Likewise.
15626 * localedata/locales/ps_AF: Likewise.
15627 * localedata/locales/ro_RO: Likewise.
15628 * localedata/locales/ru_RU: Likewise.
15629 * localedata/locales/ru_UA: Likewise.
15630 * localedata/locales/sc_IT: Likewise.
15631 * localedata/locales/se_NO: Likewise.
15632 * localedata/locales/si_LK: Likewise.
15633 * localedata/locales/sq_AL: Likewise.
15634 * localedata/locales/sv_FI: Likewise.
15635 * localedata/locales/sv_FI@euro: Likewise.
15636 * localedata/locales/sv_SE: Likewise.
15637 * localedata/locales/szl_PL: Likewise.
15638 * localedata/locales/tg_TJ: Likewise.
15639 * localedata/locales/ti_ER: Likewise.
15640 * localedata/locales/tk_TM: Likewise.
15641 * localedata/locales/tl_PH: Likewise.
15642 * localedata/locales/tr_TR: Likewise.
15643 * localedata/locales/tt_RU: Likewise.
15644 * localedata/locales/tt_RU@iqtelif: Likewise.
15645 * localedata/locales/ug_CN: Likewise.
15646 * localedata/locales/uk_UA: Likewise.
15647 * localedata/locales/uz_UZ: Likewise.
15648 * localedata/locales/uz_UZ@cyrillic: Likewise.
15649 * localedata/locales/vi_VN: Likewise.
15650 * localedata/locales/yi_US: Likewise.
15651 * localedata/locales/yo_NG: Likewise.
15652
15653 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15654
15655 * gen-locales.mk: Make test files which contain @ modifiers in their
15656 name work.
15657 * localedata/gen-locale.sh: Likewise.
15658
15659 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15660
15661 * posix/tst-fnmatch.input: Fix results for range expressions
15662 for non C locales.
15663 * posix/tst-regexloc.c: Do not use a range expression for
15664 de_DE.ISO-8859-1 locale.
15665
15666 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15667
15668 * posix/bug-regex5.c: Fix test case because with the new
15669 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15670 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15671 file.
15672
15673 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15674
15675 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15676 downloaded from ISO, the collation order of @-. and space has changed.
15677 Therefore, this test file needed to be adapted.
15678 * localedata/fr_CA.UTF-8.in: Likewise.
15679 * localedata/fr_FR.UTF-8.in: Likewise.
15680 * localedata/uk_UA.UTF-8.in: Likewise.
15681
15682 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15683
15684 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15685 order of ȥ in the new iso14651_t1_common file.
15686 * localedata/pl_PL.UTF-8.in: Likewise.
15687
15688 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15689
15690 * localedata/locales/iso14651_t1_common: Add sections for various
15691 scripts to the iso14651_t1_common file.
15692
15693 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15694
15695 * localedata/locales/iso14651_t1_common: Use the code point of a
15696 character in the fourth collation level instead of IGNORE for all
15697 entries which have IGNORE on all 4 levels.
15698
15699 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15700
15701 * localedata/locales/iso14651_t1_common: Add some convenient collation
15702 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15703 rules similar to those in CLDR.
15704
15705 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15706
15707 * localedata/locales/iso14651_t1_common: The new version of this
15708 file downloaded from ISO contained several syntax errors which
15709 are fixed by this patch.
15710
15711 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15712
15713 * localedata/locales/iso14651_t1_common: replace all <U.....>
15714 with <U000.....> because glibc understands only 4 digit or 8 digit
15715
15716 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15717
15718 * localedata/locales/iso14651_t1_common: Necessary changes
15719 to make the file downloaded from ISO usable by glibc.
15720
15721 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15722
15723 [BZ #14095]
15724 * localedata/locales/iso14651_t1_common: Update file to
15725 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15726
15727 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15728
15729 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15730 of <nptl/pthreadP.h>
15731 (thread_attr_compare): Move function to...
15732 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15733 * sysdeps/nptl/timer_routines.h: ... new header.
15734 * sysdeps/mach/hurd/gai_misc.h: New file.
15735
15736 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15737
15738 * string/strcoll_l.c: Include <libc-diag.h>.
15739 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15740 declarations of seq1 and seq2.
15741
15742 [BZ #15105]
15743 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15744 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15745
15746 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15747
15748 [BZ #22433]
15749 [BZ #22807]
15750 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15751 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15752 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15753 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15754 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15755 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15756
15757 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15758
15759 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15760 macros used in __ptrace_request.
15761
15762 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15763
15764 [BZ #22792]
15765 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15766 to $(CC).
15767 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15768 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15769 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15770 <tcb-offsets.h>.
15771
15772 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15773
15774 [BZ #15105]
15775 * ctype/ctype.c (tolower): Use libc_hidden_def.
15776 (toupper): Likewise.
15777 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15778 [!_ISOMAC] (toupper): Likewise.
15779
15780 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15781
15782 * localedata/Makefile: Remove --quiet argument when
15783 installing locales
15784
15785 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15786
15787 [BZ #17438]
15788 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15789 in d_fmt.
15790 * localedata/locales/pt_PT (LC_TIME): likewise
15791
15792 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15793
15794 [BZ #22646]
15795 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15796 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15797 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15798
15799 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15800
15801 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15802
15803 * nptl/Makefile (routines): Remove unregister-atfork.
15804 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15805 (fork_handler_alloc): Remove function.
15806 (fork_handlers, fork_handler_init): New variables.
15807 (__fork_lock): Rename to atfork_lock.
15808 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15809 to use a dynamic array to add/remove atfork handlers.
15810 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15811 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15812 Remove declaration.
15813 (fork_handler): Remove next, refcntr, and need_signal member.
15814 (__run_fork_handler_type): New enum.
15815 (__run_fork_handlers): New prototype.
15816 * nptl/register-atfork.c: Remove file.
15817 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15818
15819 * sysdeps/nptl/nptl-signals.h: Move to ...
15820 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15821 comments.
15822 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15823 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15824 unnecessary check for SIGTIMER.
15825 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15826 remove unnecessary removal of SIGTIMER.
15827 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15828 include-signals.h rename.
15829 * nptl/pthreadP.h: Likewise.
15830 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15831 __is_internal_signal instead of __nptl_is_internal_signal.
15832
15833 2018-02-22 Andrew Waterman <andrew@sifive.com>
15834
15835 [BZ # 22884]
15836 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15837 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15838 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15839 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15840
15841 2018-02-22 DJ Delorie <dj@delorie.com>
15842
15843 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15844
15845 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15846
15847 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15848 do_misaligned, not misaligned8.
15849
15850 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15851
15852 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15853 Add memcpy_thunderx2.
15854 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15855 Increment to 4.
15856 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15857 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15858 and IS_THUNDERX2PA checks.
15859 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15860 Use macro to set name appropriately.
15861 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15862 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15863 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15864 New macro.
15865 (IS_THUNDERX2): New macro.
15866
15867 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15868
15869 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15870
15871 2018-02-21 Zack Weinberg <zackw@panix.com>
15872
15873 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15874 Define here, unconditionally.
15875 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15876 * libio/libioP.h: Remove #if 0 blocks.
15877 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15878 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15879 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15880
15881 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15882 Assume weak_alias is always defined.
15883
15884 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15885 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15886 Remove #if 0 and #ifdef TODO blocks.
15887 Assume text_set_element is always defined.
15888
15889 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15890 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15891 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15892
15893 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15894 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15895 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15896 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15897 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15898 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15899 Reformat bit flags for _flags field to make occupancy clearer.
15900 Update commentary.
15901 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15902 Keep definitions consistent with those in libio/libio.h.
15903
15904 * libio/libio.h (_IO_file_flags): Remove macro.
15905 All uses changed to _flags.
15906
15907 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15908 (__HAVE_COLUMN, _IO_BE): Don't define.
15909 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15910 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15911 * libio/libioP.h (EOF): Don't define.
15912 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15913 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15914 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15915 testing _IO_UNIFIED_JUMPTABLES.
15916
15917 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15918 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15919 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15920 (_IO_size_t): Delete; all uses changed to size_t.
15921 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15922 (_IO_off_t): Delete; all uses changed to off_t.
15923 (_IO_off64_t): Delete; all uses changed to off64_t.
15924 (_IO_pid_t): Delete; all uses changed to pid_t.
15925 (_IO_uid_t): Delete; all uses changed to uid_t.
15926 (_IO_wint_t): Delete; all uses changed to wint_t.
15927 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15928 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15929 (_IO_cookie_io_functions_t): Delete; all uses changed to
15930 cookie_io_functions_t.
15931 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15932 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15933 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15934 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15935
15936 * libio/iofopncook.c: Remove unnecessary forward declarations.
15937 * libio/iolibio.h: Correct outdated commentary.
15938 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15939 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15940 Remove unnecessary casts.
15941 * stdio-common/getline.c: Use _IO_getdelim directly.
15942 Don't redefine ssize_t.
15943 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15944 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15945 Remove outdated comments.
15946 * stdio-common/vfscanf.c: Don't redefine va_list.
15947
15948 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15949 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15950 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15951 which are always true, and __cplusplus, which is always false.
15952
15953 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15954
15955 [BZ #15105]
15956 [BZ #19463]
15957 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15958 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15959 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15960 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15961 libc_hidden_proto.
15962 [!_ISOMAC] (putc_unlocked): Likewise.
15963 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15964 define inline if [__USE_EXTERN_INLINES].
15965 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15966 putc_unlocked.
15967
15968 [BZ #15105]
15969 [BZ #19463]
15970 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15971 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15972 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15973 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15974 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15975 getc_unlocked.
15976 * time/tzfile.c (__tzfile_read): Likewise.
15977
15978 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15979
15980 [BZ #22517]
15981 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15982
15983 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15984
15985 * io/fcntl.h: Fix a typo in a comment.
15986
15987 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15988
15989 [BZ #22862]
15990 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15991 define _DEFAULT_SOURCE.
15992 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15993
15994 2018-02-21 Florian Weimer <fweimer@redhat.com>
15995
15996 [BZ #20890]
15997 * elf/cache.c (save_cache): Call fsync on temporary file before
15998 renaming it.
15999 (save_aux_cache): Call fdatasync on temporary file before renaming
16000 it.
16001
16002 2018-02-21 Florian Weimer <fweimer@redhat.com>
16003
16004 [BZ #22787]
16005 * include/caller.h: Remove file.
16006 * elf/dl-caller.c: Likewise.
16007 * elf/Makefile (dl-routines): Remove dl-caller.
16008 (shared-only-routines): Do not add dl-caller.
16009 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
16010 __check_caller.
16011 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
16012 member.
16013 (dl_open_worker): Do not call __check_caller.
16014 (_dl_open): Do not set caller_dl_open member.
16015 * elf/rtld.c (_rtld_global_ro): Do not initialize
16016 _dl_check_caller member.
16017 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
16018 _dl_check_caller member.
16019 (_dl_check_caller): Remove declaration.
16020 * sysdeps/unix/sysv/linux/dl-execstack.c
16021 (_dl_make_stack_executable): Do not call __check_caller.
16022
16023 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
16024
16025 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
16026 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16027
16028 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16029
16030 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16031 description.
16032
16033 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16034
16035 [BZ #16335]
16036 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16037 of 199606L, 200112L, and 200809L.
16038 (_XOPEN_SOURCE): Document special values of 600 and 700.
16039 (_ISOC11_SOURCE): Document macro.
16040 (_ATFILE_SOURCE): Likewise.
16041 (_FORTIFY_SOURCE): Likewise.
16042
16043 2018-02-19 Joseph Myers <joseph@codesourcery.com>
16044
16045 [BZ #15105]
16046 [BZ #19463]
16047 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16048 and define as weak alias of __ferror_unlocked. Use
16049 libc_hidden_weak.
16050 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16051 libc_hidden_proto.
16052 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16053 function if [__USE_EXTERN_INLINES].
16054 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16055 ferror_unlocked.
16056
16057 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
16058
16059 [BZ #6889]
16060 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16061
16062 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16063
16064 [BZ #22818]
16065 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16066 the GLIBC_2.1 version.
16067
16068 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16069
16070 [BZ #21508]
16071 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16072 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16073 intl/tst-gettext-de.po from po/de.po by removing the
16074 POT-Creation-Date line.
16075 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16076 ../po/de.po.
16077 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16078 ../po/de.po.
16079
16080 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16081
16082 * mach/Makefile (headers): Add mach/param.h.
16083 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16084 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16085 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16086 (__ptsname_r): Move implementation to...
16087 (__ptsname_internal): ... new function. Add filling the STP
16088 structure.
16089
16090 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
16091
16092 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16093 idouble to 1 ULP.
16094
16095 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
16096
16097 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16098 syntax.
16099
16100 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
16101
16102 * nptl/Makefile (tst-mutex8-ENV): Delete.
16103 * nptl/tst-mutex8.c (check_type):
16104 Add runtime check if mutex will be elided.
16105
16106 2018-02-15 Joseph Myers <joseph@codesourcery.com>
16107
16108 [BZ #20980]
16109 [BZ #21234]
16110 * manual/install.texi (Configuring and compiling): Describe
16111 passing CC and CFLAGS on configure command line, not as
16112 environment variables. Use @code markup on those variables.
16113 Specify what options go in CC and what go in CFLAGS. Note the
16114 requirement to compile with optimization.
16115 * INSTALL: Regenerated.
16116
16117 [BZ #18124]
16118 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16119 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16120 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16121 __sigprocmask instead of sigprocmask.
16122 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16123 Likewise.
16124 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16125 __sigsetjmp and sigprocmask.
16126
16127 [BZ #15105]
16128 * include/argz.h (argz_next): Use libc_hidden_proto.
16129 (__argz_next): Likewise.
16130 * string-argz-next.c (__argz_next): Use libc_hidden_def.
16131 (argz_next): Use libc_hidden_weak.
16132
16133 [BZ #15105]
16134 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16135 libc_hidden_proto.
16136 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16137 libc_hidden_def.
16138
16139 [BZ #15105]
16140 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16141 libc_hidden_proto.
16142 * libio/iofputs.c (fputs): Use libc_hidden_weak.
16143
16144 [BZ #15105]
16145 [BZ #19463]
16146 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16147 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
16148 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16149 (__feof_unlocked): New declaration, and inline function if
16150 [__USE_EXTERN_INLINES].
16151 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16152 instead of feof_unlocked.
16153 * intl/localealias.c [_LIBC] (FEOF): Likewise.
16154 * nss/nsswitch.c (nss_parse_file): Likewise.
16155 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16156 Likewise.
16157 * time/getdate.c (__getdate_r): Likewise.
16158 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16159 Define as macro to call __feof_unlocked.
16160
16161 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16162
16163 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16164
16165 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16166
16167 * math/Makefile: Remove mpexp.c and mplog.c
16168 * sysdeps/i386/fpu/mpexp.c: Delete file.
16169 * sysdeps/i386/fpu/mplog.c: Likewise.
16170 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16171 * sysdeps/ia64/fpu/mplog.c: Likewise.
16172 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16173 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16174 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16175 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16176 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16177 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16178 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16179 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16180 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16181 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16182 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16183 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16184 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16185 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16186 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16187 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16188
16189 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16190
16191 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16192
16193 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16194
16195 * sysdeps/sh/libm-test-ulps: Update.
16196
16197 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16198
16199 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16200 idouble to 1 ULP.
16201
16202 2018-02-12 Zack Weinberg <zackw@panix.com>
16203
16204 [BZ #19239]
16205 * posix/sys/types.h: Don't include sys/sysmacros.h.
16206 * misc/sys/sysmacros.h: Remove the conditional deprecation
16207 warnings for the macros defined by this header.
16208
16209 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16210
16211 * manual/probes.texi: Remove slowexp probes.
16212 * math/Makefile: Remove slowexp.
16213 * sysdeps/generic/math_private.h (__slowexp): Remove.
16214 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16215 document error bounds.
16216 * sysdeps/i386/fpu/slowexp.c: Remove.
16217 * sysdeps/ia64/fpu/slowexp.c: Remove.
16218 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16219 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16220 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16221 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16222 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16223 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16224 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16225 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16226 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16227 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16228 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16229
16230 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16231
16232 [BZ #13932]
16233 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16234 * benchtests/pow-inputs: Update comment for slow path cases.
16235 * manual/probes.texi (slowpow_p10): Delete removed probe.
16236 (slowpow_p10): Likewise.
16237 * math/Makefile: Remove halfulp.c and slowpow.c.
16238 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16239 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16240 (__halfulp): Remove.
16241 (__slowpow): Remove.
16242 * sysdeps/i386/fpu/halfulp.c: Delete file.
16243 * sysdeps/i386/fpu/slowpow.c: Likewise.
16244 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16245 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16246 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16247 improve comments and add error analysis.
16248 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16249 (power1): Remove function:
16250 (log1): Remove error argument, add error analysis.
16251 (my_log2): Remove function.
16252 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16253 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16254 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16255 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16256 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16257 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16258 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16259 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16260 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16261 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16262 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16263 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16264 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16265 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16266
16267 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16268
16269 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16270 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16271
16272 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16273
16274 [BZ #22433]
16275 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16276 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16277 and PTRACE_SETHBPREGS.
16278
16279 2018-02-10 Zack Weinberg <zackw@panix.com>
16280
16281 [BZ #22830]
16282 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16283 correctly.
16284 * malloc/tst-malloc-stats-cancellation.c: New test case.
16285 * malloc/Makefile: Add new test case.
16286
16287 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16288
16289 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16290
16291 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16292
16293 * math/Makefile (libm-narrow-fns): Add add.
16294 (libm-test-funcs-narrow): Likewise.
16295 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16296 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16297 * math/gen-auto-libm-tests.c (test_functions): Add add.
16298 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16299 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16300 (NARROW_ADD_TRIVIAL): Likewise.
16301 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16302 macro.
16303 (__daddl): Likewise.
16304 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16305 dadd.
16306 (CFLAGS-nldbl-dadd.c): New variable.
16307 (CFLAGS-nldbl-fadd.c): Likewise.
16308 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16309 __nldbl_daddl.
16310 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16311 prototype.
16312 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16313 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16314 * math/auto-libm-test-in: Add tests of add.
16315 * math/auto-libm-test-out-narrow-add: New generated file.
16316 * math/libm-test-narrow-add.inc: New file.
16317 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16318 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16319 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16320 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16321 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16322 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16323 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16324 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16325 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16326 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16327 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16328 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16329 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16330 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16331 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16332 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16333 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16334 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16335 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16336 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16337 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16338 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16339 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16340 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16341 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16342 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16343 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16344 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16345 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16346 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16347 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16348 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16350 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16353 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16354 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16355 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16356 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16357 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16358 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16359 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16360 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16361 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16362 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16363
16364 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16365 (f128-pairs): New variable.
16366 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16367 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16368 to CFLAGS.
16369 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16370 Also make tests add $(f128-loader-link) to gnulib-tests.
16371
16372 2018-02-09 DJ Delorie <dj@redhat.com>
16373
16374 [BZ #22827]
16375 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16376 64-bit ELF type for 64-bit ELF objects.
16377
16378 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16379
16380 * math/libm-test-driver.c (snan_tests_arg): New variable.
16381 * math/libm-test-support.h (snan_tests_arg): New declaration.
16382 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16383
16384 * math/Makefile (test-type-pairs): New variable.
16385 (test-type-pairs-f64xf128-yes): Likewise.
16386 (tests): Add test-narrow-macros.
16387 (libm-test-funcs-narrow): New variable.
16388 (libm-test-c-narrow): Likewise.
16389 (generated): Add $(libm-test-c-narrow).
16390 (libm-tests-base-narrow): New variable.
16391 (libm-tests-narrow): Likewise.
16392 (libm-tests): Add $(libm-tests-narrow).
16393 (libm-tests-for-type): Handle $(libm-tests-narrow).
16394 (libm-test-c-narrow-obj): New variable.
16395 ($(libm-test-c-narrow-obj)): New rule.
16396 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16397 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16398 $(o-iterator) to set dependencies and CFLAGS.
16399 * math/gen-auto-libm-tests.c: Document use for narrowing
16400 functions.
16401 (output_for_one_input_case): Take argument NARROW.
16402 (generate_output): Likewise. Update call to
16403 output_for_one_input_case.
16404 (main): Take --narrow option. Update call to generate_output.
16405 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16406 (apply_lit): Update call to _apply_lit.
16407 (apply_arglit): New function.
16408 (parse_args): Handle "a" arguments.
16409 (parse_auto_input): Handle format names using ":".
16410 * math/README.libm-test: Document "a" parameter type.
16411 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16412 (ARG_TYPE_TRUE_MIN): Likewise.
16413 (ARG_TYPE_MAX): Likwise.
16414 (ARG_MIN_EXP): Likewise.
16415 (ARG_MAX_EXP): Likewise.
16416 (ARG_MANT_DIG): Likewise.
16417 (TEST_COND_arg_ibm128): Likewise.
16418 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16419 (TEST_COND_arg_fmt): New macro.
16420 (init_max_error): Update prototype.
16421 * math/libm-test-support.c (test_ibm128): New variable.
16422 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16423 instead of using [TEST_COND_ibm128] conditional.
16424 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16425 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16426 [TEST_NARROW] (TEST_MSG): New definition.
16427 (arg_plus_zero): New macro.
16428 (arg_minus_zero): Likewise.
16429 (arg_plus_infty): Likewise.
16430 (arg_minus_infty): Likewise.
16431 (arg_qnan_value_pl): Likewise.
16432 (arg_qnan_value): Likewise.
16433 (arg_snan_value_pl): Likewise.
16434 (arg_snan_value): Likewise.
16435 (arg_max_value): Likewise.
16436 (arg_min_value): Likewise.
16437 (arg_min_subnorm_value): Likewise.
16438 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16439 (RUN_TEST_LOOP_aa_f): New macro.
16440 (TEST_SUFF): New macro.
16441 (TEST_SUFF_STR): Likewise.
16442 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16443 (TEST_COND_any_ibm128): New macro.
16444 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16445 this_func. Update call to init_max_error.
16446 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16447 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16448 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16449 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16450 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16451 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16452 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16453 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16454 * math/test-math-vector.h (TEST_NARROW): Likewise.
16455 * math/test-arg-double.h: New file.
16456 * math/test-arg-float128.h: Likewise.
16457 * math/test-arg-float32x.h: Likewise.
16458 * math/test-arg-float64.h: Likewise.
16459 * math/test-arg-float64x.h: Likewise.
16460 * math/test-arg-ldouble.h: Likewise.
16461 * math/test-math-narrow.h: Likewise.
16462 * math/test-narrow-macros.c: Likewise.
16463 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16464 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16465 test-narrow-macros-ldbl-64.
16466 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16467
16468 * math/bits/mathcalls-narrow.h: New file.
16469 * include/bits/mathcalls-narrow.h: Likewise.
16470 * math/math-narrow.h: Likewise.
16471 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16472 (__MATHCALL_NARROW_ARGS_2): Likewise.
16473 (__MATHCALL_NARROW_ARGS_3): Likewise.
16474 (__MATHCALL_NARROW_NORMAL): Likewise.
16475 (__MATHCALL_NARROW_REDIR): Likewise.
16476 (__MATHCALL_NARROW): Likewise.
16477 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16478 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16479 defined.
16480 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16481 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16482 (libm-narrow-fns): New variable.
16483 (libm-narrow-types-basic): Likewise.
16484 (libm-narrow-types-ldouble-yes): Likewise.
16485 (libm-narrow-types-float128-yes): Likewise.
16486 (libm-narrow-types-float128-alias-yes): Likewise.
16487 (libm-narrow-types): Likewise.
16488 (libm-routines): Add narrowing functions.
16489 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16490 (libc_feholdexcept_setroundf128): New macro.
16491 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16492 * sysdeps/ieee754/float128/float128_private.h: Include
16493 <math/math-narrow.h>.
16494 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16495 Undefine and redefine.
16496 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16497 (libm_alias_float_ldouble): Undefine and redefine.
16498 (libm_alias_double_ldouble): Likewise.
16499
16500 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16501
16502 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16503
16504 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16505 FPCR/FPSR.
16506
16507 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16508
16509 * manual/creature.texi: Convert references to gcc.info to gcc.
16510 * manual/stdio.texi: Likewise.
16511 * manual/string.texi: Likewise.
16512
16513 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16514
16515 [BZ #17979]
16516 * posix/bits/types.h (__int_least8_t): New typedef.
16517 (__uint_least8_t): Likewise.
16518 (__int_least16_t): Likewise.
16519 (__uint_least16_t): Likewise.
16520 (__int_least32_t): Likewise.
16521 (__uint_least32_t): Likewise.
16522 (__int_least64_t): Likewise.
16523 (__uint_least64_t): Likewise.
16524 * sysdeps/generic/stdint.h (int_least8_t): Define using
16525 __int_least8_t.
16526 (int_least16_t): Define using __int_least16_t.
16527 (int_least32_t): Define using __int_least32_t.
16528 (int_least64_t): Define using __int_least64_t.
16529 (uint_least8_t): Define using __uint_least8_t.
16530 (uint_least16_t): Define using __uint_least16_t.
16531 (uint_least32_t): Define using __uint_least32_t.
16532 (uint_least64_t): Define using __uint_least64_t.
16533 * wcsmbs/uchar.h: Include <bits/types.h>.
16534 (char16_t): Define using __uint_least16_t conditional only on
16535 [!__USE_ISOCXX11].
16536 (char32_t): Define using __uint_least32_t conditional only on
16537 [!__USE_ISOCXX11].
16538 * wcsmbs/test-char-types.c: New file.
16539 * wcsmbs/Makefile (tests): Add test-char-types.
16540
16541 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16542 version to 4.0.1.
16543
16544 2018-02-07 Zack Weinberg <zackw@panix.com>
16545
16546 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16547 Delete all contents except for definitions of _G_HAVE_MMAP and
16548 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16549 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16550 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16551 change as above.
16552
16553 * libio/libio.h: Don't include bits/_G_config.h here.
16554 Include stddef.h with __need_wchar_t defined. Include
16555 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16556 Define _IO_iconv_t here, directly.
16557 Don't define _IO_HAVE_ST_BLKSIZE.
16558 * libio/libioP.h: Include _G_config.h here. Move include of
16559 shlib-compat.h up with rest of includes. Simplify conditionals
16560 controlling definition of _IO_JUMPS_OFFSET.
16561
16562 * csu/init.c: Remove always-true #if around entire file.
16563 Don't include stdio.h. Set _IO_stdin_used to hardwired
16564 constant 0x20001, and update commentary.
16565 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16566 Replace all uses of _G_va_list with __gnuc_va_list.
16567 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16568 instead of #if _IO_HAVE_ST_BLKSIZE.
16569 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16570 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16571 not #ifdef.
16572
16573 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16574 multiple-include guard to match.
16575 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16576 into this file.
16577 Remove preprocessor conditionals that are always true and/or
16578 redundant to other preprocessor conditionals in the same nest.
16579 Include shlib-compat.h unconditionally.
16580 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16581 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16582 defined after including stdio.h.
16583 Use __BEGIN_DECLS/__END_DECLS.
16584
16585 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16586 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16587 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16588
16589 2018-02-07 Zack Weinberg <zackw@panix.com>
16590
16591 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16592 New single-type headers split from _G_config.h.
16593 * libio/bits/types/cookie_io_functions_t.h
16594 * libio/bits/types/struct_FILE.h
16595 New single-type headers split from libio.h.
16596
16597 * libio/Makefile: Install the above new headers. Don't install
16598 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16599 bits/libio-ldbl.h.
16600 * libio/_G_config.h, libio/libio.h: Delete file.
16601
16602 * libio/bits/libio.h: Remove improper-inclusion guard.
16603 Include stdio.h and don't repeat anything that it does.
16604 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16605 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16606 __io_read_fn as cookie_read_function_t,
16607 __io_write_fn as cookie_write_function_t,
16608 __io_seek_fn as cookie_seek_function_t,
16609 __io_close_fn as cookie_close_function_t,
16610 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16611 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16612 here, in the "compatibility defines" section. Remove an #if 0
16613 block. Use the "body" macros from bits/types/struct_FILE.h to
16614 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16615 and _IO_ferror_unlocked.
16616 Move prototypes of __uflow and __overflow...
16617
16618 * libio/stdio.h: ...here. Don't include bits/libio.h.
16619 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16620 directly from stdarg.h. Include bits/types/__fpos_t.h,
16621 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16622 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16623 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16624 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16625 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16626 __ssize_t, not _IO_ssize_t. Unconditionally define
16627 BUFSIZ as 8192 and EOF as (-1).
16628
16629 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16630 macros from bits/types/struct_FILE.h instead of _IO_* macros
16631 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16632 instead of _IO_ssize_t.
16633 * libio/bits/stdio2.h: Similarly.
16634
16635 * libio/iolibio.h: Add multiple-include guard.
16636 Include bits/libio.h after stdio.h.
16637 * libio/libioP.h: Add multiple-include guard.
16638 Include stdio.h and bits/libio.h before iolibio.h.
16639
16640 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16641 * include/bits/types/cookie_io_functions_t.h
16642 * include/bits/types/struct_FILE.h: New wrappers.
16643
16644 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16645 Get definitions of _G_fpos_t and _G_fpos64_t from
16646 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16647 respectively. Remove improper-inclusion guards.
16648
16649 * conform/data/stdio.h-data: Update expectations of va_list.
16650 * scripts/check-installed-headers.sh: Remove special case for
16651 libio.h and _G_config.h.
16652
16653 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16654
16655 [BZ #15105]
16656 [BZ #19463]
16657 * include/sys/sysmacros.h [!_ISOMAC]
16658 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16659 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16660 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16661 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16662 libc_hidden_proto.
16663 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16664 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16665 Likewise.
16666 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16667 Undefine and redefine to add use __gnu_dev_ prefix.
16668 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16669 Likewise.
16670 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16671 and define as hidden inline function.
16672 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16673 Likewise.
16674 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16675 Likewise.
16676 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16677 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16678 (gnu_dev_minor): Likewise.
16679 (gnu_dev_makedev): Likewise.
16680 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16681 makedev.
16682 * posix/wordexp.c (exec_comm_child): Likewise.
16683 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16684 instead of minor and __gnu_dev_major instead of major.
16685 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16686 __gnu_dev_major instead of major.
16687 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16688 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16689 instead of gnu_dev_minor.
16690 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16691 (SLAVE_P): Likewise.
16692 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16693 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16694 instead of major.
16695
16696 [BZ #21313]
16697 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16698 in another place.
16699 * locale/weightwc.h (findidx): Likewise.
16700
16701 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16702
16703 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16704 (slowlog_inexact): Likewise
16705 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16706 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16707
16708 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16709
16710 [BZ #22797]
16711 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16712 missing second underscore to parameter name.
16713
16714 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16715
16716 [BZ #14508]
16717 [BZ #15512]
16718 [BZ #17082]
16719 [BZ #20530]
16720 * bits/byteswap.h: Update file comment. Do not include
16721 <bits/byteswap-16.h>.
16722 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16723 constant.
16724 (__bswap_16): Define as inline function.
16725 (__bswap_constant_32): Reformat definition.
16726 (__bswap_32): Always define as inline function, not macro, using
16727 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16728 otherwise __bswap_constant_32.
16729 (__bswap_constant_64): Reformat definition. Do not use
16730 __extension__ here.
16731 (__bswap_64): Always define as inline function, not macro. Use
16732 __extension__ on function definition. Use __builtin_bswap64 if
16733 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16734 * string/test-endian-file-scope.c: New file.
16735 * string/test-endian-sign-conversion.c: Likewise.
16736 * string/Makefile (headers): Remove bits/byteswap-16.h.
16737 (tests): Add test-endian-file-scope and
16738 test-endian-sign-conversion.
16739 (CFLAGS-test-endian-sign-conversion.c): New variable.
16740 * bits/byteswap-16.h: Remove file.
16741 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16742 * sysdeps/ia64/bits/byteswap.h: Likewise.
16743 * sysdeps/m68k/bits/byteswap.h: Likewise.
16744 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16745 * sysdeps/s390/bits/byteswap.h: Likewise.
16746 * sysdeps/tile/bits/byteswap.h: Likewise.
16747 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16748 * sysdeps/x86/bits/byteswap.h: Likewise.
16749
16750 [BZ #17721]
16751 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16752 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16753 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16754 199901L] (__restrict): Define to restrict.
16755
16756 [BZ #19667]
16757 * string/testcopy.c: Include <support/support.h>. Do not include
16758 <malloc.h>. Use <support/test-driver.c>.
16759 (main): Rename to do_test. Make static. Use xmalloc instead of
16760 malloc.
16761
16762 [BZ #13575]
16763 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16764 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16765 (SSIZE_MAX): Define to INT_MAX.
16766 * posix/test-ssize-max.c: New file.
16767 * posix/Makefile (tests): Add test-ssize-max.
16768
16769 [BZ #19668]
16770 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16771 <support/support.h>. Do not include <malloc.h>.
16772 (query_auxv): Use xmalloc instead of malloc.
16773
16774 [BZ #14553]
16775 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16776 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16777 instead of loff_t.
16778
16779 2018-02-06 Florian Weimer <fweimer@redhat.com>
16780
16781 [BZ #18023]
16782 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16783 Use scratch_buffer instead of extend_alloca.
16784
16785 2018-02-06 Zack Weinberg <zackw@panix.com>
16786
16787 * libio/stdio.h: Don't define getc or putc as macros.
16788 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16789 not _IO_getc and _IO_putc.
16790
16791 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16792 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16793
16794 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16795
16796 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16797 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16798
16799 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16800
16801 [BZ #14890]
16802 * elf/elf.h (NT_PRFPREG): New macro.
16803 (NT_S390_VXRS_LOW): Likewise.
16804 (NT_S390_VXRS_HIGH): Likewise.
16805 (NT_S390_GS_CB): Likewise.
16806 (NT_S390_GS_BC): Likewise.
16807 (NT_S390_RI_CB): Likewise.
16808
16809 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16810 (MAP_SYNC): New macro.
16811 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16812 Likewise.
16813 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16814 (MAP_SYNC): Likewise.
16815 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16816 (MAP_SYNC): Likewise.
16817 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16818 (MAP_SYNC): Likewise.
16819 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16820 (MAP_SYNC): Likewise.
16821 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16822 (MAP_SYNC): Likewise.
16823 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16824 (MAP_SYNC): Likewise.
16825 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16826 Likewise.
16827 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16828 Likewise.
16829
16830 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16831 (MAP_SHARED_VALIDATE): New macro.
16832 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16833 (MAP_SHARED_VALIDATE): Likewise.
16834
16835 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16836
16837 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16838 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16839 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16840
16841 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16842
16843 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16844 (DT_NUM): Updated to 35.
16845
16846 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16847
16848 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16849 __builtin_expect with __glibc_likely and __glibc_unlikely.
16850 (elf_machine_rela): Likewise.
16851 (elf_machine_lazy_rel): Likewise.
16852
16853 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16854
16855 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16856 __builtin_expect with __glibc_likely and __glibc_unlikely.
16857 (elf_machine_lazy_rel): Likewise.
16858
16859 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16860
16861 [BZ #22638]
16862 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16863 SHARED.
16864 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16865
16866 2018-02-05 Andreas Schwab <schwab@suse.de>
16867
16868 [BZ #22761]
16869 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16870 string.
16871
16872 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16873
16874 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16875 not check against PTHREAD_STACK_MIN.
16876
16877 2018-02-02 Sean McKean <smckean83@gmail.com>
16878
16879 [BZ #22735]
16880 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16881
16882 2018-02-02 Florian Weimer <fweimer@redhat.com>
16883
16884 [BZ #22753]
16885 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16886 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16887 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16888 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16889 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16890 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16891 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16892 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16893 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16894 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16895 * misc/tst-preadvwritev2.c (do_test): Call it.
16896 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16897
16898 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16899
16900 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16901
16902 * benchtests/bench-memcmp.c: Print json instead of plain text.
16903
16904 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16905 every test run.
16906
16907 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16908
16909 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16910 version to 4.15.
16911 (s390_sthyi): New syscall.
16912
16913 * sysdeps/generic/ldbl-classify-compat.h: New file.
16914 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16915 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16916 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16917 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16918 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16919 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16920 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16921 <ldbl-classify-compat.h>.
16922 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16923 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16924 <ldbl-classify-compat.h>.
16925 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16926 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16927 <ldbl-classify-compat.h>.
16928 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16929 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16930 <ldbl-classify-compat.h>.
16931 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16932 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16933 <ldbl-classify-compat.h>.
16934 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16935 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16936 <ldbl-classify-compat.h>.
16937 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16938 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16939 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16940 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16941 * sysdeps/microblaze/math_private.h: Likewise.
16942 * sysdeps/nios2/math_private.h: Likewise.
16943 * sysdeps/sh/math_private.h: Likewise.
16944
16945 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16946 * sysdeps/m68k/coldfire/math_private.h: ... here.
16947 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16948 * sysdeps/tile/math_private.h: Likewise.
16949 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16950 Remove macro.
16951 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16952 Likewise.
16953
16954 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16955 Remove macro.
16956 (libc_fetestexcept): Likewise.
16957 (libc_feupdateenv_test): Likewise.
16958 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16959 (libc_fetestexcept): Likewise.
16960 (libc_feupdateenv_test): Likewise.
16961 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16962 (libc_fetestexcept): Likewise.
16963 (libc_feupdateenv_test): Likewise.
16964 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16965 (libc_fetestexcept): Likewise.
16966 (libc_feupdateenv_test): Likewise.
16967
16968 * sysdeps/generic/math_private.h
16969 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16970 New inline function.
16971 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16972 Likewise.
16973
16974 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16975 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16976 * sysdeps/generic/math_private.h
16977 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16978 inline function.
16979 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16980 Likewise.
16981 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16982 Likewise.
16983 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16984 Likewise.
16985 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16986 Likewise.
16987 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16988 Likewise.
16989 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16990 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16991 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16992 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16993 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16994 (__fegetenv): Likewise.
16995 (fesetenv): Likewise.
16996 (__fesetenv): Likewise.
16997 (feupdateenv): Likewise.
16998 (__feupdateenv): Likewise.
16999 (fegetround): Likewise.
17000 (__fegetround): Likewise.
17001 (fesetround): Likewise.
17002 (__fesetround): Likewise.
17003
17004 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
17005 (feraiseexcept): New macro.
17006 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
17007 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
17008 Remove macro.
17009 (__feraiseexcept): Likewise.
17010 (feclearexcept): Likewise.
17011 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
17012 (__feraiseexcept): Likewise.
17013 (feclearexcept): Likewise.
17014 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
17015 (__feraiseexcept): Likewise.
17016 (feclearexcept): Likewise.
17017 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
17018 (__feraiseexcept): Likewise.
17019 (feclearexcept): Likewise.
17020 (fetestexcept): Likewise.
17021
17022 * sysdeps/m68k/coldfire/math-tests.h: New file.
17023
17024 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
17025 * sysdeps/m68k/bits/fenv.h: ... here.
17026 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17027 not define.
17028 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17029 Likewise.
17030 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17031 Likewise.
17032 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17033 Likewise.
17034 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17035 Likewise.
17036 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17037 Define to 0.
17038 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17039 (__FE_UNDEFINED): New enum constant.
17040 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17041 Do not define.
17042 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17043 Likewise.
17044 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17045 Likewise.
17046 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17047 to match generic bits/fenv.h.
17048 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17049 Do not define.
17050
17051 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17052 packed on bits.
17053 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17054 * soft-fp/half.h (union _FP_UNION_H): Likewise.
17055 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17056 * soft-fp/single.h (union _FP_UNION_S): Likewise.
17057
17058 2018-02-01 Carlos O'Donell <carlos@redhat.com>
17059 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
17060 Joseph Myers <joseph@codesourcery.com>
17061
17062 [BZ #21314]
17063 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17064 (__log1p): Disable -Wmaybe-uninitialized for -Os around
17065 computation using c.
17066 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17067 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17068 computation using c.
17069
17070 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17071
17072 * version.h (RELEASE): Set to "development".
17073 (VERSION): Set to "2.27.9000".
17074 * NEWS (2.28): New section.
17075
17076 * version.h (RELEASE): Set to "stable".
17077 (VERSION): Set to "2.27".
17078 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17079
17080 * NEWS: Add the list of bugs fixed in 2.27.
17081
17082 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17083
17084 * stdlib/test-atexit-race-common.c (do_test): Check stack size
17085 against PTHREAD_STACK_MIN.
17086
17087 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17088
17089 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17090 New entries.
17091 (Rafal Luzynski, Andreas Schwab): Update.
17092
17093 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
17094
17095 [BZ #10871]
17096 * NEWS: List the languages which actually use the alternative
17097 months feature in this release. Also explain that "alt_mon" and
17098 "ab_alt_mon" are optional.
17099
17100 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
17101
17102 [BZ #22765]
17103 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17104
17105 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
17106
17107 * manual/install.texi (Tools for Compilation): Update the newest
17108 versions of gcc, binutils, texinfo, gawk, bison, and sed.
17109 * INSTALL: Regenerated.
17110
17111 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17112
17113 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17114 instead of __builtin_expect.
17115
17116 2018-01-30 Florian Weimer <fweimer@redhat.com>
17117
17118 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17119 data.
17120 * nss/tst-nss-getpwent.c (do_test): Likewise.
17121
17122 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
17123
17124 [BZ #10871]
17125 * localedata/locales/hr_HR (mon): Rename to...
17126 (alt_mon): This.
17127 (mon): Import from CLDR (genitive case).
17128 (d_t_fmt): Update the comment.
17129
17130 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
17131
17132 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17133 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17134 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17135
17136 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17137
17138 * mach/Versions: Fix version when __mach_host_self_ was added.
17139 * hurd/Versions: Fix version when _hurd_exec_paths was added.
17140 * sysdeps/mach/hurd/i386/ld.abilist: New file.
17141 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17142 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17143 * sysdeps/mach/hurd/i386/libc.abilist: New file.
17144 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17145 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17146 * sysdeps/mach/hurd/i386/libm.abilist: New file.
17147 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17148 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17149 * sysdeps/mach/hurd/i386/librt.abilist: New file.
17150 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17151 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17152 || to respect codestyle.
17153 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17154 (do_test_bz20181): Rename accordingly.
17155 * malloc/malloc.c: Include <assert.h>.
17156 (assert): Do not define.
17157 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17158 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17159 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17160 * sysdeps/mach/hurd/hp-timing.h: New file.
17161 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17162
17163 2018-01-29 Darius Rad <darius@bluespec.com>
17164
17165 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17166
17167 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17168
17169 * sysdeps/init_array/crti.S (.section .init_array): Add
17170 PREINIT_FUNCTION when defined.
17171 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17172 * config.h.in: Regenerate.
17173 * manual/platform.texi: Add RISC-V documenation for
17174 __riscv_flush_icache.
17175 * sysdeps/riscv/__longjmp.S: New file.
17176 * sysdeps/riscv/backtrace.c: Likewise.
17177 * sysdeps/riscv/bits/endian.h: Likewise.
17178 * sysdeps/riscv/bits/setjmp.h: Likewise.
17179 * sysdeps/riscv/bits/wordsize.h: Likewise.
17180 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17181 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17182 * sysdeps/riscv/dl-trampoline.S: Likewise.
17183 * sysdeps/riscv/gccframe.h: Likewise.
17184 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17185 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17186 * sysdeps/riscv/machine-gmon.h: Likewise.
17187 * sysdeps/riscv/memusage.h: Likewise.
17188 * sysdeps/riscv/setjmp.S: Likewise.
17189 * sysdeps/riscv/sys/asm.h: Likewise.
17190 * sysdeps/riscv/tls-macros.h: Likewise.
17191 * sysdeps/riscv/dl-tls.h: New file.
17192 * sysdeps/riscv/libc-tls.c: Likewise.
17193 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17194 * sysdeps/riscv/nptl/tls.h: Likewise.
17195 * sysdeps/riscv/stackinfo.h: Likewise.
17196 * sysdeps/riscv/bits/fenv.h: New file.
17197 * sysdeps/riscv/e_sqrtl.c: Likewise.
17198 * sysdeps/riscv/fpu_control.h: Likewise.
17199 * sysdeps/riscv/math-tests.h: Likewise.
17200 * sysdeps/riscv/nofpu/Implies: Likewise.
17201 * sysdeps/riscv/sfp-machine.h: Likewise.
17202 * sysdeps/riscv/tininess.h: Likewise.
17203 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17204 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17205 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17206 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17207 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17208 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17209 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17210 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17211 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17212 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17213 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17214 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17215 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17216 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17217 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17218 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17219 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17220 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17221 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17222 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17223 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17224 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17225 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17226 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17227 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17228 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17229 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17230 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17231 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17232 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17233 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17234 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17235 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17236 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17237 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17238 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17239 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17240 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17241 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17242 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17243 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17244 * sysdeps/riscv/rvf/math_private.h: Likewise.
17245 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17246 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17247 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17248 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17249 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17250 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17251 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17252 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17253 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17254 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17255 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17256 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17257 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17258 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17259 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17260 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17261 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17262 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17263 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17264 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17265 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17266 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17267 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17268 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17269 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17270 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17271 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17272 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17273 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17274 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17275 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17276 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17277 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17278 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17279 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17280 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17281 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17282 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17283 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17284 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17285 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17286 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17287 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17288 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17289 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17290 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17291 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17292 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17293 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17294 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17295 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17296 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17297 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17298 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17299 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17300 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17301 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17302 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17303 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17304 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17305 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17306 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17307 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17308 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17309 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17310 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17311 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17312 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17313 * sysdeps/riscv/Implies: New file.
17314 * sysdeps/riscv/Makefile: Likewise.
17315 * sysdeps/riscv/configure: Likewise.
17316 * sysdeps/riscv/configure.ac: Likewise.
17317 * sysdeps/riscv/nptl/Makefile: Likewise.
17318 * sysdeps/riscv/preconfigure: Likewise.
17319 * sysdeps/riscv/rv64/Implies-after: Likewise.
17320 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17321 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17322 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17323 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17324 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17325 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17326 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17327 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17328 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17329 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17330 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17331 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17332 (Config): Likewise.
17333
17334 2018-01-29 Florian Weimer <fweimer@redhat.com>
17335
17336 [BZ #22701]
17337 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17338 libnsl_hidden_proto.
17339 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17340 libnsl_hidden_proto.
17341 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17342 * nis/Makefile (libnsl-routines): Add nss-default only for
17343 build-obsolete-nsl.
17344 * nis/nis_defaults.c (__nis_default_ttl): Add
17345 libnsl_hidden_nolink_def.
17346 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17347 declaration.
17348 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17349 * nis/ypclnt.c (yp_maplist): Likewise.
17350
17351 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17352
17353 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17354 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17355
17356 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17357
17358 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17359 clean -dxfq for git updates when replacing sources.
17360
17361 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17362 --disable-libcilkrts unconditionally, not just for the final GCC
17363 build for Hurd.
17364
17365 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17366 version to 4.15.
17367
17368 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17369
17370 [BZ #10871]
17371 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17372 case).
17373
17374 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17375
17376 [BZ #10871]
17377 * localedata/locales/be_BY (mon): Rename to...
17378 (alt_mon): This, then synchronize with CLDR (nominative case).
17379 (abmon): Rename to...
17380 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17381 (mon): Import from CLDR (genitive case).
17382 (abmon): Likewise.
17383 * localedata/locales/be_BY@latin (mon): Rename to...
17384 (alt_mon): This.
17385 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17386
17387 * localedata/locales/be_BY@latin (lang_name): Reworded to
17388 "biełaruskaja mova".
17389
17390 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17391
17392 [BZ #10871]
17393 * localedata/locales/el_CY (mon): Renamed to...
17394 (alt_mon): This.
17395 (mon): Import from CLDR (genitive case).
17396 * localedata/locales/el_GR: Likewise.
17397
17398 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17399
17400 [BZ #10871]
17401 * localedata/locales/ru_RU (mon): Rename to...
17402 (alt_mon): This.
17403 (abmon): Rename to...
17404 (ab_alt_mon): This.
17405 (mon): Import from CLDR (genitive case).
17406 (abmon): Copy from the old content except the 5th month which is
17407 now in the genitive case, even when abbreviated.
17408 * localedata/locales/ru_UA: Likewise.
17409 * time/tst-strptime.c (day_tests): Add an actual example of
17410 a difference between %b and %Ob in Russian.
17411
17412 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17413
17414 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17415 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17416 a `c' variable.
17417 * resolv/res-close.c: Include <stdlib.h>.
17418 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17419 <sys/wait.h>, <time.h>, <sys/uio.h>.
17420 (NOT_CANCEL_H): Add inclusion guard.
17421 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17422 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17423 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17424 return 0.
17425 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17426 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17427 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17428 instead of void *.
17429 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17430 timer_ptr2id to cast struct timer_node * to void *.
17431 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17432 --disable-libcilkrts to gcc configure.
17433 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17434 and make them the default for now.
17435 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17436 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17437 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17438 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17439 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17440 MACH_IPC_COMPAT.
17441 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17442 __task_terminate would ever return successfully.
17443 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17444 to global scope.
17445 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17446 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17447 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17448 critical section to make code simpler and avoid warning.
17449 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17450 critical section to make code simpler and avoid warning.
17451 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17452 const char * instead of char *.
17453 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17454 __hurd_file_name_split, hurd_file_name_split,
17455 __hurd_directory_name_split, hurd_directory_name_split,
17456 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17457 hurd_file_name_path_lookup): Make lookup function parameter take a
17458 const char *name instead of char *name.
17459 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17460 __hurd_directory_name_split): Likewise.
17461 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17462 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17463 * sysdeps/mach/hurd/check_native.c: New file.
17464 * sysdeps/mach/hurd/check_pf.c: New file.
17465 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17466 (__freeifaddrs): Define macro to freeifaddrs.
17467 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17468 * sysdeps/mach/libmachuser.abilist: New file.
17469 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17470 (do_test_bz20181): Rename accordingly.
17471 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17472 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17473 <sys/mount.h>.
17474 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17475 version only if __USE_EXTERN_INLINES is defined.
17476 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17477 __hurd_sockfail): Likewise.
17478 (_hurd_fd_get): Always declare functions, and provide inline versions
17479 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17480 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17481 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17482 _hurd_port_set): Always declare functions, and provide inline versions
17483 only if __USE_EXTERN_INLINES and _LIBC are defined and
17484 IS_IN(libc).
17485 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17486 _hurd_critical_section_unlock): Likewise.
17487 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17488 * __hurd_threadvar_location): Likewise.
17489 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17490 _hurd_userlink_clear): Likewise.
17491 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17492 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17493 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17494 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17495 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17496 __spin_lock_locked): Likewise.
17497 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17498 __spin_lock_locked): Likewise.
17499 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17500 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17501 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17502 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17503 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17504 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17505 _POSIX_NO_TRUNC): Define to 0.
17506 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17507 check size against PTHREAD_STACK_MIN.
17508 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17509 IS_IN(libpthread)]: Include <sigsetops.h>.
17510 * mach/Makefile (user-interfaces): Add mach/gnumach.
17511 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17512 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17513 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17514 instead of invalid -1.
17515 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17516 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17517 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17518 <net/ppp_defs.h>.
17519
17520 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17521
17522 * hurd/fcntl-internal.h: New file.
17523
17524 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17525
17526 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17527
17528 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17529
17530 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17531
17532 [BZ #22701]
17533 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17534 Build only shared objects.
17535
17536 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17537
17538 * README: Update for hppa.
17539
17540 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17541
17542 * sysdeps/sparc/fpu/libm-test-ulps: Update
17543 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17544
17545 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17546
17547 Revert:
17548
17549 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17550
17551 [BZ #22563]
17552 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17553 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17554 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17555 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17556 to feature_1.
17557
17558 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17559
17560 [BZ #22563]
17561 * bits/types/__cancel_jmp_buf_tag.h: New file.
17562 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17563 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17564 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17565 * nptl/Makefile (headers): Add
17566 bits/types/__cancel_jmp_buf_tag.h.
17567 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17568 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17569 * sysdeps/nptl/pthread.h: Include
17570 <bits/types/__cancel_jmp_buf_tag.h>.
17571 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17572 __cancel_jmp_buf.
17573 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17574
17575 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17576
17577 [BZ #10871]
17578 * localedata/locales/uk_UA (mon): Renamed to...
17579 (alt_mon): This.
17580 (alt_digits): "0" removed and then renamed to...
17581 (mon): This.
17582 (date_fmt): Definition changed not to use the alternative
17583 digits hack.
17584
17585 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17586
17587 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17588 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17589 * elf/elf.h (EF_RISCV_RVC): New define.
17590 (EF_RISCV_FLOAT_ABI): Likewise.
17591 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17592 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17593 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17594 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17595 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17596 define.
17597 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17598
17599 2018-01-25 Andreas Schwab <schwab@suse.de>
17600
17601 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17602 single quotes.
17603 * sysdeps/gnu/configure: Regenerate.
17604 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17605 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17607 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17608 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17609 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17610 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17611 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17612
17613 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17614
17615 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17616 URL, and run autoconf, make it the default for now.
17617
17618 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17619
17620 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17621 soft-float ColdFire configuration.
17622
17623 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17624 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17625 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17626
17627 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17628 MicroBlaze file.
17629
17630 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17631 ....
17632 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17633 ... here.
17634 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17635 New file.
17636
17637 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17638 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17639 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17640 file.
17641
17642 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17643
17644 [BZ #22742]
17645 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17646 Rename to __reserved and add comment.
17647 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17648 Rename to __reserved.
17649
17650 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17651
17652 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17653 i686-gnu configurations.
17654 (Context.run_builds): Include mig, gnumach and hurd in components
17655 considered.
17656 (Context.checkout): Add mig, gnumach and hurd to components.
17657 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17658 hurd.
17659 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17660 (Config.build): Install gnumach headers, build mig and install
17661 hurd headers for 'gnu' OS.
17662 (Config.install_gnumach_headers): New function.
17663 (Config.install_hurd_headers): Likewise.
17664 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17665 when building for 'gnu' OS.
17666
17667 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17668
17669 * manual/tunables.texi (Hardware Capability Tunables): Fix
17670 spelling.
17671
17672 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17673
17674 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17675 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17676 (ALTMON_11, ALTMON_12): Improve documentation.
17677 * manual/time.texi (strftime): Likewise.
17678
17679 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17680
17681 [BZ #10871]
17682 * localedata/locales/pl_PL: Alternative month names added,
17683 primary month names are genitive now.
17684 * time/tst-strptime.c (day_tests): Actually use a genitive case
17685 of a month name in Polish language.
17686
17687 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17688
17689 [BZ #10871]
17690 * manual/locale.texi: Document ALTMON_1..12 constants for
17691 nl_langinfo. Specify when to use ALTMON instead of MON.
17692 * manual/time.texi (strftime, strptime): Document GNU extension
17693 permitting O modifier with %B and %b. Specify when to use
17694 %OB instead of %B.
17695
17696 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17697
17698 [BZ #10871]
17699 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17700 names, define them as the same as abbreviated month names explicitly.
17701 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17702 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17703 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17704 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17705 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17706 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17707 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17708 _NL_WABALTMON_12): New enum constants.
17709 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17710 wab_alt_mon, and ab_alt_mon_defined members.
17711 (time_output): Output ab_alt_mon and wab_alt_mon members.
17712 (time_read): Read them, initialize them as copies of abmon and wabmon
17713 respectively if they are missing, initialize ab_alt_mon_defined.
17714 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17715 * locale/programs/locfile-kw.h: Regenerate.
17716 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17717 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17718 and ru_RU.UTF-8.
17719 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17720 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17721 (__strftime_internal): Handle %Ob and %Oh formats.
17722 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17723 (__strptime_internal): Handle %Ob and %Oh formats.
17724 * time/tst-strptime.c (day_tests): Add more tests to parse different
17725 forms of month names including the new %Ob format specifier.
17726
17727 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17728
17729 [BZ #10871]
17730 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17731 define them as the same as primary full month names explicitly.
17732 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17733 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17734 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17735 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17736 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17737 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17738 _NL_WALTMON_12): New enum constants.
17739 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17740 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17741 macros.
17742 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17743 walt_mon, and alt_mon_defined members.
17744 (time_output): Output alt_mon and walt_mon members.
17745 (time_read): Read them, initialize them as copies of mon and wmon
17746 respectively if they are missing, initialize alt_mon_defined.
17747 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17748 * locale/programs/locfile-kw.h: Regenerate.
17749 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17750 * localedata/tst-langinfo.c (map): Add tests for the new constants
17751 ALTMON_1 .. ALTMON_12.
17752 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17753 and pl_PL.UTF-8.
17754 * time/strftime_l.c (f_altmonth): New macro.
17755 (__strftime_internal): Handle %OB format.
17756 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17757 (__strptime_internal): Handle %OB format.
17758 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17759 of month names including the new %OB format specifier.
17760
17761 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17762
17763 [BZ #22685]
17764 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17765 from ABORT_TRANSACTION.
17766 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17767 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17768 ABORT_TRANSACTION_IMPL): Likewise.
17769 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17770 Linux code, but remove the code that aborts transactions.
17771
17772 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17773
17774 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17775
17776 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17777
17778 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17779 in date: "2004-14-09" should be "2004-09-14".
17780 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17781 "2003-15-09" should be "2003-09-15".
17782
17783 2018-01-18 Arjun Shankar <arjun@redhat.com>
17784
17785 [BZ #22343]
17786 [BZ #22774]
17787 CVE-2018-6485
17788 CVE-2018-6551
17789 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17790 after padding.
17791 (_int_memalign): check for integer overflow before calling
17792 _int_malloc.
17793 * malloc/tst-malloc-too-large.c: New test.
17794 * malloc/Makefile: Add tst-malloc-too-large.
17795
17796 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17797
17798 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17799 in date: "2017-24-07" should be "2017-07-24".
17800 * localedata/locales/mai_IN: Likewise.
17801 * localedata/locales/mai_NP: Likewise.
17802
17803 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17804
17805 * po/ru.po: Update translations.
17806
17807 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17808
17809 [BZ #22719]
17810 * sysdeps/hppa/backtrace.c: New file.
17811
17812 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17813
17814 [BZ #22715]
17815 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17816 align La_x86_64_retval to VEC_SIZE.
17817
17818 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17819
17820 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17821 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17822
17823 2018-01-16 Florian Weimer <fweimer@redhat.com>
17824
17825 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17826 Move tst-thread-exit-clobber ...
17827 [$(CXX)] (tests-unsupported): ... to here.
17828
17829 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17830
17831 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17832 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17833 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17834 (_dl_aarch64_cap_flags): Update.
17835 (_DL_HWCAP_COUNT): Update.
17836
17837 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17838
17839 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17840 (_DL_HWCAP_LAST): Remove.
17841 (_DL_HWCAP_COUNT): Move to ...
17842 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17843 (_DL_HWCAP_COUNT): ... here.
17844
17845 2018-01-16 Florian Weimer <fweimer@redhat.com>
17846
17847 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17848 mode with GNU extensions.
17849
17850 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17851
17852 * elf/elf.h (NT_ARM_SVE): Define.
17853
17854 2018-01-15 Florian Weimer <fweimer@redhat.com>
17855
17856 [BZ #22636]
17857 * nptl/tst-minstack-throw.cc: New file.
17858 * nptl/Makefile (tests): Add tst-minstack-throw.
17859 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17860 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17861
17862 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17863
17864 * scripts/build-many-glibcs.py (Context.checkout): Default
17865 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17866 version to 1.1.0.
17867
17868 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17869
17870 [BZ #22707]
17871 * elf/elf.h (DF_1_STUB): Define.
17872 (DF_1_PIE): Define.
17873
17874 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17875
17876 [BZ #22697]
17877 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17878 Do not add 0.5 to integer or out-of-range arguments.
17879
17880 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17881
17882 * po/bg.po: Update translations.
17883 * po/cs.po: Likewise.
17884 * po/de.po: Likewise.
17885 * po/ko.po: Likewise.
17886 * po/pl.po: Likewise.
17887 * po/sv.po: Likewise.
17888 * po/uk.po: Likewise.
17889 * po/vi.po: Likewise.
17890
17891 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17892
17893 * aarch64/start.S (_start): Use __wrap_main.
17894 (__wrap_main): New local symbol.
17895
17896 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17897
17898 [BZ #22679]
17899 CVE-2018-1000001
17900 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17901 generic_getcwd if the path returned by getcwd syscall is not absolute.
17902 * io/tst-getcwd-abspath.c: New test.
17903 * io/Makefile (tests): Add tst-getcwd-abspath.
17904
17905 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17906
17907 * malloc/malloc.c (malloc_consolidate): Add size check.
17908
17909 2018-01-12 Florian Weimer <fweimer@redhat.com>
17910
17911 * support/write_message.c (write_message): Preserve errno.
17912 * support/check.c (print_failure): Likewise.
17913 * support/support_test_verify_impl.c (support_test_verify_impl):
17914 Likewise.
17915 * support/support_test_compare_failure.c
17916 (support_test_compare_failure): Likewise.
17917
17918 2018-01-12 Florian Weimer <fweimer@redhat.com>
17919
17920 [BZ #22701]
17921 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17922 Prevent installation of libnsl.so.
17923 (libnsl-inhibit-o): Do not build (or install) static libraries.
17924
17925 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17926
17927 [BZ #22657]
17928 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17929 before the day number which may produce a double space.
17930 (date_fmt): Likewise.
17931
17932 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17933
17934 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17935 instead of fegetenv.
17936
17937 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17938
17939 [BZ #22702]
17940 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17941 comment to say exceptions are discarded.
17942 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17943 __fegetenv.
17944 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17945 be enabled.
17946
17947 2018-01-11 Florian Weimer <fweimer@redhat.com>
17948
17949 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17950 and error message.
17951
17952 2018-01-11 Florian Weimer <fweimer@redhat.com>
17953
17954 [BZ #22636]
17955 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17956 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17957
17958 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17959
17960 [BZ #22693]
17961 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17962 negative arguments in test for NaN or infinity argument.
17963
17964 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17965
17966 * po/libc.pot: Regenerate.
17967
17968 2018-01-10 Florian Weimer <fweimer@redhat.com>
17969
17970 [BZ #22636]
17971 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17972 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17973
17974 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17975
17976 * hurd/hurd/fd.h: Include <fcntl.h>
17977 (__hurd_at_flags): New function.
17978 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17979 with call to __hurd_at_flags.
17980 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17981 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17982 __faccessat
17983 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17984 (__access_noerrno): Use __faccessat_common instead of access_common.
17985 (__access): Likewise.
17986 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17987 with a call to __faccessat.
17988 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17989 (__faccessat_common): ... this. Move implementation of __access into it when
17990 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17991 reauthenticate_cwdir_at helper to implement AT mechanism.
17992 (__faccessat_noerrno): New function, just calls __faccessat_common.
17993 (__faccessat): New function, just calls __faccessat_common.
17994 (faccessat): Define weak alias.
17995
17996 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17997
17998 [BZ #22691]
17999 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18000 (CFLAGS-s_fmaxmagl.c): New variable.
18001 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
18002
18003 [BZ #22690]
18004 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
18005 long int for arguments of possibly overflowing addition or
18006 subtraction.
18007 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
18008
18009 2018-01-09 Joseph Myers <joseph@codesourcery.com>
18010
18011 [BZ #22688]
18012 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18013 (CFLAGS-e_remainderl.c): New variable.
18014
18015 [BZ #22687]
18016 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
18017 variable.
18018 (CFLAGS-s_cacoshl.c): Likewise.
18019 (CFLAGS-s_casinhl.c): Likewise.
18020 (CFLAGS-s_catanl.c): Likewise.
18021 (CFLAGS-s_catanhl.c): Likewise.
18022 (CFLAGS-s_cexpl.c): Likewise.
18023 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
18024 (CFLAGS-s_csinhl.c): Likewise.
18025 (CFLAGS-s_clogl.c): Likewise.
18026 (CFLAGS-s_clog10l.c): Likewise.
18027 (CFLAGS-s_csinl.c): Likewise.
18028 (CFLAGS-s_csqrtl.c): Likewise.
18029
18030 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
18031 2017-01-09 Svante Signell <svante.signell@gmail.com>
18032
18033 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18034 (_hurd_exec_paths): New function.
18035 * hurd/hurd.h (_hurd_exec): Deprecate function.
18036 (_hurd_exec_paths): Declare function.
18037 * hurd/Versions: Export _hurd_exec_paths.
18038 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18039 (__execve): Use __getcwd to build absolute path, and use
18040 _hurd_exec_paths instead of _hurd_exec.
18041 * sysdeps/mach/hurd/spawni.c: Likewise.
18042 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18043 _hurd_exec.
18044
18045 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
18046
18047 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18048 test instead of failing in case of ENOENT returned by posix_openpt.
18049
18050 2018-01-08 Florian Weimer <fweimer@redhat.com>
18051
18052 resolv: Support binary labels in test framework.
18053 * support/resolv_test.c (struct to_be_freed): Remove.
18054 (struct compressed_name): New.
18055 (allocate_compressed_name, ascii_tolower)
18056 (compare_compressed_name): New functions.
18057 (struct resolv_response_builder): Update type of
18058 compression_offsets for use with tsearch. Rempve to_be_freed.
18059 (response_push_pointer_to_free): Remove function.
18060 (resolv_response_add_name): Rewrite using struct compressed_name
18061 and tsearch instead of hsearch_r.
18062 (response_builder_allocate): Remove initialization of
18063 compression_offsets.
18064 (response_builder_free): Update for removal of to_be_freed. Use
18065 tdestroy instead of hdestroy_r.
18066 * resolv/Makefile (tests): Add tst-resolv-binary.
18067 (tst-resolv-binary): Link with -lresolv -lpthread.
18068
18069 2018-01-08 Florian Weimer <fweimer@redhat.com>
18070
18071 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18072 time. Pass positive flag instead of negative flag to
18073 support_test_compare_failure.
18074 (support_test_compare_failure): Change negative parameter to
18075 positive.
18076 * support/support_test_compare_failure.c (report)
18077 (support_test_compare_failure): Likewise.
18078 * support/tst-test_compare.c (return_ssize_t, return_int): New.
18079 (do_test): Check int/size_t, ssize_t/size_t comparisons.
18080
18081 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18082
18083 [BZ #22637]
18084 * nptl/descr.h (stackblock, stackblock_size): Update comments.
18085 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18086 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18087 stacksize.
18088 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18089
18090 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
18091
18092 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18093 Add s_sincosf-sse2 and s_sincosf-fma.
18094 (CFLAGS-s_sincosf-fma.c): New.
18095 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18096 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18097 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18098 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18099 __sincosf is defined.
18100
18101 2018-01-08 Florian Weimer <fweimer@redhat.com>
18102
18103 * nptl/tst-thread-exit-clobber.cc: New file.
18104 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18105 C++11 mode.
18106 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18107 (tests): Add tst-thread-exit-clobber.
18108 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18109
18110 2018-01-08 Florian Weimer <fweimer@redhat.com>
18111
18112 * support/check.h (support_static_assert): Define.
18113 (TEST_COMPARE): Use it.
18114
18115 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
18116
18117 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18118 [!__RLIM_T_MATCHES_RLIM64_T]
18119 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18120 __getrlimit64. Add libc_hidden_weak.
18121
18122 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
18123
18124 * elf/elf.h (R_RISCV_NONE): New define.
18125 (R_RISCV_32): Likewise.
18126 (R_RISCV_64): Likewise.
18127 (R_RISCV_RELATIVE): Likewise.
18128 (R_RISCV_COPY): Likewise.
18129 (R_RISCV_JUMP_SLOT): Likewise.
18130 (R_RISCV_TLS_DTPMOD32): Likewise.
18131 (R_RISCV_TLS_DTPMOD64): Likewise.
18132 (R_RISCV_TLS_DTPREL32): Likewise.
18133 (R_RISCV_TLS_DTPREL64): Likewise.
18134 (R_RISCV_TLS_TPREL32): Likewise.
18135 (R_RISCV_TLS_TPREL64): Likewise.
18136 * Makerules (make-link-multidir): Make directories before linking into
18137 them.
18138 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18139 define.
18140 (VDSO_HASH_LINUX_4_15): Likewise.
18141 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18142 in subdirectories of lib.
18143 * nptl/Makefile (/librt.so): Always depend on
18144 "$(shared-thread-library)".
18145
18146 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18147
18148 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18149 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18150 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18151 (___tls_get_addr).
18152 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18153 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18154 "-O2 -march=i686".
18155 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18156 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18157 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18158 * sysdeps/gnu/glob-lstat-compat.c: New file.
18159 * sysdeps/gnu/glob64-lstat-compat.c: New file.
18160 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18161
18162 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18163
18164 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18165 Reserve 16 chars to reloc_addr before calling _itoa_word.
18166
18167 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18168
18169 [BZ #22678]
18170 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18171 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18172
18173 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18174 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18175
18176 * resource/tst-getrlimit.c: Add copyright header.
18177
18178 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18179 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18180
18181 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18182 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18183 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18184 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18185 instead.
18186 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18187 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18188 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18189 RLIM64_INFINITY): Fix values to match the kernel ones.
18190 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18191 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18192 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18193 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18194 getrlimit64@@GLIBC_2_27.
18195 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18196 and setrlimit64.
18197 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18198 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18199 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18200 setrlimit, getrlimit64 and setrlimit64.
18201
18202 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18203
18204 [BZ #22648]
18205 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18206 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18207
18208 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18209
18210 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18211 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18212 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18213
18214 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18215
18216 [BZ #15479]
18217 [BZ #22666]
18218 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18219 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18220
18221 [BZ #15479]
18222 [BZ #22665]
18223 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18224 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18225 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18226 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18227
18228 2018-01-04 Florian Weimer <fweimer@redhat.com>
18229
18230 [BZ #22667]
18231 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18232 Align the stack before calling exit.
18233 * stdlib/tst-makecontext-align.c: New file.
18234 * stdlib/Makefile (tests): Add tst-makecontext-align.
18235
18236 2018-01-04 Florian Weimer <fweimer@redhat.com>
18237
18238 Add support for calling dlvsym from libc.so.
18239 * include/dlfcn.h (__libc_dlvsym): Declare.
18240 * elf/Makefile (tests-static-internal): Add
18241 tst-libc_dlvsym-static.
18242 (tests-internal): Add tst-libc_dlvsym.
18243 (modules-names): Add tst-libc_dlvsym-dso.
18244 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18245 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18246 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18247 object tst-libc_dlvsym-dso.so needs to be built before running
18248 these tests.
18249 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18250 * elf/Versions: Export __libc_dlvsym.
18251 * elf/dl-libc.c (struct do_dlvsym_args): New.
18252 (do_dlvsym, __libc_dlvsym): New functions.
18253 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18254 (_dl_open_hook2): New variable.
18255 (__libc_register_dl_open_hook): Set it.
18256 * elf/tst-libc_dlvsym-dso.c: New file.
18257 * elf/tst-libc_dlvsym-static.c: Likewise.
18258 * elf/tst-libc_dlvsym.c: Likewise.
18259 * elf/tst-libc_dlvsym.h: Likewise.
18260
18261 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18262
18263 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18264 include <sys/mount.h>.
18265
18266 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18267
18268 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18269 Add __NO_MATH_ERRNO__ check.
18270
18271 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18272
18273 * sysdeps/mips/mips32/libm-test-ulps: Update.
18274 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18275
18276 2018-01-02 Florian Weimer <fweimer@redhat.com>
18277
18278 * misc/tst-pselect.c: Add copyright header.
18279
18280 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18281
18282 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18283 comment.
18284 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18285 comment.
18286 (settrlimit): Rename into setrlimit.
18287 (__sttrlimit): Rename into __setrlimit.
18288
18289 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18290 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18291 never defined in that case.
18292
18293 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18294
18295 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18296
18297 * sysdeps/arm/libm-test-ulps: Update.
18298
18299 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18300 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18301
18302 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18303
18304 * NEWS: Add cosf and sincosf to list of optimized functions.
18305
18306 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18307
18308 [BZ #22660]
18309 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18310 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18311 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18312 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18313
18314 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18315
18316 [BZ #22433]
18317 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18318
18319 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18320 making a copy of it.
18321
18322 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18323
18324 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18325 trailing whitespace removed.
18326 * scripts/config.guess: Update to version 2018-01-01.
18327 * scripts/config.sub: Update to version 2018-01-01.
18328 * scripts/move-if-change: Update from gnulib.
18329
18330 * NEWS: Update copyright dates.
18331 * catgets/gencat.c (print_version): Likewise.
18332 * csu/version.c (banner): Likewise.
18333 * debug/catchsegv.sh: Likewise.
18334 * debug/pcprofiledump.c (print_version): Likewise.
18335 * debug/xtrace.sh (do_version): Likewise.
18336 * elf/ldconfig.c (print_version): Likewise.
18337 * elf/ldd.bash.in: Likewise.
18338 * elf/pldd.c (print_version): Likewise.
18339 * elf/sotruss.sh: Likewise.
18340 * elf/sprof.c (print_version): Likewise.
18341 * iconv/iconv_prog.c (print_version): Likewise.
18342 * iconv/iconvconfig.c (print_version): Likewise.
18343 * locale/programs/locale.c (print_version): Likewise.
18344 * locale/programs/localedef.c (print_version): Likewise.
18345 * login/programs/pt_chown.c (print_version): Likewise.
18346 * malloc/memusage.sh (do_version): Likewise.
18347 * malloc/memusagestat.c (print_version): Likewise.
18348 * malloc/mtrace.pl: Likewise.
18349 * manual/libc.texinfo: Likewise.
18350 * nptl/version.c (banner): Likewise.
18351 * nscd/nscd.c (print_version): Likewise.
18352 * nss/getent.c (print_version): Likewise.
18353 * nss/makedb.c (print_version): Likewise.
18354 * posix/getconf.c (main): Likewise.
18355 * scripts/test-installation.pl: Likewise.
18356 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18357
18358 * All files with FSF copyright notices: Update copyright dates
18359 using scripts/update-copyrights.
18360 * locale/programs/charmap-kw.h: Regenerated.
18361 * locale/programs/locfile-kw.h: Likewise.
18362
18363 2017-12-31 Zack Weinberg <zackw@panix.com>
18364
18365 * libio/bits/libio-ldbl.h: Correct check for improper
18366 inclusion. Add own multiple include guard.
18367
18368 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18369 Dmitry V. Levin <ldv@altlinux.org>
18370
18371 [BZ #22625]
18372 CVE-2017-16997
18373 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18374 string token expansion. Check for NULL pointer or empty string possibly
18375 returned by expand_dynamic_string_token.
18376 (decompose_rpath): Check for empty path after dynamic string
18377 token expansion.
18378
18379 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18380
18381 [BZ #22433]
18382 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18383
18384 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18385 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18386 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18387 and PTRACE_SYSCALL.
18388 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18389 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18390 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18391 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18392 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18393 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18394
18395 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18396 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18397 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18398 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18399 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18400 bits/ptrace-shared.h.
18401 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18402 <bits/ptrace-shared.h>.
18403 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18404 __ptrace_peeksiginfo_flags, ptrace): Remove.
18405 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18406 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18407 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18408 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18409 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18410
18411 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18412
18413 [BZ #17804]
18414 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18415 end of the loop. Improve comments.
18416
18417 2017-12-29 Zack Weinberg <zackw@panix.com>
18418
18419 [BZ #22615]
18420 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18421 might be set on success.
18422
18423 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18424
18425 [BZ #22611]
18426 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18427 is unchanged on success.
18428
18429 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18430
18431 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18432 updated.
18433 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18434 expand_dynamic_string_token): Likewise.
18435 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18436 is_path argument.
18437
18438 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18439 contains ':'.
18440
18441 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18442 is set and name contains ':', and all code depending on these checks.
18443
18444 2017-12-24 Zack Weinberg <zackw@panix.com>
18445
18446 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18447 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18448 respectively.
18449 * libio/libio.h: Rename the original version of this file to
18450 libio/bits/libio.h. Error out if not included by stdio.h or the
18451 stub libio.h.
18452 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18453 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18454 if not included by bits/libio.h or the stub _G_config.h.
18455 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18456 sysdeps/unix/sysv/linux/bits. Error out if not included by
18457 bits/libio.h or the stub _G_config.h.
18458 * libio/stdio.h: Include bits/libio.h, not libio.h.
18459 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18460 well as libio.h and _G_config.h.
18461
18462 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18463 * libio/strfile.h, stdio-common/vfscanf.c
18464 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18465 Include stdio.h, not _G_config.h nor libio.h.
18466 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18467 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18468
18469 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18470
18471 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18472
18473 [BZ #22347]
18474 * stdlib/getrandom.c (getrandom): Fix comment.
18475 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18476
18477 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18478
18479 [BZ #21161]
18480 * manual/arith.texi (strtoul): Fix a typo.
18481
18482 [BZ #22596]
18483 * manual/arith.texi (finite): Fix the description of the return
18484 value.
18485
18486 2017-12-22 Eric Blake <ebb9@byu.net>
18487
18488 Avoid gcc warnings on cygwin
18489 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18490 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18491 Avoid unused variable.
18492
18493 2017-12-22 Florian Weimer <fweimer@redhat.com>
18494
18495 * io/Makefile (routines): Add copy_file_range.
18496 (tests): Add tst-copy_file_range.
18497 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18498 * io/Versions (GLIBC_2.27): Export copy_file_range.
18499 * io/copy_file_range-compat.c: New file.
18500 * io/copy_file_range.c: Likewise.
18501 * io/tst-copy_file_range-compat.c: Likewise.
18502 * io/tst-copy_file_range.c: Likewise.
18503 * manual/llio.texi (Copying File Data): New section.
18504 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18505 * support/Makefile (libsupport-routines): Add support-xfstat,
18506 xftruncate, xlseek.
18507 * support/support-xfstat.c: New file.
18508 * support/xftruncate.c: Likewise.
18509 * support/xlseek.c: Likewise.
18510 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18511 * sysdeps/unix/sysv/linux/**.abilist: Update.
18512 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18513
18514 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18515
18516 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18517 disable-multi-arch variant to aarch64-linux-gnu.
18518
18519 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18520
18521 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18522 trailing whitespace removed.
18523 * scripts/config.guess: Update to version 2017-12-17.
18524 * scripts/config.sub: Update to version 2017-11-23.
18525 * scripts/install-sh: Update to version 2017-09-23.17.
18526 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18527
18528 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18529
18530 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18531 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18532 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18533 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18534 * sysdeps/tile/crtn.S: Likewise.
18535 * sysdeps/tile/dl-start.S (_start): Likewise.
18536 * sysdeps/tile/dl-trampoline.S: Likewise.
18537 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18538 * sysdeps/tile/start.S (_start): Likewise.
18539 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18540 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18541 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18542 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18543 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18544 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18545 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18546
18547 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18548 comment.
18549 * sysdeps/tile/preconfigure: Remove tilegx folder.
18550 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18551 * sysdeps/tile/Implies: ... here.
18552 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18553 * sysdeps/tile/Makefile: ... here.
18554 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18555 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18556 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18557 * sysdeps/tile/bits/wordsize.h: ... here.
18558 * sysdeps/tile/tilegx/*: Move to ...
18559 * sysdeps/tile/*: ... here.
18560 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18561 * sysdeps/tile/tilegx32/Implies: ... here.
18562 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18563 * sysdeps/tile/tilegx64/Implies: ... here.
18564 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18565 to ...
18566 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18567 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18568 * sysdeps/unix/sysv/linux/tile/*: ... here.
18569 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18570 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18571 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18572 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18573
18574 * README: Remove tilepro-*-linux-gnu from supported architecture.
18575 * scripts/build-many-glibcs.py: Likewise.
18576 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18577 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18578 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18579 elf_machine_matches_host, elf_machine_dynamic,
18580 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18581 howto, elf_machine_rela): Likewise.
18582 * sysdeps/tile/dl-start.S (_start): Likewise.
18583 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18584 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18585 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18586 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18587 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18588 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18589 Likewise.
18590 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18591 * sysdeps/tile/preconfigure: Likewise.
18592 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18593 POINTER_CHK_GUARD): Likewise.
18594 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18595 * sysdeps/tile/start.S (_start): Likewise.
18596 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18597 Likewise.
18598 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18599 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18600 CMOVNEZ): Remove.
18601 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18602 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18603 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18604 Likewise.
18605 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18606 * sysdeps/tile/tilepro/Implies: Remove file.
18607 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18608 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18609 * sysdeps/tile/tilepro/memchr.c: Likewise.
18610 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18611 * sysdeps/tile/tilepro/memset.c: Likewise.
18612 * sysdeps/tile/tilepro/memusage.h: Likewise.
18613 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18614 * sysdeps/tile/tilepro/strchr.c: Likewise.
18615 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18616 * sysdeps/tile/tilepro/strlen.c: Likewise.
18617 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18618 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18619 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18620 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18621 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18622 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18623 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18624 Likewise.
18625 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18626 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18627 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18628 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18629 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18630 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18631 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18632 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18633 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18634 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18635 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18636 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18637 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18638 tilepro mention in comment.
18639
18640 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18641 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18642 * nptl/pthread_join_common.c: New file: common function used on
18643 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18644 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18645 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18646 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18647 (cleanup): Move definition to pthread_join_common.c.
18648 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18649 Remove superflous checks.
18650 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18651 Likewise.
18652
18653 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18654
18655 * sysdeps/aarch64/libm-test-ulps: Update.
18656
18657 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18658
18659 * sysdeps/aarch64/memset.S (MEMSET): Define.
18660
18661 2017-12-20 Florian Weimer <fweimer@redhat.com>
18662
18663 [BZ #22635]
18664 nptl: Provide full implementation of pthread_self in libc.so.
18665 * nptl/Makefile (routines): Add pthread_self.
18666 (libpthread-routines): Replace pthread_self with
18667 compat-pthread_self.
18668 * nptl/forward.c (pthread_self): Remove.
18669 * nptl/nptl-init.c (pthread_functions): Do not initialize
18670 ptr_pthread_self.
18671 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18672 * nptl/compat-pthread_self.c: New file.
18673 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18674 Remove ptr_pthread_self.
18675
18676 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18677
18678 * posix/regcomp.c: Fix spelling in comments.
18679 * posix/regex.h: Likewise.
18680 * posix/regex_internal.c: Likewise.
18681 * posix/regexec.c: Likewise.
18682
18683 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18684
18685 [BZ #22377]
18686 * math/Makefile [C++] (tests): Add test for iseqsig.
18687 * math/math.h [C++] (iseqsig): New implementation, which does
18688 not rely on __MATH_TG/__builtin_types_compatible_p.
18689 * math/test-math-iseqsig.cc: New file.
18690 * sysdeps/powerpc/powerpc64le/Makefile
18691 (CFLAGS-test-math-iseqsig.cc): New variable.
18692
18693 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18694
18695 * elf/dl-load.c (is_trusted_path): Remove.
18696 (fillin_rpath): Remove check_trusted argument and its use,
18697 all callers changed.
18698
18699 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18700
18701 [BZ #22630]
18702 * Makeconfig (link-pie-before-libc): Replace -pie with
18703 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18704 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18705 (tst-dlopen-aout-no-pie): New.
18706 (LDFLAGS-tst-prelink): Removed.
18707 (tst-prelink-no-pie): New.
18708 (LDFLAGS-tst-main1): Removed.
18709 (tst-main1-no-pie): New.
18710 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18711 (tst-gmon-no-pie): New.
18712
18713 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18714
18715 * manual/install.texi: Document that --enable-static-pie
18716 implies PIE.
18717 * INSTALL: Regenerated.
18718
18719 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18720
18721 [BZ #21309]
18722 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18723 unsigned.
18724
18725 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18726
18727 Revert:
18728
18729 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18730
18731 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18732
18733 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18734
18735 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18736 <errno.h>. Include "eexp.tbl".
18737 (half): New constant.
18738 (one): Likewise.
18739 (__ieee754_exp): Rewrite.
18740 (__slowexp): Remove prototype.
18741 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18742 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18743 * sysdeps/i386/fpu/slowexp.c: Likewise.
18744 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18745 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18746 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18747 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18748 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18749 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18750 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18751 comment.
18752 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18753 (CPPFLAGS-slowexp.c): Remove variable.
18754 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18755 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18756 (CFLAGS-slowexp-fma.c): Remove variable.
18757 (CFLAGS-slowexp-fma4.c): Likewise.
18758 (CFLAGS-slowexp-avx.c): Likewise.
18759 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18760 define as macro.
18761 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18762 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18763 * math/Makefile (type-double-routines): Remove slowexp.
18764 * manual/probes.texi (slowexp_p6): Remove.
18765 (slowexp_p32): Likewise.
18766
18767 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18768
18769 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18770 arithmetic.
18771
18772 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18773
18774 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18775
18776 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18777
18778 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18779
18780 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18781 <errno.h>. Include "eexp.tbl".
18782 (half): New constant.
18783 (one): Likewise.
18784 (__ieee754_exp): Rewrite.
18785 (__slowexp): Remove prototype.
18786 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18787 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18788 * sysdeps/i386/fpu/slowexp.c: Likewise.
18789 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18790 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18791 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18792 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18793 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18794 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18795 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18796 comment.
18797 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18798 (CPPFLAGS-slowexp.c): Remove variable.
18799 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18800 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18801 (CFLAGS-slowexp-fma.c): Remove variable.
18802 (CFLAGS-slowexp-fma4.c): Likewise.
18803 (CFLAGS-slowexp-avx.c): Likewise.
18804 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18805 define as macro.
18806 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18807 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18808 * math/Makefile (type-double-routines): Remove slowexp.
18809 * manual/probes.texi (slowexp_p6): Remove.
18810 (slowexp_p32): Likewise.
18811
18812 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18813 James Clarke <jrtc27@jrtc27.com>
18814
18815 [BZ #22603]
18816 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18817 addition.
18818
18819 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18820
18821 [BZ #22605]
18822 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18823 code.
18824
18825 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18826
18827 [BZ #22563]
18828 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18829 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18830 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18831 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18832 to feature_1.
18833
18834 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18835
18836 [BZ #22563]
18837 * bits/types/__cancel_jmp_buf_tag.h: New file.
18838 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18839 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18840 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18841 * nptl/Makefile (headers): Add
18842 bits/types/__cancel_jmp_buf_tag.h.
18843 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18844 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18845 * sysdeps/nptl/pthread.h: Include
18846 <bits/types/__cancel_jmp_buf_tag.h>.
18847 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18848 __cancel_jmp_buf.
18849 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18850
18851 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18852
18853 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18854 --enable-static-pie variants to x86_64, x32 and i686.
18855
18856 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18857
18858 [BZ #22631]
18859 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18860 argument for attrubutes. All callers changed.
18861 (__inline_mathop1): Likewise. All callers changed.
18862 (__inline_mathop): Likewise. All callers changed.
18863 [__USE_MISC] (scalbn): Use __inline_forward instead of
18864 __inline_forward_c.
18865 [__USE_ISOC99] (scalbln): Likewise.
18866 [__USE_ISOC99] (nearbyint): Likewise.
18867 [__USE_ISOC99] (lrint): Likewise.
18868 [__USE_MISC] (scalbnf): Likewise.
18869 [__USE_ISOC99] (scalblnf): Likewise.
18870 [__USE_ISOC99] (nearbyintf): Likewise.
18871 [__USE_ISOC99] (lrintf): Likewise.
18872 [__USE_MISC] (scalbnl): Likewise.
18873 [__USE_ISOC99] (scalblnl): Likewise.
18874 [__USE_ISOC99] (nearbyintl): Likewise.
18875 [__USE_ISOC99] (lrintl): Likewise.
18876 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18877 __inline_mathop and __m81_defun changed.
18878
18879 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18880 CPU or FPU for ARM hard-float configurations.
18881
18882 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18883
18884 * nptl/tst-attr3.c: Include <libc-diag.h>.
18885 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18886
18887 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18888
18889 * string/tester.c (test_strncat): Also disable -Warray-bounds
18890 warnings for two tests.
18891
18892 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18893
18894 [BZ #22614]
18895 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18896 $(cc-pie-default) == yes.
18897 * config.make.in (cc-pie-default): New.
18898 * configure.ac (libc_cv_pie_default): Renamed to ...
18899 (libc_cv_cc_pie_default): This.
18900 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18901 * configure: Regenerated.
18902
18903 2017-12-18 Florian Weimer <fweimer@redhat.com>
18904
18905 [BZ #20204]
18906 ld.so: Harden dl-libc/libdl hooks.
18907 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18908 (rtld_active): New function.
18909 * dlfcn/dladdr.c (__dladdr): Call it.
18910 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18911 * dlfcn/dlclose.c (__dlcose): Likewise.
18912 * dlfcn/dlerror.c (__dlerror): Likewise.
18913 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18914 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18915 * dlfcn/dlopen.c (__dlopen): Likewise.
18916 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18917 * dlfcn/dlsym.c (__dlsym): Likewise.
18918 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18919 * libio/vtables.c (_IO_vtable_check): Likewise.
18920 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18921 (__libc_dlclose): Likewise.
18922 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18923 assignment.
18924
18925 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18926
18927 [BZ #22446]
18928 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18929 buffers for readlink input and output.
18930
18931 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18932
18933 [BZ #22624]
18934 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18935 inhibit_stack_protector.
18936
18937 [BZ #22624]
18938 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18939 inhibit_stack_protector.
18940
18941 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18942
18943 [BZ #22627]
18944 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18945 code and invocation.
18946
18947 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18948
18949 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18950
18951 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18952
18953 [BZ #22505]
18954 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18955
18956 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18957
18958 * sysdeps/s390/fpu/libm-test-ulps: Update.
18959
18960 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18961
18962 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18963
18964 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18965
18966 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18967 constants to s_sincosf.h file.
18968 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18969 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18970 implementation.
18971 * sysdeps/ieee754/flt-32/s_sincosf.h:
18972 New file.
18973
18974 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18975
18976 [BZ #14681]
18977 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18978 before mtrace.
18979
18980 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18981
18982 [BZ #19574]
18983 * INSTALL: Regenerated.
18984 * Makeconfig (real-static-start-installed-name): New.
18985 (pic-default): Updated for --enable-static-pie.
18986 (pie-default): New for --enable-static-pie.
18987 (default-pie-ldflag): Likewise.
18988 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18989 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18990 Replace $(static-start-installed-name) with
18991 $(real-static-start-installed-name).
18992 (+prectorT): Updated for --enable-static-pie.
18993 (+postctorT): Likewise.
18994 (CFLAGS-.o): Add $(pie-default).
18995 (CFLAGS-.op): Likewise.
18996 * NEWS: Mention --enable-static-pie.
18997 * config.h.in (ENABLE_STATIC_PIE): New.
18998 * configure.ac (--enable-static-pie): New configure option.
18999 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
19000 (have-static-pie): Likewise.
19001 Enable static PIE if linker supports --no-dynamic-linker.
19002 (ENABLE_STATIC_PIE): New AC_DEFINE.
19003 (enable-static-pie): New LIBC_CONFIG_VAR.
19004 * configure: Regenerated.
19005 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
19006 gr$(start-installed-name) for --enable-static-pie.
19007 (extra-objs): Likewise.
19008 (install-lib): Likewise.
19009 (extra-objs): Add static-reloc.o and static-reloc.os
19010 ($(objpfx)$(start-installed-name)): Also depend on
19011 $(objpfx)static-reloc.o.
19012 ($(objpfx)r$(start-installed-name)): New.
19013 ($(objpfx)g$(start-installed-name)): Also depend on
19014 $(objpfx)static-reloc.os.
19015 ($(objpfx)gr$(start-installed-name)): New.
19016 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
19017 in libc.a.
19018 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
19019 initimage.
19020 * csu/static-reloc.c: New file.
19021 * elf/Makefile (routines): Add dl-reloc-static-pie.
19022 (elide-routines.os): Likewise.
19023 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
19024 (tst-tls1-static-non-pie-no-pie): New.
19025 * elf/dl-reloc-static-pie.c: New file.
19026 * elf/dl-support.c (_dl_get_dl_main_map): New function.
19027 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19028 STATIC_PIE_BOOTSTRAP.
19029 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19030 * gmon/Makefile (tests): Add tst-gmon-static-pie.
19031 (tests-static): Likewise.
19032 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19033 (tst-gmon-static-no-pie): New.
19034 (CFLAGS-tst-gmon-static-pie.c): Likewise.
19035 (CRT-tst-gmon-static-pie): Likewise.
19036 (tst-gmon-static-pie-ENV): Likewise.
19037 (tests-special): Likewise.
19038 ($(objpfx)tst-gmon-static-pie.out): Likewise.
19039 (clean-tst-gmon-static-pie-data): Likewise.
19040 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19041 * gmon/tst-gmon-static-pie.c: New file.
19042 * manual/install.texi: Document --enable-static-pie.
19043 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19044 (_dl_get_dl_main_map): Likewise.
19045 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19046 * sysdeps/x86_64/configure.ac: Likewise.
19047 * sysdeps/i386/configure: Regenerated.
19048 * sysdeps/x86_64/configure: Likewise.
19049 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19050 (ASFLAGS-.op): Likewise.
19051
19052 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19053
19054 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19055 * posix/tst-mmap-offset.c (fname): Use /tmp.
19056 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19057
19058 2017-12-15 Steve Ellcey <sellcey@cavium.com>
19059
19060 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19061
19062 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
19063
19064 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19065 errno.
19066
19067 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19068
19069 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19070 --with-float=hard for arm-linux-gnueabihf configurations.
19071
19072 [BZ #14121]
19073 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19074 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
19075 ($(mo-installed)): Use $(objpfx)%.mo.
19076 (realclean): Remove rule.
19077
19078 * po/Makefile (linguas): Remove rule and dependencies.
19079 (linguas.mo): Likewise.
19080 (.PHONY): Do not depend on linguas and linguas.mo.
19081 (podir): Remove variable.
19082 (pofiles): Likewise.
19083 [$(pofiles)] (%.po): Remove rule.
19084
19085 * sysdeps/sparc/sparc32/Makefile
19086 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19087 start-of-line whitespace in argument of echo.
19088 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19089 with whitespace. Generate __wrap_.udiv alias.
19090 * sysdeps/sparc/sparc32/rem.S: Regenerated.
19091 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19092 * sysdeps/sparc/sparc32/udiv.S: Likewise.
19093 * sysdeps/sparc/sparc32/urem.S: Likewise.
19094
19095 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19096
19097 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19098 for aligned inputs.
19099
19100 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19101
19102 * benchtests/bench-strcmp.c: Print output in JSON format.
19103
19104 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19105
19106 2017-12-14 Florian Weimer <fweimer@redhat.com>
19107
19108 [BZ #22607]
19109 CVE-2017-1000409
19110 * elf/dl-load.c (_dl_init_paths): Compute number of components in
19111 the expanded path string.
19112
19113 2017-12-14 Florian Weimer <fweimer@redhat.com>
19114
19115 [BZ #22606]
19116 CVE-2017-1000408
19117 * elf/dl-load.c (system_dirs): Update comment.
19118 (nsystem_dirs_len): Use array_length.
19119 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19120
19121 2017-12-14 Florian Weimer <fweimer@redhat.com>
19122
19123 Simplify compiling most of support/ outside of glibc.
19124 * support/check_addrinfo.c: Include <string.h>.
19125 * support/check_dns_packet.c: Likewise.
19126 * support/check_hostent.c: Likewise.
19127 * support/support_can_chroot.c: Include <support/xunistd.h>.
19128 * support/support_format_addrinfo.c: Include <stdlib.h>
19129 * support/support_format_dns_packet.c: Include <stdbool.h>.
19130 * support/support_format_hostent.c: Include <stdlib.h>.
19131 * support/support_format_netent.c: Likewise.
19132 * support/support_write_string.c: Include <support/xunistd.h>.
19133 * support/xdlfcn.c: Include <stddef.h>.
19134
19135 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
19136
19137 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19138
19139 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19140 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19141
19142 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19143 (sysdeps_routines): Add memset-niagara7.
19144 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19145 Likewise.
19146 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19147 file.
19148 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19149 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19150 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19151 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19152 Add niagara7 option.
19153 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19154 memset.
19155
19156 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19157 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19158 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19159 Likewise.
19160 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19161 New file.
19162 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19163 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19164 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19165 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19166 and __memmove_niagara7.
19167 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19168 Add niagara7 option.
19169 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19170 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19171 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19172 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19173 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19174
19175 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19176
19177 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19178 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19179 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19180 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19181
19182 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19183 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19184 _dl_sparc_cap_flags array.
19185 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19186
19187 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19188
19189 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19190 time whenever possible.
19191
19192 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19193
19194 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19195 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19196
19197 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19198
19199 * soft-fp/fmadf4.c: Move to ....
19200 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19201 * soft-fp/fmasf4.c: Move to ....
19202 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19203 * soft-fp/fmatf4.c: Move to ....
19204 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19205 * sysdeps/ieee754/soft-fp/Makefile: New file.
19206 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19207 * sysdeps/arm/preconfigure: Regenerated.
19208 * sysdeps/arm/nofpu/Implies: New file.
19209 * sysdeps/arm/s_fma.c: Remove file.
19210 * sysdeps/arm/s_fmaf.c: Likewise.
19211 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19212 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19213 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19214 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19215 * sysdeps/microblaze/s_fma.c: Remove file.
19216 * sysdeps/microblaze/s_fmaf.c: Likewise.
19217 * sysdeps/mips/mips32/nofpu/Implies: New file.
19218 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19219 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19220 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19221 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19222 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19223 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19224 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19225 implementation.
19226 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19227 * sysdeps/nios2/s_fma.c: Remove file.
19228 * sysdeps/nios2/s_fmaf.c: Likewise.
19229 * sysdeps/sh/nofpu/Implies: New file.
19230 * sysdeps/sh/s_fma.c: Remove file.
19231 * sysdeps/sh/s_fmaf.c: Likewise.
19232 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19233 * sysdeps/tile/s_fma.c: Remove file.
19234 * sysdeps/tile/s_fmaf.c: Likewise.
19235
19236 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19237
19238 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19239 Add s_cosf-sse2 and s_cosf-fma.
19240 (CFLAGS-s_cosf-fma.c): New.
19241 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19242 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19243 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19244
19245 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19246
19247 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19248
19249 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19250
19251 * libio/Makefile (tests): Add tst-bz22415.
19252 (tst-bz22415-ENV): New rule.
19253 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19254 (tests-special): Add tst-bz22415-mem.out.
19255 ($(objpfx)tst-bz22415-mem.out): New rule.
19256 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19257 in case of a successful seek operation.
19258 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19259 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19260 buffer is required.
19261 * libio/tst-bz22415.c: New test.
19262
19263 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19264
19265 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19266
19267 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19268 __IPC_64 to 0 to avoid IPC_64 being set.
19269
19270 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19271
19272 [BZ #22593]
19273 * math/bits/mathcalls.h (nextafter): Remove const.
19274 (nexttoward): Likewise.
19275
19276 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19277
19278 * configure.ac (--with-fp): Remove configure option.
19279 (with_fp_cond): New variable.
19280 (libc_cv_with_fp): New configure test. Use this variable instead
19281 of with_fp.
19282 * configure: Regenerated.
19283 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19284 * manual/install.texi (Configuring and compiling): Remove
19285 --without-fp.
19286 * INSTALL: Regenerated.
19287 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19288 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19289 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19290 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19291 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19292 use --without-fp to configure glibc.
19293
19294 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19295
19296 * manual/locale.texi (nl_langinfo): Fix a typo.
19297
19298 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19299
19300 [BZ #22588]
19301 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19302
19303 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19304
19305 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19306 (CFLAGS-argp-parse.c): Likewise.
19307 (CFLAGS-argp-fmtstream.c): Likewise.
19308 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19309 (CPPFLAGS-sha512-crypt.c): Likewise.
19310 (CPPFLAGS-md5-crypt.c): Likewise.
19311 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19312 (CFLAGS-stack_chk_fail_local.c): Likewise.
19313 (CFLAGS-backtrace.c): Likewise.
19314 (CFLAGS-sprintf_chk.c): Likewise.
19315 (CFLAGS-snprintf_chk.c): Likewise.
19316 (CFLAGS-vsprintf_chk.c): Likewise.
19317 (CFLAGS-vsnprintf_chk.c): Likewise.
19318 (CFLAGS-asprintf_chk.c): Likewise.
19319 (CFLAGS-vasprintf_chk.c): Likewise.
19320 (CFLAGS-obprintf_chk.c): Likewise.
19321 (CFLAGS-dprintf_chk.c): Likewise.
19322 (CFLAGS-vdprintf_chk.c): Likewise.
19323 (CFLAGS-printf_chk.c): Likewise.
19324 (CFLAGS-fprintf_chk.c): Likewise.
19325 (CFLAGS-vprintf_chk.c): Likewise.
19326 (CFLAGS-vfprintf_chk.c): Likewise.
19327 (CFLAGS-gets_chk.c): Likewise.
19328 (CFLAGS-fgets_chk.c): Likewise.
19329 (CFLAGS-fgets_u_chk.c): Likewise.
19330 (CFLAGS-fread_chk.c): Likewise.
19331 (CFLAGS-fread_u_chk.c): Likewise.
19332 (CFLAGS-swprintf_chk.c): Likewise.
19333 (CFLAGS-vswprintf_chk.c): Likewise.
19334 (CFLAGS-wprintf_chk.c): Likewise.
19335 (CFLAGS-fwprintf_chk.c): Likewise.
19336 (CFLAGS-vwprintf_chk.c): Likewise.
19337 (CFLAGS-vfwprintf_chk.c): Likewise.
19338 (CFLAGS-fgetws_chk.c): Likewise.
19339 (CFLAGS-fgetws_u_chk.c): Likewise.
19340 (CFLAGS-read_chk.c): Likewise.
19341 (CFLAGS-pread_chk.c): Likewise.
19342 (CFLAGS-pread64_chk.c): Likewise.
19343 (CFLAGS-recv_chk.c): Likewise.
19344 (CFLAGS-recvfrom_chk.c): Likewise.
19345 (CFLAGS-tst-longjmp_chk.c): Likewise.
19346 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19347 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19348 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19349 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19350 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19351 (CFLAGS-tst-chk1.c): Likewise.
19352 (CFLAGS-tst-chk2.c): Likewise.
19353 (CFLAGS-tst-chk3.c): Likewise.
19354 (CFLAGS-tst-chk4.cc): Likewise.
19355 (CFLAGS-tst-chk5.cc): Likewise.
19356 (CFLAGS-tst-chk6.cc): Likewise.
19357 (CFLAGS-tst-lfschk1.c): Likewise.
19358 (CFLAGS-tst-lfschk2.c): Likewise.
19359 (CFLAGS-tst-lfschk3.c): Likewise.
19360 (CFLAGS-tst-lfschk4.cc): Likewise.
19361 (CFLAGS-tst-lfschk5.cc): Likewise.
19362 (CFLAGS-tst-lfschk6.cc): Likewise.
19363 (CFLAGS-tst-ssp-1.c): Likewise.
19364 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19365 (CFLAGS-scandir64.c): Likewise.
19366 (CFLAGS-scandir-tail.c): Likewise.
19367 (CFLAGS-scandir64-tail.c): Likewise.
19368 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19369 (CFLAGS-dl-tunables.c): Likewise.
19370 (CFLAGS-dl-runtime.c): Likewise.
19371 (CFLAGS-dl-lookup.c): Likewise.
19372 (CFLAGS-dl-iterate-phdr.c): Likewise.
19373 (CFLAGS-vismain.c): Likewise.
19374 (CFLAGS-tst-linkall-static.c): Likewise.
19375 (CFLAGS-tst-linkall-static.c): Likewise.
19376 (CPPFLAGS-dl-load.c): Likewise.
19377 (CFLAGS-ldconfig.c): Likewise.
19378 (CFLAGS-dl-cache.c): Likewise.
19379 (CFLAGS-cache.c): Likewise.
19380 (CFLAGS-rtld.c): Likewise.
19381 (CFLAGS-multiload.c): Likewise.
19382 (CFLAGS-filtmod1.c): Likewise.
19383 (CFLAGS-tst-align.c): Likewise.
19384 (CFLAGS-tst-align2.c): Likewise.
19385 (CFLAGS-tst-alignmod.c): Likewise.
19386 (CFLAGS-tst-alignmod2.c): Likewise.
19387 (CPPFLAGS-tst-execstack.c): Likewise.
19388 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19389 (CFLAGS-tst-latepthreadmod.c): Likewise.
19390 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19391 (CFLAGS-getgrnam_r.c): Likewise.
19392 (CFLAGS-getgrent_r.c): Likewise.
19393 (CFLAGS-getgrent.c): Likewise.
19394 (CFLAGS-fgetgrent.c): Likewise.
19395 (CFLAGS-fgetgrent_r.c): Likewise.
19396 (CFLAGS-putgrent.c): Likewise.
19397 (CFLAGS-initgroups.c): Likewise.
19398 (CFLAGS-getgrgid.c): Likewise.
19399 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19400 (CFLAGS-getsgent.c): Likewise.
19401 (CFLAGS-fgetsgent.c): Likewise.
19402 (CFLAGS-fgetsgent_r.c): Likewise.
19403 (CFLAGS-putsgent.c): Likewise.
19404 (CFLAGS-getsgnam.c): Likewise.
19405 (CFLAGS-getsgnam_r.c): Likewise.
19406 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19407 (CFLAGS-iconv_charmap.c): Likewise.
19408 (CFLAGS-dummy-repertoire.c): Likewise.
19409 (CFLAGS-charmap.c): Likewise.
19410 (CFLAGS-linereader.c): Likewise.
19411 (CFLAGS-simple-hash.c): Likewise.
19412 (CFLAGS-gconv_conf.c): Likewise.
19413 (CFLAGS-iconvconfig.c): Likewise.
19414 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19415 (CFLAGS-gethstbyad.c): Likewise.
19416 (CFLAGS-gethstbynm_r.c): Likewise.
19417 (CFLAGS-gethstbynm.c): Likewise.
19418 (CFLAGS-gethstbynm2_r.c): Likewise.
19419 (CFLAGS-gethstbynm2.c): Likewise.
19420 (CFLAGS-gethstent_r.c): Likewise.
19421 (CFLAGS-gethstent.c): Likewise.
19422 (CFLAGS-rcmd.c): Likewise.
19423 (CFLAGS-getnetbynm_r.c): Likewise.
19424 (CFLAGS-getnetbynm.c): Likewise.
19425 (CFLAGS-getnetbyad_r.c): Likewise.
19426 (CFLAGS-getnetbyad.c): Likewise.
19427 (CFLAGS-getnetent_r.c): Likewise.
19428 (CFLAGS-getnetent.c): Likewise.
19429 (CFLAGS-getaliasent_r.c): Likewise.
19430 (CFLAGS-getaliasent.c): Likewise.
19431 (CFLAGS-getrpcent_r.c): Likewise.
19432 (CFLAGS-getrpcent.c): Likewise.
19433 (CFLAGS-getservent_r.c): Likewise.
19434 (CFLAGS-getservent.c): Likewise.
19435 (CFLAGS-getprtent_r.c): Likewise.
19436 (CFLAGS-getprtent.c): Likewise.
19437 (CFLAGS-either_ntoh.c): Likewise.
19438 (CFLAGS-either_hton.c): Likewise.
19439 (CFLAGS-getnetgrent.c): Likewise.
19440 (CFLAGS-getnetgrent_r.c): Likewise.
19441 (CFLAGS-tst-checks-posix.c): Likewise.
19442 (CFLAGS-tst-sockaddr.c): Likewise.
19443 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19444 (CFLAGS-tst-translit.c): Likewise.
19445 (CFLAGS-tst-gettext2.c): Likewise.
19446 (CFLAGS-tst-codeset.c): Likewise.
19447 (CFLAGS-tst-gettext3.c): Likewise.
19448 (CFLAGS-tst-gettext4.c): Likewise.
19449 (CFLAGS-tst-gettext5.c): Likewise.
19450 (CFLAGS-tst-gettext6.c): Likewise.
19451 * io/Makefile (CFLAGS-open.c): Likewise.
19452 (CFLAGS-open64.c): Likewise.
19453 (CFLAGS-creat.c): Likewise.
19454 (CFLAGS-creat64.c): Likewise.
19455 (CFLAGS-fcntl.c): Likewise.
19456 (CFLAGS-poll.c): Likewise.
19457 (CFLAGS-ppoll.c): Likewise.
19458 (CFLAGS-lockf.c): Likewise.
19459 (CFLAGS-statfs.c): Likewise.
19460 (CFLAGS-fstatfs.c): Likewise.
19461 (CFLAGS-statvfs.c): Likewise.
19462 (CFLAGS-fstatvfs.c): Likewise.
19463 (CFLAGS-fts.c): Likewise.
19464 (CFLAGS-fts64.c): Likewise.
19465 (CFLAGS-ftw.c): Likewise.
19466 (CFLAGS-ftw64.c): Likewise.
19467 (CFLAGS-lockf.c): Likewise.
19468 (CFLAGS-posix_fallocate.c): Likewise.
19469 (CFLAGS-posix_fallocate64.c): Likewise.
19470 (CFLAGS-fallocate.c): Likewise.
19471 (CFLAGS-fallocate64.c): Likewise.
19472 (CFLAGS-read.c): Likewise.
19473 (CFLAGS-write.c): Likewise.
19474 (CFLAGS-test-stat.c): Likewise.
19475 (CFLAGS-test-lfs.c): Likewise.
19476 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19477 (CFLAGS-fputc.c): Likewise.
19478 (CFLAGS-fputwc.c): Likewise.
19479 (CFLAGS-freopen64.c): Likewise.
19480 (CFLAGS-freopen.c): Likewise.
19481 (CFLAGS-fseek.c): Likewise.
19482 (CFLAGS-fseeko64.c): Likewise.
19483 (CFLAGS-fseeko.c): Likewise.
19484 (CFLAGS-ftello64.c): Likewise.
19485 (CFLAGS-ftello.c): Likewise.
19486 (CFLAGS-fwide.c): Likewise.
19487 (CFLAGS-genops.c): Likewise.
19488 (CFLAGS-getc.c): Likewise.
19489 (CFLAGS-getchar.c): Likewise.
19490 (CFLAGS-getwc.c): Likewise.
19491 (CFLAGS-getwchar.c): Likewise.
19492 (CFLAGS-iofclose.c): Likewise.
19493 (CFLAGS-iofflush.c): Likewise.
19494 (CFLAGS-iofgetpos64.c): Likewise.
19495 (CFLAGS-iofgetpos.c): Likewise.
19496 (CFLAGS-iofgets.c): Likewise.
19497 (CFLAGS-iofgetws.c): Likewise.
19498 (CFLAGS-iofputs.c): Likewise.
19499 (CFLAGS-iofputws.c): Likewise.
19500 (CFLAGS-iofread.c): Likewise.
19501 (CFLAGS-iofsetpos64.c): Likewise.
19502 (CFLAGS-iofsetpos.c): Likewise.
19503 (CFLAGS-ioftell.c): Likewise.
19504 (CFLAGS-iofwrite.c): Likewise.
19505 (CFLAGS-iogetdelim.c): Likewise.
19506 (CFLAGS-iogetline.c): Likewise.
19507 (CFLAGS-iogets.c): Likewise.
19508 (CFLAGS-iogetwline.c): Likewise.
19509 (CFLAGS-ioputs.c): Likewise.
19510 (CFLAGS-ioseekoff.c): Likewise.
19511 (CFLAGS-ioseekpos.c): Likewise.
19512 (CFLAGS-iosetbuffer.c): Likewise.
19513 (CFLAGS-iosetvbuf.c): Likewise.
19514 (CFLAGS-ioungetc.c): Likewise.
19515 (CFLAGS-ioungetwc.c): Likewise.
19516 (CFLAGS-oldfileops.c): Likewise.
19517 (CFLAGS-oldiofclose.c): Likewise.
19518 (CFLAGS-oldiofgetpos64.c): Likewise.
19519 (CFLAGS-oldiofgetpos.c): Likewise.
19520 (CFLAGS-oldiofsetpos64.c): Likewise.
19521 (CFLAGS-oldiofsetpos.c): Likewise.
19522 (CFLAGS-peekc.c): Likewise.
19523 (CFLAGS-putc.c): Likewise.
19524 (CFLAGS-putchar.c): Likewise.
19525 (CFLAGS-putwc.c): Likewise.
19526 (CFLAGS-putwchar.c): Likewise.
19527 (CFLAGS-rewind.c): Likewise.
19528 (CFLAGS-wfileops.c): Likewise.
19529 (CFLAGS-wgenops.c): Likewise.
19530 (CFLAGS-oldiofopen.c): Likewise.
19531 (CFLAGS-iofopen.c): Likewise.
19532 (CFLAGS-iofopen64.c): Likewise.
19533 (CFLAGS-oldtmpfile.c): Likewise.
19534 (CFLAGS-tst_putwc.c): Likewise.
19535 * locale/Makefile (CFLAGS-md5.c): Likewise.
19536 (CFLAGS-charmap.c): Likewise.
19537 (CFLAGS-locfile.c): Likewise.
19538 (CFLAGS-charmap-dir.c): Likewise.
19539 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19540 (CFLAGS-getpt.c): Likewise.
19541 (CFLAGS-pt_chown.c): Likewise.
19542 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19543 (CFLAGS-obstack.c): Likewise.
19544 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19545 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19546 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19547 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19548 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19549 (CFLAGS-test-tgmath.c): Likewise.
19550 (CFLAGS-test-tgmath2.c): Likewise.
19551 (CFLAGS-test-tgmath-ret.c): Likewise.
19552 (CFLAGS-test-powl.c): Likewise.
19553 (CFLAGS-test-snan.c): Likewise.
19554 (CFLAGS-test-signgam-finite.c): Likewise.
19555 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19556 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19557 (CFLAGS-test-signgam-uchar.c): Likewise.
19558 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19559 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19560 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19561 (CFLAGS-test-signgam-uint.c): Likewise.
19562 (CFLAGS-test-signgam-uint-init.c): Likewise.
19563 (CFLAGS-test-signgam-uint-static.c): Likewise.
19564 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19565 (CFLAGS-test-signgam-ullong.c): Likewise.
19566 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19567 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19568 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19569 (CFLAGS-test-math-cxx11.cc): Likewise.
19570 (CFLAGS-test-math-isinff.cc): Likewise.
19571 (CFLAGS-test-math-iszero.cc): Likewise.
19572 (CFLAGS-test-math-issignaling.cc): Likewise.
19573 (CFLAGS-test-math-iscanonical.cc): Likewise.
19574 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19575 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19576 (CFLAGS-test-flt-eval-method.c): Likewise.
19577 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19578 (CFLAGS-test-finite-macros.c): Likewise.
19579 * misc/Makefile (CFLAGS-select.c): Likewise.
19580 (CFLAGS-tsearch.c): Likewise.
19581 (CFLAGS-lsearch.c): Likewise.
19582 (CFLAGS-pselect.c): Likewise.
19583 (CFLAGS-readv.c): Likewise.
19584 (CFLAGS-writev.c): Likewise.
19585 (CFLAGS-preadv.c): Likewise.
19586 (CFLAGS-preadv64.c): Likewise.
19587 (CFLAGS-pwritev.c): Likewise.
19588 (CFLAGS-pwritev64.c): Likewise.
19589 (CFLAGS-preadv2.c): Likewise.
19590 (CFLAGS-preadv64v2.c): Likewise.
19591 (CFLAGS-pwritev2.c): Likewise.
19592 (CFLAGS-pwritev64v2.c): Likewise.
19593 (CFLAGS-usleep.c): Likewise.
19594 (CFLAGS-syslog.c): Likewise.
19595 (CFLAGS-error.c): Likewise.
19596 (CFLAGS-getpass.c): Likewise.
19597 (CFLAGS-mkstemp.c): Likewise.
19598 (CFLAGS-mkstemp64.c): Likewise.
19599 (CFLAGS-getsysstats.c): Likewise.
19600 (CFLAGS-getusershell.c): Likewise.
19601 (CFLAGS-err.c): Likewise.
19602 (CFLAGS-tst-tsearch.c): Likewise.
19603 (CFLAGS-msync.c): Likewise.
19604 (CFLAGS-fdatasync.c): Likewise.
19605 (CFLAGS-fsync.c): Likewise.
19606 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19607 (CFLAGS-unwind.c): Likewise.
19608 (CFLAGS-unwind-forcedunwind.c): Likewise.
19609 (CFLAGS-pthread_cancel.c): Likewise.
19610 (CFLAGS-pthread_setcancelstate.c): Likewise.
19611 (CFLAGS-pthread_setcanceltype.c): Likewise.
19612 (CFLAGS-cancellation.c): Likewise.
19613 (CFLAGS-libc-cancellation.c): Likewise.
19614 (CFLAGS-pthread_exit.c): Likewise.
19615 (CFLAGS-forward.c): Likewise.
19616 (CFLAGS-pthread_testcancel.c): Likewise.
19617 (CFLAGS-pthread_join.c): Likewise.
19618 (CFLAGS-pthread_timedjoin.c): Likewise.
19619 (CFLAGS-pthread_once.c): Likewise.
19620 (CFLAGS-pthread_cond_wait.c): Likewise.
19621 (CFLAGS-sem_wait.c): Likewise.
19622 (CFLAGS-sem_timedwait.c): Likewise.
19623 (CFLAGS-fcntl.c): Likewise.
19624 (CFLAGS-lockf.c): Likewise.
19625 (CFLAGS-pread.c): Likewise.
19626 (CFLAGS-pread64.c): Likewise.
19627 (CFLAGS-pwrite.c): Likewise.
19628 (CFLAGS-pwrite64.c): Likewise.
19629 (CFLAGS-wait.c): Likewise.
19630 (CFLAGS-waitpid.c): Likewise.
19631 (CFLAGS-sigwait.c): Likewise.
19632 (CFLAGS-msgrcv.c): Likewise.
19633 (CFLAGS-msgsnd.c): Likewise.
19634 (CFLAGS-tcdrain.c): Likewise.
19635 (CFLAGS-open.c): Likewise.
19636 (CFLAGS-open64.c): Likewise.
19637 (CFLAGS-pause.c): Likewise.
19638 (CFLAGS-recv.c): Likewise.
19639 (CFLAGS-send.c): Likewise.
19640 (CFLAGS-accept.c): Likewise.
19641 (CFLAGS-sendto.c): Likewise.
19642 (CFLAGS-connect.c): Likewise.
19643 (CFLAGS-recvfrom.c): Likewise.
19644 (CFLAGS-recvmsg.c): Likewise.
19645 (CFLAGS-sendmsg.c): Likewise.
19646 (CFLAGS-close.c): Likewise.
19647 (CFLAGS-read.c): Likewise.
19648 (CFLAGS-write.c): Likewise.
19649 (CFLAGS-nanosleep.c): Likewise.
19650 (CFLAGS-sigsuspend.c): Likewise.
19651 (CFLAGS-msync.c): Likewise.
19652 (CFLAGS-fdatasync.c): Likewise.
19653 (CFLAGS-fsync.c): Likewise.
19654 (CFLAGS-pt-system.c): Likewise.
19655 (CFLAGS-tst-cleanup2.c): Likewise.
19656 (CFLAGS-tst-cleanupx2.c): Likewise.
19657 (CFLAGS-flockfile.c): Likewise.
19658 (CFLAGS-ftrylockfile.c): Likewise.
19659 (CFLAGS-funlockfile.c): Likewise.
19660 (CFLAGS-tst-initializers1.c): Likewise.
19661 (CFLAGS-tst-initializers1-c89.c): Likewise.
19662 (CFLAGS-tst-initializers1-c99.c): Likewise.
19663 (CFLAGS-tst-initializers1-c11.c): Likewise.
19664 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19665 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19666 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19667 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19668 (CFLAGS-nscd_getgr_r.c): Likewise.
19669 (CFLAGS-nscd_gethst_r.c): Likewise.
19670 (CFLAGS-nscd_getai.c): Likewise.
19671 (CFLAGS-nscd_initgroups.c): Likewise.
19672 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19673 (CFLAGS-pause.c): Likewise.
19674 (CFLAGS-pread.c): Likewise.
19675 (CFLAGS-pread64.c): Likewise.
19676 (CFLAGS-pwrite.c): Likewise.
19677 (CFLAGS-pwrite64.c): Likewise.
19678 (CFLAGS-sleep.c): Likewise.
19679 (CFLAGS-wait.c): Likewise.
19680 (CFLAGS-waitid.c): Likewise.
19681 (CFLAGS-waitpid.c): Likewise.
19682 (CFLAGS-getopt.c): Likewise.
19683 (CFLAGS-wordexp.c): Likewise.
19684 (CFLAGS-sysconf.c): Likewise.
19685 (CFLAGS-pathconf.c): Likewise.
19686 (CFLAGS-fpathconf.c): Likewise.
19687 (CFLAGS-spawn.c): Likewise.
19688 (CFLAGS-spawnp.c): Likewise.
19689 (CFLAGS-spawni.c): Likewise.
19690 (CFLAGS-glob.c): Likewise.
19691 (CFLAGS-glob64.c): Likewise.
19692 (CFLAGS-getconf.c): Likewise.
19693 (CFLAGS-nanosleep.c): Likewise.
19694 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19695 (CFLAGS-getpwent.c): Likewise.
19696 (CFLAGS-getpw.c): Likewise.
19697 (CFLAGS-fgetpwent_r.c): Likewise.
19698 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19699 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19700 (CFLAGS-mq_timedreceive.c): Likewise.
19701 (CFLAGS-mq_timedsend.c): Likewise.
19702 (CFLAGS-clock_nanosleep.c): Likewise.
19703 (CFLAGS-librt-cancellation.c): Likewise.
19704 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19705 (CFLAGS-getspent.c): Likewise.
19706 (CFLAGS-fgetspent.c): Likewise.
19707 (CFLAGS-fgetspent_r.c): Likewise.
19708 (CFLAGS-putspent.c): Likewise.
19709 (CFLAGS-getspnam.c): Likewise.
19710 (CFLAGS-getspnam_r.c): Likewise.
19711 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19712 (CFLAGS-sigsuspend.c): Likewise.
19713 (CFLAGS-sigtimedwait.c): Likewise.
19714 (CFLAGS-sigwait.c): Likewise.
19715 (CFLAGS-sigwaitinfo.c): Likewise.
19716 (CFLAGS-sigreturn.c): Likewise.
19717 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19718 (CFLAGS-vfwprintf.c): Likewise.
19719 (CFLAGS-tmpfile.c): Likewise.
19720 (CFLAGS-tmpfile64.c): Likewise.
19721 (CFLAGS-tempname.c): Likewise.
19722 (CFLAGS-psignal.c): Likewise.
19723 (CFLAGS-vprintf.c): Likewise.
19724 (CFLAGS-cuserid.c): Likewise.
19725 (CFLAGS-errlist.c): Likewise.
19726 (CFLAGS-siglist.c): Likewise.
19727 (CFLAGS-scanf15.c): Likewise.
19728 (CFLAGS-scanf17.c): Likewise.
19729 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19730 (CFLAGS-msort.c): Likewise.
19731 (CFLAGS-qsort.c): Likewise.
19732 (CFLAGS-system.c): Likewise.
19733 (CFLAGS-fmtmsg.c): Likewise.
19734 (CFLAGS-strfmon.c): Likewise.
19735 (CFLAGS-strfmon_l.c): Likewise.
19736 (CFLAGS-strfromd.c): Likewise.
19737 (CFLAGS-strfromf.c): Likewise.
19738 (CFLAGS-strfroml.c): Likewise.
19739 (CFLAGS-tst-bsearch.c): Likewise.
19740 (CFLAGS-tst-qsort.c): Likewise.
19741 (CFLAGS-tst-makecontext2.c): Likewise.
19742 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19743 (CFLAGS-xnlm_prot.c): Likewise.
19744 (CFLAGS-xrstat.c): Likewise.
19745 (CFLAGS-xyppasswd.c): Likewise.
19746 (CFLAGS-xklm_prot.c): Likewise.
19747 (CFLAGS-xrex.c): Likewise.
19748 (CFLAGS-xsm_inter.c): Likewise.
19749 (CFLAGS-xmount.c): Likewise.
19750 (CFLAGS-xrusers.c): Likewise.
19751 (CFLAGS-xspray.c): Likewise.
19752 (CFLAGS-xnfs_prot.c): Likewise.
19753 (CFLAGS-xrquota.c): Likewise.
19754 (CFLAGS-xkey_prot.c): Likewise.
19755 (CFLAGS-auth_unix.c): Likewise.
19756 (CFLAGS-key_call.c): Likewise.
19757 (CFLAGS-pmap_rmt.c): Likewise.
19758 (CFLAGS-clnt_perr.c): Likewise.
19759 (CFLAGS-openchild.c): Likewise.
19760 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19761 (CFLAGS-msgsnd.c): Likewise.
19762 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19763 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19764 (CFLAGS-tzset.c): Likewise.
19765 (CFLAGS-getdate.c): Likewise.
19766 (CFLAGS-test_time.c): Likewise.
19767 (CPPFLAGS-tst-tzname.c): Likewise.
19768 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19769 (CFLAGS-zic.c): Likewise.
19770 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19771 (CFLAGS-wcswidth.c): Likewise.
19772 (CFLAGS-wcstol.c): Likewise.
19773 (CFLAGS-wcstoul.c): Likewise.
19774 (CFLAGS-wcstoll.c): Likewise.
19775 (CFLAGS-wcstoull.c): Likewise.
19776 (CFLAGS-wcstod.c): Likewise.
19777 (CFLAGS-wcstold.c): Likewise.
19778 (CFLAGS-wcstof128.c): Likewise.
19779 (CFLAGS-wcstof.c): Likewise.
19780 (CFLAGS-wcstol_l.c): Likewise.
19781 (CFLAGS-wcstoul_l.c): Likewise.
19782 (CFLAGS-wcstoll_l.c): Likewise.
19783 (CFLAGS-wcstoull_l.c): Likewise.
19784 (CFLAGS-wcstod_l.c): Likewise.
19785 (CFLAGS-wcstold_l.c): Likewise.
19786 (CFLAGS-wcstof128_l.c): Likewise.
19787 (CFLAGS-wcstof_l.c): Likewise.
19788 (CPPFLAGS-tst-wchar-h.c): Likewise.
19789 (CPPFLAGS-wcstold_l.c): Likewise.
19790
19791 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19792
19793 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19794
19795 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19796 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19797
19798 * manual/tunables.texi (Hardware Capability Tunables): Document
19799 glibc.tune.cached_memopt.
19800 * sysdeps/powerpc/cpu-features.c: New file.
19801 * sysdeps/powerpc/cpu-features.h: New file.
19802 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19803 _dl_powerpc_cpu_features.
19804 * sysdeps/powerpc/dl-tunables.list: New file.
19805 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19806 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19807 (INIT_ARCH): Initialize use_aligned_memopt.
19808 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19809 IS_IN(rtld))]: Restrict dl_platform_init availability and
19810 initialize CPU features used by tunables.
19811 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19812 Add memcpy-power8-cached.
19813 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19814 __memcpy_power8_cached.
19815 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19816 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19817 New file.
19818
19819 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19820
19821 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19822 (CFLAGS-noinl-tester.c): Likewise.
19823 (CFLAGS-tst-strlen.c): Likewise.
19824 (CFLAGS-stratcliff.c): Likewise.
19825 (CFLAGS-test-ffs.c): Likewise.
19826 (CFLAGS-tst-inlcall.c): Likewise.
19827 (CFLAGS-tst-xbzero-opt.c): Likewise.
19828 (CFLAGS-memcpy.c): Likewise.
19829 (CFLAGS-wordcopy.c): Likewise.
19830
19831 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19832
19833 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19834 Store r15 on stack and add cfi rule.
19835 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19836 Likewise.
19837
19838 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19839
19840 [BZ #22577]
19841 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19842 call.
19843
19844 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19845
19846 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19847 Add s_sinf-sse2 and s_sinf-fma.
19848 (CFLAGS-s_sinf-fma.c): New.
19849 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19850 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19851 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19852
19853 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19854
19855 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19856
19857 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19858
19859 [BZ #22568]
19860 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19861 part of result to imaginary part of argument if it is zero and the
19862 real part of the argument is not finite.
19863 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19864 of result to real part of argument if it is zero and the imaginary
19865 part of the argument is not finite.
19866
19867 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19868
19869 [BZ #22524]
19870 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19871 and to the list of locales to be built for testing.
19872 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19873 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19874 and build the collation rules upon that.
19875
19876 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19877
19878 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19879 * manual/math.texi (Mathematics): Document support for _Float32.
19880 * math/Makefile (test-types): Add float32.
19881 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19882 * stdlib/Versions (GLIBC_2.27): Likewise.
19883 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19884 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19885 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19886 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19887 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19888 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19889 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19890 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19891 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19892 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19893 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19894 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19895 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19896 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19897 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19898 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19899 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19900 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19901 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19902 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19903 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19904 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19905 Likewise.
19906 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19907 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19908 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19909 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19910 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19912 Likewise.
19913 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19914 Likewise.
19915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19916 Likewise.
19917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19918 Likewise.
19919
19920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19921 Likewise.
19922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19923 Likewise.
19924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19925 Likewise.
19926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19927 Likewise.
19928 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19929 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19930 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19931 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19932 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19933 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19934 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19935 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19936 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19937 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19938 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19939 Likewise.
19940 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19941 Likewise.
19942 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19943 Likewise.
19944 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19945 Likewise.
19946 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19947 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19948 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19949 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19950 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19951 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19952 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19953 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19954
19955 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19956
19957 * stdlib/strtof.c: Include <bits/floatn.h>
19958 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19959 and later undefine as macro. Define as weak alias if
19960 [!USE_WIDE_CHAR].
19961 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19962 and later undefine as macro. Define as weak alias if
19963 [USE_WIDE_CHAR].
19964 * stdlib/strtof_l.c: Include <bits/floatn.h>
19965 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19966 and later undefine as macro. Define as weak alias if
19967 [!USE_WIDE_CHAR].
19968 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19969 and later undefine as macro. Define as weak alias if
19970 [USE_WIDE_CHAR].
19971
19972 * stdlib/strfromf.c: Include <bits/floatn.h>.
19973 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19974 and later undefine as macro and define as weak alias.
19975
19976 * math/test-float32.h: New file.
19977
19978 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19979 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19980 (libm_alias_float_other_r): Create f32 alias.
19981 (libm_alias_float_r): Use semicolon before call to
19982 libm_alias_float_other_r.
19983
19984 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19985 second argument to libm_alias_float_other.
19986 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19987 second argument to libm_alias_float_other.
19988 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19989 argument to libm_alias_float_other.
19990
19991 [BZ #22561]
19992 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19993 real part of result for argument 0 + i * NaN.
19994 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19995 results for tests of 0 + i * NaN.
19996
19997 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19998
19999 * sysdeps/alpha/fpu/libm-test-ulps: Update.
20000
20001 2017-12-06 David S. Miller <davem@davemloft.net>
20002
20003 * sysdeps/sparc/fpu/libm-test-ulps: Update
20004 exp_{downward,towardzero,upward} ulps.
20005
20006 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20007
20008 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
20009 variables static.
20010
20011 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
20012 (Y0_2D): Likewise.
20013 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
20014 (Y0_2D): Likewise.
20015 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
20016 (Y0_2D): Likewise.
20017 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
20018 (Y0_2D): Likewise.
20019
20020 2017-12-06 Mike FABIAN <mfabian@redhat.com>
20021
20022 [BZ #22515]
20023 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
20024 and to the list of locales to be built for testing.
20025 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
20026 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20027 and build the collation rules upon that.
20028
20029 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20030
20031 * NEWS: Add sinf to list of optimized functions.
20032
20033 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20034
20035 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20036 (__HAVE_FLOAT32X): Likewise.
20037 * manual/math.texi (Mathematics): Document support for _Float64
20038 and _Float32x.
20039 * math/Makefile (test-types): Add float64 and float32x.
20040 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20041 functions.
20042 * stdlib/Versions (GLIBC_2.27): Likewise.
20043 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20044 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20045 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20046 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20047 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20048 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20049 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20050 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20051 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20052 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20053 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20054 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20055 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20056 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20057 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20058 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20059 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20060 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20061 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20062 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20063 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20064 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20065 Likewise.
20066 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20067 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20068 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20069 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20070 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20072 Likewise.
20073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20074 Likewise.
20075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20076 Likewise.
20077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20078 Likewise.
20079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20080 Likewise.
20081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20082 Likewise.
20083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20084 Likewise.
20085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20086 Likewise.
20087 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20088 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20089 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20090 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20091 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20092 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20093 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20094 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20095 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20096 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20097 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20098 Likewise.
20099 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20100 Likewise.
20101 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20102 Likewise.
20103 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20104 Likewise.
20105 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20106 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20107 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20108 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20109 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20110 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20111 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20112 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20113
20114 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20115
20116 * bits/floatn-common.h: Include <bits/long-double.h>.
20117 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20118 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20119 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20120 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20121 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20122 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20123 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20124 (__builtin_huge_valf64): Use __builtin_huge_vall.
20125 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20126 (__builtin_inff64): Use __builtin_infl.
20127 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20128 (__builtin_nanf64): Use __builtin_nanl.
20129 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20130 (__builtin_nansf64): Use __builtin_nansl.
20131
20132 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
20133 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
20134 Carlos O'Donnell <carlos@redhat.com>
20135
20136 * elf/dl-tunables.list: Add elision parameters.
20137 * manual/tunables.texi: Add entries about elision tunable.
20138 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20139 Add callback functions to dynamically enable/disable elision.
20140 Add multiple callbacks functions to set elision parameters.
20141 Deleted __libc_enable_secure check.
20142 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20143 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20144 * configure: Regenerated.
20145 * configure.ac: Option enable_lock_elision was deleted.
20146 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20147 * config.make.in: Remove references to enable_lock_elision.
20148 * manual/install.texi: Elision configure option was removed.
20149 * INSTALL: Regenerated to remove enable_lock_elision.
20150 * nptl/Makefile:
20151 Disable elision so it can verify error case for destroying a mutex.
20152 * sysdeps/powerpc/nptl/elide.h:
20153 Cleanup ENABLE_LOCK_ELISION check.
20154 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20155 * sysdeps/s390/configure: Regenerated.
20156 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20157 * nptl/tst-mutex8.c:
20158 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20159 * sysdeps/powerpc/powerpc32/sysdep.h:
20160 Deleted all ENABLE_LOCK_ELISION checks.
20161 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20162 * sysdeps/powerpc/sysdep.h: Likewise.
20163 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20164 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20165 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20166 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20167 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20168 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20169 enable-lock-elision.
20170
20171 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20172
20173 * stdlib/strtod.c: Include <bits/floatn.h>.
20174 (BUILD_DOUBLE): New macro.
20175 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20176 (strtof64): Define and later undefine as macro. Define as weak
20177 alias if [!USE_WIDE_CHAR].
20178 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20179 (wcstof64): Define and later undefine as macro. Define as weak
20180 alias if [USE_WIDE_CHAR].
20181 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20182 (strtof32x): Define and later undefine as macro. Define as weak
20183 alias if [!USE_WIDE_CHAR].
20184 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20185 (wcstof32x): Define and later undefine as macro. Define as weak
20186 alias if [USE_WIDE_CHAR].
20187 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20188 (BUILD_DOUBLE): New macro.
20189 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20190 (strtof64_l): Define and later undefine as macro. Define as weak
20191 alias if [!USE_WIDE_CHAR].
20192 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20193 (wcstof64_l): Define and later undefine as macro. Define as weak
20194 alias if [USE_WIDE_CHAR].
20195 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20196 (strtof32x_l): Define and later undefine as macro. Define as weak
20197 alias if [!USE_WIDE_CHAR].
20198 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20199 (wcstof32x_l): Define and later undefine as macro. Define as weak
20200 alias if [USE_WIDE_CHAR].
20201
20202 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20203
20204 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20205 (reduced): Use ones as double instead of integer.
20206
20207 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20208
20209 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20210
20211 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20212
20213 * stdlib/strfromd.c: Include <bits/floatn.h>.
20214 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20215 and later undefine as macro and define as weak alias.
20216 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20217 Likewise.
20218
20219 * math/test-float32x.h: New file.
20220 * math/test-float64.h: Likewise.
20221
20222 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20223 (libm_alias_double_other_r_f64): New macro.
20224 (libm_alias_double_other_r_f32x): Likewise.
20225 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20226 libm_alias_double_other_r_f32x.
20227 (libm_alias_double_r): Use semicolon before call to
20228 libm_alias_double_other_r.
20229 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20230 <bits/floatn.h>.
20231 (libm_alias_double_other_r_f64): New macro.
20232 (libm_alias_double_other_r_f32x): Likewise.
20233 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20234 libm_alias_double_other_r_f32x.
20235
20236 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20237
20238 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20239 int.
20240 (SINF_FUNC): Likewise. Replace floor with simple casts.
20241
20242 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20243
20244 [BZ #22517]
20245 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20246 and to the list of locales to be built for testing.
20247 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20248 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20249 and build the collation rules upon that.
20250
20251 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20252
20253 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20254 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20255 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20256 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20257 instead of __insn__xxx.
20258 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20259 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20260 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20261 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20262 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20263 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20264
20265 2017-12-05 Florian Weimer <fweimer@redhat.com>
20266
20267 Linux: Implement interfaces for memory protection keys
20268 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20269 xsignal, xsysconf.
20270 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20271 * support/xunistd.h (xsysconf): Declare.
20272 * support/xraise.c: New file.
20273 * support/xsigaction.c: Likewise.
20274 * support/xsignal.c: Likewise.
20275 * support/xsysconf.c: Likewise.
20276 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20277 pkey_set, pkey_get, pkey_mprotect.
20278 [misc] (tests): Add tst-pkey.
20279 (tst-pkey): Link with -lpthread.
20280 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20281 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20282 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20283 (PKEY_DISABLE_WRITE): Define.
20284 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20285 Declare.
20286 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20287 (SEGV_PKUERR): Add.
20288 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20289 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20290 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20291 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20292 Add.
20293 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20294 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20295 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20296 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20297 * sysdeps/unix/sysv/linux/**.abilist: Update.
20298
20299 2017-12-05 Florian Weimer <fweimer@redhat.com>
20300
20301 * support/tst-test_compare.c (subprocess): Use long long instead
20302 of long argument for consistent type width across 32-bit and
20303 64-bit architectures.
20304 (do_test): Adjust expected output.
20305
20306 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20307
20308 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20309 (cosf): Define using libm_alias_float.
20310 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20311 (fabsf): Define using libm_alias_float.
20312 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20313 (fmaf): Define using libm_alias_float.
20314 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20315 (rintf): Define using libm_alias_float.
20316 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20317 (sinf): Define using libm_alias_float.
20318 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20319 <libm-alias-float.h>.
20320 (modff): Define using libm_alias_float.
20321 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20322 <libm-alias-float.h>.
20323 (logbf): Define using libm_alias_float.
20324 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20325 <libm-alias-float.h>.
20326 (ceilf): Define using libm_alias_float.
20327 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20328 <libm-alias-float.h>.
20329 (copysignf): Define using libm_alias_float.
20330 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20331 <libm-alias-float.h>.
20332 (floorf): Define using libm_alias_float.
20333 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20334 <libm-alias-float.h>.
20335 (llrintf): Define using libm_alias_float.
20336 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20337 <libm-alias-float.h>.
20338 (llroundf): Define using libm_alias_float.
20339 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20340 <libm-alias-float.h>.
20341 (lrintf): Define using libm_alias_float.
20342 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20343 <libm-alias-float.h>.
20344 (lroundf): Define using libm_alias_float.
20345 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20346 <libm-alias-float.h>.
20347 (nearbyintf): Define using libm_alias_float.
20348 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20349 <libm-alias-float.h>.
20350 (rintf): Define using libm_alias_float.
20351 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20352 <libm-alias-float.h>.
20353 (roundf): Define using libm_alias_float.
20354 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20355 <libm-alias-float.h>.
20356 (truncf): Define using libm_alias_float.
20357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20358 Include <libm-alias-float.h>.
20359 (ceilf): Define using libm_alias_float.
20360 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20361 Include <libm-alias-float.h>.
20362 (copysignf): Define using libm_alias_float.
20363 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20364 Include <libm-alias-float.h>.
20365 (floorf): Define using libm_alias_float.
20366 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20367 Include <libm-alias-float.h>.
20368 (llrintf): Define using libm_alias_float.
20369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20370 Include <libm-alias-float.h>.
20371 (llroundf): Define using libm_alias_float.
20372 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20373 Include <libm-alias-float.h>.
20374 (logbf): Define using libm_alias_float.
20375 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20376 Include <libm-alias-float.h>.
20377 (lrintf): Define using libm_alias_float.
20378 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20379 Include <libm-alias-float.h>.
20380 (lroundf): Define using libm_alias_float.
20381 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20382 Include <libm-alias-float.h>.
20383 (modff): Define using libm_alias_float.
20384 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20385 Include <libm-alias-float.h>.
20386 (roundf): Define using libm_alias_float.
20387 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20388 Include <libm-alias-float.h>.
20389 (truncf): Define using libm_alias_float.
20390 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20391 <libm-alias-float.h>.
20392 (llrintf): Define using libm_alias_float.
20393 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20394 <libm-alias-float.h>.
20395 (llroundf): Define using libm_alias_float.
20396 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20397 <libm-alias-float.h>.
20398 (ceilf): Define using libm_alias_float.
20399 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20400 <libm-alias-float.h>.
20401 (floorf): Define using libm_alias_float.
20402 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20403 <libm-alias-float.h>.
20404 (llroundf): Define using libm_alias_float.
20405 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20406 <libm-alias-float.h>.
20407 (lroundf): Define using libm_alias_float.
20408 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20409 <libm-alias-float.h>.
20410 (roundf): Define using libm_alias_float.
20411 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20412 <libm-alias-float.h>.
20413 (truncf): Define using libm_alias_float.
20414 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20415 <libm-alias-float.h>.
20416 (copysignf): Define using libm_alias_float.
20417 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20418 <libm-alias-float.h>.
20419 (llrintf): Define using libm_alias_float.
20420 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20421 <libm-alias-float.h>.
20422 (llroundf): Define using libm_alias_float.
20423 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20424 <libm-alias-float.h>.
20425 (lrintf): Define using libm_alias_float.
20426 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20427 <libm-alias-float.h>.
20428 (lroundf): Define using libm_alias_float.
20429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20430 <libm-alias-float.h>.
20431 (ceilf): Define using libm_alias_float.
20432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20433 <libm-alias-float.h>.
20434 (copysignf): Define using libm_alias_float.
20435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20436 <libm-alias-float.h>.
20437 (cosf): Define using libm_alias_float.
20438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20439 <libm-alias-float.h>.
20440 (floorf): Define using libm_alias_float.
20441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20442 <libm-alias-float.h>.
20443 (llrintf): Define using libm_alias_float.
20444 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20445 <libm-alias-float.h>.
20446 (llroundf): Define using libm_alias_float.
20447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20448 <libm-alias-float.h>.
20449 (logbf): Define using libm_alias_float.
20450 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20451 <libm-alias-float.h>.
20452 (modff): Define using libm_alias_float.
20453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20454 <libm-alias-float.h>.
20455 (roundf): Define using libm_alias_float.
20456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20457 <libm-alias-float.h>.
20458 (sinf): Define using libm_alias_float.
20459 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20460 <libm-alias-float.h>.
20461 (truncf): Define using libm_alias_float.
20462 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20463 <libm-alias-float.h>.
20464 (ceilf): Define using libm_alias_float.
20465 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20466 <libm-alias-float.h>.
20467 (copysignf): Define using libm_alias_float.
20468 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20469 <libm-alias-float.h>.
20470 (floorf): Define using libm_alias_float.
20471 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20472 <libm-alias-float.h>.
20473 (llrintf): Define using libm_alias_float.
20474 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20475 <libm-alias-float.h>.
20476 (llroundf): Define using libm_alias_float.
20477 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20478 <libm-alias-float.h>.
20479 (nearbyintf): Define using libm_alias_float.
20480 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20481 <libm-alias-float.h>.
20482 (rintf): Define using libm_alias_float.
20483 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20484 <libm-alias-float.h>.
20485 (roundf): Define using libm_alias_float.
20486 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20487 <libm-alias-float.h>.
20488 (truncf): Define using libm_alias_float.
20489 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20490 <libm-alias-float.h>.
20491 (ceilf): Define using libm_alias_float.
20492 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20493 <libm-alias-float.h>.
20494 (floorf): Define using libm_alias_float.
20495 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20496 <libm-alias-float.h>.
20497 (llroundf): Define using libm_alias_float.
20498 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20499 <libm-alias-float.h>.
20500 (roundf): Define using libm_alias_float.
20501 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20502 <libm-alias-float.h>.
20503 (truncf): Define using libm_alias_float.
20504 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20505 <libm-alias-float.h>.
20506 (copysignf): Define using libm_alias_float.
20507 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20508 <libm-alias-float.h>.
20509 (llrintf): Define using libm_alias_float.
20510 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20511 <libm-alias-float.h>.
20512 (llroundf): Define using libm_alias_float.
20513 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20514 <libm-alias-float.h>.
20515 (cosf): Define using libm_alias_float.
20516 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20517 <libm-alias-float.h>.
20518 (llrintf): Define using libm_alias_float.
20519 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20520 <libm-alias-float.h>.
20521 (llroundf): Define using libm_alias_float.
20522 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20523 <libm-alias-float.h>.
20524 (sinf): Define using libm_alias_float.
20525
20526 2017-12-04 Florian Weimer <fweimer@redhat.com>
20527
20528 * support/check.h (TEST_COMPARE): Define.
20529 (support_test_compare_failure): Declare.
20530 * support/Makefile (libsupport-routines): Add
20531 support_test_compare_failure.
20532 (tests): Add tst-test_compare.
20533 * support /support_test_compare_failure.c: New file.
20534 * support/tst-test_compare.c: Likewise.
20535
20536 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20537
20538 [BZ #22527]
20539 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20540 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20541 available, this rewrite of the collation rules does reproduce
20542 the test file in the same order.
20543
20544 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20545
20546 [BZ #10580]
20547 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20548 digraphs in the month and day names. Using single code points for
20549 digraphs is deprecated. While there are dedicated Unicode
20550 codepoints, for the digraphs, these are included for backwards
20551 compatibility and modern texts use a sequence of Basic Latin
20552 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20553 This makes the month and day names agree exactly with CLDR now,
20554 CLDR does not use the single code points for the digraphs either.
20555
20556 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20557
20558 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20559
20560 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20561
20562 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20563 of floor.
20564
20565 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20566
20567 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20568 Define only for libc.so.
20569
20570 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20571
20572 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20573 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20574 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20575 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20576 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20577
20578 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20579
20580 [BZ #5997]
20581 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20582
20583 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20584
20585 [BZ libc/19170]
20586 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20587 PREINIT_FUNCTION_WEAK is nonzero.
20588 (gmon_initializer): New function. Put procedure label for it in
20589 .init_array section.
20590 (_init): Don't call PREINIT_FUNCTION.
20591 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20592 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20593 value when map argument is null.
20594
20595 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20596 depi instruction from PIC pc-relative sequence.
20597 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20598 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20599 (elf_machine_load_address): Likewise.
20600 (elf_machine_runtime_setup): Likewise.
20601
20602 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20603
20604 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20605 <libm-alias-double.h>.
20606 (logb): Define using libm_alias_double.
20607 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20608 <libm-alias-double.h>.
20609 (copysign): Define using libm_alias_double.
20610 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20611 <libm-alias-double.h>.
20612 (llrint): Define using libm_alias_double.
20613 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20614 <libm-alias-double.h>.
20615 (llround): Define using libm_alias_double.
20616 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20617 <libm-alias-double.h>.
20618 (lrint): Define using libm_alias_double.
20619 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20620 <libm-alias-double.h>.
20621 (lround): Define using libm_alias_double.
20622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20623 Include <libm-alias-double.h>.
20624 (copysign): Define using libm_alias_double.
20625 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20626 Include <libm-alias-double.h>.
20627 (llrint): Define using libm_alias_double.
20628 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20629 Include <libm-alias-double.h>.
20630 (llround): Define using libm_alias_double.
20631 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20632 <libm-alias-double.h>.
20633 (logb): Define using libm_alias_double.
20634 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20635 Include <libm-alias-double.h>.
20636 (lrint): Define using libm_alias_double.
20637 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20638 Include <libm-alias-double.h>.
20639 (lround): Define using libm_alias_double.
20640 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20641 <libm-alias-double.h>.
20642 (llrint): Define using libm_alias_double.
20643 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20644 <libm-alias-double.h>.
20645 (llround): Define using libm_alias_double.
20646 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20647 <libm-alias-double.h>.
20648 (llround): Define using libm_alias_double.
20649 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20650 <libm-alias-double.h>.
20651 (lround): Define using libm_alias_double.
20652 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20653 <libm-alias-double.h>.
20654 (copysign): Define using libm_alias_double.
20655 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20656 <libm-alias-double.h>.
20657 (llrint): Define using libm_alias_double.
20658 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20659 <libm-alias-double.h>.
20660 (llround): Define using libm_alias_double.
20661 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20662 <libm-alias-double.h>.
20663 (lrint): Define using libm_alias_double.
20664 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20665 <libm-alias-double.h>.
20666 (lround): Define using libm_alias_double.
20667 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20668 <libm-alias-double.h>.
20669 (copysign): Define using libm_alias_double.
20670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20671 <libm-alias-double.h>.
20672 (llrint): Define using libm_alias_double.
20673 (lrint): Likewise.
20674 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20675 <libm-alias-double.h>.
20676 (llround): Define using libm_alias_double.
20677 (lround): Likewise.
20678 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20679 <libm-alias-double.h>.
20680 (logb): Define using libm_alias_double.
20681 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20682 <libm-alias-double.h>.
20683 (copysign): Define using libm_alias_double.
20684 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20685 <libm-alias-double.h>.
20686 (llrint): Define using libm_alias_double.
20687 (lrint): Likewise.
20688 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20689 <libm-alias-double.h>.
20690 (llround): Define using libm_alias_double.
20691 (lround): Likewise.
20692 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20693 <libm-alias-double.h>.
20694 (llround): Define using libm_alias_double.
20695 (lround): Likewise.
20696 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20697 <libm-alias-double.h>.
20698 (copysign): Define using libm_alias_double.
20699 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20700 <libm-alias-double.h>.
20701 (llrint): Define using libm_alias_double.
20702 (lrint): Likewise.
20703 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20704 <libm-alias-double.h>.
20705 (llround): Define using libm_alias_double.
20706 (lround): Likewise.
20707 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20708 <libm-alias-double.h>.
20709 (llrint): Define using libm_alias_double.
20710 (lrint): Likewise.
20711 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20712 <libm-alias-double.h>.
20713 (llround): Define using libm_alias_double.
20714 (lround): Likewise.
20715
20716 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20717
20718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20719 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20720 compat symbol based on llround.
20721
20722 * sysdeps/powerpc/power7/fpu/s_logb.c
20723 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20724 symbol based on __logb, not on logb.
20725 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20726 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20727 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20728 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20729
20730 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20731 (rint): Define using libm_alias_double.
20732 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20733 <libm-alias-double.h>.
20734 (modf): Define using libm_alias_double.
20735 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20736 <libm-alias-double.h>.
20737 (ceil): Define using libm_alias_double.
20738 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20739 <libm-alias-double.h>.
20740 (floor): Define using libm_alias_double.
20741 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20742 <libm-alias-double.h>.
20743 (nearbyint): Define using libm_alias_double.
20744 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20745 <libm-alias-double.h>.
20746 (rint): Define using libm_alias_double.
20747 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20748 <libm-alias-double.h>.
20749 (round): Define using libm_alias_double.
20750 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20751 <libm-alias-double.h>.
20752 (trunc): Define using libm_alias_double.
20753 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20754 <libm-alias-double.h>.
20755 (ceil): Define using libm_alias_double.
20756 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20757 Include <libm-alias-double.h>.
20758 (floor): Define using libm_alias_double.
20759 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20760 <libm-alias-double.h>.
20761 (modf): Define using libm_alias_double.
20762 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20763 Include <libm-alias-double.h>.
20764 (round): Define using libm_alias_double.
20765 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20766 Include <libm-alias-double.h>.
20767 (trunc): Define using libm_alias_double.
20768 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20769 <libm-alias-double.h>.
20770 (ceil): Define using libm_alias_double.
20771 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20772 <libm-alias-double.h>.
20773 (floor): Define using libm_alias_double.
20774 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20775 <libm-alias-double.h>.
20776 (round): Define using libm_alias_double.
20777 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20778 <libm-alias-double.h>.
20779 (trunc): Define using libm_alias_double.
20780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20781 <libm-alias-double.h>.
20782 (ceil): Define using libm_alias_double.
20783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20784 <libm-alias-double.h>.
20785 (floor): Define using libm_alias_double.
20786 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20787 <libm-alias-double.h>.
20788 (modf): Define using libm_alias_double.
20789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20790 <libm-alias-double.h>.
20791 (round): Define using libm_alias_double.
20792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20793 <libm-alias-double.h>.
20794 (trunc): Define using libm_alias_double.
20795 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20796 <libm-alias-double.h>.
20797 (ceil): Define using libm_alias_double.
20798 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20799 <libm-alias-double.h>.
20800 (floor): Define using libm_alias_double.
20801 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20802 <libm-alias-double.h>.
20803 (nearbyint): Define using libm_alias_double.
20804 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20805 <libm-alias-double.h>.
20806 (rint): Define using libm_alias_double.
20807 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20808 <libm-alias-double.h>.
20809 (round): Define using libm_alias_double.
20810 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20811 <libm-alias-double.h>.
20812 (trunc): Define using libm_alias_double.
20813 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20814 <libm-alias-double.h>.
20815 (ceil): Define using libm_alias_double.
20816 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20817 <libm-alias-double.h>.
20818 (floor): Define using libm_alias_double.
20819 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20820 <libm-alias-double.h>.
20821 (round): Define using libm_alias_double.
20822 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20823 <libm-alias-double.h>.
20824 (trunc): Define using libm_alias_double.
20825
20826 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20827 (fabs): Define using libm_alias_double.
20828 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20829 (fma): Define using libm_alias_double.
20830 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20831 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20832 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20833 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20834
20835 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20836
20837 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20838
20839 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20840 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20841 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20842
20843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20844 due redirect macro.
20845
20846 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20847
20848 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20849
20850 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20851
20852 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20853 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20854 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20855 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20856
20857 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20858 (libm-sysdep_routines): Add s_nearbyintf-generic and
20859 s_nearbyint-generic.
20860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20861 New file.
20862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20863 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20864 Likewise.
20865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20866 Likewise.
20867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20868 file.
20869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20870 Likewise.
20871
20872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20873 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20874 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20875 file.
20876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20878 Likewise.
20879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20881 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20882
20883 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20884 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20885 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20886 file.
20887 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20889 Likewise.
20890 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20892 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20893
20894 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20895 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20896 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20897 file.
20898 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20899 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20900 Likewise.
20901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20902 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20903 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20904
20905 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20906 (sysdep_calls): New rule.
20907 (sysdep_routines): Use sysdep_calls as base.
20908 (libm-sysdep_routines): Add generic rule for symbols shared with
20909 libc. Add s_copysign-generic and s_copysign-generic objects.
20910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20911 New file.
20912 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20914 Likewise.
20915 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20918
20919 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20920
20921 [BZ #22519]
20922 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20923 the list of locales to be built for testing.
20924 * localedata/is_IS.UTF-8.in: New file.
20925 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20926 on iso14651_t1.
20927
20928 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20929
20930 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20931 <libm-alias-float.h>.
20932 (fabsf): Define using libm_alias_float.
20933
20934 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20935
20936 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20937
20938 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20939
20940 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20941 <libm-alias-float.h>.
20942 (fabsf): Define using libm_alias_float.
20943 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20944 <libm-alias-float.h>.
20945 (lrintf): Define using libm_alias_float.
20946 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20947 <libm-alias-float.h>.
20948 (rintf): Define using libm_alias_float.
20949
20950 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20951 <libm-alias-double.h>.
20952 (fabs): Define using libm_alias_double.
20953 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20954 <libm-alias-double.h>.
20955 (lrint): Define using libm_alias_double.
20956 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20957 <libm-alias-double.h>.
20958 (rint): Define using libm_alias_double.
20959
20960 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20961 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20962 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20963 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20964 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20965 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20966 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20967 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20968 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20969 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20970 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20971 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20972 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20973 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20974 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20975 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20976 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20977 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20978 s_atan_template.c.
20979 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20980 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20981 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20982 s_ceil_template.c.
20983 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20984 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20985 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20986 s_cos_template.c.
20987 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20988 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20989 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20990 s_expm1_template.c.
20991 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20992 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20993 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20994 s_fabs_template.c.
20995 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20996 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20997 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20998 s_floor_template.c.
20999 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
21000 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
21001 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
21002 s_frexp_template.c.
21003 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
21004 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
21005 s_lrint_template.c.
21006 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
21007 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
21008 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
21009 s_modf_template.c.
21010 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
21011 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
21012 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
21013 s_nearbyint_template.c.
21014 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
21015 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
21016 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
21017 s_remquo_template.c.
21018 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
21019 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
21020 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
21021 s_rint_template.c.
21022 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
21023 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
21024 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
21025 s_sin_template.c.
21026 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21027 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21028 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21029 s_sincos_template.c.
21030 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21031 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21032 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21033 s_tan_template.c.
21034 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21035 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21036 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21037 s_tanh_template.c.
21038 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21039 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21040 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21041 s_trunc_template.c.
21042 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21043 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21044 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21045 s_atan.c instead of including s_atan.c.
21046 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21047 s_atanf.c instead of including s_atanf.c.
21048 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21049 s_atanl.c instead of including s_atanl.c.
21050 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21051 instead of s_atan.c.
21052 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21053 instead of s_atanf.c.
21054 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21055 instead of s_atanl.c.
21056
21057 * scripts/update-copyrights: Do not handle intl/plural.c
21058 specially.
21059
21060 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
21061
21062 [BZ #22432]
21063 * configure.ac (BISON): Require to be present.
21064 * configure: Regenerated.
21065 * intl/Makefile (generated): Add plural.c.
21066 [$(BISON) != no]: Make code unconditional.
21067 (plural.c): Change rule to $(objpfx)plural.c.
21068 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21069 * intl/plural.c: Remove.
21070 * manual/install.texi (Tools for Compilation): Document bison as
21071 required.
21072 * INSTALL: Regenerated.
21073
21074 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21075
21076 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21077 <libm-alias-double.h>.
21078 (llrint): Define using libm_alias_double.
21079 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21080 <libm-alias-float.h>.
21081 (llrintf): Define using libm_alias_float.
21082 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21083 <libm-alias-ldouble.h>.
21084 (llrintl): Define using libm_alias_ldouble.
21085
21086 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21087 declare_mgen_alias instead of weak_alias.
21088 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21089 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21090 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21091
21092 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21093
21094 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21095 Add add_n-generic.
21096 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21097 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21098 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21099
21100 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21101 Add submul_1-generic.
21102 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21103 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21104 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21105
21106 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21107 Add addmul_1-generic.
21108 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21109 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21110 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21111
21112 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21113 Add sub_n-generic.
21114 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21115 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21116 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21117
21118 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21119 Add mul_1-generic.
21120 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21121 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21122 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21123
21124 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21125
21126 According to CLDR, collation rules for Serbian and Bosnian
21127 should be the same as for Croatian.
21128
21129 [BZ #22534]
21130 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21131 and to the list of locales to be built for testing.
21132 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21133 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21134 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21135 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21136
21137 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21138
21139 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21140 to make test case pass.
21141 * localedata/hr_HR.UTF-8.in: Add more test strings.
21142
21143 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21144
21145 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21146
21147 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21148
21149 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21150 the list of locales to built for testing.
21151 * localedata/hr_HR.UTF-8.in: New file.
21152
21153 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21154
21155 [BZ #10580]
21156 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21157 iso14651_t1.
21158 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21159 CLDR (except use ligatures for the digraphs, CLDR does not use
21160 the ligatures), add first_workday, some fixes in the date and time
21161 formats.
21162 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21163 for Đ and đ.
21164 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21165 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21166 Add int_p_cs_precedes and int_n_cs_precedes.
21167 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21168 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21169 LC_MONETARY now).
21170 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21171 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21172 name_miss.
21173 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21174 and lang_lib. Change postal_fmt.
21175
21176 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21177
21178 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21179 <setjmp.h>.
21180 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21181 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21182 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21183 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21184 * sysdeps/generic/setjmpP.h: New file.
21185 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21186 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21187 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21188 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21189 Add jmp_buf-ssp.sym.
21190 (tests): Add tst-saved_mask-1.
21191
21192 2017-11-30 Arjun Shankar <arjun@redhat.com>
21193
21194 [BZ #22375]
21195 CVE-2017-17426
21196 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21197 instead of request2size.
21198
21199 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21200
21201 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21202 (__lllrint): Remove alias.
21203 (lllrint): Likewise.
21204 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21205 (__lllrintf): Likewise.
21206 (lllrintf): Likewise.
21207
21208 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21209 <libm-alias-float.h>.
21210 (copysignf): Define using libm_alias_float.
21211 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21212 <libm-alias-float.h>.
21213 (fabsf): Define using libm_alias_float.
21214 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21215 Include <libm-alias-float.h>.
21216 (copysignf): Define using libm_alias_float.
21217 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21218 <libm-alias-float.h>.
21219 (fabsf): Define using libm_alias_float.
21220 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21221 <libm-alias-float.h>.
21222 (fdimf): Define using libm_alias_float.
21223 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21224 <libm-alias-float.h>.
21225 (fmaf): Define using libm_alias_float.
21226 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21227 <libm-alias-float.h>.
21228 (llrintf): Define using libm_alias_float.
21229 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21230 Include <libm-alias-float.h>.
21231 (nearbyintf): Define using libm_alias_float.
21232 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21233 <libm-alias-float.h>.
21234 (rintf): Define using libm_alias_float.
21235 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21236 <libm-alias-float.h>.
21237 (llrintf): Define using libm_alias_float.
21238 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21239 <libm-alias-float.h>.
21240 (lrintf): Define using libm_alias_float.
21241 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21242 <libm-alias-float.h>.
21243 (nearbyintf): Define using libm_alias_float.
21244 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21245 <libm-alias-float.h>.
21246 (rintf): Define using libm_alias_float.
21247 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21248 <libm-alias-float.h>.
21249 (ceilf): Define using libm_alias_float.
21250 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21251 <libm-alias-float.h>.
21252 (floorf): Define using libm_alias_float.
21253 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21254 <libm-alias-float.h>.
21255 (fmaf): Define using libm_alias_float.
21256 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21257 <libm-alias-float.h>.
21258 (lrintf): Define using libm_alias_float.
21259 (llrintf): Likewise.
21260 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21261 <libm-alias-float.h>.
21262 (nearbyintf): Define using libm_alias_float.
21263 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21264 <libm-alias-float.h>.
21265 (rintf): Define using libm_alias_float.
21266 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21267 <libm-alias-float.h>.
21268 (truncf): Define using libm_alias_float.
21269 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21270 <libm-alias-float.h>.
21271 (copysignf): Define using libm_alias_float.
21272 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21273 <libm-alias-float.h>.
21274 (fabsf): Define using libm_alias_float.
21275 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21276 <libm-alias-float.h>.
21277 (lrintf): Define using libm_alias_float.
21278 (llrintf): Likewise.
21279 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21280 <libm-alias-float.h>.
21281 (nearbyintf): Define using libm_alias_float.
21282 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21283 <libm-alias-float.h>.
21284 (rintf): Define using libm_alias_float.
21285
21286 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21287
21288 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21289 <libm-alias-double.h>.
21290 (copysign): Define using libm_alias_double.
21291 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21292 <libm-alias-double.h>.
21293 (fabs): Define using libm_alias_double.
21294 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21295 Include <libm-alias-double.h>.
21296 (copysign): Define using libm_alias_double.
21297 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21298 <libm-alias-double.h>.
21299 (fabs): Define using libm_alias_double.
21300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21301 <libm-alias-double.h>.
21302 (fdim): Define using libm_alias_double.
21303 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21304 <libm-alias-double.h>.
21305 (fma): Define using libm_alias_double.
21306 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21307 <libm-alias-double.h>.
21308 (llrint): Define using libm_alias_double.
21309 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21310 Include <libm-alias-double.h>.
21311 (nearbyint): Define using libm_alias_double.
21312 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21313 <libm-alias-double.h>.
21314 (rint): Define using libm_alias_double.
21315 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21316 <libm-alias-double.h>.
21317 (fabs): Define using libm_alias_double.
21318 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21319 <libm-alias-double.h>.
21320 (llrint): Define using libm_alias_double.
21321 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21322 <libm-alias-double.h>.
21323 (nearbyint): Define using libm_alias_double.
21324 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21325 <libm-alias-double.h>.
21326 (rint): Define using libm_alias_double.
21327 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21328 <libm-alias-double.h>.
21329 (ceil): Define using libm_alias_double.
21330 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21331 <libm-alias-double.h>.
21332 (floor): Define using libm_alias_double.
21333 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21334 <libm-alias-double.h>.
21335 (fma): Define using libm_alias_double.
21336 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21337 <libm-alias-double.h>.
21338 (lrint): Define using libm_alias_double.
21339 (llrint): Likewise.
21340 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21341 <libm-alias-double.h>.
21342 (nearbyint): Define using libm_alias_double.
21343 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21344 <libm-alias-double.h>.
21345 (rint): Define using libm_alias_double.
21346 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21347 <libm-alias-double.h>.
21348 (trunc): Define using libm_alias_double.
21349 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21350 <libm-alias-double.h>.
21351 (copysign): Define using libm_alias_double.
21352 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21353 <libm-alias-double.h>.
21354 (fabs): Define using libm_alias_double.
21355 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21356 <libm-alias-double.h>.
21357 (lrint): Define using libm_alias_double.
21358 (llrint): Likewise.
21359 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21360 <libm-alias-double.h>.
21361 (nearbyint): Define using libm_alias_double.
21362 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21363 <libm-alias-double.h>.
21364 (rint): Define using libm_alias_double.
21365
21366 [BZ #22229]
21367 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21368 <math_ldbl_opt.h>.
21369 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21370
21371 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21372 SPARC --disable-multi-arch glibc variants.
21373
21374 * sysdeps/x86_64/fpu/multiarch/e_exp2f.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_expf.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/e_log2f.c: Include
21383 <libm-alias-float.h>.
21384 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21385 if [SHARED].
21386 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21387 <libm-alias-float.h>.
21388 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21389 if [SHARED].
21390 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21391 <libm-alias-float.h>.
21392 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21393 if [SHARED].
21394 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21395 <libm-alias-float.h>.
21396 (ceilf): Define using libm_alias_float.
21397 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21398 <libm-alias-float.h>.
21399 (floorf): Define using libm_alias_float.
21400 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21401 <libm-alias-float.h>.
21402 (fmaf): Define using libm_alias_float.
21403 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21404 <libm-alias-float.h>.
21405 (nearbyintf): Define using libm_alias_float.
21406 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21407 <libm-alias-float.h>.
21408 (rintf): Define using libm_alias_float.
21409 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21410 <libm-alias-float.h>.
21411 (truncf): Define using libm_alias_float.
21412 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21413 (copysignf): Define using libm_alias_float.
21414 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21415 (cosf): Define using libm_alias_float.
21416 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21417 (fabsf): Define using libm_alias_float.
21418 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21419 (fmaxf): Define using libm_alias_float.
21420 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21421 (fminf): Define using libm_alias_float.
21422 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21423 (llrintf): Define using libm_alias_float.
21424 [!__ILP32__] (lrintf): Likewise.
21425 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21426 (sincosf): Define using libm_alias_float.
21427 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21428 (sinf): Define using libm_alias_float.
21429 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21430 (lrintf): Define using libm_alias_float.
21431
21432 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21433 <libm-alias-double.h>.
21434 (atan): Define using libm_alias_double.
21435 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21436 <libm-alias-double.h>.
21437 (ceil): Define using libm_alias_double.
21438 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21439 <libm-alias-double.h>.
21440 (floor): Define using libm_alias_double.
21441 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21442 <libm-alias-double.h>.
21443 (fma): Define using libm_alias_double.
21444 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21445 <libm-alias-double.h>.
21446 (nearbyint): Define using libm_alias_double.
21447 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21448 <libm-alias-double.h>.
21449 (rint): Define using libm_alias_double.
21450 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21451 <libm-alias-double.h>.
21452 (sin): Define using libm_alias_double.
21453 (cos): Likewise.
21454 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21455 <libm-alias-double.h>.
21456 (tan): Define using libm_alias_double.
21457 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21458 <libm-alias-double.h>.
21459 (trunc): Define using libm_alias_double.
21460 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21461 (copysign): Define using libm_alias_double.
21462 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21463 (fabs): Define using libm_alias_double.
21464 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21465 (fmax): Define using libm_alias_double.
21466 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21467 (fmin): Define using libm_alias_double.
21468 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21469 (llrint): Define using libm_alias_double.
21470 [!__ILP32__] (lrint): Likewise.
21471 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21472 (lrint): Define using libm_alias_double.
21473
21474 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21475
21476 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21477 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21478 objects.
21479 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21480 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21481 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21482 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21483 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21484 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21485
21486 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21487 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21488 objects.
21489 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21490 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21491 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21492 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21493 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21494 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21495
21496 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21497 (libm-sysdep_routines): Add s_nearbyint-generic and
21498 s_nearbyintf-generic objects.
21499 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21500 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21501 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21502 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21503 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21504 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21505
21506 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21507 Add s_finitef-generic and s_finite-generic objects.
21508 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21509 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21510 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21511 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21512 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21513 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21514
21515 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21516 Add s_isinff-generic and s_isinf-generic objects.
21517 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21518 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21519 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21520 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21521 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21522 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21523
21524 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21525 Add s_isnanf-generic and s_isnan-generic objects.
21526 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21527 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21528 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21529 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21530 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21531 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21532
21533 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21534 macro.
21535 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21536 rule.
21537 (sysdep_routines): Use sysdep_calls as base.
21538 (libm-sysdep_routines): Add generic rule for symbols shared with
21539 libc. Add s_signbit-generic and s_signbitf-generic objects.
21540 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21541 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21542 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21543 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21544 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21545 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21546
21547 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21548
21549 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21550 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21551 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21552 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21553 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21554 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21555 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21556 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21557 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21558 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21559 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21560 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21561 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21562 libm_alias_float_r.
21563 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21564 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21565 (logf): Likewise.
21566 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21567 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21568 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21569 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21570 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21571 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21572 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21573 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21574 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21575 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21576 libm_alias_float.
21577 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21578 (cosf): Likewise.
21579 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21580 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21581 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21582 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21583 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21584 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21585 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21586 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21587 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21588 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21589 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21590 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21591 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21592 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21593 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21594 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21595 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21596 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21597 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21598 libm_alias_float.
21599 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21600 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21601 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21602 * sysdeps/ia64/fpu/w_lgammaf_main.c
21603 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21604 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21605
21606 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21607 Alexandre Oliva <aoliva@redhat.com>
21608
21609 [BZ #17750]
21610 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21611 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21612 accents sorting.
21613 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21614 sorting.
21615 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21616 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21617 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21618 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21619 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21620 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21621 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21622 instead of “ifdef DIACRIT_BACKWARD”.
21623
21624 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21625
21626 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21627 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21628 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21629 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21630 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21631 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21632 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21633 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21634 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21635 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21636 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21637 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21638 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21639 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21640 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21641 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21642 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21643 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21644 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21645 ($(have-as-vis3) == yes): Remove conditional.
21646 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21647 Likewise.
21648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21649 file.
21650 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21651 file.
21652 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21653 file.
21654 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21655 file.
21656 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21657 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21658 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21659 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21660 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21661 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21662 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21663 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21664
21665 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21666
21667 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21668 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21669 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21670 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21671 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21672 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21673 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21674 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21675 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21676 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21677 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21678 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21679 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21680 libm_alias_double_r.
21681 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21682 (log): Likewise.
21683 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21684 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21685 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21686 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21687 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21688 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21689 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21690 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21691 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21692 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21693 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21694 libm_alias_double.
21695 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21696 (cos): Likewise.
21697 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21698 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21699 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21700 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21701 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21702 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21703 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21704 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21705 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21706 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21707 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21708 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21709 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21710 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21711 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21712 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21713 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21714 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21715 libm_alias_double.
21716 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21717 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21718 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21719 * sysdeps/ia64/fpu/w_lgamma_main.c
21720 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21721 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21722
21723 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21724
21725 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21726 address of $global$ into %dp register earlier. Use pc-relative
21727 instruction sequence for PIC case.
21728
21729 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21730
21731 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21732 (asinhf): Define using libm_alias_float.
21733 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21734 (atanf): Define using libm_alias_float.
21735 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21736 (cbrtf): Define using libm_alias_float.
21737 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21738 (ceilf): Define using libm_alias_float.
21739 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21740 (copysignf): Define using libm_alias_float.
21741 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21742 (expm1f): Define using libm_alias_float.
21743 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21744 (fabsf): Define using libm_alias_float.
21745 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21746 (floorf): Define using libm_alias_float.
21747 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21748 (fmaxf): Define using libm_alias_float.
21749 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21750 (fminf): Define using libm_alias_float.
21751 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21752 (frexpf): Define using libm_alias_float.
21753 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21754 (llrintf): Define using libm_alias_float.
21755 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21756 (logbf): Define using libm_alias_float.
21757 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21758 (lrintf): Define using libm_alias_float.
21759 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21760 (nearbyintf): Define using libm_alias_float.
21761 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21762 (remquof): Define using libm_alias_float.
21763 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21764 (rintf): Define using libm_alias_float.
21765 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21766 (truncf): Define using libm_alias_float.
21767 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21768 <libm-alias-float.h>.
21769 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21770 if [SHARED].
21771 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21772 <libm-alias-float.h>.
21773 (expf): Define using libm_alias_float, or libm_alias_float_other
21774 if [SHARED].
21775 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21776 <libm-alias-float.h>.
21777 (log2f): Define using libm_alias_float, or libm_alias_float_other
21778 if [SHARED].
21779 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21780 <libm-alias-float.h>.
21781 (logf): Define using libm_alias_float, or libm_alias_float_other
21782 if [SHARED].
21783 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21784 <libm-alias-float.h>.
21785 (powf): Define using libm_alias_float, or libm_alias_float_other
21786 if [SHARED].
21787 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21788 <libm-alias-float.h>.
21789 (cosf): Define using libm_alias_float.
21790 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21791 <libm-alias-float.h>.
21792 (sincosf): Define using libm_alias_float.
21793 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21794 <libm-alias-float.h>.
21795 (sinf): Define using libm_alias_float.
21796 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21797 (fmaxf): Define using libm_alias_float.
21798 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21799 (fminf): Define using libm_alias_float.
21800 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21801 <libm-alias-float.h>.
21802 (fmaf): Define using libm_alias_float.
21803
21804 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21805 (asinh): Define using libm_alias_double.
21806 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21807 (atan): Define using libm_alias_double.
21808 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21809 (cbrt): Define using libm_alias_double.
21810 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21811 (ceil): Define using libm_alias_double.
21812 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21813 (copysign): Define using libm_alias_double.
21814 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21815 (expm1): Define using libm_alias_double.
21816 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21817 (fabs): Define using libm_alias_double.
21818 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21819 (fdim): Define using libm_alias_double.
21820 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21821 (floor): Define using libm_alias_double.
21822 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21823 (fmax): Define using libm_alias_double.
21824 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21825 (fmin): Define using libm_alias_double.
21826 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21827 (frexp): Define using libm_alias_double.
21828 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21829 (llrint): Define using libm_alias_double.
21830 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21831 (logb): Define using libm_alias_double.
21832 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21833 (lrint): Define using libm_alias_double.
21834 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21835 (nearbyint): Define using libm_alias_double.
21836 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21837 (remquo): Define using libm_alias_double.
21838 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21839 (rint): Define using libm_alias_double.
21840 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21841 (trunc): Define using libm_alias_double.
21842 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21843 (fmax): Define using libm_alias_double.
21844 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21845 (fmin): Define using libm_alias_double.
21846 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21847 (fma): Define using libm_alias_double.
21848
21849 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21850
21851 [BZ #22370]
21852 * elf/dl-hwcaps.c (ROUND): Removed.
21853 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21854 and ELF_NOTE_NEXT_OFFSET.
21855 * elf/dl-load.c (ROUND): Removed.
21856 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21857 * elf/readelflib.c (ROUND): Removed.
21858 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21859 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21860 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21861 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21862
21863 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21864
21865 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21866 [!__fmaf] (fmaf): Define using libm_alias_float.
21867
21868 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21869 [!__fma] (fma): Define using libm_alias_double.
21870 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21871
21872 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21873
21874 [BZ #22336]
21875 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21876 and implement the collation rules for cs from CLDR on top of that.
21877 * Makefile: Add cs_CZ.UTF-8 to test-input.
21878 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21879
21880 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21881
21882 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21883
21884 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21885 Icarus Sparry <icarus.w.sparry@intel.com>
21886
21887 * benchtests/Makefile:Add BENCHSET to allow subsets of
21888 benchmarks to be run.
21889 * benchtests/README: Add documentation for: Running subsets of
21890 benchmarks.
21891
21892 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21893
21894 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21895 range of tests names.
21896
21897 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21898 result from property and remove "max", min" and "mean" from
21899 required properties based on benchtests/bench-skeleton.c.
21900
21901 2017-11-28 Florian Weimer <fweimer@redhat.com>
21902
21903 [BZ #20826]
21904 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21905 due to Internet requirement.
21906 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21907 tst-getaddrinfo5.
21908 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21909
21910 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21911
21912 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21913 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21914 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21915 (sysdep_routines): Add memset-ultra1.
21916 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21917 file.
21918 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21919 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21920 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21921 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21922 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21923 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21924 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21925 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21926
21927 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21928 file.
21929 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21930 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21931 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21932 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21933 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21934 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21935 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21936 macro.
21937 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21938 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21939 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21940 (sysdep_routines): Add memcpy-ultra1.
21941 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21942 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21943
21944 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21945
21946 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21947 (cfloat_versions): Take function argument without trailing 'f'.
21948 Call libm_alias_float_other.
21949 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21950 * sysdeps/alpha/fpu/cargf.c: Likewise.
21951 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21952 * sysdeps/alpha/fpu/conjf.c: Likewise.
21953 * sysdeps/alpha/fpu/crealf.c: Likewise.
21954 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21955 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21956 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21957 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21958 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21959 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21960 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21961 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21962 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21963 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21964 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21965 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21966 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21967 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21968 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21969 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21970 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21971 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21972 (clog10f): Use libm_alias_float_other.
21973 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21974 (ceilf): Define using libm_alias_float.
21975 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21976 (copysignf): Define using libm_alias_float.
21977 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21978 (fabsf): Define using libm_alias_float.
21979 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21980 (floorf): Define using libm_alias_float.
21981 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21982 (fmaxf): Define using libm_alias_float.
21983 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21984 (fminf): Define using libm_alias_float.
21985 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21986 (lrintf): Define using libm_alias_float.
21987 (llrintf): Likewise.
21988 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21989 (lroundf): Define using libm_alias_float.
21990 (llroundf): Likewise.
21991 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21992 (rintf): Define using libm_alias_float.
21993 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21994 (truncf): Define using libm_alias_float.
21995
21996 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21997 (ceilf): Define using libm_alias_float.
21998 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21999 (floorf): Define using libm_alias_float.
22000 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22001 (fmaf): Define using libm_alias_float.
22002 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
22003 (fmaxf): Define using libm_alias_float.
22004 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
22005 (fminf): Define using libm_alias_float.
22006 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
22007 (llrintf): Define using libm_alias_float.
22008 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
22009 (llroundf): Define using libm_alias_float.
22010 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22011 (lrintf): Define using libm_alias_float.
22012 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22013 (lroundf): Define using libm_alias_float.
22014 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
22015 <libm-alias-float.h>.
22016 (nearbyintf): Define using libm_alias_float.
22017 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
22018 (rintf): Define using libm_alias_float.
22019 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
22020 (roundf): Define using libm_alias_float.
22021 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
22022 (truncf): Define using libm_alias_float.
22023
22024 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
22025 (ceil): Define using libm_alias_double.
22026 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22027 (copysign): Define using libm_alias_double.
22028 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22029 (fabs): Define using libm_alias_double.
22030 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22031 (floor): Define using libm_alias_double.
22032 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22033 (fmax): Define using libm_alias_double.
22034 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22035 (fmin): Define using libm_alias_double.
22036 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22037 (lrint): Define using libm_alias_double.
22038 (llrint): Likewise.
22039 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22040 (lround): Define using libm_alias_double.
22041 (llround): Likewise.
22042 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22043 (rint): Define using libm_alias_double.
22044 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22045 (trunc): Define using libm_alias_double.
22046
22047 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22048 (libm_alias_double_r): Add semicolon after weak_alias call.
22049
22050 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22051
22052 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22053 (ceil): Define using libm_alias_double.
22054 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22055 (floor): Define using libm_alias_double.
22056 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22057 (fma): Define using libm_alias_double.
22058 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22059 (fmax): Define using libm_alias_double.
22060 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22061 (fmin): Define using libm_alias_double.
22062 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22063 (llrint): Define using libm_alias_double.
22064 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22065 (llround): Define using libm_alias_double.
22066 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22067 (lrint): Define using libm_alias_double.
22068 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22069 (lround): Define using libm_alias_double.
22070 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22071 (nearbyint): Define using libm_alias_double.
22072 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22073 (rint): Define using libm_alias_double.
22074 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22075 (round): Define using libm_alias_double.
22076 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22077 (trunc): Define using libm_alias_double.
22078
22079 2017-11-27 Florian Weimer <fweimer@redhat.com>
22080
22081 * sysdeps/unix/sysv/linux/mlock2.c: New file.
22082 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22083 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22084 (tests): Add tst-mlock2.
22085 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22086 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22087 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22088 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22089 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22090 for mlock. Document mlock2.
22091
22092 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22093
22094 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22095 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22096 Likewise.
22097 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22098 Likewise.
22099 * sysdeps/x86/Makeconfig: New file.
22100 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22101 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22102 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22103 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22104 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22105 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22106 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22107 Likewise.
22108 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22109 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22110 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22111 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22112 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22113 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22114 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22115 * manual/math.texi (Mathematics): Document support for _Float64x.
22116 * math/Versions (GLIBC_2.27): Add _Float64x functions.
22117 * stdlib/Versions (GLIBC_2.27): Likewise.
22118 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22119 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22120 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22121 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22122 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22123 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22124 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22125 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22126 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22127 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22128 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22129 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22131 Likewise.
22132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22133 Likewise.
22134 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22135 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22136 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22137 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22138 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22139 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22140 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22141 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22142 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22143 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22144 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22145 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22146 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22147 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22148
22149 2017-11-27 Andreas Schwab <schwab@suse.de>
22150
22151 * elf/Makefile (dl-routines): Add dl-sort-maps.
22152 * elf/dl-sort-maps.c: New file.
22153 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22154 (_dl_sort_maps): Declare.
22155 * elf/dl-fini.c (_dl_sort_fini): Remove.
22156 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22157 * elf/dl-close.c (_dl_close_worker): Likewise.
22158 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22159 open-coding it.
22160 * elf/dl-open.c (dl_open_worker): Likewise.
22161
22162 2017-11-24 Joseph Myers <joseph@codesourcery.com>
22163
22164 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22165 using libm_alias_float128.
22166 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22167 Likewise.
22168 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22169 Likewise.
22170 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22171 (setpayloadsigf128): Likewise.
22172 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22173 Likewise.
22174 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22175 Likewise.
22176
22177 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22178 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22179 -mfloat128 to CFLAGS.
22180 ($(foreach
22181 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22182 Likewise.
22183 (CFLAGS-libm-test-support-float64x.c): New variable.
22184 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22185 $(f128-loader-link) to gnulib-tests.
22186
22187 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22188 (libm_alias_float128_other_r): If
22189 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22190 alias.
22191 (libm_alias_float128_r): Add semicolon after weak_alias call.
22192 * sysdeps/generic/libm-alias-ldouble.h
22193 (libm_alias_ldouble_other_r_f128): New macro.
22194 (libm_alias_ldouble_other_r_f64x): Likewise.
22195 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22196 and libm_alias_ldouble_other_r_f64x.
22197 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22198 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22199 (libm_alias_ldouble_other_r_f128): New macro.
22200 (libm_alias_ldouble_other_r_f64x): Likewise.
22201 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22202 and libm_alias_ldouble_other_r_f64x.
22203
22204 * stdlib/strfroml.c: Always include <stdlib.h>.
22205 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22206 undefine as macro and define as weak alias.
22207 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22208 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22209 <stdlib.h>.
22210 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22211 Define and later undefine as macro and define as weak alias.
22212
22213 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22214 Define and later undefine as macro. Define as weak alias if
22215 [!USE_WIDE_CHAR].
22216 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22217 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22218 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22219 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22220 Define and later undefine as macro. Define as weak alias if
22221 [!USE_WIDE_CHAR].
22222 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22223 Define and later undefine as macro. Define as weak alias if
22224 [USE_WIDE_CHAR].
22225 * sysdeps/ieee754/float128/strtof128_l.c
22226 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22227 Define and later undefine as macro. Define as weak alias if
22228 [!USE_WIDE_CHAR].
22229 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22230 Define and later undefine as macro. Define as weak alias if
22231 [USE_WIDE_CHAR].
22232 * sysdeps/ieee754/ldbl-128/strtold_l.c
22233 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22234 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22235 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22236 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22237 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22238 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22239 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22240 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22241 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22242 * sysdeps/ieee754/ldbl-96/strtold_l.c
22243 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22244 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22245 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22246 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22247
22248 * math/test-float64x.h: New file.
22249 * math/Makefile (type-float64x-yes): New variable.
22250 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22251
22252 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22253 function-like macro.
22254 (min_of_type_): Likewise.
22255 (min_of_type_l): Likewise.
22256 (min_of_type_f128): Likewise.
22257 (min_of_type): Pass () as last argument of __MATH_TG.
22258
22259 * stdlib/tst-strtod-round-skeleton.c
22260 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22261 headers.
22262
22263 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22264 for combinations of long double with _Float64 and _Float64x.
22265
22266 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22267 (__DECL_SIMD_cosf32): Likewise.
22268 (__DECL_SIMD_cosf64): Likewise.
22269 (__DECL_SIMD_cosf32x): Likewise.
22270 (__DECL_SIMD_cosf64x): Likewise.
22271 (__DECL_SIMD_cosf128x): Likewise.
22272 (__DECL_SIMD_sinf16): Likewise.
22273 (__DECL_SIMD_sinf32): Likewise.
22274 (__DECL_SIMD_sinf64): Likewise.
22275 (__DECL_SIMD_sinf32x): Likewise.
22276 (__DECL_SIMD_sinf64x): Likewise.
22277 (__DECL_SIMD_sinf128x): Likewise.
22278 (__DECL_SIMD_sincosf16): Likewise.
22279 (__DECL_SIMD_sincosf32): Likewise.
22280 (__DECL_SIMD_sincosf64): Likewise.
22281 (__DECL_SIMD_sincosf32x): Likewise.
22282 (__DECL_SIMD_sincosf64x): Likewise.
22283 (__DECL_SIMD_sincosf128x): Likewise.
22284 (__DECL_SIMD_logf16): Likewise.
22285 (__DECL_SIMD_logf32): Likewise.
22286 (__DECL_SIMD_logf64): Likewise.
22287 (__DECL_SIMD_logf32x): Likewise.
22288 (__DECL_SIMD_logf64x): Likewise.
22289 (__DECL_SIMD_logf128x): Likewise.
22290 (__DECL_SIMD_expf16): Likewise.
22291 (__DECL_SIMD_expf32): Likewise.
22292 (__DECL_SIMD_expf64): Likewise.
22293 (__DECL_SIMD_expf32x): Likewise.
22294 (__DECL_SIMD_expf64x): Likewise.
22295 (__DECL_SIMD_expf128x): Likewise.
22296 (__DECL_SIMD_powf16): Likewise.
22297 (__DECL_SIMD_powf32): Likewise.
22298 (__DECL_SIMD_powf64): Likewise.
22299 (__DECL_SIMD_powf32x): Likewise.
22300 (__DECL_SIMD_powf64x): Likewise.
22301 (__DECL_SIMD_powf128x): Likewise.
22302
22303 * stdlib/Versions (libc): Move entries for wcstof128 and
22304 wcstof128_l to ....
22305 * wcsmbs/Versions (libc): ... here.
22306 Include <float128-abi.h>.
22307
22308 2017-11-24 Florian Weimer <fweimer@redhat.com>
22309
22310 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22311 bits/mman-shared.h.
22312 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22313 <bits/mman-shared.h>.
22314 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22315 to ...
22316 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22317 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22318 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22319 <bits/mman-shared.h>.
22320
22321 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22322
22323 [BZ #22457]
22324 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22325 posix_memalign/free.
22326 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22327
22328 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22329
22330 [BZ #22469]
22331 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22332 and implement the collation rules for pl from CLDR on top of that.
22333 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22334 of locales to be built for testing.
22335 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22336
22337 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22338
22339 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22340 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22341 libm_alias_ldouble_other.
22342 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22343 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22344 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22345 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22346 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22347 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22348 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22349 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22350 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22351 libm_alias_ldouble_r.
22352 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22353 libm_alias_ldouble_other.
22354 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22355 (log10l): Likewise.
22356 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22357 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22358 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22359 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22360 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22361 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22362 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22363 (atan2l): Likewise.
22364 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22365 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22366 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22367 libm_alias_ldouble.
22368 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22369 (cosl): Likewise.
22370 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22371 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22372 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22373 (expl): Likewise.
22374 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22375 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22376 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22377 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22378 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22379 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22380 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22381 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22382 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22383 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22384 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22385 libm_alias_ldouble.
22386 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22387 libm_alias_ldouble_other.
22388 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22389 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22390 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22391 libm_alias_ldouble.
22392 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22393 libm_alias_ldouble_other.
22394 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22395 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22396 * sysdeps/ia64/fpu/w_lgammal_main.c
22397 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22398 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22399
22400 2017-11-23 Florian Weimer <fweimer@redhat.com>
22401
22402 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22403 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22404 alike. Remove freeres marker.
22405 * malloc/arena.c (arena_thread_freeres): Call
22406 tcache_thread_shutdown.
22407
22408 2017-11-23 Florian Weimer <fweimer@redhat.com>
22409
22410 [BZ #22459]
22411 Export nscd hash function as __nss_hash.
22412 * include/nss.h (__nss_hash): Declare.
22413 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22414 symbol.
22415 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22416 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22417 of __nscd_hash.
22418 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22419 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22420 * nss/Makefiles (routines): Add nss_hash.
22421 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22422 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22423 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22424 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22425
22426 2017-11-23 Florian Weimer <fweimer@redhat.com>
22427
22428 [BZ #22478]
22429 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22430 Return error code, not -1.
22431 * signal/tst-sigwait-eintr.c: New file.
22432 * signal/Makefile (tests): Add tst-sigwait-eintr.
22433
22434 2017-11-23 Florian Weimer <fweimer@redhat.com>
22435
22436 Linux: Add memfd_create system call wrapper
22437 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22438 tst-memfd_create.
22439 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22440 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22441 [__USE_GNU] (memfd_create): Declare.
22442 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22443 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22444 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22445 * sysdeps/unix/sysv/linux/**.abilist: Update.
22446 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22447
22448 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22449
22450 * localedata/gen-locale.sh: Fix typo in variable name.
22451
22452 * resolv/res_debug.c (p_secstodate): Condition definition on
22453 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22454 directly as __p_secstodate, and as a compat symbol. Do not use
22455 libresolv_hidden_def.
22456 * resolv/resolv.h (p_secstodate): Remove macro and function
22457 declaration.
22458 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22459 using p_secstodate.
22460 * include/resolv.h (__p_secstodate): Do not use
22461 libresolv_hidden_proto.
22462 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22463 (tests-internal): ... here.
22464 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22465 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22466 and declare and use __p_secstodate and use compat_symbol_reference
22467 in that case.
22468 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22469 implementation returning 77.
22470
22471 [BZ #22463]
22472 * resolv/res_debug.c: Include <libc-diag.h>.
22473 (p_secstodate): Assert time_t at least as wide as u_long. On
22474 overflow, use integer seconds since the epoch as output, or use
22475 "<overflow>" as output and set errno to EOVERFLOW if integer
22476 seconds since the epoch would be 14 or more characters.
22477 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22478 for sprintf call.
22479 * resolv/tst-p_secstodate.c: New file.
22480 * resolv/Makefile (tests): Add tst-p_secstodate.
22481 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22482
22483 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22484 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22485 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22486
22487 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22488
22489 * posix/regcomp.c (init_word_char): Add comments.
22490
22491 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22492
22493 [BZ #22447]
22494 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22495 strlen to compute length of ut_user and set trailing NUL byte of
22496 result explicitly.
22497
22498 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22499
22500 [BZ #15537]
22501 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22502 using “copy "iso14651_t1"” and then implementing the
22503 collation rules for lv from CLDR on top of that.
22504 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22505 of locales to be built for testing.
22506 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22507 sorting.
22508
22509 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22510
22511 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22512 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22513 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22514 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22515 [__USE_MISC] (MADV_HWPOISON): New macro.
22516 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22517
22518 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22519
22520 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22521 -Wmissing-braces on GCC 4.9.
22522
22523 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22524
22525 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22526 * sysdeps/s390/s390-32/start.S (_start): Likewise
22527 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22528 (thread_start): Likewise.
22529 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22530 (thread_start): Likewise.
22531 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22532 (__makecontext_ret): Likewise.
22533 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22534 (__makecontext_ret): Likewise.
22535
22536 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22537
22538 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22539 __wcschrnul): Remove attribute_hidden.
22540
22541 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22542
22543 regex: don't assume uint64_t or uint32_t
22544 This avoids -Werror=overflow errors for 32-bit systems in
22545 the 64-bit case. Problem reported by Joseph Myers in:
22546 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22547 Also, when this code is used in Gnulib it ports to platforms
22548 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22549 them, and on some 32-bit compilers there is no uint64_t.
22550 Problem reported by Gianluigi Tiesi in:
22551 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22552 * posix/regcomp.c (init_word_char): Don't assume that the types
22553 uint64_t and uint32_t exist. Adapted from Gnulib patch
22554 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22555 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22556
22557 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22558
22559 * sysdeps/aarch64/memset-reg.h: New file.
22560 * sysdeps/aarch64/memset.S: Use it.
22561 (__memset): Rename to MEMSET macro.
22562 [ZVA_MACRO]: Use zva_macro.
22563 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22564 Add memset_generic and memset_falkor.
22565 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22566 (__libc_ifunc_impl_list): Add memset ifuncs.
22567 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22568 local variable zva_size.
22569 * sysdeps/aarch64/multiarch/memset.c: New file.
22570 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22571 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22572 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22573 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22574 (DCZID_DZP_MASK): New macro.
22575 (DCZID_BS_MASK): Likewise.
22576 (init_cpu_features): Read and set zva_size.
22577 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22578 (struct cpu_features): New member zva_size.
22579
22580 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22581 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22582 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22583
22584 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22585 backwards. Fix timing computation.
22586 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22587 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22588 on memset by N at a time. Fix timing computation.
22589
22590 2017-11-20 Florian Weimer <fweimer@redhat.com>
22591
22592 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22593 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22594
22595 2017-11-19 Florian Weimer <fweimer@redhat.com>
22596
22597 manual: Document mprotect
22598 * manual/memory.texi (Memory Protection): New section.
22599 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22600 documentation of PROT_* flags and reference the Memory Protection
22601 section instead.
22602
22603 2017-11-19 Florian Weimer <fweimer@redhat.com>
22604
22605 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22606 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22607 (Scatter-Gather): ... to here. Remove misleading comment.
22608
22609 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22610
22611 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22612 style.
22613
22614 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22615 when /proc/<pid>/setgroups does not exist.
22616
22617 2017-11-18 Florian Weimer <fweimer@redhat.com>
22618
22619 * sysdeps/unix/sysv/linux/tst-ttyname.c
22620 (become_root_in_mount_ns): Remove.
22621 (do_in_chroot_1): Call support_enter_mount_namespace.
22622 (do_in_chroot_2): Likewise.
22623 (do_test): Call support_become_root early.
22624
22625 2017-11-18 Florian Weimer <fweimer@redhat.com>
22626
22627 * support/namespace.h (support_enter_mount_namespace): Declare.
22628 * support/support_enter_mount_namespace.c: New file.
22629 * support/Makefile (libsupport-routines): Add
22630 support_enter_mount_namespace.
22631
22632 2017-11-18 Florian Weimer <fweimer@redhat.com>
22633
22634 * support/temp_file.c (support_create_temp_directory): Use
22635 test_dir and do not rely on the presence of the XXXXXX suffix.
22636 * support/temp_file.h (support_create_temp_directory): Update
22637 comment.
22638 * support/tst-xreadlink.c (do_test): Adjust.
22639 * support/support_chroot.c (support_chroot_create): Likewise.
22640
22641 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22642
22643 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22644 macro.
22645 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22646 htm-no-suspend.
22647
22648 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22649
22650 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22651 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22652 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22653 (ceill): Define using libm_alias_ldouble.
22654 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22655 <libm-alias-ldouble.h>.
22656 (copysignl): Define using libm_alias_ldouble.
22657 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22658 (fabsl): Define using libm_alias_ldouble.
22659 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22660 (floorl): Define using libm_alias_ldouble.
22661 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22662 (fmaxl): Define using libm_alias_ldouble.
22663 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22664 (fminl): Define using libm_alias_ldouble.
22665 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22666 (llrintl): Define using libm_alias_ldouble.
22667 (lrintl): Likewise.
22668 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22669 <libm-alias-ldouble.h>.
22670 (nearbyintl): Define using libm_alias_ldouble.
22671 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22672 (truncl): Define using libm_alias_ldouble.
22673 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22674 <libm-alias-ldouble.h>.
22675 (lrintl): Define using libm_alias_ldouble.
22676
22677 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22678 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22679 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22680 (asinhl): Define using libm_alias_ldouble.
22681 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22682 (atanl): Define using libm_alias_ldouble.
22683 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22684 (cbrtl): Define using libm_alias_ldouble.
22685 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22686 (ceill): Define using libm_alias_ldouble.
22687 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22688 (copysignl): Define using libm_alias_ldouble.
22689 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22690 (fabsl): Define using libm_alias_ldouble.
22691 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22692 (floorl): Define using libm_alias_ldouble.
22693 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22694 (fmaxl): Define using libm_alias_ldouble.
22695 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22696 (fminl): Define using libm_alias_ldouble.
22697 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22698 (frexpl): Define using libm_alias_ldouble.
22699 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22700 (llrintl): Define using libm_alias_ldouble.
22701 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22702 (logbl): Define using libm_alias_ldouble.
22703 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22704 (lrintl): Define using libm_alias_ldouble.
22705 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22706 (nearbyintl): Define using libm_alias_ldouble.
22707 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22708 (nextafterl): Define using libm_alias_ldouble.
22709 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22710 (remquol): Define using libm_alias_ldouble.
22711 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22712 (rintl): Define using libm_alias_ldouble.
22713 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22714 (truncl): Define using libm_alias_ldouble.
22715 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22716 (fmaxl): Define using libm_alias_ldouble.
22717 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22718 (fminl): Define using libm_alias_ldouble.
22719
22720 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22721 to C syntax instead of availability and properties of types.
22722 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22723 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22724 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22725 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22726 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22727 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22728
22729 2017-11-17 Florian Weimer <fweimer@redhat.com>
22730
22731 support_become_root: Enable file creation in namespaces.
22732 * support/support_become_root.c (setup_mapping): New function.
22733 (support_become_root): Call it.
22734
22735 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22736
22737 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22738 macro.
22739
22740 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22741
22742 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22743 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22744
22745 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22746
22747 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22748
22749 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22750 version to 4.14.
22751
22752 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22753
22754 * INSTALL: Fix botched up regeneration.
22755
22756 * NEWS: Update sourceare link to https.
22757 * configure.ac: Likewise.
22758 * crypt/md5test-giant.c: Likewise.
22759 * dlfcn/bug-atexit1.c: Likewise.
22760 * dlfcn/bug-atexit2.c: Likewise.
22761 * localedata/README: Likewise.
22762 * malloc/tst-mallocfork.c: Likewise.
22763 * manual/install.texi: Likewise.
22764 * nptl/tst-pthread-getattr.c: Likewise.
22765 * stdio-common/tst-fgets.c: Likewise.
22766 * stdio-common/tst-fwrite.c: Likewise.
22767 * sunrpc/Makefile: Likewise.
22768 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22769 * wcsmbs/tst-mbrtowc2.c: Likewise.
22770 * configure: Regenerate.
22771 * INSTALL: Regenerate.
22772
22773 2017-11-15 Martin Sebor <msebor@redhat.com>
22774
22775 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22776 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22777 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22778
22779 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22780
22781 [BZ #22145]
22782 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22783 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22784
22785 [BZ #22145]
22786 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22787 Defer is_pty check until end of the function.
22788 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22789
22790 [BZ #22145]
22791 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22792 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22793 (ttyname): Likewise.
22794 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22795 (__ttyname_r): Likewise.
22796
22797 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22798 int to bool.
22799
22800 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22801
22802 * manual/terminal.texi (Is It a Terminal):
22803 Mention ENODEV for ttyname and ttyname_r.
22804
22805 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22806
22807 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22808 constant and macro.
22809
22810 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22811 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22812 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22813 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22814 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22815 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22816
22817 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22818
22819 * signal/sigrelse.c (sigrelse): Optimize implementation.
22820
22821 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22822 (__sigpause): Rely on __sigsuspend to implement single thread
22823 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22824
22825 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22826
22827 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22828 kernel version to 4.14.
22829
22830 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22831
22832 [BZ #22442]
22833 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22834 Check if ifname is too long.
22835
22836 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22837
22838 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22839
22840 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22841
22842 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22843 was accidentally lost.
22844
22845 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22846
22847 * localedata/locales/az_IR: Add standard copyright header.
22848
22849 2017-11-15 Florian Weimer <fweimer@redhat.com>
22850
22851 [BZ #22439]
22852 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22853 not just the top one. Output a new "subheaps" statistic.
22854
22855 2017-11-15 Florian Weimer <fweimer@redhat.com>
22856
22857 [BZ #22408]
22858 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22859 under the per-arena lock.
22860 * malloc/Makefile (tests): Add tst-malloc_info.
22861 (tst-malloc_info): Link with libpthread.
22862 * malloc/tst-malloc_info.c: New file.
22863
22864 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22865
22866 [BZ #21660]
22867 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22868 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22869 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22870 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22871 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22872 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22873 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22874 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22875 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22876 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22877 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22878 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22879 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22880 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22881 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22882 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22883 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22884 (__floating_type): Likewise.
22885 (__real_integer_type): Likewise.
22886 (__complex_integer_type): Likewise.
22887 (__expr_is_real): Likewise.
22888 (__tgmath_real_type_sub): Likewise.
22889 (__tgmath_real_type): Likewise.
22890 (__tgmath_complex_type_sub): Likewise.
22891 (__tgmath_complex_type): Likewise.
22892 (__TGMATH_F128): Likewise.
22893 (__TGMATH_CF128): Likewise.
22894 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22895 new macros.
22896 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22897 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22898 Likewise.
22899 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22900 Likewise.
22901 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22902 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22903 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22904 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22905 Likewise.
22906 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22907 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22908 Likewise.
22909 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22910 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22911 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22912 Likewise.
22913 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22914 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22915 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22916 (cimag): Likewise.
22917 (creal): Likewise.
22918
22919 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22920
22921 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22922 for stpncpy calls for GCC 8.
22923 (test_strncat): Disable -Wstringop-truncation warning for strncat
22924 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22925 strncat call for GCC 7.
22926 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22927 calls for GCC 8.
22928 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22929 trailing NUL.
22930
22931 * string/bug-strncat1.c: Include <libc-diag.h>.
22932 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22933
22934 2017-11-13 Claude Paroz <claude@2xlibre.net>
22935
22936 [BZ #22387]
22937 * localedata/locales/aa_DJ: Improved readibility by replacing
22938 <Uxxxx> sequences in the ASCII printable range by their ASCII
22939 character equivalents.
22940 * localedata/locales/aa_ER: Likewise.
22941 * localedata/locales/aa_ER@saaho: Likewise.
22942 * localedata/locales/aa_ET: Likewise.
22943 * localedata/locales/af_ZA: Likewise.
22944 * localedata/locales/agr_PE: Likewise.
22945 * localedata/locales/ak_GH: Likewise.
22946 * localedata/locales/am_ET: Likewise.
22947 * localedata/locales/anp_IN: Likewise.
22948 * localedata/locales/ar_AE: Likewise.
22949 * localedata/locales/ar_BH: Likewise.
22950 * localedata/locales/ar_DZ: Likewise.
22951 * localedata/locales/ar_EG: Likewise.
22952 * localedata/locales/ar_IN: Likewise.
22953 * localedata/locales/ar_IQ: Likewise.
22954 * localedata/locales/ar_JO: Likewise.
22955 * localedata/locales/ar_KW: Likewise.
22956 * localedata/locales/ar_LB: Likewise.
22957 * localedata/locales/ar_LY: Likewise.
22958 * localedata/locales/ar_MA: Likewise.
22959 * localedata/locales/ar_OM: Likewise.
22960 * localedata/locales/ar_QA: Likewise.
22961 * localedata/locales/ar_SA: Likewise.
22962 * localedata/locales/ar_SD: Likewise.
22963 * localedata/locales/ar_SS: Likewise.
22964 * localedata/locales/ar_SY: Likewise.
22965 * localedata/locales/ar_TN: Likewise.
22966 * localedata/locales/ar_YE: Likewise.
22967 * localedata/locales/as_IN: Likewise.
22968 * localedata/locales/ast_ES: Likewise.
22969 * localedata/locales/ayc_PE: Likewise.
22970 * localedata/locales/az_AZ: Likewise.
22971 * localedata/locales/az_IR: Likewise.
22972 * localedata/locales/be_BY: Likewise.
22973 * localedata/locales/be_BY@latin: Likewise.
22974 * localedata/locales/bem_ZM: Likewise.
22975 * localedata/locales/ber_DZ: Likewise.
22976 * localedata/locales/ber_MA: Likewise.
22977 * localedata/locales/bg_BG: Likewise.
22978 * localedata/locales/bhb_IN: Likewise.
22979 * localedata/locales/bho_IN: Likewise.
22980 * localedata/locales/bi_VU: Likewise.
22981 * localedata/locales/bn_BD: Likewise.
22982 * localedata/locales/bn_IN: Likewise.
22983 * localedata/locales/bo_CN: Likewise.
22984 * localedata/locales/bo_IN: Likewise.
22985 * localedata/locales/br_FR: Likewise.
22986 * localedata/locales/brx_IN: Likewise.
22987 * localedata/locales/bs_BA: Likewise.
22988 * localedata/locales/byn_ER: Likewise.
22989 * localedata/locales/ca_AD: Likewise.
22990 * localedata/locales/ca_ES: Likewise.
22991 * localedata/locales/ca_FR: Likewise.
22992 * localedata/locales/ca_IT: Likewise.
22993 * localedata/locales/ce_RU: Likewise.
22994 * localedata/locales/chr_US: Likewise.
22995 * localedata/locales/cmn_TW: Likewise.
22996 * localedata/locales/crh_UA: Likewise.
22997 * localedata/locales/cs_CZ: Likewise.
22998 * localedata/locales/csb_PL: Likewise.
22999 * localedata/locales/cv_RU: Likewise.
23000 * localedata/locales/cy_GB: Likewise.
23001 * localedata/locales/da_DK: Likewise.
23002 * localedata/locales/de_AT: Likewise.
23003 * localedata/locales/de_BE: Likewise.
23004 * localedata/locales/de_CH: Likewise.
23005 * localedata/locales/de_DE: Likewise.
23006 * localedata/locales/de_IT: Likewise.
23007 * localedata/locales/de_LI: Likewise.
23008 * localedata/locales/de_LU: Likewise.
23009 * localedata/locales/doi_IN: Likewise.
23010 * localedata/locales/dv_MV: Likewise.
23011 * localedata/locales/dz_BT: Likewise.
23012 * localedata/locales/el_CY: Likewise.
23013 * localedata/locales/el_GR: Likewise.
23014 * localedata/locales/en_AG: Likewise.
23015 * localedata/locales/en_AU: Likewise.
23016 * localedata/locales/en_BW: Likewise.
23017 * localedata/locales/en_CA: Likewise.
23018 * localedata/locales/en_DK: Likewise.
23019 * localedata/locales/en_GB: Likewise.
23020 * localedata/locales/en_HK: Likewise.
23021 * localedata/locales/en_IE: Likewise.
23022 * localedata/locales/en_IL: Likewise.
23023 * localedata/locales/en_IN: Likewise.
23024 * localedata/locales/en_NG: Likewise.
23025 * localedata/locales/en_NZ: Likewise.
23026 * localedata/locales/en_PH: Likewise.
23027 * localedata/locales/en_SG: Likewise.
23028 * localedata/locales/en_US: Likewise.
23029 * localedata/locales/en_ZA: Likewise.
23030 * localedata/locales/en_ZM: Likewise.
23031 * localedata/locales/en_ZW: Likewise.
23032 * localedata/locales/eo: Likewise.
23033 * localedata/locales/es_AR: Likewise.
23034 * localedata/locales/es_BO: Likewise.
23035 * localedata/locales/es_CL: Likewise.
23036 * localedata/locales/es_CO: Likewise.
23037 * localedata/locales/es_CR: Likewise.
23038 * localedata/locales/es_CU: Likewise.
23039 * localedata/locales/es_DO: Likewise.
23040 * localedata/locales/es_EC: Likewise.
23041 * localedata/locales/es_ES: Likewise.
23042 * localedata/locales/es_GT: Likewise.
23043 * localedata/locales/es_HN: Likewise.
23044 * localedata/locales/es_MX: Likewise.
23045 * localedata/locales/es_NI: Likewise.
23046 * localedata/locales/es_PA: Likewise.
23047 * localedata/locales/es_PE: Likewise.
23048 * localedata/locales/es_PR: Likewise.
23049 * localedata/locales/es_PY: Likewise.
23050 * localedata/locales/es_SV: Likewise.
23051 * localedata/locales/es_US: Likewise.
23052 * localedata/locales/es_UY: Likewise.
23053 * localedata/locales/es_VE: Likewise.
23054 * localedata/locales/et_EE: Likewise.
23055 * localedata/locales/eu_ES: Likewise.
23056 * localedata/locales/eu_ES@euro: Likewise.
23057 * localedata/locales/fa_IR: Likewise.
23058 * localedata/locales/ff_SN: Likewise.
23059 * localedata/locales/fi_FI: Likewise.
23060 * localedata/locales/fil_PH: Likewise.
23061 * localedata/locales/fo_FO: Likewise.
23062 * localedata/locales/fr_BE: Likewise.
23063 * localedata/locales/fr_CA: Likewise.
23064 * localedata/locales/fr_CH: Likewise.
23065 * localedata/locales/fr_FR: Likewise.
23066 * localedata/locales/fr_LU: Likewise.
23067 * localedata/locales/fur_IT: Likewise.
23068 * localedata/locales/fy_DE: Likewise.
23069 * localedata/locales/fy_NL: Likewise.
23070 * localedata/locales/ga_IE: Likewise.
23071 * localedata/locales/gd_GB: Likewise.
23072 * localedata/locales/gez_ER: Likewise.
23073 * localedata/locales/gez_ET: Likewise.
23074 * localedata/locales/gl_ES: Likewise.
23075 * localedata/locales/gu_IN: Likewise.
23076 * localedata/locales/gv_GB: Likewise.
23077 * localedata/locales/ha_NG: Likewise.
23078 * localedata/locales/hak_TW: Likewise.
23079 * localedata/locales/he_IL: Likewise.
23080 * localedata/locales/hi_IN: Likewise.
23081 * localedata/locales/hif_FJ: Likewise.
23082 * localedata/locales/hne_IN: Likewise.
23083 * localedata/locales/hr_HR: Likewise.
23084 * localedata/locales/hsb_DE: Likewise.
23085 * localedata/locales/ht_HT: Likewise.
23086 * localedata/locales/hu_HU: Likewise.
23087 * localedata/locales/hy_AM: Likewise.
23088 * localedata/locales/i18n: Likewise.
23089 * localedata/locales/ia_FR: Likewise.
23090 * localedata/locales/id_ID: Likewise.
23091 * localedata/locales/ig_NG: Likewise.
23092 * localedata/locales/ik_CA: Likewise.
23093 * localedata/locales/is_IS: Likewise.
23094 * localedata/locales/it_CH: Likewise.
23095 * localedata/locales/it_IT: Likewise.
23096 * localedata/locales/iu_CA: Likewise.
23097 * localedata/locales/ja_JP: Likewise.
23098 * localedata/locales/ka_GE: Likewise.
23099 * localedata/locales/kk_KZ: Likewise.
23100 * localedata/locales/kl_GL: Likewise.
23101 * localedata/locales/kn_IN: Likewise.
23102 * localedata/locales/ko_KR: Likewise.
23103 * localedata/locales/kok_IN: Likewise.
23104 * localedata/locales/ks_IN: Likewise.
23105 * localedata/locales/ks_IN@devanagari: Likewise.
23106 * localedata/locales/ku_TR: Likewise.
23107 * localedata/locales/kw_GB: Likewise.
23108 * localedata/locales/ky_KG: Likewise.
23109 * localedata/locales/lb_LU: Likewise.
23110 * localedata/locales/lg_UG: Likewise.
23111 * localedata/locales/li_BE: Likewise.
23112 * localedata/locales/li_NL: Likewise.
23113 * localedata/locales/lij_IT: Likewise.
23114 * localedata/locales/ln_CD: Likewise.
23115 * localedata/locales/lo_LA: Likewise.
23116 * localedata/locales/lt_LT: Likewise.
23117 * localedata/locales/lv_LV: Likewise.
23118 * localedata/locales/lzh_TW: Likewise.
23119 * localedata/locales/mag_IN: Likewise.
23120 * localedata/locales/mai_IN: Likewise.
23121 * localedata/locales/mg_MG: Likewise.
23122 * localedata/locales/mhr_RU: Likewise.
23123 * localedata/locales/mi_NZ: Likewise.
23124 * localedata/locales/mk_MK: Likewise.
23125 * localedata/locales/ml_IN: Likewise.
23126 * localedata/locales/mn_MN: Likewise.
23127 * localedata/locales/mni_IN: Likewise.
23128 * localedata/locales/mr_IN: Likewise.
23129 * localedata/locales/ms_MY: Likewise.
23130 * localedata/locales/mt_MT: Likewise.
23131 * localedata/locales/my_MM: Likewise.
23132 * localedata/locales/nan_TW: Likewise.
23133 * localedata/locales/nan_TW@latin: Likewise.
23134 * localedata/locales/nb_NO: Likewise.
23135 * localedata/locales/nds_DE: Likewise.
23136 * localedata/locales/nds_NL: Likewise.
23137 * localedata/locales/ne_NP: Likewise.
23138 * localedata/locales/nhn_MX: Likewise.
23139 * localedata/locales/niu_NU: Likewise.
23140 * localedata/locales/niu_NZ: Likewise.
23141 * localedata/locales/nl_AW: Likewise.
23142 * localedata/locales/nl_BE: Likewise.
23143 * localedata/locales/nl_NL: Likewise.
23144 * localedata/locales/nn_NO: Likewise.
23145 * localedata/locales/nr_ZA: Likewise.
23146 * localedata/locales/nso_ZA: Likewise.
23147 * localedata/locales/oc_FR: Likewise.
23148 * localedata/locales/om_ET: Likewise.
23149 * localedata/locales/om_KE: Likewise.
23150 * localedata/locales/or_IN: Likewise.
23151 * localedata/locales/os_RU: Likewise.
23152 * localedata/locales/pa_IN: Likewise.
23153 * localedata/locales/pa_PK: Likewise.
23154 * localedata/locales/pap_AW: Likewise.
23155 * localedata/locales/pap_CW: Likewise.
23156 * localedata/locales/pl_PL: Likewise.
23157 * localedata/locales/ps_AF: Likewise.
23158 * localedata/locales/pt_BR: Likewise.
23159 * localedata/locales/pt_PT: Likewise.
23160 * localedata/locales/quz_PE: Likewise.
23161 * localedata/locales/raj_IN: Likewise.
23162 * localedata/locales/ro_RO: Likewise.
23163 * localedata/locales/ru_RU: Likewise.
23164 * localedata/locales/ru_UA: Likewise.
23165 * localedata/locales/rw_RW: Likewise.
23166 * localedata/locales/sa_IN: Likewise.
23167 * localedata/locales/sat_IN: Likewise.
23168 * localedata/locales/sc_IT: Likewise.
23169 * localedata/locales/sd_IN: Likewise.
23170 * localedata/locales/sd_IN@devanagari: Likewise.
23171 * localedata/locales/se_NO: Likewise.
23172 * localedata/locales/sgs_LT: Likewise.
23173 * localedata/locales/shs_CA: Likewise.
23174 * localedata/locales/si_LK: Likewise.
23175 * localedata/locales/sid_ET: Likewise.
23176 * localedata/locales/sk_SK: Likewise.
23177 * localedata/locales/sl_SI: Likewise.
23178 * localedata/locales/sm_WS: Likewise.
23179 * localedata/locales/so_DJ: Likewise.
23180 * localedata/locales/so_ET: Likewise.
23181 * localedata/locales/so_KE: Likewise.
23182 * localedata/locales/so_SO: Likewise.
23183 * localedata/locales/sq_AL: Likewise.
23184 * localedata/locales/sq_MK: Likewise.
23185 * localedata/locales/sr_ME: Likewise.
23186 * localedata/locales/sr_RS: Likewise.
23187 * localedata/locales/sr_RS@latin: Likewise.
23188 * localedata/locales/ss_ZA: Likewise.
23189 * localedata/locales/st_ZA: Likewise.
23190 * localedata/locales/sv_FI: Likewise.
23191 * localedata/locales/sv_SE: Likewise.
23192 * localedata/locales/sw_KE: Likewise.
23193 * localedata/locales/sw_TZ: Likewise.
23194 * localedata/locales/szl_PL: Likewise.
23195 * localedata/locales/ta_IN: Likewise.
23196 * localedata/locales/ta_LK: Likewise.
23197 * localedata/locales/tcy_IN: Likewise.
23198 * localedata/locales/te_IN: Likewise.
23199 * localedata/locales/tg_TJ: Likewise.
23200 * localedata/locales/th_TH: Likewise.
23201 * localedata/locales/the_NP: Likewise.
23202 * localedata/locales/ti_ER: Likewise.
23203 * localedata/locales/ti_ET: Likewise.
23204 * localedata/locales/tig_ER: Likewise.
23205 * localedata/locales/tk_TM: Likewise.
23206 * localedata/locales/tl_PH: Likewise.
23207 * localedata/locales/tn_ZA: Likewise.
23208 * localedata/locales/to_TO: Likewise.
23209 * localedata/locales/tpi_PG: Likewise.
23210 * localedata/locales/tr_CY: Likewise.
23211 * localedata/locales/tr_TR: Likewise.
23212 * localedata/locales/ts_ZA: Likewise.
23213 * localedata/locales/tt_RU: Likewise.
23214 * localedata/locales/tt_RU@iqtelif: Likewise.
23215 * localedata/locales/ug_CN: Likewise.
23216 * localedata/locales/uk_UA: Likewise.
23217 * localedata/locales/unm_US: Likewise.
23218 * localedata/locales/ur_IN: Likewise.
23219 * localedata/locales/ur_PK: Likewise.
23220 * localedata/locales/uz_UZ: Likewise.
23221 * localedata/locales/uz_UZ@cyrillic: Likewise.
23222 * localedata/locales/ve_ZA: Likewise.
23223 * localedata/locales/vi_VN: Likewise.
23224 * localedata/locales/wa_BE: Likewise.
23225 * localedata/locales/wae_CH: Likewise.
23226 * localedata/locales/wal_ET: Likewise.
23227 * localedata/locales/wo_SN: Likewise.
23228 * localedata/locales/xh_ZA: Likewise.
23229 * localedata/locales/yi_US: Likewise.
23230 * localedata/locales/yo_NG: Likewise.
23231 * localedata/locales/yue_HK: Likewise.
23232 * localedata/locales/yuw_PG: Likewise.
23233 * localedata/locales/zh_CN: Likewise.
23234 * localedata/locales/zh_HK: Likewise.
23235 * localedata/locales/zh_SG: Likewise.
23236 * localedata/locales/zh_TW: Likewise.
23237 * localedata/locales/zu_ZA: Likewise.
23238
23239 2017-11-13 Florian Weimer <fweimer@redhat.com>
23240
23241 * support/next_to_fault.h, support/next_to_fault.c: New files.
23242 * support/Makefile (libsupport-routines): Add next_to_fault.
23243 * resolv/tst-inet_pton.c (struct next_to_fault)
23244 (next_to_fault_allocate, next_to_fault_free): Remove.
23245 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23246
23247 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23248
23249 * elf/dl-support.c: Include <dl-procruntime.c>.
23250 * include/link.h: Include <link_map.h>.
23251 * sysdeps/generic/dl-procruntime.c: New file.
23252 * sysdeps/generic/link_map.h: Likewise.
23253 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23254 the writable ld.so namespace.
23255
23256 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23257
23258 timezone: pacify GCC -Wstringop-truncation
23259 Problem reported by Martin Sebor in:
23260 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23261 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23262
23263 2017-11-12 Florian Weimer <fweimer@redhat.com>
23264
23265 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23266 tst-xreadlink.
23267 (tests): Add tst-xreadlink.
23268 * support/support.h (xstrndup): Declare.
23269 * support/xunistd.h (xunlink, xreadlink): Declare.
23270 * support/temp_file.h (support_create_temp_directory): Declare.
23271 * support/temp_file.c (support_create_temp_directory): New function.
23272 * support/support_chroot.c (support_chroot_create): Use it.
23273 * support/xreadlink.c: New file.
23274 * support/xstrndup.c: Likewise.
23275 * support/xunlink.c: Likewise.
23276 * support/tst-xreadlink.c: Likewise.
23277
23278 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23279
23280 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23281
23282 2017-11-11 Florian Weimer <fweimer@redhat.com>
23283
23284 [BZ #22409]
23285 [BZ #22412]
23286 * resolv/res_comp.c (printable_string, binary_hnok)
23287 (binary_leading_dash): New functions.
23288 (res_hnok): Reimplement using these functions and ns_name_pton.
23289 (res_ownok): Likewise.
23290 (res_mailok): Reimplement using printable_string, ns_name_pton and
23291 binary_hnok.
23292 (res_dnok): Reimplement using printable_string and ns_name_pton.
23293 * resolv/tst-res_hnok.c (tests): Add additional tests.
23294 (LETTERDIGITS, PRINTABLE): Define.
23295 (do_test): Adjust one_char results.
23296
23297 2017-11-11 Florian Weimer <fweimer@redhat.com>
23298
23299 [BZ #22413]
23300 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23301 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23302
23303 2017-11-11 Florian Weimer <fweimer@redhat.com>
23304
23305 * resolv/tst-ns_name_pton.c: New file.
23306 * resolv/Makefile (tests): Add tst-ns_name_pton.
23307 (tst-ns_name_pton): Link against libresolv.
23308
23309 2017-11-11 Florian Weimer <fweimer@redhat.com>
23310
23311 * resolv/tst-res_hnok.c: New file.
23312 * resolv/Makefile (tests): Add tst-res_hnok.
23313 (tst-res_hnok): Link against libresolv.
23314
23315 2017-11-11 Florian Weimer <fweimer@redhat.com>
23316
23317 * resolv/tst-resolv-network.c: Use test framework instead explicit
23318 main function.
23319
23320 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23321
23322 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23323 <jmp_buf-macros.h>.
23324 [!_ISOMAC] (STR_HELPER): New.
23325 [!_ISOMAC] (STR): Likewise.
23326 [!_ISOMAC] (TEST_SIZE): Likewise.
23327 [!_ISOMAC] (TEST_ALIGN): Likewise.
23328 [!_ISOMAC] (TEST_OFFSET): Likewise.
23329 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23330 field offsets of jmp_buf as well as sigjmp_buf.
23331 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23332 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23333 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23334 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23335 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23336 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23337 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23338 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23339 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23340 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23341 Likewise.
23342 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23343 Likewise.
23344 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23346 Likewise.
23347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23348 Likewise.
23349 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23350 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23351 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23352 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23353 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23354 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23355 Likewise.
23356 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23357 Likewise.
23358 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23359 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23360 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23361
23362 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23363
23364 * include/float.h
23365 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23366 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23367 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23368 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23369 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23370 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23371 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23372 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23373 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23374 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23375 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23376 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23377 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23378 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23379 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23380 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23381 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23382 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23383 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23384 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23385 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23386 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23387 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23388 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23389 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23390 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23391 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23392 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23393 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23394 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23395 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23396 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23397 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23398 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23399 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23400 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23401 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23402 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23403 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23404 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23405 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23406 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23407 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23408 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23409 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23410 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23411 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23412 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23413 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23414 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23415 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23416 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23417 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23418 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23419 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23420 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23421 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23422 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23423 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23424 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23425 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23426 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23427 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23428 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23429 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23430 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23431 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23432 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23433 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23434 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23435 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23436 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23437 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23438 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23439 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23440 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23441 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23442 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23443 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23444 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23445 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23446 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23447 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23448 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23449 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23450 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23451 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23452 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23453
23454 * stdlib/tst-strtod.h (F16): New macro.
23455 (F32): Likewise.
23456 (F64): Likewise.
23457 (F32X): Likewise.
23458 (F64X): Likewise.
23459 (F128X): Likewise.
23460 (IF_FLOAT16): Likewise.
23461 (IF_FLOAT32): Likewise.
23462 (IF_FLOAT64): Likewise.
23463 (IF_FLOAT32X): Likewise.
23464 (IF_FLOAT64X): Likewise.
23465 (IF_FLOAT128X): Likewise.
23466 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23467 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23468 (STRTOD_TEST_FOREACH): Likewise.
23469 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23470 (CHOOSE_f64): Likewise.
23471 (CHOOSE_f32x): Likewise.
23472 (CHOOSE_f64x): Likewise.
23473
23474 2017-11-07 Andreas Schwab <schwab@suse.de>
23475
23476 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23477
23478 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23479
23480 [BZ #22403]
23481 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23482 to be escaped.
23483 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23484 to be escaped.
23485
23486 2017-11-07 Claude Paroz <claude@2xlibre.net>
23487
23488 [BZ #22403]
23489 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23490 to be escaped.
23491 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23492 to be escaped.
23493 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23494 to be escaped.
23495
23496 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23497
23498 [BZ #22298]
23499 * nptl/allocatestack.c (allocate_stack): Check if
23500 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23501 __PTHREAD_MUTEX_HAVE_PREV is defined.
23502 * nptl/descr.h (pthread): Likewise.
23503 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23504 Likewise.
23505 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23506 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23507 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23508 * sysdeps/nptl/bits/thread-shared-types.h
23509 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23510 defines.
23511 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23512 of __WORDSIZE for internal layout.
23513 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23514 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23515 instead of __WORDSIZE whether to use an union for __spins and __list
23516 fields.
23517 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23518 case.
23519 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23520 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23521 defines.
23522 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23523 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23524 Likewise.
23525 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23526 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23527 Likewise.
23528 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23529 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23530 Likewise.
23531 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23532 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23533 Likewise.
23534 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23535 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23536 Likewise.
23537 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23538 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23539 Likewise.
23540 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23541 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23542 Likewise.
23543 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23544 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23545 Likewise.
23546 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23547 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23548 Likewise.
23549 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23550 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23551 Likewise.
23552 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23553 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23554 Likewise.
23555 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23556 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23557 Likewise.
23558 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23559 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23560 Likewise.
23561 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23562 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23563 Likewise.
23564
23565 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23566 New macros.
23567 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23568 checks for expected input type size.
23569 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23570 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23571 Likewise.
23572 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23573 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23574 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23575 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23576 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23577 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23578 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23579 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23580 superflous runtime assert check.
23581 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23582 Likewise.
23583 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23584 Likewise.
23585 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23586 Likewise.
23587 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23588 Likewise.
23589 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23590 Likewise.
23591 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23592 Likewise.
23593 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23594 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23595 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23596 Likewise.
23597 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23598 Likewise.
23599 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23600 Likewise.
23601 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23602 Likewise.
23603 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23604 Likewise.
23605 * nptl/pthread_attr_setinheritsched.c
23606 (__pthread_attr_setinheritsched): Likewise.
23607 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23608 Likewise.
23609 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23610 Likewise.
23611 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23612 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23613 __old_pthread_attr_setstack): Likewise.
23614 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23615 Likewise.
23616 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23617 Likewise.
23618 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23619 Likewise.
23620 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23621 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23622 Likewise.
23623 * nptl/tst-typesizes.c: Remove file.
23624
23625 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23626 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23627 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23628 checks for internal pthread_mutex_t offsets.
23629 * sysdeps/aarch64/nptl/pthread-offsets.h
23630 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23631 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23632 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23633 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23634 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23635 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23636 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23637 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23638 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23639 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23640 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23641 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23642 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23643 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23644 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23645 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23646 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23647 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23648
23649 2017-11-07 Florian Weimer <fweimer@redhat.com>
23650
23651 * bits/mman-linux.h: Move ...
23652 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23653 comment.
23654 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23655 outdated comment.
23656
23657 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23658
23659 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23660 Redefine STRNLEN as __strnlen_power8.
23661
23662 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23663
23664 * signal/sighold.c (sighold): Optimize implementation.
23665
23666 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23667 __NR_rt_sigqueueinfo.
23668
23669 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23670 __sigtimedwait.
23671 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23672 assume __NR_rt_sigtimedwait.
23673 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23674 and add LIBC_CANCEL_HANDLED for cancellation marking.
23675 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23676
23677 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23678 (sysdeps_routines): Add memchr_noneon.
23679 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23680 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23681 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23682 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23683 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23684 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23685 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23686
23687 * sysdeps/arm/arm-ifunc.h: New file.
23688 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23689 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23690 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23691 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23692 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23693 (__memcpy_neon): Avoid create hidden alias.
23694 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23695 (__memcpy_vfp): Likewise.
23696 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23697 (sysdep_routines): Add memcpy_arm.
23698 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23699
23700 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23701
23702 [BZ #22362]
23703 * Makerules (make-link-multidir): New.
23704 * config.make.in (multidir): New.
23705 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23706 * configure: Regenerated.
23707 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23708 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23709 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23710 New target.
23711
23712 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23713
23714 [BZ #22402]
23715 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23716 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23717
23718 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23719
23720 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23721 to be escaped.
23722
23723 2017-11-04 Florian Weimer <fweimer@redhat.com>
23724
23725 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23726
23727 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23728
23729 * math/math.h [__HAVE_DISTINCT_FLOAT16
23730 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23731 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23732 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23733 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23734 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23735 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23736 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23737 (__MATH_TG_F32): New macro.
23738 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23739 (__MATH_TG_F64X): Likewise.
23740 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23741 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23742
23743 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23744
23745 * po/de.po: Update translations.
23746 * po/ru.po: Likewise.
23747
23748 2017-11-03 Florian Weimer <fweimer@redhat.com>
23749
23750 * manual/filesys.texi (Hard Links): Document linkat.
23751
23752 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23753
23754 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23755 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23756 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23757 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23758 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23759 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23760 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23761 the same as _Float128.
23762 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23763 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23764 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23765
23766 * stdlib/stdlib.h
23767 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23768 Declare.
23769 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23770 Likewise.
23771 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23772 Likewise.
23773 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23774 (strtof32x): Likewise.
23775 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23776 (strtof64x): Likewise.
23777 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23778 (strtof128x): Likewise.
23779 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23780 (strfromf16): Likewise.
23781 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23782 (strfromf32): Likewise.
23783 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23784 (strfromf64): Likewise.
23785 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23786 (strfromf32x): Likewise.
23787 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23788 (strfromf64x): Likewise.
23789 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23790 (strfromf128x): Likewise.
23791 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23792 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23793 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23794 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23795 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23796 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23797
23798 2017-11-03 Richard Henderson <rth@twiddle.net>
23799
23800 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23801
23802 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23803
23804 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23805
23806 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23807
23808 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23809 DT_TLSDESC_GOT initialization.
23810 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23811 (_dl_tlsdesc_resolve_hold): Likewise.
23812 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23813 (_dl_tlsdesc_resolve_hold): Likewise.
23814 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23815 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23816
23817 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23818
23819 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23820
23821 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23822
23823 [BZ #18572]
23824 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23825 non-lazily for R_ARM_TLS_DESC.
23826
23827 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23828
23829 [BZ #17078]
23830 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23831 R_ARM_TLS_DESC case.
23832 (elf_machine_lazy_rel): Remove the prelink check.
23833
23834 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23835
23836 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23837 DT_TLSDESC_GOT initialization.
23838 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23839 (_dl_tlsdesc_resolve_rela): Likewise.
23840 (_dl_tlsdesc_resolve_hold): Likewise.
23841 (_dl_tlsdesc_undefweak): Remove ldar.
23842 (_dl_tlsdesc_dynamic): Likewise.
23843 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23844 (_dl_tlsdesc_resolve_rela): Likewise.
23845 (_dl_tlsdesc_resolve_hold): Likewise.
23846 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23847 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23848 (_dl_tlsdesc_resolve_rela): Likewise.
23849 (_dl_tlsdesc_resolve_hold): Likewise.
23850
23851 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23852
23853 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23854 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23855
23856 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23857
23858 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23859 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23860
23861 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23862
23863 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23864 Declare.
23865 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23866 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23867 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23868 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23869 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23870 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23871 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23872 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23873 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23874 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23875 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23876
23877 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23878
23879 [BZ #22382]
23880 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23881 * localedata/locales/tpi_PG: Add standard header.
23882
23883 2017-11-02 Florian Weimer <fweimer@redhat.com>
23884
23885 test-errno-linux: quotactl can fail with EPERM in containers.
23886 * sysdeps/unix/sysv/linux/test-errno-linux.c
23887 (LIST, LIST_FORWARD): New macros.
23888 (check_error_in_list): New function.
23889 (test_wrp_rv): Accept list of permitted error codes.
23890 (test_wrp_rv2): Remove.
23891 (test_wrp): Call test_wrp_rv with list of error codes.
23892 (test_wrp2): Accept list of error codes.
23893 (do_test): Adjust. Allow EPERM for quotactl.
23894
23895 2017-11-02 Florian Weimer <fweimer@redhat.com>
23896
23897 * stdio-common/bug16.c (do_test): Use array_length.
23898 * stdio-common/errlist.c (_sys_nerr): Likewise.
23899 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23900 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23901 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23902 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23903 (do_test): Use array_length.
23904 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23905 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23906 * stdio-common/tst-printf-round.c (do_test): Likewise.
23907 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23908 (CHECK): Use array_length.
23909 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23910 * stdio-common/tstscanf.c (main): Likewise.
23911 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23912
23913 2017-11-02 Florian Weimer <fweimer@redhat.com>
23914
23915 Add array_length and array_end macros.
23916 * include/array_length.h: New file.
23917
23918 2017-11-02 Florian Weimer <fweimer@redhat.com>
23919
23920 [BZ #22332]
23921 * posix/tst-glob-tilde.c (do_noescape): New variable.
23922 (one_test): Process it.
23923 (do_test): Set do_noescape. Add unescaping test case.
23924
23925 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23926
23927 * math/complex.h
23928 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23929 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23930 with appropriate macros defined and undefined.
23931 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23932 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23933 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23934 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23935 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23936 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23937 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23938 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23939 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23940 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23941
23942 * math/complex.h
23943 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23944 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23945 that for long double. Do not condition define and undefine of
23946 _Mdouble_complex_ on [__CFLOAT128].
23947
23948 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23949
23950 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23951 of <sysdeps/generic/sysdep.h>.
23952 (ALIGNARG): Removed.
23953 (ASM_SIZE_DIRECTIVE): Likewise.
23954 (ENTRY): Likewise.
23955 (END): Likewise.
23956 (ENTRY_CHK): Likewise.
23957 (END_CHK): Likewise.
23958 (syscall_error): Likewise.
23959 (mcount): Likewise.
23960 (PSEUDO_END): Likewise.
23961 (L): Likewise.
23962 (atom_text_section): Likewise.
23963 * sysdeps/x86/sysdep.h: New file.
23964 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23965 of <sysdeps/generic/sysdep.h>.
23966 (ALIGNARG): Removed.
23967 (ASM_SIZE_DIRECTIVE): Likewise.
23968 (ENTRY): Likewise.
23969 (END): Likewise.
23970 (ENTRY_CHK): Likewise.
23971 (END_CHK): Likewise.
23972 (syscall_error): Likewise.
23973 (mcount): Likewise.
23974 (PSEUDO_END): Likewise.
23975 (L): Likewise.
23976 (atom_text_section): Likewise.
23977
23978 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23979
23980 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23981 category of LC_CTYPE set to "i18n:2012".
23982 * localedata/locales/i18n_ctype: Regenerate.
23983
23984 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23985
23986 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23987 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23988 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23989 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23990
23991 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23992 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23993 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23994 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23995
23996 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23997
23998 * math/complex.h
23999 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
24000 New macro.
24001 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
24002 Likewise.
24003 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
24004 Likewise.
24005 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24006 (CMPLXF32X): Likewise.
24007 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24008 (CMPLXF64X): Likewise.
24009 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24010 (CMPLXF128X): Likewise.
24011
24012 * math/math.h
24013 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
24014 (__MATH_EVAL_FMT2): Define to add 0.0f.
24015
24016 2017-10-31 Alan Modra <amodra@gmail.com>
24017
24018 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
24019 include sysdep.h.
24020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
24021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
24022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
24023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
24024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
24025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
24026 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24027 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24028 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24031 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24033 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24034 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24035 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24036 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24037 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24038 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24039 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24040 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24041 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24042 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24043 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24044 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24045 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24046 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24047 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24048 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24049 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24050 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24051 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24052 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24053 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24054 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24055 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24056 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24057 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24058 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24059 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24060 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24061 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24062 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24063 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24064 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24065 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24066 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24067 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24068 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24069 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24070 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24071 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24072 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24073 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24074 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24075 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24076 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24077 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24078 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24079 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24080 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24081 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24082 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24083 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24084 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24085 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24086 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24087 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24088 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24089
24090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24091 include sysdep.h and math_ldbl_opt.h.
24092
24093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24094 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
24095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24096 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24099 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24104 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24108 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24110 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24114 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24118 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24119
24120 2017-10-31 Alan Modra <amodra@gmail.com>
24121
24122 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24123 string/strncase_l.c, not string/strncase.c.
24124 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24125 (libc_hidden_def): Redefine.
24126
24127 2017-10-31 Alan Modra <amodra@gmail.com>
24128
24129 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24130 (__STRCMP, STRCMP, __strcasecmp_l): Define.
24131 (__strcasecmp): Don't define.
24132
24133 2017-10-31 Alan Modra <amodra@gmail.com>
24134
24135 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24136 IS_IN (libc).
24137 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24138 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24139 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24140
24141 2017-10-31 Alan Modra <amodra@gmail.com>
24142
24143 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24144 USE_AS_STPNCPY.
24145
24146 2017-10-31 Alan Modra <amodra@gmail.com>
24147
24148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24149 Redefine only when SHARED.
24150
24151 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24152
24153 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24154 Include <bits/math-finite.h> with appropriate macros defined and
24155 undefined.
24156 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24157 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24158 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24159 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24160 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24161
24162 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24163 [!_Mlong_double_] (_Mlong_double_): Likewise.
24164 [!_Mfloat16_] (_Mfloat16_): Likewise.
24165 [!_Mfloat32_] (_Mfloat32_): Likewise.
24166 [!_Mfloat64_] (_Mfloat64_): Likewise.
24167 [!_Mfloat128_] (_Mfloat128_): Likewise.
24168 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24169 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24170 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24171 (_Mdouble_): Define without indirection through those macros.
24172 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24173 [!_Mfloat128_] (_Mfloat128_): Likewise.
24174 [_Mlong_double_] (_Mlong_double_): Likewise.
24175 (_Mdouble_): Define without indirection through those macros.
24176 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24177 not add -D_Mlong_double_=double.
24178 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24179 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24180
24181 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24182
24183 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24184
24185 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24186
24187 * sysdeps/x86/libc-start.c: Reformat.
24188
24189 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24190
24191 [BZ #22353]
24192 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24193 (1): Renamed to ...
24194 (L(Src0)): This.
24195 (L(Src1)): New.
24196 (L(Src2)): Likewise.
24197 (L(1)): Renamed to ...
24198 (L(Src3)): This.
24199
24200 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24201
24202 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24203 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24204 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24205 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24206 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24207 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24208 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24209 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24210 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24211 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24212 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24213 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24214 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24215 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24216 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24217 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24218 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24219 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24220 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24221 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24222 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24223 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24224 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24225 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24226 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24227 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24228 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24229 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24230 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24231 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24232 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24233 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24234 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24235 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24236 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24237 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24238 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24239 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24240 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24241 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24242 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24243 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24244 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24245 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24246 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24247 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24248 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24249 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24250 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24251 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24252 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24253 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24254 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24255 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24256 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24257 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24258 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24259 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24260 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24261 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24262 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24263 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24264 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24265 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24266 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24267 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24268
24269 2017-10-30 Florian Weimer <fweimer@redhat.com>
24270
24271 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24272 always defined.
24273 * io/tst-mkdirat.c (do_test): Likewise.
24274 * io/tst-mkfifoat.c (do_test): Likewise.
24275 * io/tst-mknodat.c (do_test): Likewise.
24276 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24277 * locale/programs/locale.c (select_dirs): Likewise.
24278 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24279 * posix/bug-glob2.c (my_readdir): Likewise.
24280 * posix/tst-dir.c (main): Likewise.
24281 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24282 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24283
24284 2017-10-30 Florian Weimer <fweimer@redhat.com>
24285
24286 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24287 just __USE_GNU.
24288
24289 2017-10-30 Florian Weimer <fweimer@redhat.com>
24290
24291 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24292 Convert to support/test-driver.c.
24293 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24294 New macro parameters.
24295 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24296 * posix/tst-gnuglob.c: New file.
24297 * posix/tst-gnuglob64.c: Likewise.
24298 * posix/Makefile (tests): Add tst-gnuglob64.
24299
24300 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24301
24302 [BZ #19485]
24303 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24304 and use a better translation for March in “mon”.
24305 * localedata/locales/csb_PL: Use more ASCII to improve the
24306 readability of the source.
24307
24308 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24309
24310 [BZ #13953]
24311 * localedata/locales/km_KH: Use ASCII as much
24312 as possible for better readability of the source and
24313 remove useless comments.
24314 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24315 was commented out and apparently wrong anyway because it was
24316 using Lao characters. If Buddhist era should be used
24317 for km_KH, a native speaker should write the correct formaat
24318 for Khmer.
24319 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24320 (According to CLDR, the first weekday for Cambodia is Sunday).
24321 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24322 (These were using Lao characters which must be wrong. If we get
24323 the correct data from a native speaker, we could add it back, until
24324 then it is better not to have name_mr and name_mrs at all than
24325 having it wrong).
24326
24327 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24328
24329 * locale/loadlocale.c: Correct size of
24330 _nl_value_type_LC_<category> arrays.
24331
24332 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24333
24334 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24335 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24336 with appropriate macros defined and undefined.
24337 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24338 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24339 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24340 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24341 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24342
24343 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24344
24345 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24346 "-O2 -march=i586".
24347
24348 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24349
24350 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24351 with lowercase letters to make it agree with CLDR.
24352
24353 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24354
24355 [BZ #15260]
24356 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24357 first letters of yesstr and nostr in yesexpr and noexpr,
24358 not for the full words.
24359 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24360 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24361 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24362 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24363 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24364 first letters of yesstr and nostr in yesexpr and noexpr,
24365 until now only English was matched in yesexpr and noexpr.
24366 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24367 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24368 fil but not for tl. As tl and fil are very similar, using fil
24369 is probably better than using English.
24370
24371 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24372
24373 [BZ #21706]
24374 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24375 in yesstr and nostr.
24376
24377 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24378
24379 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24380 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24381 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24382 Likewise.
24383 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24384 Likewise.
24385 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24386 Likewise.
24387 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24388 Likewise.
24389 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24390 (SNANF128X): Likewise.
24391
24392 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24393 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24394 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24395 (HUGE_VAL_F32): Likewise.
24396 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24397 (HUGE_VAL_F64): Likewise.
24398 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24399 (HUGE_VAL_F32X): Likewise.
24400 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24401 (HUGE_VAL_F64X): Likewise.
24402 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24403 (HUGE_VAL_F128X): Likewise.
24404
24405 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24406
24407 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24408 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24409 for the br_FR locale.
24410
24411 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24412
24413 [BZ #21706]
24414 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24415
24416 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24417
24418 * locale/programs/record-status.h: Define globals, and function
24419 prototypes. Move function bodies...
24420 * locale/programs/record-status.c: ... to here. New file.
24421 * iconv/Makefile (iconv_prog-modules): Add record-status.
24422 * locale/Makefile (lib-modules): Likewise.
24423 * iconv/iconv_prog.c: Remove verbose.
24424 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24425 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24426 record a warning about ASCII compatibility.
24427 * locale/programs/ld-monetary.c (monetary_finish): If
24428 warn_int_curr_symbol is true then record a warning about the symbol
24429 not being in our ISO 4217 list.
24430 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24431 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24432 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24433 (OPT_NO_WARN): Define.
24434 (OPT_WARN): Define.
24435 (options): Add entry for --no-warnings, and --warnings.
24436 (set_warnings): New function to enable/disable warnings.
24437 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24438 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24439 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24440 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24441 Pass flags to generate_locale.
24442 (generate_locale): Accept new flag argument and pass it to localedef
24443 invocation.
24444 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24445 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24446
24447 * localedata/Makefile (test-input-data): Use full file name.
24448 * localedata/da_DK.in: Rename to...
24449 * localedata/da_DK.ISO-8859-1.in: ...this.
24450 * localedata/de_DE.in: Rename to...
24451 * localedata/de_DE.ISO-8859-1.in: ...this.
24452 * localedata/en_US.in: Rename to...
24453 * localedata/en_US.ISO-8859-1.in: ...this.
24454 * localedata/fr_FR.in: Rename to...
24455 * localedata/fr_FR.UTF-8.in: ... this.
24456 * localedata/hr_HR.in: Rename to...
24457 * localedata/hr_HR.ISO-8859-2.in: ...this.
24458 * localedata/hu_HU.in: Rename to...
24459 * localedata/hu_HU.UTF-8.in: ...this.
24460 * localedata/si_LK.in: Rename to...
24461 * localedata/si_LK.UTF-8.in: ...this.
24462 * localedata/sv_SE.in: Rename to...
24463 * localedata/sv_SE.ISO-8859-1.in: ...this.
24464 * localedata/tr_TR.in: Rename to...
24465 * localedata/tr_TR.UTF-8.in: ...this.
24466 * localedata/uk_UA.in: Rename to...
24467 * localedata/uk_UA.UTF-8.in: ...this.
24468 * localedata/sort-test.sh: Test file is locale name with the
24469 suffix.
24470
24471 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24472 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24473 file.
24474 * localedata/locales/i18n_ctype: Regenerate.
24475 * localedata/locales/tr_TR: Likewise.
24476 * localedata/locales/translit_circle: Likewise.
24477 * localedata/locales/translit_cjk_compat: Likewise.
24478 * localedata/locales/translit_combining: Likewise.
24479 * localedata/locales/translit_compat: Likewise.
24480 * localedata/locales/translit_font: Likewise.
24481 * localedata/locales/translit_fraction: Likewise.
24482
24483 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24484
24485 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24486 lxvd2x/stxvd2x with lvx/stvx.
24487 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24488
24489 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24490
24491 * include/alloc_buffer.h: Replace "if if " with "if " in
24492 comments.
24493 * sysdeps/mips/memcpy.S: Likkewise.
24494 * sysdeps/mips/memset.S: Likewise.
24495 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24496 Likewise.
24497 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24498 Likewise.
24499 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24500 Likewise.
24501
24502 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24503
24504 [BZ #15261]
24505 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24506 yesexpr and noexpr.
24507 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24508 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24509 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24510 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24511 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24512 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24513 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24514
24515 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24516
24517 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24518 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24519 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24520 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24521 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24522 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24523 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24524 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24525 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24526 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24527 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24528 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24529
24530 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24531
24532 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24533 as possible for better readability of the source.
24534 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24535 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24536 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24537 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24538 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24539 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24540 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24541 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24542 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24543 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24544 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24545 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24546 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24547 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24548 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24549 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24550 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24551 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24552 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24553 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24554 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24555 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24556 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24557 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24558 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24559 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24560 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24561 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24562 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24563 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24564 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24565 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24566 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24567 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24568 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24569 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24570 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24571 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24572 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24573 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24574 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24575 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24576 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24577 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24578 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24579 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24580 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24581 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24582 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24583 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24584 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24585 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24586 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24587 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24588 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24589 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24590 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24591 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24592 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24593 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24594 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24595 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24596 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24597 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24598 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24599 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24600 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24601 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24602 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24603 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24604 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24605 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24606 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24607 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24608 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24609 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24610 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24611 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24612 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24613 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24614 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24615 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24616 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24617 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24618 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24619 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24620 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24621 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24622 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24623 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24624 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24625 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24626 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24627 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24628 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24629 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24630 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24631 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24632 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24633 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24634 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24635 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24636 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24637 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24638 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24639 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24640 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24641 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24642 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24643 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24644 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24645 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24646 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24647 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24648 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24649 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24650 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24651 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24652 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24653 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24654 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24655 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24656 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24657 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24658 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24659 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24660 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24661 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24662 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24663 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24664 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24665 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24666 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24667 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24668 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24669 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24670 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24671 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24672 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24673 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24674 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24675 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24676 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24677 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24678 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24679 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24680 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24681 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24682 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24683 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24684 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24685 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24686 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24687 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24688 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24689 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24690 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24691 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24692 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24693 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24694 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24695 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24696 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24697 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24698 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24699 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24700 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24701 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24702 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24703 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24704 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24705 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24706 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24707 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24708
24709 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24710
24711 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24712 (Use first letters of yesstr and nostr correctly instead of using
24713 full words).
24714
24715 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24716
24717 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24718 (Use first letters of yesstr and nostr correctly).
24719
24720 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24721
24722 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24723 also check for the first characters of yesstr and nostr.
24724 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24725 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24726
24727 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24728
24729 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24730 also check for Chinese characters.
24731
24732 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24733
24734 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24735 match also for the contents of yesstr and nostr. As the first letter
24736 of yesstr and nostr is equal, checking only for the first letter
24737 is not enough.
24738
24739 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24740
24741 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24742 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24743
24744 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24745
24746 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24747 of main contributor.
24748
24749 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24750
24751 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24752 instead of using English.
24753
24754 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24755
24756 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24757 by including the first letters of nostr and yesexpr in the regexp.
24758 Also make it more readable by using ASCII where possible.
24759
24760 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24761
24762 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24763 the first letter of nostr in the regexp. It agrees with CLDR now.
24764 Also make it more readable by using ASCII where possible.
24765
24766 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24767
24768 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24769 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24770 these strings contain a U+17D6 (which somewhat looks like a colon)
24771 instead of a real colon to separate the full words for “yes”
24772 and “no” from the single letter responses.
24773
24774 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24775
24776 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24777 it agree with CLDR (include the first letter of yesstr).
24778 Also make it more readable by using ASCII where possible.
24779
24780 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24781
24782 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24783 and improve yesexpr and noexpr. The yesstr and nostr apparently
24784 came from CLDR. And CLDR has a bug there: these strings contain
24785 a U+0903 (which looks like a colon) instead of a real colon
24786 to separate the full words for “yes” and “no” from the single
24787 letter responses.
24788
24789 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24790
24791 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24792 letters of the full yesstr and nostr in yesexpr and noexpr.
24793
24794 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24795
24796 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24797 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24798 * localedata/locales/an_ES: Make source more readable by using ASCII
24799 where possible.
24800
24801 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24802
24803 [BZ #20952]
24804 * localedata/locales/yuw_PG: New file.
24805 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24806 * locale/iso-639.def: Add Yau (Uruwa).
24807
24808 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24809
24810 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24811
24812 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24813
24814 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24815 (__libc_realloc): Likewise.
24816 (_mid_memalign): Likewise.
24817 (__libc_calloc): Likewise.
24818
24819 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24820
24821 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24822 by adding the generic +1 and -0 as in all other locales.
24823 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24824 day names and make it more readable by using ASCII where possible.
24825
24826 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24827
24828 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24829 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24830
24831 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24832
24833 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24834 WNOHANG in waitpid call.
24835
24836 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24837
24838 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24839 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24840
24841 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24842 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24843 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24844 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24845 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24846 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24847 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24848 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24849 variables.
24850
24851 2017-10-23 Michael Collison <michael.collison@arm.com>
24852
24853 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24854 with __builtin_sqrt.
24855 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24856 with __builtin_sqrtf.
24857 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24858 with __builtin_ceil.
24859 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24860 with __builtin_ceilf.
24861 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24862 with __builtin_floor.
24863 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24864 with __builtin_floorf.
24865 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24866 with __builtin_fma.
24867 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24868 with __builtin_fmaf.
24869 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24870 with __builtin_fmax.
24871 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24872 with __builtin_fmaxf.
24873 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24874 with __builtin_fmin.
24875 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24876 with __builtin_fminf.
24877 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24878 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24879 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24880 with builtin_rint and conversion to int.
24881 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24882 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24883 with builtin_llround.
24884 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24885 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24886 with builtin_rint and conversion to long int.
24887 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24888 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24889 with builtin_lround.
24890 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24891 with builtin_lroundf.
24892 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24893 statements with __builtin_nearbyint.
24894 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24895 statements with __builtin_nearbyintf.
24896 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24897 with __builtin_rint.
24898 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24899 with __builtin_rintf.
24900 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24901 with __builtin_round.
24902 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24903 with __builtin_roundf.
24904 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24905 with __builtin_trunc.
24906 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24907 with __builtin_truncf.
24908 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24909 and s_l[l]round[f].c too.
24910
24911 2017-10-23 Alan Modra <amodra@gmail.com>
24912
24913 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24914 Adjust stack after restoring regs. Add missing LR cfi_restore.
24915
24916 2017-10-23 Alan Modra <amodra@gmail.com>
24917
24918 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24919 Move LR save and frame setup/teardown and LR restore to
24920 immediately around memset call. Provide cfi.
24921
24922 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24923
24924 * sysdeps/i386/fpu/e_powf.S: Removed.
24925 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24926 * sysdeps/i386/fpu/w_powf.c: Likewise.
24927 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24928 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24929 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24930 Add e_powf-sse2.
24931 (CFLAGS-e_powf-sse2.c): New.
24932 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24933 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24934
24935 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24936
24937 * sysdeps/i386/fpu/e_log2f.S: Removed.
24938 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24939 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24940 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24941 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24942 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24943 Add e_log2f-sse2.
24944 (CFLAGS-e_log2f-sse2.c): New.
24945 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24946 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24947
24948 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24949
24950 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24951 Add e_powf-fma.
24952 (CFLAGS-e_powf-fma.c): New.
24953 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24954 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24955
24956 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24957
24958 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24959 Add e_log2f-fma.
24960 (CFLAGS-e_log2f-fma.c): New.
24961 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24962 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24963
24964 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24965
24966 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24967 Add e_logf-fma.
24968 (CFLAGS-e_logf-fma.c): New.
24969 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24970 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24971
24972 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24973
24974 * sysdeps/i386/fpu/e_logf.S: Removed.
24975 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24976 * sysdeps/i386/fpu/w_logf.c: Likewise.
24977 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24978 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24979 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24980 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24981 Add e_logf-sse2.
24982 (CFLAGS-e_logf-sse2.c): New.
24983 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24984 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24985
24986 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24987
24988 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24989 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24990 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24991 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24992 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24993 Add e_exp2f-sse2.
24994 (CFLAGS-e_exp2f-sse2.c): New.
24995 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24996 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24997
24998 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24999
25000 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25001 Add e_exp2f-fma.
25002 (CFLAGS-e_exp2f-fma.c): New.
25003 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
25004 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
25005
25006 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25007
25008 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
25009 * sysdeps/i386/fpu/e_expf.S: Likewise.
25010 * sysdeps/i386/fpu/math_errf.c: Likewise.
25011 * sysdeps/i386/fpu/w_expf.c: Likewise.
25012 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
25013 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
25014 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
25015 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
25016 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25017 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25018 Remove e_expf-ia32.
25019 (CFLAGS-e_expf-sse2.c): New.
25020 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
25021 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
25022
25023 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25024
25025 * sysdeps/x86_64/fpu/e_expf.S: Removed.
25026 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25027 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25028 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25029 e_expf.c.
25030 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25031 New.
25032 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25033 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25034 Renamed to ...
25035 (__redirect_expf): This.
25036 (SYMBOL_NAME): Changed to expf.
25037 (__ieee754_expf): Renamed to ...
25038 (__expf): This.
25039 (__GI___expf): This.
25040 (__ieee754_expf): Add strong_alias.
25041 (__expf_finite): Likewise.
25042 (__expf): New.
25043 Include <sysdeps/ieee754/flt-32/e_expf.c>.
25044
25045 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
25046
25047 [BZ #22332]
25048 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25049 unescaping.
25050
25051 2017-10-21 Florian Weimer <fweimer@redhat.com>
25052
25053 * posix/Makefile (tests): Add tst-glob-tilde.
25054 (tests-special): Add tst-glob-tilde-mem.out
25055 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25056 (tst-glob-tilde-mem.out): Add mtrace check.
25057 * posix/tst-glob-tilde.c: New file.
25058
25059 2017-10-20 Joseph Myers <joseph@codesourcery.com>
25060
25061 * bits/floatn-common.h: New file.
25062 * math/Makefile (headers): Add bits/floatn-common.h.
25063 * bits/floatn.h: Include <bits/floatn-common.h>.
25064 * sysdeps/ia64/bits/floatn.h: Likewise.
25065 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25066 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25067 * sysdeps/powerpc/bits/floatn.h: Likewise.
25068 * sysdeps/x86/bits/floatn.h: Likewise.
25069
25070 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25071
25072 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25073 indicates whether compiler emits an warning for alias for
25074 functions with incompatible types.
25075
25076 [BZ #22273]
25077 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25078 the auxiliary process is terminated by a signal before calling _exit
25079 or execve.
25080
25081 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25082
25083 [BZ #21265]
25084 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25085 New.
25086 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25087 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25088 and bit_arch_XSAVEC_Usable if needed.
25089 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25090 and bit_arch_Use_dl_runtime_resolve_opt.
25091 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25092 Removed.
25093 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25094 (bit_arch_Prefer_No_AVX512): Updated.
25095 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25096 (bit_arch_XSAVEC_Usable): New.
25097 (STATE_SAVE_OFFSET): Likewise.
25098 (STATE_SAVE_MASK): Likewise.
25099 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25100 (cpu_features): Add xsave_state_size and xsave_state_full_size.
25101 (index_arch_Use_dl_runtime_resolve_opt): Removed.
25102 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25103 (index_arch_XSAVEC_Usable): New.
25104 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25105 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
25106 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25107 is enabled.
25108 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25109 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25110 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25111 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25112 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25113 _dl_runtime_resolve_xsavec.
25114 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25115 Removed.
25116 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25117 instead of VEC_SIZE.
25118 (REGISTER_SAVE_BND0): Removed.
25119 (REGISTER_SAVE_BND1): Likewise.
25120 (REGISTER_SAVE_BND3): Likewise.
25121 (REGISTER_SAVE_RAX): Always defined to 0.
25122 (VMOV): Removed.
25123 (_dl_runtime_resolve_avx): Likewise.
25124 (_dl_runtime_resolve_avx_slow): Likewise.
25125 (_dl_runtime_resolve_avx_opt): Likewise.
25126 (_dl_runtime_resolve_avx512): Likewise.
25127 (_dl_runtime_resolve_avx512_opt): Likewise.
25128 (_dl_runtime_resolve_sse): Likewise.
25129 (_dl_runtime_resolve_sse_vex): Likewise.
25130 (USE_FXSAVE): New.
25131 (_dl_runtime_resolve_fxsave): Likewise.
25132 (USE_XSAVE): Likewise.
25133 (_dl_runtime_resolve_xsave): Likewise.
25134 (USE_XSAVEC): Likewise.
25135 (_dl_runtime_resolve_xsavec): Likewise.
25136 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25137 Removed.
25138 (_dl_runtime_resolve_avx512_opt): Likewise.
25139 (_dl_runtime_resolve_avx): Likewise.
25140 (_dl_runtime_resolve_avx_opt): Likewise.
25141 (_dl_runtime_resolve_sse): Likewise.
25142 (_dl_runtime_resolve_sse_vex): Likewise.
25143 (_dl_runtime_resolve_fxsave): New.
25144 (_dl_runtime_resolve_xsave): Likewise.
25145 (_dl_runtime_resolve_xsavec): Likewise.
25146
25147 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
25148
25149 [BZ #22320]
25150 CVE-2017-15670
25151 * posix/glob.c (__glob): Fix one-byte overflow.
25152
25153 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25154
25155 * malloc/malloc.c (sysdep-cancel.h): Add include.
25156
25157 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25158
25159 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25160
25161 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
25162
25163 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25164 (tests): Remove $(objpfx)ga_test depdendency.
25165 * resolv/ga_test.c: Remove file.
25166
25167 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25168
25169 [BZ #18812]
25170 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25171 * localedata/locales/kab_DZ: New file.
25172
25173 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25174
25175 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25176 _dl_relocate_static_pie instead of _dl_start to compute load
25177 address in static PIE.
25178
25179 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25180
25181 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25182
25183 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25184
25185 [BZ #13605]
25186 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25187 * localedata/locales/shn_MM: New file.
25188
25189 2017-10-20 Florian Weimer <fweimer@redhat.com>
25190
25191 [BZ #22321]
25192 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25193 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25194 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25195 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25196 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25197 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25198
25199 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25200
25201 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25202
25203 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25204
25205 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25206
25207 [BZ #22322]
25208 * sysdeps/mips/bits/long-double.h: Move to ....
25209 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25210
25211 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25212
25213 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25214
25215 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25216 H.J. Lu <hongjiu.lu@intel.com>
25217
25218 [BZ #22299]
25219 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25220 GLRO(dl_platform) to NULL.
25221 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25222 (modules-names): Add tst-platformmod-1 and
25223 x86_64/tst-platformmod-2.
25224 (CFLAGS-tst-platform-1.c): New.
25225 (CFLAGS-tst-platformmod-1.c): Likewise.
25226 (CFLAGS-tst-platformmod-2.c): Likewise.
25227 (LDFLAGS-tst-platformmod-2.so): Likewise.
25228 ($(objpfx)tst-platform-1): Likewise.
25229 ($(objpfx)tst-platform-1.out): Likewise.
25230 (tst-platform-1-ENV): Likewise.
25231 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25232 * sysdeps/x86_64/tst-platform-1.c: New file.
25233 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25234 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25235
25236 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25237
25238 [BZ #13994]
25239 * locale/iso-639.def: Add Karbi.
25240 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25241 * localedata/locales/mjw_IN: New file.
25242
25243 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25244
25245 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25246 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25247 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25248 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25249 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25250 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25251 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25252 <bits/floatn.h>.
25253 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25254 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25255 * manual/math.texi (Mathematics): Document additional architecture
25256 support for _Float128.
25257 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25258 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25259 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25260 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25261 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25262 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25263 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25264 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25265 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25266 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25267 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25268 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25269 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25270 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25271 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25272
25273 2017-10-18 Renlin Li <renlin.li@arm.com>
25274
25275 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25276 _DYNAMIC symbol to calculate load address.
25277
25278 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25279
25280 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25281 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25282 summary bits.
25283 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25284 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25285
25286 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25287
25288 [BZ #16777]
25289 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25290 and improve readability by using more ASCII.
25291 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25292 and improve readability by using more ASCII.
25293
25294 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25295
25296 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25297 not all targets support atomics on bool.
25298
25299 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25300
25301 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25302 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25303 __f128.
25304 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25305 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25306 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25307 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25308 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25309 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25310
25311 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25312
25313 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25314 defines.
25315
25316 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25317
25318 [BZ #22159]
25319 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25320 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25321 (do_check_remalloced_chunk): Fix build bug.
25322 (do_check_malloc_state): Add assert that checks arena->top.
25323 (malloc_consolidate): Remove initialization.
25324 (int_mallinfo): Remove call to malloc_consolidate.
25325 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25326
25327 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25328
25329 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25330 (have_fastchunks): Remove.
25331 (clear_fastchunks): Remove.
25332 (set_fastchunks): Remove.
25333 (malloc_state): Add have_fastchunks.
25334 (malloc_init_state): Use have_fastchunks.
25335 (do_check_malloc_state): Remove incorrect invariant checks.
25336 (_int_malloc): Use have_fastchunks.
25337 (_int_free): Likewise.
25338 (malloc_consolidate): Likewise.
25339
25340 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25341
25342 * malloc/malloc.c (tcache_put): Inline.
25343 (tcache_get): Inline.
25344
25345 2017-10-17 Jordi Mallach <jordi@gnu.org>
25346
25347 Aurelien Jarno <aurelien@aurel32.net>
25348 [BZ #2522]
25349 * localedata/locales/ca_ES@valencia: New file.
25350 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25351
25352 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25353
25354 [BZ #22296]
25355 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25356 < 6.x
25357
25358 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25359
25360 * scripts/build-many-glibcs.py (Context.add_all_configs):
25361 Add arm-linux-gnueabihf multiarch extra_glibcs.
25362
25363 * sysdeps/generic/ifunc-init.h: New file.
25364 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25365
25366 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25367
25368 [BZ #22019]
25369 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25370 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25371 * stdlib/tst-strfmon_l.c: adapt test case.
25372
25373 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25374
25375 * sysdeps/generic/float128-abi.h: New file.
25376 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25377 non-__prefixed symbols to ....
25378 * math/Versions: ... here. Include <float128-abi.h>.
25379 * stdlib/Versions ... and here. Include <float128-abi.h>
25380
25381 2017-10-16 Florian Weimer <fweimer@redhat.com>
25382
25383 * version.h (VERSION): Switch to ".9000" as the development
25384 version suffix.
25385
25386 2017-10-16 Florian Weimer <fweimer@redhat.com>
25387
25388 [BZ #22050]
25389 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25390 compat_symbol_reference to access non-default version.
25391
25392 2017-10-16 Florian Weimer <fweimer@redhat.com>
25393
25394 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25395
25396 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25397
25398 * include/shlib-compat.h (compat_symbol_reference): Update
25399 comment.
25400
25401 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25402
25403 * math/Makefile (test-types): Add
25404 $(type-float128-$(float128-alias-fcts)).
25405 * math/test-float128.h (TYPE_STR): Define conditional on
25406 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25407 (ULP_IDX): Likewise.
25408 (ULP_I_IDX): Likewise.
25409
25410 * stdlib/strtold.c: Include <bits/floatn.h>
25411 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25412 and later undefine as macro. Define as weak alias if
25413 [!USE_WIDE_CHAR].
25414 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25415 and later undefine as macro. Define as weak alias if
25416 [USE_WIDE_CHAR].
25417 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25418 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25419 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25420 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25421 Define and later undefine as macro. Define as weak alias if
25422 [USE_WIDE_CHAR].
25423 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25424 <bits/floatn.h>.
25425 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25426 Define and later undefine as macro. Define as weak alias if
25427 [!USE_WIDE_CHAR].
25428 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25429 Define and later undefine as macro. Define as weak alias if
25430 [USE_WIDE_CHAR].
25431
25432 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25433
25434 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25435 record_verbose messages.
25436
25437 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25438
25439 [BZ #22052]
25440 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25441 to silence -O3 -Wall warning with GCC 7.
25442
25443 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25444
25445 * Makeconfig (+link-static-before-libc): Use the first of
25446 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25447 * gmon/Makefile (tests): Add tst-gmon-static.
25448 (tests-static): Likewise.
25449 (CFLAGS-tst-gmon-static.c): New.
25450 (CRT-tst-gmon-static): Likewise.
25451 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25452 (tst-gmon-static-ENV): Likewise.
25453 (tests-special): Likewise.
25454 ($(objpfx)tst-gmon-static.out): Likewise.
25455 (clean-tst-gmon-static-data): Likewise.
25456 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25457 * gmon/tst-gmon-static-gprof.sh: New file.
25458 * gmon/tst-gmon-static.c: Likewise.
25459
25460 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25461
25462 [BZ #22295]
25463 * locale/programs/linereader.c (get_string): Don't warn on
25464 non-symbolic character.
25465
25466 [BZ #22294]
25467 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25468 int_curr_symbol.
25469
25470 [BZ #22292]
25471 * locale/programs/record-status.h: New file
25472 * locale/programs/locale.c: Add comment.
25473 * locale/programs/charmap-dir.c: Don't include error.h.
25474 (charmap_opendir): Use record_error.
25475 * locale/programs/charmap.c: Don't include error.h.
25476 (charmap_read): Use record_error, and record_warning.
25477 (parse_charmap): Likewise.
25478 * locale/programs/ld-address.c: Don't include error.h.
25479 (address_finish): Use record_error, and record_warning.
25480 * locale/programs/ld-collate.c: Don't include error.h.
25481 (collate_finish): Use record_error, and record_error_at_line.
25482 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25483 (ctype_class_new): Likewise.
25484 (ctype_map_new): Likewise.
25485 (set_one_default): Likewise.
25486 (set_class_defaults): Likewise.
25487 (translit_flatten): Likewise.
25488 (allocate_arrays): Use record_error, and record_verbose.
25489 * locale/programs/ld-identification.c: Don't include error.h.
25490 (indentation_finish): Use record_error and record_warning.
25491 * locale/programs/ld-measurement.c: Don't include error.h.
25492 (measurement_finish): Use record_error.
25493 * locale/programs/ld-messages.c
25494 (message_finish): Likewise.
25495 * locale/programs/ld-monetary.c
25496 (monetary_finish): Likewise.
25497 * locale/programs/ld-name.c (name_finish): Use record_error
25498 and record_warning.
25499 * locale/programs/ld-numeric.c
25500 (numeric_finish): Use record_error.
25501 * locale/programs/ld-paper.c: Don't include error.h.
25502 (paper_finish): Use record_error.
25503 * locale/programs/ld-telephone.c: Don't include error.h.
25504 (telephone_finish): Use record_error.
25505 * locale/programs/ld-time.c (time_finish): Likewise.
25506 * locale/programs/linereader.h (lr_error): Make inline func.
25507 * locale/programs/localedef.c: Define recorded_warning_count,
25508 and recorded_error_count.
25509 (main): Use record_error. Use recorded_error_count and
25510 recorded_warning_count to issue correct error returns.
25511 (add_to_readlist): Use record_error.
25512 (find_locale): Likewise.
25513 (load_locale): Likewise.
25514 * locale/programs/localedef.h: Remove be_quiet
25515 and WITH_CUR_LOCALE.
25516 * locale/programs/locarchive.c (compare_from_file): Use
25517 record_error.
25518 * locale/programs/locfile.c (write_locale_data): Use
25519 record_error.
25520 * locale/programs/repertoire.c: Dont include error.h.
25521 (repertoire_complain): Use record_error.
25522 * localedata/tst-fmon.sh: Expect failures from localedef.
25523 * localedata/tst-locale.sh: Likewise.
25524 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25525
25526 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25527 (REPORTS): Likewise.
25528 (check): Likewise.
25529 (i18n): Rename to...
25530 (i18n_ctype): ...this.
25531 (i18n-report): Rename to...
25532 (i18n_ctype-report): ...this.
25533 * localedata/locales/i18n_ctype: Regenerate.
25534 * localedata/locales/i18n: copy i18n_ctype.
25535
25536 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25537
25538 * stdlib/strfroml.c: Include <bits/floatn.h>.
25539 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25540 Define before include of <stdlib.h> and undefine afterwards, then
25541 define as weak alias.
25542
25543 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25544 Undefine and restore default definition. Use
25545 libm_alias_ldouble_other.
25546
25547 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25548
25549 [BZ #22153]
25550 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25551 in coredumps.
25552
25553 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25554
25555 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25556 Assign sym_map to be map for local symbols, as TLS relocations
25557 use sym_map to determine whether the symbol is defined and to
25558 extract the TLS information.
25559 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25560 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25561
25562 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25563
25564 [BZ #22189]
25565 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25566 (math_force_eval): Add powerpc version.
25567
25568 [BZ #22142]
25569 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25570 -DBL_MAX.
25571 (do_test): Likewise.
25572 * stdio-common/tst-printf.sh: Likewise.
25573 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25574 ifdef clause in order to set the carry bit right. Replace r0 by
25575 0 without changing the behavior.
25576
25577 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25578
25579 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25580 <libm-alias-ldouble.h>.
25581 (fabsl): Define using libm_alias_ldouble.
25582 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25583 <libm-alias-ldouble.h>.
25584 (fabsl): Define using libm_alias_ldouble.
25585
25586 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25587 Remove conditional code.
25588
25589 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25590 Rename to __clog10_internal_l.
25591 (__clog10_internal_l): Define aliases using
25592 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25593 with __clog10.
25594
25595 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25596
25597 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25598 * benchtests/sincosf-inputs: New file.
25599 * benchtests/cosf-inputs: New file.
25600 * benchtests/sinf-inputs: New file.
25601
25602 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25603
25604 * posix/tst-spawn.c (do_test): Wait for both children.
25605
25606 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25607
25608 [BZ #22284]
25609 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25610 tests-pie): Add tst-gmon-pie.
25611 (CFLAGS-tst-gmon-pie.c): New.
25612 (CRT-tst-gmon-pie): Likewise.
25613 (tst-gmon-pie-ENV): Likewise.
25614 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25615 ($(objpfx)tst-gmon-pie.out): Likewise.
25616 (clean-tst-gmon-pie-data): Likewise.
25617 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25618 * gmon/gmon.c [PIC]: Include <link.h>.
25619 [PIC] (callback): New function.
25620 (write_hist): Add an argument for load address. Subtract load
25621 address from PCs.
25622 (write_call_graph): Likewise.
25623 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25624 it to write_hist and write_call_graph.
25625 * gmon/tst-gmon-pie.c: New file.
25626
25627 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25628
25629 * math/Makefile (test-types-basic): New variable.
25630 (test-types): Likewise.
25631 (libm-test-support): Use $(test-types) instead of $(types).
25632 (libm-tests-base-normal): Likewise.
25633 (libm-tests-base-finite): Likewise.
25634 (libm-tests-base-inline): Likewise.
25635 (generated): Likewise.
25636 ($(objpfx)libm-test-support-$(t).c): Likewise.
25637 (libm-tests-for-type iterator): Likewise.
25638 (libm-test-support iterator): Likewise.
25639 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25640 (ulp_idx): Use ULP_IDX.
25641 * math/test-ldouble.h: Include <float.h>.
25642 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25643 (ULP_IDX): New macro.
25644 (ULP_I_IDX): Likewise.
25645 * math/test-double.h (ULP_IDX): Likewise.
25646 (ULP_I_IDX): Likewise.
25647 * math/test-float.h (ULP_IDX): Likewise.
25648 (ULP_I_IDX): Likewise.
25649 * math/test-float128.h (ULP_IDX): Likewise.
25650 (ULP_I_IDX): Likewise.
25651
25652 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25653
25654 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25655 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25656 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25657 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25658 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25659 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25660 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25661 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25662 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25663 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25664 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25665 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25666 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25667 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25668 (SINGLE_THREAD_BY_GLOBAL): Define.
25669 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25670 Likewise.
25671 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25672 Likewise.
25673 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25674 Likewise.
25675 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25676 Likewise.
25677 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25678 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25679 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25680 Likewise.
25681
25682 2017-10-11 Andreas Schwab <schwab@suse.de>
25683
25684 * nis/Makefile (aux): Remove.
25685 * nscd/Makefile (aux): Add nscd_hash.
25686 (nscd-modules): Likewise.
25687 ($(objpfx)nscd): Don't depend on libnsl.
25688 * nscd/nscd_hash.c: New file.
25689 * nscd/nscd_hash.h: Likewise.
25690 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25691 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25692 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25693 instead of <nis/rpcsvc/nis.h>.
25694 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25695
25696 2017-10-11 Florian Weimer <fweimer@redhat.com>
25697
25698 [BZ #22078]
25699 Avoid large NSS buffers with many addresses, aliases.
25700 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25701 using dynarrays and struct alloc_buffer.
25702 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25703 (tst-nss-files-hosts-multi): Link with -ldl.
25704 * nss/tst-nss-files-hosts-multi.c: New file.
25705
25706 2017-10-11 Florian Weimer <fweimer@redhat.com>
25707
25708 [BZ #18023]
25709 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25710 scratch_buffer. Eliminate gotos.
25711
25712 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25713
25714 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25715 libm_alias_ldouble_other.
25716 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25717 undefine and redefine.
25718 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25719 (exp10l): Do not define here.
25720 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25721 (weak_alias): Undefine and redefine.
25722 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25723 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25724 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25725 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25726
25727 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25728 [!__fma] (fma): Define using libm_alias_double.
25729 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25730 [!__fmaf] (fmaf): Define using libm_alias_float.
25731 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25732 (fmal): Define using libm_alias_ldouble.
25733
25734 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25735
25736 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25737 New macro.
25738 (libm_alias_double_other): Likewise.
25739 (libm_alias_double_r): Use libm_alias_double_other_r.
25740 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25741 New macro.
25742 (libm_alias_float_other): Likewise.
25743 (libm_alias_float_r): Use libm_alias_float_other_r.
25744 * sysdeps/generic/libm-alias-float128.h
25745 (libm_alias_float128_other_r): New macro.
25746 (libm_alias_float128_other): Likewise.
25747 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25748 * sysdeps/generic/libm-alias-ldouble.h
25749 (libm_alias_ldouble_other_r): New macro.
25750 (libm_alias_ldouble_other): Likewise.
25751 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25752 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25753 (libm_alias_double_other_r): New macro.
25754 (libm_alias_double_other): Likewise.
25755 (libm_alias_double_r): Use libm_alias_double_other_r.
25756 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25757 (libm_alias_ldouble_other_r): New macro.
25758 (libm_alias_ldouble_other): Likewise.
25759 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25760 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25761 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25762 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25763 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25764 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25765 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25766 * math/w_exp2f.c: Use libm_alias_float_other.
25767 * math/w_expf.c: Likewise.
25768 * math/w_log2f.c: Likewise.
25769 * math/w_logf.c: Likewise.
25770 * math/w_powf.c: Likewise.
25771 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25772 [!__exp2f]: Use libm_alias_float_other.
25773 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25774 [!__expf]: Use libm_alias_float_other.
25775 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25776 [!__log2f]: Use libm_alias_float_other.
25777 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25778 [!__logf]: Use libm_alias_float_other.
25779 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25780 [!__powf]: Use libm_alias_float_other.
25781
25782 2017-10-10 Florian Weimer <fweimer@redhat.com>
25783
25784 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25785 function.
25786 (_nss_files_gethostbyname3_r): Call it.
25787
25788 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25789
25790 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25791 error. Remove default definition of declare_mgen_alias.
25792 [!declare_mgen_alias_r]: Likewise.
25793 * sysdeps/generic/math-type-macros-double.h
25794 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25795 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25796 (declare_mgen_alias_r): Likewise.
25797 * sysdeps/generic/math-type-macros-float128.h
25798 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25799 * sysdeps/generic/math-type-macros-ldouble.h
25800 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25801 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25802 macro.
25803 (declare_mgen_alias_r_s): Likewise.
25804 (declare_mgen_alias_r): Likewise.
25805 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25806 (lgamma_r): Define using libm_alias_double_r.
25807 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25808 (lgammaf_r): Define using libm_alias_float_r.
25809 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25810 (lgammal_r): Define using libm_alias_ldouble_r.
25811 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25812 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25813
25814 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25815
25816 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25817 extern declaration.
25818
25819 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25820
25821 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25822
25823 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25824
25825 [BZ #21326]
25826 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25827 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25828 * math/Makefile (test-math-cxx11): New test.
25829 * math/test-math-cxx11.cc: New file.
25830
25831 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25832
25833 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25834
25835 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25836 call to allocate the slave pty file descriptor.
25837
25838 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25839
25840 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25841 [!__fma] (fma): Define using libm_alias_double.
25842 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25843 [!__fma] (fma): Define using libm_alias_double.
25844
25845 * sysdeps/ieee754/float128/float128_private.h: Include
25846 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25847 (libm_alias_ldouble_r): Undefine and redefine.
25848 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25849 <libm-alias-ldouble.h>.
25850 (asinhl): Define using libm_alias_ldouble.
25851 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25852 <libm-alias-ldouble.h>.
25853 (atanl): Define using libm_alias_ldouble.
25854 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25855 <libm-alias-ldouble.h>.
25856 (cbrtl): Define using libm_alias_ldouble.
25857 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25858 <libm-alias-ldouble.h>.
25859 (ceill): Define using libm_alias_ldouble.
25860 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25861 <libm-alias-ldouble.h>.
25862 (copysignl): Define using libm_alias_ldouble.
25863 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25864 <libm-alias-ldouble.h>.
25865 (cosl): Define using libm_alias_ldouble.
25866 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25867 <libm-alias-ldouble.h>.
25868 (erfl): Define using libm_alias_ldouble.
25869 (erfcl): Likewise.
25870 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25871 <libm-alias-ldouble.h>.
25872 (expm1l): Define using libm_alias_ldouble.
25873 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25874 <libm-alias-ldouble.h>.
25875 (fabsl): Define using libm_alias_ldouble.
25876 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25877 <libm-alias-ldouble.h>.
25878 (floorl): Define using libm_alias_ldouble.
25879 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25880 <libm-alias-ldouble.h>.
25881 (fmal): Define using libm_alias_ldouble.
25882 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25883 <libm-alias-ldouble.h>.
25884 (frexpl): Define using libm_alias_ldouble.
25885 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25886 libm_alias_ldouble.
25887 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25888 <libm-alias-ldouble.h>.
25889 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25890 libm_alias_ldouble.
25891 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25892 <libm-alias-ldouble.h>.
25893 (getpayloadl): Define using libm_alias_ldouble.
25894 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25895 <libm-alias-ldouble.h>.
25896 (llrintl): Define using libm_alias_ldouble.
25897 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25898 <libm-alias-ldouble.h>.
25899 (llroundl): Define using libm_alias_ldouble.
25900 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25901 <libm-alias-ldouble.h>.
25902 (logbl): Define using libm_alias_ldouble.
25903 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25904 <libm-alias-ldouble.h>.
25905 (lrintl): Define using libm_alias_ldouble.
25906 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25907 <libm-alias-ldouble.h>.
25908 (lroundl): Define using libm_alias_ldouble.
25909 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25910 <libm-alias-ldouble.h>.
25911 (modfl): Define using libm_alias_ldouble.
25912 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25913 <libm-alias-ldouble.h>.
25914 (nearbyintl): Define using libm_alias_ldouble.
25915 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25916 <libm-alias-ldouble.h>.
25917 (nextafterl): Define using libm_alias_ldouble.
25918 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25919 <libm-alias-ldouble.h>.
25920 (nextupl): Define using libm_alias_ldouble.
25921 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25922 <libm-alias-ldouble.h>.
25923 (remquol): Define using libm_alias_ldouble.
25924 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25925 <libm-alias-ldouble.h>.
25926 (rintl): Define using libm_alias_ldouble.
25927 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25928 <libm-alias-ldouble.h>.
25929 (roundevenl): Define using libm_alias_ldouble.
25930 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25931 <libm-alias-ldouble.h>.
25932 (roundl): Define using libm_alias_ldouble.
25933 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25934 using libm_alias_ldouble.
25935 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25936 <libm-alias-ldouble.h>.
25937 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25938 Define using libm_alias_ldouble.
25939 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25940 <libm-alias-ldouble.h>.
25941 (sincosl): Define using libm_alias_ldouble.
25942 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25943 <libm-alias-ldouble.h>.
25944 (sinl): Define using libm_alias_ldouble.
25945 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25946 <libm-alias-ldouble.h>.
25947 (tanhl): Define using libm_alias_ldouble.
25948 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25949 <libm-alias-ldouble.h>.
25950 (tanl): Define using libm_alias_ldouble.
25951 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25952 <libm-alias-ldouble.h>.
25953 (totalorderl): Define using libm_alias_ldouble.
25954 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25955 <libm-alias-ldouble.h>.
25956 (totalordermagl): Define using libm_alias_ldouble.
25957 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25958 <libm-alias-ldouble.h>.
25959 (truncl): Define using libm_alias_ldouble.
25960 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25961 libm_alias_ldouble.
25962 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25963 libm_alias_ldouble.
25964 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25965 <libm-alias-ldouble.h>.
25966 (weak_alias): Do not undefine and redefine.
25967 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25968 (copysignl): Define with long_double_symbol only if [IS_IN
25969 (libc)].
25970 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25971 <libm-alias-ldouble.h>.
25972 (weak_alias): Do not undefine and redefine.
25973 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25974 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25975 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25976 <libm-alias-ldouble.h>.
25977 (weak_alias): Do not undefine and redefine.
25978 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25979 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25980 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25981 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25982 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25983 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25984 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25985 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25986 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25987 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25988 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25989 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25990 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25991 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25992 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25993 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25994 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25995 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25996 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25997 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25998 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25999 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
26000 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
26001 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
26002 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
26003 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
26004
26005 2017-10-06 Carlos O'Donell <carlos@redhat.com>
26006
26007 [BZ #22111]
26008 * malloc/malloc.c (tcache_shutting_down): Use bool type.
26009 (tcache_thread_freeres): Set tcache_shutting_down before
26010 freeing the tcache.
26011 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
26012 * malloc/tst-malloc-tcache-leak.c: New file.
26013
26014 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26015
26016 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
26017 back to powerpc32 file.
26018 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26019 (memrchr): Add __memrchr_power8 to ifunc list.
26020 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
26021 extra bytes for unaligned inputs.
26022
26023 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26024
26025 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
26026 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26027 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26028 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26029 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26030
26031 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26032
26033 * sysdeps/arm/libm-test-ulps: Update.
26034
26035 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26036 <libm-alias-ldouble.h>.
26037 (asinhl): Define using libm_alias_ldouble.
26038 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26039 <libm-alias-ldouble.h>.
26040 (cbrtl): Define using libm_alias_ldouble.
26041 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26042 <libm-alias-ldouble.h>.
26043 (copysignl): Define using libm_alias_ldouble.
26044 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26045 <libm-alias-ldouble.h>.
26046 (cosl): Define using libm_alias_ldouble.
26047 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26048 <libm-alias-ldouble.h>.
26049 (erfl): Define using libm_alias_ldouble.
26050 (erfcl): Likewise.
26051 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26052 <libm-alias-ldouble.h>.
26053 (fmal): Define using libm_alias_ldouble.
26054 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26055 <libm-alias-ldouble.h>.
26056 (frexpl): Define using libm_alias_ldouble.
26057 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26058 libm_alias_ldouble.
26059 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26060 <libm-alias-ldouble.h>.
26061 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26062 libm_alias_ldouble.
26063 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26064 <libm-alias-ldouble.h>.
26065 (getpayloadl): Define using libm_alias_ldouble.
26066 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26067 <libm-alias-ldouble.h>.
26068 (llrintl): Define using libm_alias_ldouble.
26069 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26070 <libm-alias-ldouble.h>.
26071 (llroundl): Define using libm_alias_ldouble.
26072 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26073 <libm-alias-ldouble.h>.
26074 (lrintl): Define using libm_alias_ldouble.
26075 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26076 <libm-alias-ldouble.h>.
26077 (lroundl): Define using libm_alias_ldouble.
26078 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26079 <libm-alias-ldouble.h>.
26080 (modfl): Define using libm_alias_ldouble.
26081 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26082 <libm-alias-ldouble.h>.
26083 (nextupl): Define using libm_alias_ldouble.
26084 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26085 <libm-alias-ldouble.h>.
26086 (remquol): Define using libm_alias_ldouble.
26087 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26088 <libm-alias-ldouble.h>.
26089 (roundevenl): Define using libm_alias_ldouble.
26090 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26091 <libm-alias-ldouble.h>.
26092 (roundl): Define using libm_alias_ldouble.
26093 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26094 using libm_alias_ldouble.
26095 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26096 <libm-alias-ldouble.h>.
26097 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26098 <libm-alias-ldouble.h>.
26099 (setpayloadsigl): Define using libm_alias_ldouble.
26100 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26101 <libm-alias-ldouble.h>.
26102 (sincosl): Define using libm_alias_ldouble.
26103 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26104 <libm-alias-ldouble.h>.
26105 (sinl): Define using libm_alias_ldouble.
26106 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26107 <libm-alias-ldouble.h>.
26108 (tanhl): Define using libm_alias_ldouble.
26109 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26110 <libm-alias-ldouble.h>.
26111 (tanl): Define using libm_alias_ldouble.
26112 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26113 <libm-alias-ldouble.h>.
26114 (totalorderl): Define using libm_alias_ldouble.
26115 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26116 <libm-alias-ldouble.h>.
26117 (totalordermagl): Define using libm_alias_ldouble.
26118 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26119 libm_alias_ldouble.
26120 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26121 libm_alias_ldouble.
26122
26123 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
26124
26125 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26126 memmove_falkor.
26127 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26128 (__libc_ifunc_impl_list): Likewise.
26129 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26130 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26131
26132 * benchtests/bench-memmove-walk.c: New file.
26133 * benchtests/Makefile (string-benchset): Add it.
26134
26135 * benchtests/bench-memset-walk.c: New file.
26136 * benchtests/Makefile (string-benchset): Add it.
26137
26138 * benchtests/bench-memcpy-walk.c: New file.
26139 * benchtests/Makefile (string-benchset): Add it.
26140
26141 2017-10-05 Florian Weimer <fweimer@redhat.com>
26142
26143 nscd: Eliminate compilation time dependency in the build output.
26144 * nscd/nscd_stat.c (STATDATA_VERSION)
26145 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26146 (STATDATA_VERSION_FULL): New macro definitions.
26147 (compilation): Remove.
26148 (struct statdata): Adjust version member.
26149 (send_stats): Set version from STATDATA_VERSION_FULL.
26150 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26151
26152 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26153
26154 * configure.ac (--enable-add-ons): Remove option.
26155 (machine): Do not mention add-ons in comment.
26156 (LIBC_PRECONFIGURE): Likewise.
26157 (add_ons): Remove variable and sanity checks and logic to locate
26158 add-ons.
26159 (add_ons_automatic): Remove variable.
26160 (configured_add_ons): Likewise.
26161 (add_ons_sfx): Likewise.
26162 (add_ons_pfx): Likewise.
26163 (add_on_subdirs): Likewise.
26164 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26165 consideration of add-ons in Implies handling.
26166 (sysdeps_add_ons): Likewise.
26167 * configure: Regenerated.
26168 * libidn/configure.ac: Remove.
26169 * libidn/configure: Likewise.
26170 * sysdeps/unix/inet/configure.ac: New file.
26171 * sysdeps/unix/inet/configure: New generated file.
26172 * sysdeps/unix/inet/Subdirs: Add libidn.
26173 * Makeconfig (sysdeps-srcdirs): Remove variable.
26174 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26175 ($(common-objpfx)config.status): Do not depend on add-on files.
26176 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26177 comment.
26178 (all-subdirs): Do not include $(add-on-subdirs).
26179 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26180 * config.make.in (add-ons): Remove variable.
26181 (add-on-subdirs): Likewise.
26182 (sysdeps-add-ons): Likewise.
26183 * manual/Makefile (add-chapters): Remove.
26184 ($(objpfx)texis): Do not depend on $(add-chapters).
26185 (nonexamples): Do not handle $(add-chapters).
26186 (examples): Do not handle $(add-ons).
26187 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26188 libc-texinfo.sh.
26189 * manual/install.texi (Installation): Do not mention add-ons.
26190 (--enable-add-ons): Do not document configure option.
26191 * INSTALL: Regenerated.
26192 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26193 * manual/maint.texi (Hierarchy Conventions): Do not mention
26194 add-ons.
26195 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26196 --enable-add-ons.
26197 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26198 add-ons.
26199 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26200 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26201
26202 2017-10-05 Andreas Schwab <schwab@suse.de>
26203
26204 [BZ #15142]
26205 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26206 (_IO_flush_all_lockp): Always lock list_all_lock.
26207 (_IO_flush_all_linebuffered): Likewise.
26208 (_IO_unbuffer_all): Likewise.
26209
26210 2017-10-05 Florian Weimer <fweimer@redhat.com>
26211
26212 [BZ #15436]
26213 Do not flush stdio streams on abort.
26214 * stdlib/abort.c (fflush): Remove macro definition.
26215 (abort): Remove stages related to stdio flushing.
26216
26217 2017-10-05 Florian Weimer <fweimer@redhat.com>
26218
26219 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26220
26221 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26222
26223 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26224
26225 2017-10-05 Florian Weimer <fweimer@redhat.com>
26226
26227 * support/support_format_hostent.c (support_format_hostent): Add
26228 more error information for NETDB_INTERNAL.
26229
26230 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26231
26232 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26233 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26234 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26235 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26236 AC_DEFINE if multi-arch is enabled.
26237 * sysdeps/i386/configure: Regenerated.
26238
26239 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26240
26241 * Makeconfig (+link-static-before-libc): Use
26242 $(DEFAULT-LDFLAGS-$(@F)).
26243 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26244 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26245 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26246
26247 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26248
26249 * elf/Makefile (tests): Add tst-main1.
26250 (modules-names): Add tst-main1mod.
26251 ($(objpfx)tst-main1): New.
26252 (CRT-tst-main1): Likewise.
26253 (LDFLAGS-tst-main1): Likewise.
26254 (LDLIBS-tst-main1): Likewise.
26255 (tst-main1mod.so-no-z-defs): Likewise.
26256 * elf/tst-main1.c: New file.
26257 * elf/tst-main1mod.c: Likewise.
26258
26259 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26260
26261 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26262
26263 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26264
26265 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26266 (fma): Define using libm_alias_double.
26267 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26268 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26269 <math_ldbl_opt.h>.
26270 (fmal): Do not define as compat symbol here.
26271 * sysdeps/alpha/fpu/s_fma.c: New file.
26272
26273 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26274
26275 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26276
26277 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26278
26279 [BZ #22229]
26280 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26281 <math_ldbl_opt.h>
26282 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26283 and libc.
26284 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26285 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26286 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26287 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26288 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26289 Include <math_ldbl_opt.h>
26290 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26291 and libc.
26292 (compat_symbol): Undefine and redefine.
26293 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26294 <math_ldbl_opt.h>
26295 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26296 (compat_symbol): Undefine and redefine.
26297 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26298 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26299 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26300 GLIBC_2_1 for libm.
26301 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26302 GLIBC_2.0 copysignl symbol.
26303 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26304 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26305
26306 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26307
26308 2017-10-04 Florian Weimer <fweimer@redhat.com>
26309
26310 * scripts/check-local-headers.sh: Ignore nspr4 header file
26311 directory in addition to nspr.
26312
26313 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26314
26315 [BZ #17956]
26316 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26317 * configure: Regenerate.
26318 * crypt/Makefile (nss-cpp-flags): New variable.
26319 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26320 (CPPFLAGS-md5-crypt.c): Use it.
26321 * scripts/check-local-headers.sh: Ignore nspr header file
26322 directory.
26323
26324 2017-10-04 Andreas Schwab <schwab@suse.de>
26325
26326 * nis/Makefile (services): Remove compat.
26327 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26328 ($(objpfx)libnss_compat.so): Remove rule.
26329 * nis/Versions (libnss_compat): Remove.
26330 * nss/Makefile (services): Add compat.
26331 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26332 * nss/Versions (libnss_compat): Define.
26333 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26334 Don't include <rpc/types.h>. Replace bool_t by bool.
26335 * nss/nss_compat/compat-initgroups.c: Likewise.
26336 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26337 instead of <rpcsrv/ypclnt.h>.
26338 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26339 yp_get_default_domain.
26340 * nss/nss_compat/compat-pwd.c: Likewise.
26341 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26342 yp_get_default_domain.
26343 * nss/nss_compat/nisdomain.c: New file.
26344 * nss/nss_compat/nisdomain.h: Likewise.
26345
26346 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26347
26348 [BZ #22244]
26349 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26350 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26351
26352 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26353
26354 [BZ #22243]
26355 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26356 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26357
26358 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26359
26360 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26361 "movl main@GOTOFF(%ebx), %eax".
26362
26363 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26364
26365 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26366 allow undefined _DYNAMIC in PIE libc.a.
26367 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26368 Likewse.
26369
26370 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26371
26372 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26373 check _DYNAMIC.
26374
26375 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26376
26377 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26378 check _DYNAMIC.
26379
26380 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26381
26382 * math/test-math-iscanonical.cc (error): Replace bool with int.
26383
26384 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26385
26386 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26387 (modf): Define using libm_alias_double, only if [!__modf].
26388 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26389 <libm-alias-double.h>.
26390 (modf): Define using libm_alias_double, only if [!__modf].
26391 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26392 compat symbol here.
26393 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26394 (weak_alias): Do not undefine and redefine.
26395 (strong_alias): Likewise.
26396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26397 (weak_alias): Likewise.
26398 (strong_alias): Likewise.
26399
26400 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26401 (logb): Define using libm_alias_double, only if [!__logb].
26402 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26403 <libm-alias-double.h>.
26404 (logb): Define using libm_alias_double, only if [!__logb].
26405 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26406 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26407 (weak_alias): Do not undefine and redefine.
26408 (strong_alias): Likewise.
26409 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26410 (weak_alias): Likewise.
26411 (strong_alias): Likewise.
26412
26413 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26414
26415 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26416 Check SHARED instead PIC.
26417
26418 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26419
26420 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26421 [!__fmaf] (fmaf): Define using libm_alias_float.
26422
26423 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26424 (frexp): Define using libm_alias_double.
26425 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26426 <libm-alias-double.h>.
26427 (frexp): Define using libm_alias_double.
26428 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26429 compat symbol here.
26430
26431 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26432
26433 [BZ #22235]
26434 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26435 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26436 (CFLAGS-test-math-iscanonical.cc): New variable.
26437 * math/test-math-iscanonical.cc: New file.
26438 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26439 Provide a C++ implementation based on function overloading,
26440 rather than using __MATH_TG, which uses C-only builtins.
26441 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26442 Likewise.
26443 * sysdeps/powerpc/powerpc64le/Makefile
26444 (CFLAGS-test-math-iscanonical.cc): New variable.
26445
26446 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26447
26448 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26449 (ceil): Define using libm_alias_double.
26450 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26451 (floor): Define using libm_alias_double.
26452 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26453 <libm-alias-double.h>.
26454 (llround): Define using libm_alias_double.
26455 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26456 <libm-alias-double.h>.
26457 (lround): Define using libm_alias_double.
26458 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26459 <libm-alias-double.h>.
26460 (nearbyint): Define using libm_alias_double.
26461 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26462 <libm-alias-double.h>.
26463 (remquo): Define using libm_alias_double.
26464 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26465 (rint): Define using libm_alias_double.
26466 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26467 (round): Define using libm_alias_double.
26468 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26469 (trunc): Define using libm_alias_double.
26470 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26471 <libm-alias-double.h>.
26472 (ceil): Define using libm_alias_double.
26473 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26474 <libm-alias-double.h>.
26475 (floor): Define using libm_alias_double.
26476 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26477 <libm-alias-double.h>.
26478 (llround): Define using libm_alias_double.
26479 [_LP64] (lround): Likewise.
26480 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26481 <libm-alias-double.h>.
26482 [!_LP64] (lround): Define using libm_alias_double.
26483 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26484 <libm-alias-double.h>.
26485 (nearbyint): Define using libm_alias_double.
26486 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26487 <libm-alias-double.h>.
26488 (remquo): Define using libm_alias_double.
26489 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26490 <libm-alias-double.h>.
26491 (rint): Define using libm_alias_double.
26492 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26493 <libm-alias-double.h>.
26494 (round): Define using libm_alias_double.
26495 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26496 <libm-alias-double.h>.
26497 (trunc): Define using libm_alias_double.
26498 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26499 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26500 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26501 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26502 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26503 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26504 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26505 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26506 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26507
26508 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26509
26510 * math/w_remainder.c: New file.
26511 * math/w_remainderf.c: New file.
26512 * math/w_remainderl.c: New file.
26513
26514 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26515
26516 * elf/rtld.c (BOOTSTRAP_MAP): New.
26517 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26518 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26519 Likewise.
26520 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26521 Likewise.
26522 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26523 Likewise.
26524
26525 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26526
26527 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26528 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26529 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26530 rtld_hidden_data_ver): Define to empty.
26531 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26532 __assert_perror_fail): Likewise.
26533 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26534 (__rewinddir): Likewise.
26535 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26536 (__profile_frequency): Likewise.
26537 * include/setjmp.h (__sigsetjmp): Likewise.
26538 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26539 __libc_sigaction): Likewise.
26540 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26541 not set hidden attribute.
26542 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26543 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26544 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26545 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26546 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26547 __fxstatat64): Likewise.
26548 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26549 (__uname): Likewise.
26550 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26551 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26552 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26553 (NO_RTLD_HIDDEN): Set.
26554 * sysdeps/mach/hurd/configure: Refresh.
26555 * config.h.in: Refresh.
26556
26557 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26558
26559 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26560 (atan): Define using libm_alias_double.
26561 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26562 (tan): Define using libm_alias_double.
26563 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26564 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26565
26566 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26567 define as weak alias of __atan. Do not define any aliases if
26568 [__atan].
26569 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26570 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26571 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26572 as weak alias of __tan. Do not define any aliases if [__tan].
26573 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26574 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26575 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26576 __atan.
26577 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26578 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26579 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26580 and define as weak alias of __atan.
26581 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26582 __atan.
26583 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26584 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26585 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26586 define as weak alias of __tan.
26587
26588 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26589
26590 * math/w_lgamma.c: New file.
26591 * math/w_lgammaf.c: New file.
26592 * math/w_lgammal.c: New file.
26593
26594 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26595
26596 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26597 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26598 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26599 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26600 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26601 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26602 * sysdeps/i386/fpu/w_log2f.c: New file.
26603 * sysdeps/i386/fpu/w_logf.c: New file.
26604 * sysdeps/i386/fpu/w_powf.c: New file.
26605 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26606 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26607 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26608
26609 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26610 H.J. Lu <hongjiu.lu@intel.com>
26611
26612 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26613 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26614 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26615 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26616 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26617 the new expf code.
26618 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26619 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26620 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26621 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26622 * sysdeps/i386/fpu/w_exp2f.c: New file.
26623 * sysdeps/i386/fpu/w_expf.c: New file.
26624 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26625 * sysdeps/x86_64/fpu/w_expf.c: New file.
26626
26627 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26628
26629 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26630 (log2f): Likewise.
26631 (powf): Likewise.
26632 * math/w_log2f.c: New file.
26633 * math/w_logf.c: New file.
26634 * math/w_powf.c: New file.
26635 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26636 * math/w_logf_compat.c (__logf_compat): Likewise.
26637 * math/w_powf_compat.c (__powf_compat): Likewise.
26638 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26639 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26640 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26641 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26642 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26643 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26644 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26645 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26646 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26647 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26648 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26649 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26650 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26651 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26652 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26654 Likewise.
26655 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26656 Likewise.
26657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26658 Likewise.
26659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26660 Likewise.
26661 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26662 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26663 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26664 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26665 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26666 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26667 Likewise.
26668 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26669 Likewise.
26670 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26671 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26672 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26673
26674 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26675
26676 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26677 (sysdep_routines): Add memrchr_power8.
26678 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26679 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26680 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26681 New file.
26682 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26683 (memrchr): Add __memrchr_power8 to ifunc list.
26684 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26685
26686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26687
26688 [BZ #18822]
26689 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26690 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26691 libc_hidden_def.
26692 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26693 (__posix_fallocate64_l64): Likewise.
26694
26695 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26696
26697 [BZ #18822]
26698 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26699 (__sched_setaffinity_new): Add libc_hidden_proto and
26700 libc_hidden_def.
26701
26702 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26703
26704 [BZ #18822]
26705 * include/glob.h (__glob64): Add libc_hidden_proto.
26706 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26707 libc_hidden_def.
26708
26709 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26710
26711 [BZ #18822]
26712 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26713 attribute_hidden.
26714
26715 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26716
26717 [BZ #18822]
26718 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26719
26720 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26721
26722 [BZ #18822]
26723 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26724 libc_hidden_def.
26725
26726 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26727
26728 [BZ #18822]
26729 * csu/version.c (__libc_print_version): Add attribute_hidden.
26730
26731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26732
26733 [BZ #18822]
26734 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26735
26736 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26737
26738 [BZ #18822]
26739 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26740
26741 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26742
26743 [BZ #18822]
26744 * nscd/nscd_helper.c (__nis_hash): New prototype.
26745
26746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26747
26748 [BZ #18822]
26749 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26750 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26751 libc_hidden_def.
26752 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26753 * termios/tcgetattr.c (__tcgetattr): Likewise.
26754
26755 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26756
26757 [BZ #18822]
26758 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26759 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26760 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26761 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26762 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26763
26764 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26765
26766 [BZ #18822]
26767 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26768
26769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26770
26771 [BZ #18822]
26772 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26773 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26774
26775 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26776
26777 [BZ #18822]
26778 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26779
26780 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26781
26782 [BZ #18822]
26783 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26784 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26785
26786 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26787
26788 [BZ #18822]
26789 * include/ifreq.h: New file.
26790 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26791 (__ifreq): Likewise.
26792 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26793 (__ifreq): Likewise.
26794
26795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 [BZ #18822]
26798 * include/idna.h: New file.
26799 * inet/getnameinfo.c: Include <idna.h> instead of
26800 <libidn/idna.h>.
26801 (__idna_to_unicode_lzlz): Removed.
26802 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26803 <libidn/idna.h>.
26804 (__idna_to_ascii_lz): Removed.
26805 (__idna_to_unicode_lzlz): Likewise.
26806
26807 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26808
26809 [BZ #18822]
26810 * include/plural-exp.h: New file.
26811 * intl/plural-exp.c: Include <plural-exp.h> instead of
26812 "plural-exp.h".
26813
26814 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26815
26816 [BZ #18822]
26817 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26818 "getsourcefilter.h".
26819 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26820 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26821 "getsourcefilter.h".
26822 (__get_sol): Removed.
26823
26824 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26825
26826 [BZ #18822]
26827 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26828 to ...
26829 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26830
26831 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26832
26833 [BZ #18822]
26834 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26835 attribute_hidden.
26836
26837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26838
26839 [BZ #18822]
26840 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26841
26842 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26843
26844 [BZ #18822]
26845 * include/search.h (__tdestroy): Add libc_hidden_proto.
26846 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26847
26848 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26849
26850 [BZ #18822]
26851 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26852
26853 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26854
26855 [BZ #18822]
26856 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26857 attribute_hidden.
26858
26859 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26860
26861 [BZ #18822]
26862 * include/signal.h (__kill): Add libc_hidden_proto.
26863 (__sigblock): Likewise.
26864 (__sigprocmask): Likewise.
26865 (__sigaltstack): Likewise.
26866 * signal/kill.c (__kill): Add libc_hidden_def.
26867 * signal/sigblock.c (__sigblock): Likewise.
26868 * signal/sigprocmask.c (__sigprocmask): Likewise.
26869 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26870 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26871 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26872 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26873 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26874 Likewise.
26875 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26876 Likewise.
26877 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26878 (__sigprocmask): Likewise.
26879 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26880 Likewise.
26881 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26882 (__sigprocmask): Likewise.
26883 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26884 Likewise.
26885
26886 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26887
26888 [BZ #18822]
26889 * include/string.h (__strsep): Add libc_hidden_proto.
26890 * string/strsep.c (__strsep): Add libc_hidden_def.
26891
26892 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26893
26894 [BZ #18822]
26895 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26896 attribute_hidden.
26897 (__spawni): Likewise.
26898
26899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26900
26901 [BZ #18822]
26902 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26903 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26904 libc_hidden_def.
26905
26906 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26907
26908 [BZ #18822]
26909 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26910
26911 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26912
26913 [BZ #18822]
26914 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26915 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26916 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26917 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26918 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26919 Likewise.
26920 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26921 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26922
26923 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26924
26925 [BZ #18822]
26926 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26927 (__dcigettext): Likewise.
26928
26929 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26930
26931 [BZ #18822]
26932 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26933 libc_hidden_proto.
26934 (__get_nprocs): Likewise.
26935 (__get_phys_pages): Likewise.
26936 (__get_avphys_pages): Likewise.
26937 (__get_child_max): Add attribute_hidden.
26938 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26939 (__get_nprocs): Likewise.
26940 (__get_phys_pages): Likewise.
26941 (__get_avphys_pages): Likewise.
26942 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26943 libc_hidden_def.
26944 (__get_nprocs): Likewise.
26945 (__get_phys_pages): Likewise.
26946 (__get_avphys_pages): Likewise.
26947 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26948 libc_hidden_def.
26949 (__get_nprocs_conf): Likewise.
26950 (__get_phys_pages): Likewise.
26951 (__get_avphys_pages): Likewise.
26952
26953 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26954
26955 [BZ #18822]
26956 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26957 attribute_hidden.
26958 (__netlink_close): Likewise.
26959 (__netlink_free_handle): Likewise.
26960 (__netlink_request): Likewise.
26961
26962 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26963
26964 [BZ #18822]
26965 * include/rpc/rpc.h (__rpc_thread_variables): Add
26966 attribute_hidden.
26967 (__rpc_thread_svc_cleanup): Likewise.
26968 (__rpc_thread_clnt_cleanup): Likewise.
26969 (__rpc_thread_key_cleanup): Likewise.
26970
26971 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26972
26973 [BZ #18822]
26974 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26975 (__writev): Likewise.
26976 * misc/readv.c (__readv): Add libc_hidden_def.
26977 * misc/writev.c (__writev): Likewise.
26978 * sysdeps/posix/readv.c (__readv): Likewise.
26979 * sysdeps/posix/writev.c (__writev): Likewise.
26980 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26981 (__readv): Likewise.
26982 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26983 (__writev): Likewise.
26984
26985 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26986
26987 [BZ #18822]
26988 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26989 (__regcomp): Add libc_hidden_proto.
26990 (__regexec): Likewise.
26991 (__regfree): Likewise.
26992 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26993 (__regfree): Likewise.
26994 * posix/regexec.c (__regexec): Likewise.
26995
26996 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26997
26998 [BZ #18822]
26999 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
27000 (__getutent): Likewise.
27001 (__getutid): Likewise.
27002 (__getutline): Likewise.
27003 (__pututline): Likewise.
27004 (__getutent_r): Likewise.
27005 (__getutid_r): Likewise.
27006 (__getutline_r): Likewise.
27007 (__utmpname): Add attribute_hidden.
27008 (__setutent): Likewise.
27009 (__endutent): Likewise.
27010 * login/getutent.c (__getutent): Add libc_hidden_def.
27011 * login/getutent_r.c (__getutent_r): Likewise.
27012 (__pututline): Likewise.
27013 * login/getutid.c (__getutid): Likewise.
27014 * login/getutid_r.c (__getutid_r): Likewise.
27015 * login/getutline.c (__getutline): Likewise.
27016 * login/getutline_r.c (__getutline_r): Likewise.
27017 * login/updwtmp.c (__updwtmp): Likewise.
27018
27019 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27020
27021 [BZ #18822]
27022 * include/dirent.h (__opendir): Always add attribute_hidden.
27023 (__fdopendir): Likewise.
27024 (__closedir): Likewise.
27025 (__readdir): Likewise.
27026 (__readdir64): Add libc_hidden_proto.
27027 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27028 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27029 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27030 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27031 New alias.
27032
27033 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27034
27035 [BZ #18822]
27036 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27037 * include/netdb.h (__gethostbyaddr_r): Likewise.
27038 (__gethostbyname_r): Likewise.
27039 (__gethostbyname2_r): Likewise.
27040 (__getnetbyaddr_r): Likewise.
27041 (__getnetbyname_r): Likewise.
27042 (__getservbyname_r): Likewise.
27043 (__getservbyport_r): Likewise.
27044 (__getprotobyname_r): Likewise.
27045 (__getprotobynumber_r): Likewise.
27046 (__getnetgrent_r): Likewise.
27047 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27048 (__getrpcbynumber_r): Likewise.
27049 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27050
27051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27052
27053 [BZ #18822]
27054 * include/stdio.h (__fcloseall): Add attribute_hidden.
27055 (__getline): Likewise.
27056 (__path_search): Likewise.
27057 (__gen_tempname): Likewise.
27058 (__libc_message): Likewise.
27059 (__flockfile): Likewise.
27060 (__funlockfile): Likewise.
27061 (__fxprintf): Likewise.
27062 (__fxprintf_nocancel): Likewise.
27063
27064 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27065
27066 [BZ #18822]
27067 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27068 (__sgetsgent_r): Likewise.
27069
27070 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27071
27072 [BZ #18822]
27073 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27074 (__statfs64): Likewise.
27075 (__fstatfs64): Likewise.
27076 * include/sys/statvfs.h (__statvfs64): Likewise.
27077 (__fstatvfs64): Likewise.
27078 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27079 (__statfs_filesize_max): Likewise.
27080 (__statfs_symlinks): Likewise.
27081 (__statfs_chown_restricted): Likewise.
27082
27083 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27084
27085 [BZ #18822]
27086 * include/time.h (__tzstring): Add attribute_hidden.
27087 (__tzfile_read): Likewise.
27088 (__tzfile_compute): Likewise.
27089 (__tzfile_default): Likewise.
27090 (__tzset_parse_tz): Likewise.
27091 (__offtime): Likewise.
27092 (__asctime_r): Likewise.
27093 (__tzset): Likewise.
27094 (__tz_convert): Likewise.
27095 (__getdate_r): Likewise.
27096 (__getclktck): Likewise.
27097
27098 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27099
27100 [BZ #18822]
27101 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27102 (__nscd_unmap): Likewise.
27103 (__nscd_cache_search): Likewise.
27104 (__nscd_get_nl_timestamp): Likewise.
27105 (__nscd_getpwnam_r): Likewise.
27106 (__nscd_getpwuid_r): Likewise.
27107 (__nscd_getgrnam_r): Likewise.
27108 (__nscd_getgrgid_r): Likewise.
27109 (__nscd_gethostbyname_r): Likewise.
27110 (__nscd_gethostbyname2_r): Likewise.
27111 (__nscd_gethostbyaddr_r): Likewise.
27112 (__nscd_getai): Likewise.
27113 (__nscd_getgrouplist): Likewise.
27114 (__nscd_getservbyname_r): Likewise.
27115 (__nscd_getservbyport_r): Likewise.
27116 (__nscd_innetgr): Likewise.
27117 (__nscd_setnetgrent): Likewise.
27118
27119 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27120
27121 [BZ #18822]
27122 * include/gmp.h: Declare internal functions only if _ISOMAC is
27123 undefined.
27124 (__mpn_extract_double): Add attribute_hidden.
27125 (__mpn_extract_long_double): Likewise.
27126 (__mpn_extract_float128): Likewise.
27127 (__mpn_construct_float): Likewise.
27128 (__mpn_construct_double): Likewise.
27129 (__mpn_construct_long_double): Likewise.
27130 (__mpn_construct_float128): Likewise.
27131 (mpn_add_1): Likewise.
27132 (mpn_addmul_1): Likewise.
27133 (mpn_add_n): Likewise.
27134 (mpn_cmp): Likewise.
27135 (mpn_divrem): Likewise.
27136 (mpn_lshift): Likewise.
27137 (mpn_mul): Likewise.
27138 (mpn_mul_1): Likewise.
27139 (mpn_rshift): Likewise.
27140 (mpn_sub_1): Likewise.
27141 (mpn_submul_1): Likewise.
27142 (mpn_sub_n): Likewise.
27143
27144 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27145
27146 [BZ #18822]
27147 * include/wchar.h (__wcsnlen): Add attribute_hidden.
27148 (__wcscat): Likewise.
27149 (__btowc): Likewise.
27150 (__wcrtomb): Likewise.
27151 (__mbsrtowcs): Likewise.
27152 (__wcsrtombs): Likewise.
27153 (__mbsnrtowcs): Likewise.
27154 (__wcsnrtombs): Likewise.
27155 (__wcsncpy): Likewise.
27156 (__wcpncpy): Likewise.
27157 (__wmemcpy): Likewise.
27158 (__wmempcpy): Likewise.
27159 (__wmemmove): Likewise.
27160 (__wcschrnul): Likewise.
27161 (__vfwscanf): Likewise.
27162 (__vswprintf): Likewise.
27163 (__fwprintf): Likewise.
27164 (__vfwprintf): Likewise.
27165
27166 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27167
27168 [BZ #18822]
27169 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27170 (__getgrgid_r): Likewise.
27171 (__getgrnam_r): Likewise.
27172 * include/pwd.h (__getpwuid_r): Likewise.
27173 (__getpwnam_r): Likewise.
27174 (__fgetpwent_r): Likewise.
27175 * include/shadow.h (__getspnam_r): Likewise.
27176 (__sgetspent_r): Likewise.
27177 (__fgetspent_r): Likewise.
27178
27179 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27180
27181 [BZ #18822]
27182 * include/unistd.h (__access): Add attribute_hidden.
27183 (__lseek64): Likewise.
27184 (__libc_pread64): Likewise.
27185 (__pipe2): Likewise.
27186 (__sleep): Likewise.
27187 (__chdir): Likewise.
27188 (__fchdir): Likewise.
27189 (__getcwd): Likewise.
27190 (__rmdir): Likewise.
27191 (__execvpe): Likewise.
27192 (__execve): Likewise.
27193 (__setsid): Likewise.
27194 (__getuid): Likewise.
27195 (__geteuid): Likewise.
27196 (__getgid): Likewise.
27197 (__getegid): Likewise.
27198 (__getgroups): Likewise.
27199 (__group_member): Likewise.
27200 (__ttyname_r): Likewise.
27201 (__isatty): Likewise.
27202 (__readlink): Likewise.
27203 (__unlink): Likewise.
27204 (__gethostname): Likewise.
27205 (__profil): Likewise.
27206 (__getdtablesize): Likewise.
27207 (__brk): Likewise.
27208 (__ftruncate): Likewise.
27209 (__ftruncate64): Likewise.
27210
27211 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27212
27213 [BZ #18822]
27214 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27215 * argp/argp-fs-xinl.c: Likewise.
27216 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27217 * argp/argp-parse.c: Include <argp.h>.
27218 * argp/argp-xinl.c: Likewise.
27219 * include/argp-fmtstream.h: New file.
27220 * include/argp.h (__argp_error): Add attribute_hidden.
27221 (__argp_failure): Likewise.
27222 (__argp_input): Likewise.
27223 (__argp_state_help): Likewise.
27224
27225 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27226
27227 [BZ #18822]
27228 * include/wchar.h (____wcstof_l_internal): New prototype.
27229 (____wcstod_l_internal): Likewise.
27230 (____wcstold_l_internal): Likewise.
27231 (____wcstol_l_internal): Likewise.
27232 (____wcstoul_l_internal): Likewise.
27233 (____wcstoll_l_internal): Likewise.
27234 (____wcstoull_l_internal): Likewise.
27235 (____wcstof128_l_internal): Likewise.
27236 * sysdeps/ieee754/float128/wcstof128.c
27237 (____wcstof128_l_internal): Removed.
27238 * sysdeps/ieee754/float128/wcstof128_l.c
27239 (____wcstof128_l_internal): Likewise.
27240 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27241 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27242 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27243 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27244 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27245 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27246 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27247 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27248 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27249 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27250
27251 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27252
27253 [BZ #18822]
27254 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27255 instead of <sys/statvfs.h>.
27256 (__internal_statvfs): Removed.
27257 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27258 instead of <sys/statvfs.h>.
27259 (__internal_statvfs64): Removed.
27260 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27261 "internal_statvfs.h" instead of <sys/statvfs.h>.
27262 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27263 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27264 instead of <sys/statvfs.h>.
27265 (__internal_statvfs): Removed.
27266 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27267 instead of <sys/statvfs.h>.
27268 (__internal_statvfs64): Removed.
27269
27270 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27271
27272 [BZ #18822]
27273 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27274 (__gconv_close): Likewise.
27275 (__gconv): Likewise.
27276 (__gconv_find_transform): Likewise.
27277 (__gconv_lookup_cache): Likewise.
27278 (__gconv_compare_alias_cache): Likewise.
27279 (__gconv_load_cache): Likewise.
27280 (__gconv_get_path): Likewise.
27281 (__gconv_close_transform): Likewise.
27282 (__gconv_release_cache): Likewise.
27283 (__gconv_find_shlib): Likewise.
27284 (__gconv_release_shlib): Likewise.
27285 (__gconv_get_builtin_trans): Likewise.
27286 (__gconv_compare_alias): Likewise.
27287 * include/dlfcn.h (_dlerror_run): Likewise.
27288 * include/stdio.h (__fortify_fail_abort): Likewise.
27289 * include/time.h (__tz_compute): Likewise.
27290 (__strptime_internal): Likewise.
27291 * intl/gettextP.h (_nl_find_domain): Likewise.
27292 (_nl_load_domain): Likewise.
27293 (_nl_find_msg): Likewise.
27294 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27295 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27296 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27297 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27298 (__gai_find_request): Likewise.
27299 (__gai_remove_request): Likewise.
27300 (__gai_notify): Likewise.
27301 (__gai_notify_only): Likewise.
27302 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27303 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27304 (_dl_non_dynamic_init): Likewise.
27305 (_dl_aux_init): Likewise.
27306 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27307 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27308 Likewise.
27309 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27310 (__wcsmbs_clone_conv): Likewise.
27311 (__wcsmbs_named_conv): Likewise.
27312
27313 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27314
27315 [BZ #18822]
27316 * include/stdlib.h (__random): Add attribute_hidden.
27317 (__random_r): Likewise.
27318 (__srandom_r): Likewise.
27319 (__initstate_r): Likewise.
27320 (__setstate_r): Likewise.
27321 (__erand48_r): Likewise.
27322 (__nrand48_r): Likewise.
27323 (__jrand48_r): Likewise.
27324 (__srand48_r): Likewise.
27325 (__seed48_r): Likewise.
27326 (__lcong48_r): Likewise.
27327 (__drand48_iterate): Likewise.
27328 (__setenv): Likewise.
27329 (__unsetenv): Likewise.
27330 (__clearenv): Likewise.
27331 (__ptsname_r): Likewise.
27332 (__posix_openpt): Likewise.
27333 (__add_to_environ): Likewise.
27334 (__realpath): Add libc_hidden_proto.
27335 (__ecvt_r): Likewise.
27336 (__fcvt_r): Likewise.
27337 (__qecvt_r): Likewise.
27338 (__qfcvt_r): Likewise.
27339 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27340 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27341
27342 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27343
27344 [BZ #18822]
27345 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27346 * include/time.h (__mktime_internal): Likewise.
27347 * libio/iolibio.h (__fopen_internal): Likewise.
27348
27349 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27350
27351 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27352 pointer in frame.
27353 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27354 Correct offset used to restore PIC register.
27355
27356 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27357
27358 [BZ libc/22165]
27359 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27360 code to load address of __getcontext_ret when generating PIC code.
27361
27362 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27363
27364 * elf/Makefile (tests-static-internal): Add
27365 tst-tls1-static-non-pie.
27366 (LDFLAGS-tst-tls1-static-non-pie): New.
27367 * elf/tst-tls1-static-non-pie.c: New file.
27368
27369 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27370
27371 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27372 (asinh): Define using libm_alias_double.
27373 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27374 (cbrt): Define using libm_alias_double.
27375 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27376 <libm-alias-double.h>.
27377 (copysign): Define using libm_alias_double.
27378 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27379 (erf): Define using libm_alias_double.
27380 (erfc): Likewise.
27381 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27382 (expm1): Define using libm_alias_double.
27383 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27384 (fabs): Define using libm_alias_double.
27385 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27386 libm_alias_double.
27387 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27388 <libm-alias-double.h>.
27389 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27390 libm_alias_double.
27391 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27392 <libm-alias-double.h>.
27393 (getpayload): Define using libm_alias_double.
27394 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27395 <libm-alias-double.h>.
27396 (llrint): Define using libm_alias_double.
27397 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27398 (lrint): Define using libm_alias_double.
27399 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27400 <libm-alias-double.h>.
27401 (nextup): Define using libm_alias_double.
27402 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27403 <libm-alias-double.h>.
27404 (roundeven): Define using libm_alias_double.
27405 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27406 libm_alias_double.
27407 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27408 <libm-alias-double.h>.
27409 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27410 using libm_alias_double.
27411 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27412 (cos): Define using libm_alias_double.
27413 (sin): Likewise.
27414 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27415 <libm-alias-double.h>.
27416 (sincos): Define using libm_alias_double.
27417 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27418 (tanh): Define using libm_alias_double.
27419 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27420 <libm-alias-double.h>.
27421 (totalorder): Define using libm_alias_double.
27422 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27423 <libm-alias-double.h>.
27424 (totalordermag): Define using libm_alias_double.
27425 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27426 libm_alias_double.
27427 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27428 libm_alias_double.
27429 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27430 <libm-alias-double.h>.
27431 (getpayload): Define using libm_alias_double.
27432 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27433 <libm-alias-double.h>.
27434 (roundeven): Define using libm_alias_double.
27435 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27436 <libm-alias-double.h>.
27437 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27438 <libm-alias-double.h>.
27439 (totalorder): Define using libm_alias_double.
27440 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27441 <libm-alias-double.h>.
27442 (totalordermag): Define using libm_alias_double.
27443 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27444 libc compat symbol here.
27445 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27446 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27447 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27448 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27449 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27450 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27451 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27452 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27453 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27454 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27455
27456 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27457
27458 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27459 _dl_relocate_static_pie instead of _dl_start to compute load
27460 address in static PIE. Return 0 if _DYNAMIC is undefined for
27461 static executable.
27462
27463 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27464
27465 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27466 _DYNAMIC is undefined for static executable.
27467
27468 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27469
27470 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27471
27472 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27473
27474 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27475
27476 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27477
27478 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27479 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27480 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27481 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27482 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27483 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27484 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27485 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27486 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27487 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27488 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27489 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27490 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27491 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27492 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27493 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27494 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27495
27496 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27497
27498 * math/bits/cmathcalls.h (cimag): Remove inline.
27499 (creal): Remove inline.
27500 (conj): Remove inline.
27501
27502 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27503
27504 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27505 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27506 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27507 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27508 (issignalingf_inline): Likewise.
27509 (POWF_LOG2_TABLE_BITS): Likewise.
27510 (POWF_LOG2_POLY_ORDER): Likewise.
27511 (POWF_SCALE_BITS): Likewise.
27512 (POWF_SCALE): Likewise.
27513 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27514 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27515 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27516
27517 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27518
27519 * math/Makefile (type-float-routines): Add e_log2f_data.
27520 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27521 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27522 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27523 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27524 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27525 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27526 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27527
27528 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27529
27530 * math/Makefile (type-float-routines): Add e_logf_data.
27531 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27532 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27533 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27534 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27535 * sysdeps/i386/fpu/e_logf_data.c: New file.
27536 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27537 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27538
27539 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27540
27541 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27542 undefined _DYNAMIC in PIE libc.a.
27543 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27544 Likewse.
27545
27546 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27547
27548 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27549 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27550 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27551 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27552 (__signbit): Remove.
27553 (__signbitl): Remove.
27554 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27555 (__signbit): Remove.
27556 (__signbitl): Remove.
27557 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27558 (__signbit): Remove.
27559 (__signbitl): Remove.
27560 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27561 (__signbit): Remove.
27562 (__signbitl): Remove.
27563 * sysdeps/tile/bits/mathinline.h: Delete file.
27564 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27565 (__signbit): Remove.
27566 (__signbitl): Remove.
27567
27568 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27569
27570 * math/math.h: Improve handling of C99 isgreater macros.
27571 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27572 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27573 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27574 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27575 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27576
27577 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27578
27579 * sysdeps/aarch64/libm-test-ulps: Update.
27580
27581 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27582
27583 [BZ #22225]
27584 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27585 math_opt_barrier on argument when doing arithmetic on it.
27586 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27587 Likewise. Use math_force_eval not math_opt_barrier after
27588 arithmetic.
27589 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27590 math_opt_barrier on argument when doing arithmetic on it.
27591 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27592 Likewise.
27593
27594 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27595
27596 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27597 libc_hidden_def.
27598 (__freeifaddrs): Likewise.
27599
27600 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27601
27602 * include/dirent.h (__dirfd): New declaration.
27603 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27604 alias.
27605 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27606 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27607 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27608 * include/unistd.h (__revoke): New declaration.
27609 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27610 alias.
27611 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27612 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27613 revoke.
27614 * include/dirent.h (__seekdir): New declaration.
27615 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27616 redefine as weak alias.
27617 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27618 of seekdir.
27619 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27620 and use libc_hidden_def on them.
27621 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27622 them.
27623 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27624 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27625 instead of getifaddrs and freeifaddrs.
27626
27627 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27628
27629 [BZ #18822]
27630 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27631 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27632 (__dso_handle): Remove declaration.
27633 * dlfcn/tstatexit.c (__dso_handle): Removed.
27634 (main): Don't check __dso_handle.
27635 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27636 (main): Don't check __dso_handle.
27637 * include/dso_handle.h: New file.
27638 * malloc/mtrace.c: Include <dso_handle.h>.
27639 (mtrace): Pass __dso_handle directly.
27640 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27641 (__dso_handle): Remove declaration.
27642 (__pthread_atfork): Pass __dso_handle directly.
27643 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27644 (__dso_handle): Removed.
27645 * posix/wordexp-test.c: Include <dso_handle.h>.
27646 (__dso_handle): Remove declaration.
27647 (__app_register_atfork): Pass __dso_handle directly.
27648 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27649 (__dso_handle): Remove declaration.
27650 (at_quick_exit): Pass __dso_handle directly.
27651 * stdlib/atexit.c: Include <dso_handle.h>.
27652 (__dso_handle): Remove declaration.
27653 (atexit): Pass __dso_handle directly.
27654 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27655 (__dso_handle): Removed.
27656
27657 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27658
27659 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27660 using VDSO.
27661
27662 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27663
27664 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27665 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27666 values to correct default value for given type.
27667
27668 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27669
27670 [BZ #22101]
27671 * elf/Makefile (tests): Add tst-debug1.
27672 ($(objpfx)tst-debug1): New.
27673 ($(objpfx)tst-debug1.out): Likewise.
27674 ($(objpfx)tst-debug1mod1.so): Likewise.
27675 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27676 with p_filesz == 0.
27677 * elf/tst-debug1.c: New file.
27678
27679 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27680
27681 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27682 Define using __ifunc.
27683
27684 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27685
27686 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27687 exp2f() values.
27688
27689 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27690
27691 [BZ #22156]
27692 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27693
27694 2017-09-26 Florian Weimer <fweimer@redhat.com>
27695
27696 * resolv/Makefile (tests-internal): Fix typo in comment.
27697
27698 2017-09-26 Florian Weimer <fweimer@redhat.com>
27699
27700 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27701
27702 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27703
27704 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27705 Use an union instead of a max_align_t array for __space,
27706 so that __space is the same size on all platforms.
27707 * malloc/scratch_buffer_grow_preserve.c
27708 (__libc_scratch_buffer_grow_preserve): Likewise.
27709
27710 [BZ #22183]
27711 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27712 version to 2.
27713 * posix/Makefile (routines): Add glob-lstat-compat and
27714 glob64-lstat-compat.
27715 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27716 * posix/glob-lstat-compat.c: New file.
27717 * posix/glob64-lstat-compat.c: Likewise.
27718 * posix/tst-glob_lstat_compat.c: Likewise.
27719 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27720 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27721 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27722 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27723 Likewise.
27724 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27725 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27726 * posix/glob.c (glob_lstat): New function.
27727 (glob): Rename to __glob and add versioned symbol to 2.27.
27728 (glob_in_dir): Use glob_lstat.
27729 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27730 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27731 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27732 2.27.
27733 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27734 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27735 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27736 gl_lstat on glob call.
27737 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27738 and glob64 symbols.
27739 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27740 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27741 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27742 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27743 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27744 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27745 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27746 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27747 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27748 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27749 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27750 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27752 Likewise.
27753 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27755 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27756 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27757 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27758 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27759 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27760 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27761 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27762 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27763 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27764 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27765
27766 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27767
27768 * configure.ac (AS): Require binutils 2.25 or later.
27769 * configure: Regenerated.
27770
27771 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27772
27773 [BZ #22207]
27774 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27775 VM size.
27776
27777 2017-09-25 DJ Delorie <dj@redhat.com>
27778
27779 [BZ #22161]
27780 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27781 resetting timeout.
27782
27783 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27784
27785 * sysdeps/ieee754/dbl-64/sincos32.h
27786 [SINCCOS32_H]: Remove define.
27787 [SINCOS32_H]: Define.
27788
27789 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27790
27791 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27792 (exp2f): Likewise.
27793 * math/w_exp2f.c: New file.
27794 * math/w_expf.c: New file.
27795 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27796 * math/w_expf_compat.c (__expf_compat): Likewise.
27797 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27798 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27799 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27800 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27801 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27802 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27803 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27804 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27805 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27806 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27807 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27808 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27809 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27810 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27812 Likewise.
27813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27814 Likewise.
27815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27816 Likewise.
27817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27818 Likewise.
27819 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27820 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27821 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27822 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27823 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27824 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27825 Likewise.
27826 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27827 Likewise.
27828 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27829 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27830 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27831
27832 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27833
27834 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27835 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27836 (roundtoint, converttoint): Likewise.
27837 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27838 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27839 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27840 * sysdeps/ieee754/flt-32/math_config.h: New file.
27841 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27842 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27843 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27844 * sysdeps/i386/fpu/math_errf.c: New file.
27845 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27846 * sysdeps/ia64/fpu/math_errf.c: New file.
27847 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27848 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27849
27850 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27851
27852 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27853 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27854 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27855 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27856 to make sure that these symbols are defined.
27857 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27858 of <limits.h>
27859 (__need_NULL): Do not define.
27860 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27861 alignment.
27862 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27863 CMGROUP_MAX, cmsgcred): Do not define.
27864 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27865 NULL.
27866 * bits/socket.h: Likewise.
27867 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27868 __gettimeofday instead of gettimeofday.
27869 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27870 instead of settimeofday.
27871
27872 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27873
27874 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27875 (asinhf): Define using libm_alias_float.
27876 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27877 (atanf): Define using libm_alias_float.
27878 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27879 (cbrtf): Define using libm_alias_float.
27880 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27881 (ceilf): Define using libm_alias_float.
27882 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27883 <libm-alias-float.h>.
27884 (copysignf): Define using libm_alias_float.
27885 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27886 (cosf): Define using libm_alias_float.
27887 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27888 (erff): Define using libm_alias_float.
27889 (erfcf): Likewise.
27890 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27891 (expm1f): Define using libm_alias_float.
27892 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27893 (fabsf): Define using libm_alias_float.
27894 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27895 (floorf): Define using libm_alias_float.
27896 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27897 (frexpf): Define using libm_alias_float.
27898 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27899 libm_alias_float.
27900 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27901 <libm-alias-float.h>.
27902 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27903 libm_alias_float.
27904 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27905 <libm-alias-float.h>.
27906 (getpayloadf): Define using libm_alias_float.
27907 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27908 <libm-alias-float.h>.
27909 (llrintf): Define using libm_alias_float.
27910 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27911 <libm-alias-float.h>.
27912 (llroundf): Define using libm_alias_float.
27913 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27914 (logbf): Define using libm_alias_float.
27915 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27916 (lrintf): Define using libm_alias_float.
27917 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27918 (lroundf): Define using libm_alias_float.
27919 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27920 (modff): Define using libm_alias_float.
27921 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27922 <libm-alias-float.h>.
27923 (nearbyintf): Define using libm_alias_float.
27924 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27925 <libm-alias-float.h>.
27926 (nextafterf): Define using libm_alias_float.
27927 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27928 <libm-alias-float.h>.
27929 (nextupf): Define using libm_alias_float.
27930 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27931 <libm-alias-float.h>.
27932 (remquof): Define using libm_alias_float.
27933 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27934 (rintf): Define using libm_alias_float.
27935 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27936 <libm-alias-float.h>.
27937 (roundevenf): Define using libm_alias_float.
27938 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27939 (roundf): Define using libm_alias_float.
27940 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27941 using libm_alias_float.
27942 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27943 <libm-alias-float.h>.
27944 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27945 Define using libm_alias_float.
27946 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27947 <libm-alias-float.h>.
27948 (sincosf): Define using libm_alias_float.
27949 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27950 (sinf): Define using libm_alias_float.
27951 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27952 (tanf): Define using libm_alias_float.
27953 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27954 (tanhf): Define using libm_alias_float.
27955 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27956 <libm-alias-float.h>.
27957 (totalorderf): Define using libm_alias_float.
27958 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27959 <libm-alias-float.h>.
27960 (totalordermagf): Define using libm_alias_float.
27961 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27962 (truncf): Define using libm_alias_float.
27963 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27964 libm_alias_float.
27965 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27966 libm_alias_float.
27967
27968 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27969
27970 [BZ #22146]
27971 math/math.h: Let fpclassify use the builtin in C++ mode, even
27972 when optimazing for size.
27973
27974 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27975
27976 * csu/Makefile (generated): Do not add version-info.h.
27977 (before-compile): Likewise.
27978 (all-Banner-files): Remove variable.
27979 ($(objpfx)version-info.h): Remove rule.
27980 * csu/version.c (banner): Do not include "version-info.h".
27981 * libidn/Banner: Remove.
27982 * manual/contrib.texi (Simon Josefsson): New entry.
27983
27984 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27985
27986 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27987 Remove conditionals on LDBL_MANT_DIG.
27988 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27989 (__ieee754_lgammal_r): Likewise.
27990
27991 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27992
27993 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27994 _Float128 and L().
27995 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27996 _Float128 and L(). Replace _Float128 with long double and L(x)
27997 with xL, throughout the file.
27998 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27999 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28000 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28001 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28002
28003 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28004
28005 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
28006 sysdeps/ieee754/ldbl-128ibm.
28007 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
28008 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
28009 of including it. Keep _Float128 and L() intact. These will be
28010 reviewed by a separate patch.
28011 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28012 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28013 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28014 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28015
28016 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28017
28018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
28019 (__finitef128): Define to __redirect___finitef128.
28020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
28021 (__isinff128): Define to __redirect___isinff128.
28022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
28023 (__isnanf128): Define to __redirect___isnanf128.
28024
28025 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28026
28027 * sysdeps/powerpc/powerpc64le/Makefile
28028 (CFLAGS-tst-strtod-nan-locale.c): New variable.
28029 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28030
28031 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
28032 Carlos O'Donell <carlos@redhat.com>
28033
28034 [BZ #22180]
28035 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28036 * stdlib/test-dlclose-exit-race.c: New file.
28037 * stdlib/test-dlclose-exit-race-helper.c: New file.
28038 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28039
28040 2017-09-21 Joseph Myers <joseph@codesourcery.com>
28041
28042 * crypt/Banner: Remove file.
28043 * nptl/Banner: Likewise.
28044 * resolv/Banner: Likewise.
28045 * soft-fp/Banner: Likewise.
28046 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28047 ($(objpfx)version.d): Remove dependency on banner.h.
28048 ($(objpfx)version.os): Likewise.
28049 * nptl/version.c (banner): Do not include banner.h.
28050 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28051 Jelinek and BIND code.
28052
28053 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28054 Carlos O'Donell <carlos@redhat.com>
28055
28056 * support/xdlfcn.h: New file.
28057 * support/xdlfcn.c: New file.
28058 * support/Makefile (libsupport-routines): Add xdlfcn.
28059 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28060
28061 2017-09-20 Joseph Myers <joseph@codesourcery.com>
28062
28063 [BZ #20142]
28064 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28065 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28066 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28067 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28068 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28069 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28070 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28071 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28072
28073 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28074 Ricky Zhou <rickyz@google.com>
28075 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
28076
28077 [BZ #14333]
28078 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28079 Remove atomics.
28080 (__new_exitfn): Fail registration when we finished at_exit processing.
28081 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28082 * stdlib/on_exit.c (__on_exit): Likewise.
28083 * stdlib/exit.c (__exit_funcs_done): New variable.
28084 (__run_exit_handlers): Use __exit_funcs_lock.
28085 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28086 declarations.
28087 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28088 (test-cxa_atexit-race, test-on_exit-race): New tests.
28089 * stdlib/test-atexit-race-common.c: New file.
28090 * stdlib/test-atexit-race.c: New file.
28091 * stdlib/test-at_quick_exit-race.c: New file.
28092 * stdlib/test-cxa_atexit-race.c: New file.
28093 * stdlib/test-on_exit-race.c: New file.
28094
28095 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
28096
28097 * benchtests/Makefile: Add exp2f and log2f benchmarks.
28098 * benchtests/exp2f-inputs: Copy of expf-inputs.
28099 * benchtests/log2f-inputs: Copy of logf-inputs.
28100
28101 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28102
28103 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28104 Explicitly take address of first element of array arguments in
28105 call to INLINE_SYSCALL.
28106
28107 2017-09-19 Andreas Schwab <schwab@suse.de>
28108
28109 [BZ #22134]
28110 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28111 execveat first.
28112 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28113 unimplemented.
28114 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28115 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28116 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28117 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28118 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28119 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28120 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28121 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28122 * posix/Makefile (tests): Add tst-fexecve.
28123 * posix/tst-fexecve.c: New file.
28124
28125 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28126
28127 * benchtests/Makefile: Add logf benchmark.
28128 * benchtests/logf-inputs: Add reduced trace from wrf_r.
28129
28130 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28131
28132 * benchtests/Makefile: Add expf benchmark.
28133 * benchtests/expf-inputs: Add reduced trace from wrf_r.
28134
28135 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28136
28137 * csu/Makefile: Add -funwind-tables to libc-start.c.
28138 * debug/Makefile: Add -funwind-tables to backtrace.c.
28139 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28140 * sysdeps/arm/Makefile: Likewise.
28141 * sysdeps/i386/Makefile: Likewise.
28142 * sysdeps/m68k/Makefile: Likewise.
28143 * sysdeps/mips/Makefile: Likewise.
28144 * sysdeps/nios2/Makefile: Likewise.
28145 * sysdeps/sh/Makefile: Likewise.
28146 * sysdeps/sparc/Makefile: Likewise.
28147
28148 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28149
28150 * benchtests/Makefile (bench-math): Add trunc and truncf.
28151 (CFLAGS-bench-trunc.c): New variable.
28152 (CFLAGS-bench-truncf.c): Likewise.
28153 * benchtests/trunc-inputs: New file.
28154 * benchtests/truncf-inputs: Likewise.
28155
28156 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28157
28158 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28159
28160 2017-09-18 Joseph Myers <joseph@codesourcery.com>
28161
28162 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28163 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28164 redefine.
28165 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28166 (exp10l): Define as weak alias.
28167 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28168 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28169 and redefine.
28170 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28171 (remainderl): Define as weak alias.
28172
28173 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28174 (fmal): Define using libm_alias_ldouble.
28175 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28176 (acoshl): Define using libm_alias_ldouble.
28177 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28178 (acosl): Define using libm_alias_ldouble.
28179 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28180 (asinl): Define using libm_alias_ldouble.
28181 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28182 (atan2l): Define using libm_alias_ldouble.
28183 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28184 (atanhl): Define using libm_alias_ldouble.
28185 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28186 (coshl): Define using libm_alias_ldouble.
28187 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28188 (exp10l): Define using libm_alias_ldouble.
28189 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28190 (exp2l): Define using libm_alias_ldouble.
28191 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28192 (expl): Define using libm_alias_ldouble.
28193 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28194 (fmodl): Define using libm_alias_ldouble.
28195 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28196 (hypotl): Define using libm_alias_ldouble.
28197 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28198 (j0l): Define using libm_alias_ldouble.
28199 (y0l): Likewise.
28200 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28201 (j1l): Define using libm_alias_ldouble.
28202 (y1l): Likewise.
28203 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28204 (jnl): Define using libm_alias_ldouble.
28205 (ynl): Likewise.
28206 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28207 (log10l): Define using libm_alias_ldouble.
28208 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28209 (log2l): Define using libm_alias_ldouble.
28210 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28211 (logl): Define using libm_alias_ldouble.
28212 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28213 (powl): Define using libm_alias_ldouble.
28214 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28215 (remainderl): Define using libm_alias_ldouble.
28216 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28217 (sinhl): Define using libm_alias_ldouble.
28218 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28219 (sqrtl): Define using libm_alias_ldouble.
28220 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28221 (tgammal): Define using libm_alias_ldouble.
28222 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28223 (exp10l): Do not use long_double_symbol here.
28224 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28225 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28226 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28227 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28228 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28229 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28230 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28231 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28232 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28233 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28234 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28235 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28236 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28237 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28238 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28239 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28240 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28241 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28242 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28243 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28244 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28245 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28246
28247 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28248
28249 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28250 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28251
28252 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28253
28254 * io/read.c (read): Add libc_hidden_weak.
28255 * sysdeps/mach/hurd/read.c (read): Likewise.
28256 * io/write.c (write): Likewise.
28257 * sysdeps/mach/hurd/write.c (write): Likewise.
28258 * io/pread64.c (__pread64): Likewise.
28259 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28260 * posix/pread64.c (__pread64): Add libc_hidden_def.
28261
28262 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28263
28264 * benchtests/scripts/compare_strings.py: New option -g.
28265 (draw_graph): Print a message that a graph is being generated.
28266 (process_results): Generate graph only if -g is passed.
28267 (main): Process option -g.
28268
28269 * benchtests/scripts/compare_strings.py (process_results):
28270 Better spacing for output.
28271
28272 * benchtests/scripts/compare_strings.py: Use argparse.
28273 * benchtests/README: Document existence of compare_strings.py.
28274
28275 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28276
28277 * math/s_fma.c: Include <libm-alias-double.h>.
28278 (fma): Define using libm_alias_double.
28279 * math/s_nextafter.c: Include <libm-alias-double.h>.
28280 (nextafter): Define using libm_alias_double.
28281 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28282 (acos): Define using libm_alias_double.
28283 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28284 (aocsh): Define using libm_alias_double.
28285 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28286 (asin): Define using libm_alias_double.
28287 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28288 (atan2): Define using libm_alias_double.
28289 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28290 (atanh): Define using libm_alias_double.
28291 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28292 (cosh): Define using libm_alias_double.
28293 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28294 (exp10): Define using libm_alias_double.
28295 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28296 (exp2): Define using libm_alias_double.
28297 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28298 (exp): Define using libm_alias_double.
28299 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28300 (fmod): Define using libm_alias_double.
28301 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28302 (hypot): Define using libm_alias_double.
28303 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28304 (j0): Define using libm_alias_double.
28305 (y0): Likewise.
28306 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28307 (j1): Define using libm_alias_double.
28308 (y1): Likewise.
28309 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28310 (jn): Define using libm_alias_double.
28311 (yn): Likewise.
28312 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28313 (log10): Define using libm_alias_double.
28314 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28315 (log2): Define using libm_alias_double.
28316 * math/w_log_compat.c: Include <libm-alias-double.h>.
28317 (log): Define using libm_alias_double.
28318 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28319 (pow): Define using libm_alias_double.
28320 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28321 (remainder): Define using libm_alias_double.
28322 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28323 (sinh): Define using libm_alias_double.
28324 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28325 (sqrt): Define using libm_alias_double.
28326 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28327 (tgamma): Define using libm_alias_double.
28328 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28329 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28330 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28331 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28332 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28333 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28334 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28335 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28336 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28337 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28338 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28339 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28340 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28341 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28342 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28343 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28344 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28345 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28346 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28347 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28348 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28349 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28350 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28351 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28352 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28353
28354 * math/e_acoshl.c: Remove.
28355 * math/e_acosl.c: Likewise.
28356 * math/e_asinl.c: Likewise.
28357 * math/e_atan2l.c: Likewise.
28358 * math/e_atanhl.c: Likewise.
28359 * math/e_coshl.c: Likewise.
28360 * math/e_expl.c: Likewise.
28361 * math/e_fmodl.c: Likewise.
28362 * math/e_gammal_r.c: Likewise.
28363 * math/e_hypotl.c: Likewise.
28364 * math/e_j0l.c: Likewise.
28365 * math/e_j1l.c: Likewise.
28366 * math/e_jnl.c: Likewise.
28367 * math/e_lgammal_r.c: Likewise.
28368 * math/e_log10l.c: Likewise.
28369 * math/e_log2l.c: Likewise.
28370 * math/e_logl.c: Likewise.
28371 * math/e_powl.c: Likewise.
28372 * math/e_rem_pio2l.c: Likewise.
28373 * math/e_sinhl.c: Likewise.
28374 * math/e_sqrtf128.c: Likewise.
28375 * math/e_sqrtl.c: Likewise.
28376 * math/k_cosl.c: Likewise.
28377 * math/k_sinl.c: Likewise.
28378 * math/k_tanl.c: Likewise.
28379 * math/s_asinhl.c: Likewise.
28380 * math/s_atanl.c: Likewise.
28381 * math/s_cbrtl.c: Likewise.
28382 * math/s_erfl.c: Likewise.
28383 * math/s_expm1l.c: Likewise.
28384 * math/s_log1pl.c: Likewise.
28385 * math/s_tanhl.c: Likewise.
28386
28387 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28388
28389 [BZ #21745]
28390 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28391 [$(subdir) = math] (sysdep_calls): New variable. Has the
28392 previous contents of sysdep_routines, but re-sorted..
28393 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28394 sysdep_calls.
28395 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28396 defined in sysdep_calls and replace by the respective m_* names.
28397 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28398 (compat_symbol): Undefine to avoid duplicated compat symbols in
28399 libc.
28400
28401 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28402
28403 * math/s_fmaf.c: Include <libm-alias-float.h>.
28404 (fmaf): Define using libm_alias_float.
28405 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28406 (acosf): Define using libm_alias_float.
28407 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28408 (acoshf): Define using libm_alias_float.
28409 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28410 (asinf): Define using libm_alias_float.
28411 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28412 (atan2f): Define using libm_alias_float.
28413 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28414 (atanhf): Define using libm_alias_float.
28415 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28416 (coshf): Define using libm_alias_float.
28417 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28418 (exp10f): Define using libm_alias_float.
28419 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28420 (fmodf): Define using libm_alias_float.
28421 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28422 (hypotf): Define using libm_alias_float.
28423 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28424 (j0f): Define using libm_alias_float.
28425 (y0f): Likewise.
28426 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28427 (j1f): Define using libm_alias_float.
28428 (y1f): Likewise.
28429 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28430 (jnf): Define using libm_alias_float.
28431 (ynf): Likewise.
28432 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28433 (log10f): Define using libm_alias_float.
28434 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28435 (log2f): Define using libm_alias_float.
28436 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28437 (logf): Define using libm_alias_float.
28438 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28439 (powf): Define using libm_alias_float.
28440 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28441 (remainderf): Define using libm_alias_float.
28442 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28443 (sinhf): Define using libm_alias_float.
28444 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28445 (sqrtf): Define using libm_alias_float.
28446 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28447 (tgammaf): Define using libm_alias_float.
28448
28449 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28450
28451 * include/math.h (roundeven): Change hidden_proto call to
28452 __roundeven.
28453 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28454 alias.
28455 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28456 (y0): Rename to __y0 and define as weak alias.
28457 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28458 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28459 alias.
28460 (y0f): Rename to __y0f and define as weak alias.
28461 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28462 alias.
28463 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28464 (y1): Rename to __y1 and define as weak alias.
28465 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28466 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28467 alias.
28468 (y1f): Rename to __y1f and define as weak alias.
28469 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28470 alias.
28471 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28472 (yn): Rename to __yn and define as weak alias.
28473 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28474 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28475 alias.
28476 (ynf): Rename to __ynf and define as weak alias.
28477 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28478 (fromfp): Define as weak alias.
28479 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28480 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28481 (fromfpx): Define as weak alias.
28482 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28483 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28484 __getpayload and define as weak alias.
28485 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28486 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28487 __roundeven and define as weak alias.
28488 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28489 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28490 __setpayload.
28491 (setpayload): Define as weak alias.
28492 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28493 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28494 __setpayloadsig.
28495 (setpayloadsig): Define as weak alias.
28496 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28497 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28498 __totalorder and define as weak alias.
28499 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28500 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28501 to __totalordermag and define as weak alias.
28502 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28503 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28504 (ufromfp): Define as weak alias.
28505 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28506 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28507 __ufromfpx.
28508 (ufromfpx): Define as weak alias.
28509 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28510 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28511 Rename to __getpayload and define as weak alias.
28512 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28513 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28514 Rename to __roundeven and define as weak alias.
28515 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28516 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28517 Rename to __totalorder and define as weak alias.
28518 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28519 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28520 (totalordermag): Rename to __totalordermag and define as weak
28521 alias.
28522 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28523 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28524 macro.
28525 (__roundevenl): Likewise.
28526 (__totalorderl): Likewise.
28527 (__totalordermagl): Likewise
28528 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28529 __fromfpf128.
28530 (fromfpf128): Define as weak alias.
28531 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28532 __fromfpxf128.
28533 (fromfpxf128): Define as weak alias.
28534 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28535 __setpayloadf128.
28536 (setpayloadf128): Define as weak alias.
28537 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28538 __setpayloadsigf128.
28539 (setpayloadsigf128): Define as weak alias.
28540 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28541 __ufromfpf128.
28542 (ufromfpf128): Define as weak alias.
28543 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28544 __ufromfpxf128.
28545 (ufromfpxf128): Define as weak alias.
28546 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28547 (fromfpf): Define as weak alias.
28548 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28549 __fromfpxf.
28550 (fromfpxf): Define as weak alias.
28551 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28552 __getpayloadf and define as weak alias.
28553 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28554 __roundevenf and define as weak alias.
28555 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28556 __setpayloadf.
28557 (setpayloadf): Define as weak alias.
28558 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28559 __setpayloadsigf.
28560 (setpayloadsigf): Define as weak alias.
28561 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28562 __totalorderf and define as weak alias.
28563 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28564 Rename to __totalordermagf and define as weak alias.
28565 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28566 __ufromfpf.
28567 (ufromfpf): Define as weak alias.
28568 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28569 __ufromfpxf.
28570 (ufromfpxf): Define as weak alias.
28571 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28572 __fromfpl.
28573 (fromfpl): Define as weak alias.
28574 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28575 __fromfpxl.
28576 (fromfpxl): Define as weak alias.
28577 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28578 to __getpayloadl and define as weak alias.
28579 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28580 __roundevenl and define as weak alias.
28581 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28582 __setpayloadl.
28583 (setpayloadl): Define as weak alias.
28584 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28585 __setpayloadsigl.
28586 (setpayloadsigl): Define as weak alias.
28587 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28588 to __totalorderl and define as weak alias.
28589 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28590 Rename to __totalordermagl and define as weak alias.
28591 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28592 __ufromfpl.
28593 (ufromfpl): Define as weak alias.
28594 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28595 __ufromfpxl.
28596 (ufromfpxl): Define as weak alias.
28597 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28598 __fromfpl.
28599 (fromfpl): Define as weak alias.
28600 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28601 __fromfpxl.
28602 (fromfpxl): Define as weak alias.
28603 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28604 Rename to __getpayloadl and define as weak alias.
28605 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28606 to __roundevenl and define as weak alias. Call __roundeven
28607 instead of roundeven.
28608 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28609 __setpayloadl.
28610 (setpayloadl): Define as weak alias.
28611 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28612 __setpayloadsigl.
28613 (setpayloadsigl): Define as weak alias.
28614 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28615 Rename to __totalorderl and define as weak alias.
28616 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28617 Rename to __totalordermagl and define as weak alias.
28618 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28619 __ufromfpl.
28620 (ufromfpl): Define as weak alias.
28621 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28622 __ufromfpxl.
28623 (ufromfpxl): Define as weak alias.
28624 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28625 __fromfpl.
28626 (fromfpl): Define as weak alias.
28627 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28628 __fromfpxl.
28629 (fromfpxl): Define as weak alias.
28630 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28631 __getpayloadl and define as weak alias.
28632 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28633 __roundevenl and define as weak alias.
28634 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28635 __setpayloadl.
28636 (setpayloadl): Define as weak alias.
28637 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28638 __setpayloadsigl.
28639 (setpayloadsigl): Define as weak alias.
28640 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28641 __totalorderl and define as weak alias.
28642 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28643 Rename to __totalordermagl and define as weak alias.
28644 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28645 __ufromfpl.
28646 (ufromfpl): Define as weak alias.
28647 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28648 __ufromfpxl.
28649 (ufromfpxl): Define as weak alias.
28650
28651 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28652
28653 * benchtests/bench-string.h (realloc_bufs): New function.
28654 (test_init): Call it.
28655 * benchtests/bench-memset-large.c (do_test): Likewise.
28656 * benchtests/bench-memset.c (do_test): Likewise.
28657
28658 * benchtests/bench-memset-large.c: Print output in JSON
28659 format.
28660 * benchtests/bench-memset.c: Likewise.
28661
28662 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28663
28664 [BZ #21084]
28665 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28666 * iconvdata/Makefile: Add IBM858.
28667 * iconvdata/gconv-modules: Likewise.
28668 * iconvdata/tst-tables.sh: Likewise.
28669 * iconvdata/ibm858.c: New file.
28670 * localedata/charmaps/IBM858: Likewise.
28671
28672 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28673
28674 [BZ #22023]
28675 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28676 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28677
28678 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28679
28680 [BZ #22112]
28681 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28682 and add tel_int_fmt.
28683
28684 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28685
28686 * sysdeps/generic/libm-alias-float128.h: New file.
28687 * sysdeps/generic/math-type-macros-float128.h: Include
28688 <libm-alias-float128.h>.
28689 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28690
28691 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28692
28693 * sysdeps/generic/libm-alias-ldouble.h: New file.
28694 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28695 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28696 * sysdeps/generic/math-type-macros-ldouble.h: Include
28697 <libm-alias-ldouble.h>.
28698 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28699 libm_alias_ldouble.
28700
28701 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28702
28703 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28704 * math/w_exp_compat.c: ... here.
28705 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28706 * math/w_expf_compat.c: ... here.
28707 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28708 * math/w_expl_compat.c: ... here.
28709 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28710 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28711 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28712 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28713
28714 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28715
28716 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28717 redefine.
28718 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28719 macro.
28720 (ldexpl): Only define as compat symbol for libc, not libm.
28721 (scalbnl): Define as compat symbol for libc here.
28722 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28723 define for [IS_IN (libc)].
28724 (__ldexpl_2): Remove alias.
28725 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28726 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28727 name in long_double_symbol call.
28728 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28729 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28730 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28731 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28732 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28733 Remove macro.
28734 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28735 Define as compat symbol.
28736
28737 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28738
28739 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28740 * sysdeps/unix/sysv/linux/alpha/Makefile
28741 [$(subdir) = csu] (sysdep_routines): Remove rule.
28742
28743 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28744
28745 * sysdeps/generic/libm-alias-double.h: New file.
28746 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28747 * sysdeps/generic/math-type-macros-double.h: Include
28748 <libm-alias-double.h>.
28749 [declare_mgen_alias] (declare_mgen_alias): Define to use
28750 libm_alias_double.
28751 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28752 (M_LIBM_NEED_COMPAT): Remove macro.
28753 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28754 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28755 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28756 code.
28757 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28758 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28759 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28760 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28761 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28762 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28763 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28764 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28765 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28766 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28767 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28768 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28769 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28770 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28771 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28772 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28773 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28774 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28775 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28776 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28777 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28778 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28779 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28780 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28781 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28782 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28783 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28784 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28785 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28786 macro.
28787 (declare_mgen_alias): New macro.
28788 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28789 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28791 (M_LIBM_NEED_COMPAT): Remove macro.
28792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28793 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28794 <first-versions.h>.
28795 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28796 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28797
28798 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28799
28800 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28801 (declare_mgen_alias_2): Remove.
28802 * sysdeps/generic/math-type-macros-double.h
28803 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28804 Likewise.
28805 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28806 alias.
28807 (ldexp): Define with declare_mgen_alias.
28808 (scalbn): Likewise.
28809
28810 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28811
28812 * grp/initgroups.c: Include config.h.
28813 (DEFAULT_CONFIG): New macro.
28814 (internal_getgrouplist): Use DEFAULT_CONFIG.
28815 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28816 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28817 (DEFAULT_DEFCONFIG): New macro.
28818 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28819 * nss/grp-lookup.c: Include config.h
28820 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28821 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28822 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28823 * manual/nss.texi: Update default values section.
28824
28825 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28826
28827 [BZ #21967]
28828 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28829 New.
28830 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28831 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28832 Handle MathVec_Prefer_No_AVX512.
28833 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28834 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28835 is set.
28836
28837 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28838
28839 * posix/sched_primax.c (__sched_get_priority_max): Add
28840 libc_hidden_def.
28841 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28842 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28843 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28844 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28845 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28846 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28847 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28848 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28849 Add aliases.
28850
28851 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28852
28853 * sysdeps/generic/libm-alias-float.h: New file.
28854 * sysdeps/generic/math-type-macros-float.h: Include
28855 <libm-alias-float.h>.
28856 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28857
28858 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28859
28860 [BZ #22093]
28861 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28862 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28863 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28864 (HWCAP_IMPORTANT): Likewise.
28865 (HWCAP_X86_64): New enum.
28866 (HWCAP_X86_AVX512_1): Updated.
28867 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28868 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28869 (modules-names): Add x86_64/tst-x86_64mod-1.
28870 (LDFLAGS-tst-x86_64mod-1.so): New.
28871 ($(objpfx)tst-x86_64-1): Likewise.
28872 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28873 (tst-x86_64-1-clean): Likewise.
28874 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28875 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28876
28877 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28878
28879 * po/sv.po: Update translations.
28880 * po/fr.po: Likewise.
28881
28882 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28883
28884 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28885 seconds.
28886 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28887 seconds.
28888 * elf/rtld-Rules: Fix $(error) use.
28889
28890 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28891
28892 [BZ #14925]
28893 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28894 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28895 * localedata/locales/bn_BD: “Bengali” was still used in some
28896 comments. Change it to “Bangla”.
28897
28898 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28899
28900 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28901
28902 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28903
28904 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28905 thunderx2t99p1 to list of cpu names.
28906 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28907 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28908
28909 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28910
28911 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28912 Use strcmp instead of tunable_is_name.
28913
28914 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28915
28916 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28917 (F_GET_RW_HINT): New macro.
28918 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28919 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28920 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28921 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28922 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28923 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28924 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28925 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28926 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28927
28928 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28929 (F_ADD_SEALS): New macro.
28930 [__USE_GNU] (F_GET_SEALS): Likewise.
28931 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28932 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28933 [__USE_GNU] (F_SEAL_GROW): Likewise.
28934 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28935
28936 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28937
28938 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28939 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28940 * posix/glob_internal.h (__glob_pattern_type):
28941 * posix/glob.c (glob):
28942 * posix/glob_pattern_p.c (__glob_pattern_p):
28943 Use them.
28944
28945 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28946 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28947 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28948 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28949 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28951 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28952 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28953 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28954 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28955 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28956 * sysdeps/wordsize-64/glob.c: Likewise.
28957 * sysdeps/wordsize-64/glob64.c: Likewise.
28958 * sysdeps/wordsize-64/globfree.c: Likewise.
28959 * sysdeps/wordsize-64/globfree64.c: Likewise.
28960 * sysdeps/unix/sysv/linux/glob.c: New file.
28961 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28962 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28963 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28964 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28965 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28966 adds !GLOB_NO_OLD_VERSION as an extra condition.
28967 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28968 using relative path instead of absolute one.
28969 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28970 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28971 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28972 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28973 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28974 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28975
28976 [BZ #1062]
28977 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28978 (glob): Use the same scratch buffer for both getlogin_r and
28979 getpwnam_r. Don’t require preallocation of the login name. This
28980 simplifies storage allocation, and corrects the handling of
28981 long login names.
28982
28983 [BZ #1062]
28984 * posix/glob.c (glob): Port recent patches to platforms
28985 lacking getpwnam_r.
28986 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28987 returns an error number rather than setting errno.
28988
28989 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28990 instead of GCC extension.
28991 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28992 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28993 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28994
28995 [BZ #866]
28996 [BZ #1062]
28997 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28998 * posix/bug-glob1.c: Remove file.
28999 * posix/tst-glob_symlinks.c: New file.
29000 * posix/glob.c (__lstat64): New macro.
29001 (is_dir): New function.
29002 (glob, glob_in_dir): Match symlinks even if they are dangling.
29003 (link_stat, link_exists_p): Remove. All uses removed.
29004
29005 [BZ #1062]
29006 [BZ #19971]
29007 * posix/glob.c (struct readdir_result): Remove skip_entry member.
29008 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
29009 All uses removed.
29010
29011 [BZ #1062]
29012 CVE-2017-15671
29013 * posix/Makefile (routines): Add globfree, globfree64, and
29014 glob_pattern_p.
29015 * posix/flexmember.h: New file.
29016 * posix/glob_internal.h: Likewise.
29017 * posix/glob_pattern_p.c: Likewise.
29018 * posix/globfree.c: Likewise.
29019 * posix/globfree64.c: Likewise.
29020 * sysdeps/gnu/globfree64.c: Likewise.
29021 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
29022 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29023 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
29024 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29025 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29026 * sysdeps/wordsize-64/globfree.c: Likewise.
29027 * sysdeps/wordsize-64/globfree64.c: Likewise.
29028 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29029 [NDEBUG): Remove comments.
29030 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29031 (dirent_type): New type. Use uint_fast8_t not
29032 uint8_t, as C99 does not require uint8_t.
29033 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29034 (struct readdir_result): Use dirent_type. Do not define skip_entry
29035 unless it is needed; this saves a byte on platforms lacking d_ino.
29036 (readdir_result_type, readdir_result_skip_entry):
29037 New functions, replacing ...
29038 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29039 these functions, which were removed. This makes the callers
29040 easier to read. All callers changed.
29041 (D_INO_TO_RESULT): Now empty if there is no d_ino.
29042 (size_add_wrapv, glob_use_alloca): New static functions.
29043 (glob, glob_in_dir): Check for size_t overflow in several places,
29044 and fix some size_t checks that were not quite right.
29045 Remove old code using SHELL since Bash no longer
29046 uses this.
29047 (glob, prefix_array): Separate MS code better.
29048 (glob_in_dir): Remove old Amiga and VMS code.
29049 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29050 separate files.
29051 (glob_in_dir): Do not rely on undefined behavior in accessing
29052 struct members beyond their bounds. Use a flexible array member
29053 instead
29054 (link_stat): Rename from link_exists2_p and return -1/0 instead of
29055 0/1. Caller changed.
29056 (glob): Fix memory leaks.
29057 * posix/glob64 (globfree64): Move to separate file.
29058 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29059 (globfree64): Remove hidden alias.
29060 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29061 oldglob.
29062 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29063 separate file.
29064 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29065 define.
29066 Move compat code to separate file.
29067 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29068 separate file.
29069
29070 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
29071
29072 * resolv/tst-resolv-qtypes.c (domain): Changed to
29073 "const char domain[] =".
29074
29075 2017-09-07 Joseph Myers <joseph@codesourcery.com>
29076
29077 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29078 version to 3.1.6.
29079
29080 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29081 (TCP_MD5SIG_EXT): Likewise.
29082 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29083 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29084 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
29085
29086 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29087
29088 2017-09-07 Mike FABIAN <mfabian@redhat.com>
29089
29090 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29091
29092 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
29093
29094 [BZ #22100]
29095 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29096
29097 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29098
29099 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29100 before assuming that the file is empty. Avoid testing buffer content
29101 when nread == 0.
29102
29103 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29104
29105 [BZ #18858]
29106 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29107 Remove define.
29108 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29109 Likewise.
29110 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29111 Likewise.
29112 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29113 Likewise.
29114 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29115 Likewise.
29116 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29117 Likewise.
29118 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29119 Likewise.
29120
29121 2017-09-06 Florian Weimer <fweimer@redhat.com>
29122
29123 * malloc/dynarray_emplace_enlarge.c
29124 (__libc_dynarray_emplace_enlarge): Add missing else.
29125
29126 2017-09-06 Florian Weimer <fweimer@redhat.com>
29127
29128 [BZ #22096]
29129 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29130 case of failure to obtain the global conf object.
29131
29132 2017-09-06 Florian Weimer <fweimer@redhat.com>
29133
29134 [BZ #22095]
29135 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29136 dynarray allocation failure.
29137
29138 2017-09-06 Florian Weimer <fweimer@redhat.com>
29139
29140 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29141 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29142 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29143 New functions.
29144 (response): Call them. Add 'p', '6' flag processing.
29145 (test_reverse): New function.
29146 (test_get2_any): Call it.
29147 (test_no_inet6): Add 'p' test.
29148 (test_inet6): Likewise.
29149
29150 2017-09-06 Florian Weimer <fweimer@redhat.com>
29151
29152 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29153 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29154 the QNAME.
29155 (test_gai): Adjust query names. Add additional tests.
29156 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29157 test_get2. Adjust query names. Add additional tests.
29158 (test_no_inet6): New function, extracted from threadfunc.
29159 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29160 Add additional tests.
29161
29162 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29163
29164 [BZ #22070]
29165 * localedata/unicode-gen/utf8_gen.py: Set the width for
29166 characters with Prepended_Concatenation_Mark property to 1
29167 * localedata/charmaps/UTF-8: Updated using the improved script.
29168
29169 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29170
29171 [BZ #21750]
29172 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29173 use the range notation for all ranges of neighbouring characters
29174 with the same width.
29175
29176 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29177
29178 * sysdeps/generic/math-type-macros-double.h: Include
29179 <math-svid-compat.h>.
29180 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29181 * sysdeps/generic/math-type-macros-float.h: Include
29182 <math-svid-compat.h>.
29183 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29184 * sysdeps/generic/math-type-macros-ldouble.h: Include
29185 <math-svid-compat.h>.
29186 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29187 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29188 condition.
29189 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29190 * math/w_acosf_compat.c: Likewise.
29191 * math/w_acosh_compat.c: Likewise.
29192 * math/w_acoshf_compat.c: Likewise.
29193 * math/w_acoshl_compat.c: Likewise.
29194 * math/w_acosl_compat.c: Likewise.
29195 * math/w_asin_compat.c: Likewise.
29196 * math/w_asinf_compat.c: Likewise.
29197 * math/w_asinl_compat.c: Likewise.
29198 * math/w_atan2_compat.c: Likewise.
29199 * math/w_atan2f_compat.c: Likewise.
29200 * math/w_atan2l_compat.c: Likewise.
29201 * math/w_atanh_compat.c: Likewise.
29202 * math/w_atanhf_compat.c: Likewise.
29203 * math/w_atanhl_compat.c: Likewise.
29204 * math/w_cosh_compat.c: Likewise.
29205 * math/w_coshf_compat.c: Likewise.
29206 * math/w_coshl_compat.c: Likewise.
29207 * math/w_exp10_compat.c: Likewise.
29208 * math/w_exp10f_compat.c: Likewise.
29209 * math/w_exp10l_compat.c: Likewise.
29210 * math/w_exp2_compat.c: Likewise.
29211 * math/w_exp2f_compat.c: Likewise.
29212 * math/w_exp2l_compat.c: Likewise.
29213 * math/w_fmod_compat.c: Likewise.
29214 * math/w_fmodf_compat.c: Likewise.
29215 * math/w_fmodl_compat.c: Likewise.
29216 * math/w_hypot_compat.c: Likewise.
29217 * math/w_hypotf_compat.c: Likewise.
29218 * math/w_hypotl_compat.c: Likewise.
29219 * math/w_j0_compat.c: Likewise.
29220 * math/w_j0f_compat.c: Likewise.
29221 * math/w_j0l_compat.c: Likewise.
29222 * math/w_j1_compat.c: Likewise.
29223 * math/w_j1f_compat.c: Likewise.
29224 * math/w_j1l_compat.c: Likewise.
29225 * math/w_jn_compat.c: Likewise.
29226 * math/w_jnf_compat.c: Likewise.
29227 * math/w_jnl_compat.c: Likewise.
29228 * math/w_lgamma_r_compat.c: Likewise.
29229 * math/w_lgammaf_r_compat.c: Likewise.
29230 * math/w_lgammal_r_compat.c: Likewise.
29231 * math/w_log10_compat.c: Likewise.
29232 * math/w_log10f_compat.c: Likewise.
29233 * math/w_log10l_compat.c: Likewise.
29234 * math/w_log2_compat.c: Likewise.
29235 * math/w_log2f_compat.c: Likewise.
29236 * math/w_log2l_compat.c: Likewise.
29237 * math/w_log_compat.c: Likewise.
29238 * math/w_logf_compat.c: Likewise.
29239 * math/w_logl_compat.c: Likewise.
29240 * math/w_pow_compat.c: Likewise.
29241 * math/w_powf_compat.c: Likewise.
29242 * math/w_powl_compat.c: Likewise.
29243 * math/w_remainder_compat.c: Likewise.
29244 * math/w_remainderf_compat.c: Likewise.
29245 * math/w_remainderl_compat.c: Likewise.
29246 * math/w_sinh_compat.c: Likewise.
29247 * math/w_sinhf_compat.c: Likewise.
29248 * math/w_sinhl_compat.c: Likewise.
29249 * math/w_sqrt_compat.c: Likewise.
29250 * math/w_sqrtf_compat.c: Likewise.
29251 * math/w_sqrtl_compat.c: Likewise.
29252 * math/w_tgamma_compat.c: Likewise.
29253 * math/w_tgammaf_compat.c: Likewise.
29254 * math/w_tgammal_compat.c: Likewise.
29255 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29256 [LIBM_SVID_COMPAT].
29257 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29258 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29259 [LIBM_SVID_COMPAT].
29260 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29261 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29262 [LIBM_SVID_COMPAT].
29263 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29264 * sysdeps/i386/fpu/w_sqrt.c: New file.
29265 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29266 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29267 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29268 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29269 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29270 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29271 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29272 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29273 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29274 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29275 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29276 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29277 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29278 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29279 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29280 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29281 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29282 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29283 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29284 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29285 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29286 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29287 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29288 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29289 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29290 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29291 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29292 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29293 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29294 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29295 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29296 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29297 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29298 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29299 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29300 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29301 * sysdeps/ia64/fpu/w_log.c: Likewise.
29302 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29303 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29304 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29305 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29306 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29307 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29308 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29309 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29310 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29311 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29312 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29313 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29314 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29315 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29316 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29317 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29318 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29319 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29320 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29321 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29322 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29323 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29324 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29325 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29326 [LIBM_SVID_COMPAT].
29327 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29328 * sysdeps/ieee754/k_standard.c: Likewise.
29329 * sysdeps/ieee754/k_standardf.c: Likewise.
29330 * sysdeps/ieee754/k_standardl.c: Likewise.
29331 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29332 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29333 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29334 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29335 long_double_symbol call on [LIBM_SVID_COMPAT].
29336 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29337 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29338 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29339 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29340 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29341 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29342 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29343 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29344 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29345 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29346 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29347 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29348 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29349 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29350 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29351 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29352 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29353 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29354 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29355 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29356 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29357 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29358
29359 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29360
29361 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29362 * malloc/tst-mallocstate.c: Convert from test-skeleton
29363 to test-driver. Ifdef code using TEST_COMPAT macro.
29364 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29365 * math/test-matherr.c: Likewise.
29366
29367 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29368
29369 [BZ #22086]
29370 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29371 comparing word with byte-swapped constant.
29372
29373 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29374
29375 [BZ #20498]
29376 * locale/iso-639.def: add Miskito.
29377 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29378 * localedata/locales/miq_NI: New file.
29379
29380 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29381
29382 [BZ #18822]
29383 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29384 (__mkdir): Likewise.
29385 * io/chmod.c (__chmod): Add libc_hidden_def.
29386 * io/mkdir.c (__mkdir): Likewise.
29387 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29388 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29389 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29390 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29391
29392 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29393
29394 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29395 version to 4.13.
29396
29397 [BZ #22082]
29398 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29399 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29400
29401 2017-09-04 Florian Weimer <fweimer@redhat.com>
29402
29403 * math/math.h: Issue warning if log is defined.
29404
29405 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29406
29407 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29408 kernel version to 4.13.
29409
29410 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29411
29412 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29413 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29414 parameter.
29415 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29416 just <bits/types.h>.
29417 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29418 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29419 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29420 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29421 * misc/preadv2.c: Include <errno.h>.
29422 * misc/preadv64v2.c: Include <errno.h>.
29423 * misc/pwritev2.c: Include <errno.h>.
29424 * misc/pwritev64v2.c: Include <errno.h>.
29425 * sysdeps/posix/preadv2.c: Include <errno.h>.
29426 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29427 Fix <unistd.h> inclusion.
29428 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29429 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29430 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29431 __strtoul_internal): New functions.
29432 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29433 * sysdeps/posix/system.c: Include <sigsetops.h>.
29434 * sysdeps/mach/hurd/i386/Makefile
29435 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29436 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29437 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29438 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29439 __feraiseexcept_renamed to feraiseexcept instead of
29440 __GI_feraiseexcept.
29441 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29442 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29443 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29444 RWF_NOWAIT): Define to 0 if undefined already.
29445 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29446 boils down to 0.
29447 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29448 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29449
29450 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29451
29452 * manual/math.texi (pow10): Do not document.
29453 (pow10f): Likewise.
29454 (pow10l): Likewise.
29455 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29456 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29457 * math/libm-test-exp10.inc (pow10_test): Remove.
29458 (do_test): Do not call pow10.
29459 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29460 [NO_LONG_DOUBLE] (pow10l): Likewise.
29461 * math/w_exp10f_compat.c (pow10f): Likewise.
29462 * math/w_exp10l_compat.c (pow10l): Likewise.
29463 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29464 (pow10): Make into compat symbol.
29465 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29466 (pow10f): Make into compat symbol.
29467 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29468 (pow10l): Make into compat symbol.
29469 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29470 pow10.
29471 (CFLAGS-nldbl-pow10.c): Remove variable..
29472 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29473 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29474 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29475 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29476 Undefine and redefine.
29477 (pow10l): Make into compat symbol.
29478 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29479 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29480 * sysdeps/arm/libm-test-ulps: Likewise.
29481 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29482 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29483 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29484 * sysdeps/microblaze/libm-test-ulps: Likewise.
29485 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29486 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29487 * sysdeps/nios2/libm-test-ulps: Likewise.
29488 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29489 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29490 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29491 * sysdeps/sh/libm-test-ulps: Likewise.
29492 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29493 * sysdeps/tile/libm-test-ulps: Likewise.
29494 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29495
29496 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29497
29498 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29499
29500 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29501
29502 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29503 "../ChangeLog.old/ChangeLog.8".
29504 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29505 "../ChangeLog.old/ChangeLog.14".
29506
29507 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29508
29509 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29510 Threads Library.
29511
29512 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29513
29514 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29515
29516 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29517
29518 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29519 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29520
29521 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29522
29523 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29524 32 atexit handlers.
29525
29526 2017-09-01 Zack Weinberg <zackw@panix.com>
29527
29528 * math/math.h (HUGE_VAL): Improve commentary.
29529
29530 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29531 Andreas Schwab <schwab@suse.de>
29532
29533 [BZ #21530]
29534 * include/stdio.h (__gen_tempfd): New function.
29535 * stdio-common/Makefile (routines): Add gentempfd.
29536 * stdio-common/gentempfd.c: New file.
29537 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29538 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29539 unnamed file first.
29540
29541 2017-09-01 Florian Weimer <fweimer@redhat.com>
29542
29543 [BZ #21915]
29544 [BZ #21922]
29545 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29546 result to determine success or failure, not the errno value.
29547 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29548 (tst-nss-files-hosts-erange): Link with -ldl.
29549 * nss/tst-nss-files-hosts-erange.c: New file.
29550 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29551 (do_test): Add NO_DATA tests.
29552 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29553 (do_test): Call it.
29554
29555 2017-09-01 Florian Weimer <fweimer@redhat.com>
29556
29557 [BZ #21922]
29558 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29559 coming from gethostbyname2_r.
29560
29561 2017-09-01 Florian Weimer <fweimer@redhat.com>
29562
29563 * support/namespace.h (struct support_chroot_configuration): Add
29564 hosts, host_conf.
29565 (struct support_chroot): Add path_hosts, path_host_conf.
29566 * support/support_chroot.c (write_file): New function.
29567 (support_chroot_create): Call it to process /etc/resolv.conf,
29568 /etc/hosts, /etc/host.conf.
29569 (support_chroot_free): Update.
29570
29571 2017-09-01 Florian Weimer <fweimer@redhat.com>
29572
29573 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29574 status indicates it is set.
29575
29576 2017-09-01 Florian Weimer <fweimer@redhat.com>
29577
29578 [BZ #20532]
29579 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29580 function lookup failures more reliable.
29581
29582 2017-09-01 Florian Weimer <fweimer@redhat.com>
29583
29584 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29585 (getcanonname): Likewise.
29586 (gaih_inet): Likewise.
29587
29588 2017-09-01 Florian Weimer <fweimer@redhat.com>
29589
29590 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29591 (getcanonname): Likewise.
29592 (gaih_inet): Likewise.
29593
29594 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29595 Richard Henderson <rth@twiddle.net>
29596
29597 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29598 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29599 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29600 (IREG_SIZE, OREG_SIZE): New macros.
29601 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29602 (IREG_SIZE, OREG_SIZE): New macros.
29603 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29604 (IREG_SIZE): New macro.
29605 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29606 (IREG_SIZE): New macro.
29607 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29608 New includes.
29609 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29610 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29611 (__CONCATX): Handle exceptions correctly on large values that may
29612 set FE_INVALID.
29613 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29614 Initialize if not already set.
29615 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29616
29617 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29618
29619 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29620 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29621 Likewise.
29622 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29623 Likewise.
29624 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29625 Likewise.
29626 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29627 Likewise.
29628 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29629 Likewise.
29630 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29631 Likewise.
29632 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29633 Likewise.
29634 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29635 (NO_CANCELLATION): Likewise.
29636 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29637 Likewise.
29638 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29639 Likewise.
29640 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29641 Likewise.
29642 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29643 (NO_CANCELLATION): Likewise.
29644 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29645 (NO_CANCELLATION): Likewise.
29646 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29647 Likewise
29648 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29649 Likewise.
29650 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29651 Likewise.
29652 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29653 Likewise.
29654 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29655 hidden prototype.
29656 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29657 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29658
29659 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29660
29661 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29662 in resolver call.
29663
29664 2017-08-31 Florian Weimer <fweimer@redhat.com>
29665
29666 * include/libc-symbols.h (internal_function): Remove.
29667
29668 2017-08-31 Florian Weimer <fweimer@redhat.com>
29669
29670 * stdlib/fmtmsg.c (internal_addseverity): Remove
29671 internal_function.
29672
29673 2017-08-31 Florian Weimer <fweimer@redhat.com>
29674
29675 * stdio-common/printf_fp.c (group_number): Remove
29676 internal_function.
29677 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29678
29679 2017-08-31 Florian Weimer <fweimer@redhat.com>
29680
29681 * posix/fnmatch.c (internal_function): Remove definition.
29682 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29683 * posix/regcomp.c (peek_token, init_word_char)
29684 (duplicate_node_closure, fetch_token, peek_token)
29685 (peek_token_bracket, build_range_exp, build_collating_symbol):
29686 Likewise.
29687 * posix/regex_internal.c (re_string_construct_common)
29688 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29689 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29690 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29691 (re_string_translate_buffer, re_string_reconstruct)
29692 (re_string_peek_byte_case, re_string_fetch_byte_case)
29693 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29694 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29695 (re_node_set_add_intersect, re_node_set_init_union)
29696 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29697 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29698 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29699 (re_acquire_state_context): Likewise.
29700 * posix/regex_internal.h (internal_function): Remove definition.
29701 (re_string_realloc_buffers, build_wcs_buffer)
29702 (build_wcs_upper_buffer, build_upper_buffer)
29703 (re_string_translate_buffer, re_string_context_at)
29704 (re_string_char_size_at, re_string_wchar_at)
29705 (re_string_elem_size_at): Likewise.
29706 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29707 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29708 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29709 (re_search_internal, re_search_2_stub, re_search_stub)
29710 (re_copy_regs, prune_impossible_nodes, check_matching)
29711 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29712 (free_fail_stack_return, sift_states_iter_mb)
29713 (sift_states_backward, build_sifted_states)
29714 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29715 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29716 (check_subexp_limits, sift_states_bkref, merge_state_array)
29717 (find_recover_state, transit_state, merge_state_with_log)
29718 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29719 (transit_state_mb, transit_state_bkref, get_subexp)
29720 (get_subexp_sub, find_subexp_node, check_arrival)
29721 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29722 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29723 (check_node_accept_bytes, find_collation_sequence_value)
29724 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29725 (acquire_init_state_context, check_halt_node_context)
29726 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29727 (sub_epsilon_src_nodes): Likewise.
29728 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29729 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29730 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29731 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29732 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29733 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29734 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29735 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29736 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29737 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29738 (PREADV): Likewise.
29739 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29740 (PREADV): Likewise.
29741 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29742 (PWRITEV): Likewise.
29743 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29744 (PWRITEV): Likewise.
29745 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29746 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29747
29748 2017-08-31 Florian Weimer <fweimer@redhat.com>
29749
29750 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29751 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29752 Remove internal_function.
29753 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29754 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29755 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29756 (__deallocate_stack, __libc_pthread_init)
29757 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29758 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29759 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29760 Likewise.
29761 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29762 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29763 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29764 Likewise.
29765 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29766 (__pthread_mutex_unlock_usercnt): Likewise.
29767
29768 2017-08-31 Florian Weimer <fweimer@redhat.com>
29769
29770 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29771 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29772 (fts_safe_changedir): Remove internal_function.
29773 * io/ftw.c (internal_function): Remove definition.
29774 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29775
29776 2017-08-31 Florian Weimer <fweimer@redhat.com>
29777
29778 * inet/deadline.c (__deadline_current_time)
29779 (__deadline_from_timeval, __deadline_to_ms): Remove
29780 internal_function.
29781 * inet/getnameinfo.c (nrl_domainname): Likewise.
29782 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29783 * inet/inet6_option.c (add_pad): Likewise.
29784 * inet/net-internal.h (__deadline_current_time)
29785 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29786 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29787 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29788 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29789
29790 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29791
29792 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29793 include <bits/nan.h>.
29794 * math/Makefile (headers): Remove bits/nan.h.
29795 * bits/nan.h: Remove.
29796 * sysdeps/ieee754/bits/nan.h: Likewise.
29797 * sysdeps/mips/bits/nan.h: Likewise.
29798
29799 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29800 not include <bits/inf.h>.
29801 * math/Makefile (headers): Remove bits/inf.h.
29802 * bits/inf.h: Remove.
29803 * sysdeps/ieee754/bits/inf.h: Likewise.
29804
29805 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29806 bits/huge_vall.h or bits/huge_val_flt128.h.
29807 (HUGE_VAL): Define directly here.
29808 [__USE_ISOC99] (HUGE_VALF): Likewise.
29809 [__USE_ISOC99] (HUGE_VALL): Likewise.
29810 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29811 (HUGE_VAL_F128): Likewise.
29812 * math/Makefile (headers): Remove bits/huge_val.h,
29813 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29814 * bits/huge_val.h: Remove.
29815 * bits/huge_val_flt128.h: Likewise.
29816 * bits/huge_valf.h: Likewise.
29817 * bits/huge_vall.h: Likewise.
29818 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29819 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29820 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29821 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29822 * sysdeps/sh/bits/huge_val.h: Likewise.
29823 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29824 * sysdeps/x86/bits/huge_vall.h: Likewise.
29825
29826 2017-08-31 Florian Weimer <fweimer@redhat.com>
29827
29828 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29829 internal_function.
29830 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29831 Likewise.
29832 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29833 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29834 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29835 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29836 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29837 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29838 * elf/dl-libc.c (dlerror_run): Likewise.
29839 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29840 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29841 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29842 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29843 Likewise.
29844 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29845 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29846 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29847 * elf/dl-profile.c (_dl_start_profile): Likewise.
29848 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29849 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29850 Likewise.
29851 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29852 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29853 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29854 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29855 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29856 (_dl_allocate_tls_storage): Likewise.
29857 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29858 (_dl_check_all_versions): Likewise.
29859 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29860 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29861 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29862 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29863 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29864 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29865 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29866 internal_function from __dl_start.
29867 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29868 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29869 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29870 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29871 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29872 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29873 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29874 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29875 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29876 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29877 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29878 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29879 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29880 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29881 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29882 Likewise.
29883 (struct rtld_global_ro): Remove internal_function from the
29884 _dl_lookup_symbol_x member.
29885 (_dl_symbol_value): Remove. No longer defined anywhere.
29886 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29887 internal_function.
29888 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29889 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29890 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29891 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29892 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29893 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29894 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29895 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29896 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29897 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29898 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29899 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29900
29901 2017-08-31 Florian Weimer <fweimer@redhat.com>
29902
29903 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29904 Remove internal_function.
29905 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29906 Likewise.
29907 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29908 Likewise.
29909
29910 2017-08-31 Florian Weimer <fweimer@redhat.com>
29911
29912 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29913 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29914 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29915
29916 2017-08-31 Florian Weimer <fweimer@redhat.com>
29917
29918 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29919 (__gai_enqueue_request): Remove internal_function.
29920 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29921 (__gai_remove_request, __gai_notify, __gai_notify_only)
29922 (__gai_sigqueue): Likewise.
29923 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29924 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29925 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29926 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29927 Likewise.
29928
29929 2017-08-31 Florian Weimer <fweimer@redhat.com>
29930
29931 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29932 * include/dirent.h (__opendirat, __getdents, __getdents64)
29933 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29934 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29935 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29936 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29937 Likewise.
29938 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29939
29940 2017-08-31 Florian Weimer <fweimer@redhat.com>
29941
29942 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29943 internal_function.
29944 (GETCWD_RETURN_TYPE): Likewise.
29945
29946 2017-08-31 Florian Weimer <fweimer@redhat.com>
29947
29948 * include/time.h (__tz_compute, __strptime_internal): Remove
29949 internal_function.
29950 * time/strptime_l.c (__strptime_internal): Likewise.
29951 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29952
29953 2017-08-31 Florian Weimer <fweimer@redhat.com>
29954
29955 * iconv/gconv.c (__gconv): Remove internal_function.
29956 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29957 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29958 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29959 (__gconv_release_cache): Likewise.
29960 * iconv/gconv_close.c (__gconv_close): Likewise.
29961 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29962 (read_conf_file, __gconv_get_path): Likewise.
29963 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29964 (__gconv_release_step, gen_steps, increment_counter)
29965 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29966 (__gconv_close_transform, free_modules_db): Likewise.
29967 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29968 Likewise.
29969 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29970 (__gconv_find_transform, __gconv_lookup_cache)
29971 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29972 (__gconv_close_transform, __gconv_release_cache)
29973 (__gconv_loaded_object, __gconv_release_shlib)
29974 (__gconv_compare_alias): Likewise.
29975 * iconv/gconv_open.c (__gconv_open): Likewise.
29976 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29977 * iconv/iconvconfig.c (add_module): Likewise.
29978 * intl/dcigettext.c (plural_lookup, guess_category_value)
29979 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29980 * intl/eval-plural.h (plural_eval): Likewise.
29981 * intl/finddomain.c (_nl_find_domain): Likewise.
29982 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29983 (_nl_load_domain, _nl_find_msg): Likewise.
29984 (internal_function): Remove definition.
29985 * intl/loadinfo.h (internal_function): Likewise.
29986 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29987 internal_function.
29988 * intl/localealias.c (internal_function): Remove definition.
29989 (read_alias_file): Remove internal_function.
29990 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29991 * intl/plural-exp.h (internal_function): Remove definition.
29992 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29993 internal_function.
29994 * intl/plural.c: Regenerate.
29995 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29996 * locale/coll-lookup.c (__collidx_table_lookup)
29997 (__collseq_table_lookup): Likewise.
29998 * locale/coll-lookup.h (__collidx_table_lookup)
29999 (__collseq_table_lookup): Likewise.
30000 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
30001 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30002 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
30003 (_nl_unload_locale): Likewise.
30004 * locale/localeinfo.h (struct __locale_data): Remove
30005 internal_function from cleanup member.
30006 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
30007 (_nl_remove_locale, _nl_load_locale_from_archive)
30008 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
30009 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
30010 (_nl_cleanup_time): Remove internal_function.
30011 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
30012 (_nl_parse_alt_digit): Likewise.
30013 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
30014 (_nl_select_era_entry): Likewise.
30015 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
30016 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30017 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30018 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30019 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30020
30021 2017-08-31 Florian Weimer <fweimer@redhat.com>
30022
30023 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
30024 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30025 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
30026 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30027 Likewise.
30028 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30029 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30030 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30031 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30032 Likewise.
30033 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30034
30035 2017-08-31 Florian Weimer <fweimer@redhat.com>
30036
30037 * misc/getttyent.c (skip, value): Remove internal_function.
30038 * misc/syslog.c (openlog_internal): Likewise.
30039 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30040
30041 2017-08-31 Florian Weimer <fweimer@redhat.com>
30042
30043 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30044 (__nss_rewrite_field): Remove internal_function.
30045 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30046 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30047 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30048 * nss/nsswitch.c (nss_parse_file, nss_getline)
30049 (nss_parse_service_list, nss_new_service): Likewise.
30050 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30051 * nss/valid_field.c (__nss_valid_field): Likewise.
30052 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30053
30054 2017-08-31 Florian Weimer <fweimer@redhat.com>
30055
30056 * malloc/arena.c (__malloc_fork_lock_parent)
30057 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30058 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30059 internal_function from defintions.
30060 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30061 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30062 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30063 internal_function from declarations.
30064 * malloc/malloc.c (internal_function): Do not define.
30065 (mem2mem_check): Remove internal_function from declaration.
30066 (munmap_chunk, mremap_chunk): Remove internal_function.
30067 * malloc/mtrace.c (tr_where): Likewise.
30068
30069 2017-08-31 Florian Weimer <fweimer@redhat.com>
30070
30071 * include/rpc/pmap_clnt.h (__get_socket): Remove
30072 internal_function.
30073 * sunrpc/auth_des.c (synchronize): Likewise.
30074 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30075 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30076 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30077 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30078 (key_call): Likewise.
30079 * sunrpc/pm_getport.c (__get_socket): Likewise.
30080 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30081 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30082 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30083 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30084 (invalidate): Likewise.
30085 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30086 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30087 (set_input_fragment, get_input_bytes): Likewise.
30088
30089 2017-08-31 Florian Weimer <fweimer@redhat.com>
30090
30091 * malloc/malloc.c (_int_free): Remove locked variable and related
30092 asserts.
30093
30094 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
30095
30096 [BZ #22051]
30097 * Makerules (build-module-helper-objlist): Filter out
30098 $(elf-objpfx)sofini.os.
30099 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30100 needed.
30101
30102 2017-08-31 Florian Weimer <fweimer@redhat.com>
30103
30104 * libio/fcloseall.c: Assume weak_alias is defined.
30105 * libio/feof.c: Likewise.
30106 * libio/fileno.c: Likewise.
30107 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30108 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30109 definitions.
30110 (_IO_file_open): Call __open directly.
30111 (_IO_new_file_sync): Assume ESPIPE is defined.
30112 (_IO_file_seekoff_maybe_mmap): Call __read directly.
30113 (_IO_new_file_write): Call __write directly.
30114 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30115 * libio/ftello64.c (__ftello64): Assume EIO is defined.
30116 * libio/genops.c: Assume _LIBC is defined.
30117 (save_for_backup): Remove internal_function.
30118 * libio/getc.c: Assume weak_alias is defined.
30119 * libio/getwc.c: Likewise.
30120 * libio/iofclose.c: Assume _LIBC is defined.
30121 * libio/iofdopen.c: Likewise.
30122 (_IO_fcntl): Remove macro definition.
30123 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30124 Call __fcntl directly.
30125 * libio/iofflush.c: Assume weak_alias is defined.
30126 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30127 defined.
30128 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30129 * libio/iofgets.c: Likewise.
30130 * libio/iofopen.c: Assume _LIBC is defined.
30131 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30132 * libio/iofputs.c: Assume weak_alias is defined.
30133 * libio/iofread.c: Likewise.
30134 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30135 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30136 * libio/ioftell.c: Assume weak_alias is defined.
30137 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30138 * libio/iofwide.c: Assume _LIBC is defined.
30139 (_IO_fwide): Drop SHARED conditional because it is implied by
30140 SHLIB_COMPAT.
30141 * libio/iofwrite.c: Assume weak_alias is defined.
30142 * libio/iogetdelim.c: Likewise.
30143 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30144 * libio/iogetwline.c (wmemcpy): Remove macro definition.
30145 (_IO_getwline): Call __wmemcpy directly.
30146 * libio/iopopen.c: Assume _LIBC is defined.
30147 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30148 (_IO_close): Remove macro definitions.
30149 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30150 _exit directly.
30151 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30152 directly.
30153 * libio/ioputs.c: Assume weak_alias is defined.
30154 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30155 * libio/iosetbuffer.c: Assume weak_alias is defined.
30156 * libio/iosetvbuf.c: Likewise.
30157 * libio/ioungetc.c: Likewise.
30158 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30159 libc_hidden_def, libc_hidden_weak, NULL are defined.
30160 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30161 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30162 defined.
30163 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30164 definitions.
30165 (_IO_old_file_init_internal): Drop SHARED conditional because it
30166 is implied by SHLIB_COMPAT.
30167 (_IO_old_file_fopen): Call __open directly.
30168 (_IO_old_file_sync): Assume ESPIPE is defined.
30169 (_IO_old_file_write): Call __write directly.
30170 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30171 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30172 Call __fcntl directly.
30173 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30174 (_IO_old_fgetpos): Assume EIO is defined.
30175 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30176 (_IO_old_fgetpos64): Assume EIO is defined.
30177 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30178 (_IO_old_fsetpos): Assume EIO is defined.
30179 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30180 (_IO_old_fsetpos64): Assume EIO is defined.
30181 * libio/oldiopopen.c: Assume _LIBC is defined.
30182 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30183 (_IO_close): Remove macro definitions.
30184 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30185 directly.
30186 (_IO_old_proc_close): Call __close, __waitpid directly.
30187 * libio/put.c: Assume weak_alias is defined.
30188 * libio/stdfiles.c: Assume _LIBC is defined.
30189 * libio/stdio.c: Likewise.
30190 * libio/wfileops.c: Likewise.
30191 (_IO_wfile_sync): Assume ESPIPE is defined.
30192 * libio/wgenops.c: Assume _LIBC is defined.
30193 (save_for_wbackup): Remove internal_function.
30194
30195 2017-08-31 Florian Weimer <fweimer@redhat.com>
30196
30197 * malloc/malloc.c (top_check): Change return type to void. Remove
30198 internal_function.
30199 * malloc/hooks.c (top_check): Likewise.
30200 (malloc_check, realloc_check, memalign_check): Adjust.
30201
30202 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30203
30204 [BZ #21457]
30205 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30206 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30207 sigcontext and namespace requirements.
30208 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30209 * sysdeps/m68k/sys/ucontext.h: Likewise.
30210 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30211 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30212 <bits/sigcontext.h>.
30213 (__ctx): Define earlier.
30214 (mcontext_t): Define structure contents rather than using struct
30215 sigcontext.
30216 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30217 __glibc_reserved1 instead of __reserved.
30218 * sysdeps/unix/sysv/linux/alpha/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/alpha/ucontext-offsets.sym: Use
30224 mcontext_t instead of struct sigcontext.
30225 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30226 <bits/sigcontext.h>.
30227 (__ctx): Define earlier.
30228 (mcontext_t): Define structure contents rather than using struct
30229 sigcontext.
30230 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30231 <bits/sigcontext.h>.
30232 (__ctx): Define earlier.
30233 (mcontext_t): Define structure contents rather than using struct
30234 sigcontext.
30235 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30236 mcontext_t instead of struct sigcontext.
30237 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30238 mcontext_t instead of struct sigcontext.
30239 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30240 <bits/sigcontext.h>.
30241 (__ctx): New macro.
30242 (struct __ia64_fpreg_mcontext): New type.
30243 (mcontext_t): Define structure contents rather than using struct
30244 sigcontext.
30245 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30246 (uc_sigmask): Define using __ctx.
30247 (uc_stack): Likewise.
30248 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30249 <bits/sigcontext.h>.
30250 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30251 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30252 <bits/sigcontext.h>.
30253 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30254 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30255 <bits/sigcontext.h>.
30256 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30257 <bits/sigcontext.h>.
30258 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30259 <bits/sigcontext.h>.
30260 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30261 <bits/sigcontext.h>.
30262 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30263 <bits/sigcontext.h>.
30264 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30265 <bits/sigcontext.h>.
30266 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30267 <bits/sigcontext.h>.
30268 (__ctx): Define earlier.
30269 (mcontext_t): Define structure contents rather than using struct
30270 sigcontext.
30271 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30272 <bits/sigcontext.h>. Include <bits/types.h>.
30273 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30274 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30275 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30276 (test-xfail-UNIX98/signal.h/conform): Likewise.
30277 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30278 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30279 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30280 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30281 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30282 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30283 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30284 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30285 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30286
30287 2017-08-30 Florian Weimer <fweimer@redhat.com>
30288
30289 * malloc/dynarray_emplace_enlarge.c
30290 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30291 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30292 * malloc/tst-dynarray.c (test_long_overflow): New function.
30293 (do_test): Call it.
30294
30295 2017-08-30 Florian Weimer <fweimer@redhat.com>
30296
30297 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30298 (set_arena_corrupt): Remove definitions.
30299 (mtrim): Do not check for corrupt arena.
30300 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30301 Likewise.
30302
30303 2017-08-30 Florian Weimer <fweimer@redhat.com>
30304
30305 [BZ #21754]
30306 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30307 check_action.
30308 (ptmalloc_init): Do not set or use check_action.
30309 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30310 call to malloc_printerr. Remove return statement.
30311 (free_check): Likewise. Remove arena unlock.
30312 (top_check): Update comment. Adjust call to malloc_printerr.
30313 Remove heap repair code.
30314 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30315 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30316 (sysmalloc): Adjust call to malloc_printerr.
30317 (munmap_chunk, __libc_realloc): Likewise. Remove return
30318 statement.
30319 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30320 Remove errout label and corresponding gotos.
30321 (_int_free): Likewise. Remove arena unlock.
30322 (do_set_mallopt_check): Do not set check_action.
30323 (malloc_printerr): Adjust parameter list. Do not mark arena as
30324 corrupt.
30325 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30326 comment.
30327 * manual/probes.texi (Memory Allocation Probes): Remove
30328 memory_mallopt_check_action.
30329
30330 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30331
30332 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30333 Use pointer to uint64_t instead of long int for sp.
30334
30335 2017-08-30 Florian Weimer <fweimer@redhat.com>
30336
30337 [BZ #21754]
30338 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30339 without printing a backtrace. Do not leak any information in the
30340 error message.
30341 * manual/memory.texi (Heap Consistency Checking): Update.
30342 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30343
30344 2017-08-30 Florian Weimer <fweimer@redhat.com>
30345
30346 Do not scale NPTL tests with available number of CPUs.
30347 * nptl/tst-cond16.c (count): Set to constant value of 8.
30348 * nptl/tst-cond18.c (count): Likewise.
30349
30350 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30351
30352 [BZ #22035]
30353 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30354 Define to take a second argument that is a macro that
30355 concatentates a suffix, not the suffix itself.
30356 (__CONCAT_d): New macro.
30357 (__CONCAT_f): Likewise.
30358 (__CONCAT_l): Likewise.
30359
30360 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30361
30362 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30363 by child.
30364
30365 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30366 Aurelien Jarno <aurelien@aurel32.net>
30367 Maciej W. Rozycki <macro@imgtec.com>
30368
30369 [BZ #21956]
30370 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30371 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30372 `mips16-syscall6' and `mips16-syscall7'.
30373 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30374 (CFLAGS-mips16-syscall7.c): Remove.
30375 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30376 Remove `__mips16_syscall5', `__mips16_syscall6' and
30377 `__mips16_syscall7'.
30378 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30379 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30380 `__mips_syscall_return'.
30381 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30382 (__mips16_syscall1): Likewise.
30383 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30384 (__mips16_syscall2): Likewise.
30385 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30386 (__mips16_syscall3): Likewise.
30387 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30388 (__mips16_syscall4): Likewise.
30389 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30390 Remove.
30391 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30392 Remove.
30393 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30394 Remove.
30395 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30396 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30397 `__mips16_syscall5'. Remove prototype.
30398 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30399 `__mips16_syscall6'. Remove prototype.
30400 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30401 `__mips16_syscall7'. Remove prototype.
30402 (__nomips16, __mips16_syscall_return): Move to...
30403 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30404 (__nomips16, __mips_syscall_return): ... here.
30405 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30406 `__mips16_syscall_return' to `__mips_syscall_return'.
30407 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30408 `internal_syscall##nr'.
30409 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30410 `internal_syscall##nr'.
30411 (FORCE_FRAME_POINTER): Remove.
30412 (__mips_syscall5): New prototype.
30413 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30414 (__mips_syscall6): New prototype.
30415 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30416 (__mips_syscall7): New prototype.
30417 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30418 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30419 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30420 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30421 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30422 (sysdep_routines): Add libc-do-syscall.
30423 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30424 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30425
30426 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30427
30428 [BZ #21672]
30429 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30430 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30431 (advise_stack_range): New function.
30432 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30433 stack non required to advise_stack_range at allocatestack.c
30434
30435 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30436
30437 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30438
30439 2017-08-29 Florian Weimer <fweimer@redhat.com>
30440
30441 [BZ #22026]
30442 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30443 __end_fct. Mangle __end_fct after setting it to NULL.
30444 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30445 (modules-names, modules-names-tests): Add
30446 tst-gconv-init-failure-mod.
30447 (gconv-modules): New target.
30448 (tst-gconv-init-failure-mod.so): Link against libsupport.
30449 (tst-gconv-init-failure): Depend on gconv-modules,
30450 tst-gconv-init-failure-mod.so.
30451 * iconv/tst-gconv-init-failure-mod.c: New file.
30452 * iconv/tst-gconv-init-failure.c: Likewise.
30453 * iconv/test-gconv-modules: Likewise.
30454
30455 2017-08-29 Florian Weimer <fweimer@redhat.com>
30456
30457 [BZ #22025]
30458 * iconv/gconv_db.c (free_derivation): Remove redundant
30459 parentheses.
30460 (gen_steps): Unconditionally mangle __btowc_fct after
30461 initialization.
30462 (increment_counter): Likewise. Do not call init_fct for internal
30463 modules.
30464
30465 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30466
30467 [BZ #22028]
30468 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30469 (_MSUF_): Remove macro.
30470 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30471 Likewise.
30472 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30473 (__REDIRFROM_X): New macro.
30474 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30475 Likewise.
30476 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30477 (__REDIRTO_X): Likewise.
30478 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30479 arguments.
30480 (__MATH_REDIRCALL_2): Likewise.
30481 (__MATH_REDIRCALL_INTERNAL): Likewise.
30482 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30483 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30484 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30485 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30486 * math/test-finite-macros.c: New file.
30487 * math/Makefile (tests): Add test-finite-macros.
30488 (CFLAGS-test-finite-macros.c): New variable.
30489
30490 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30491 Jeff Law <law@redhat.com>
30492
30493 [BZ #22025]
30494 Mangle NULL pointers in iconv/gconv.
30495 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30496 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30497 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30498 is non-NULL before demangling the end_fct. Check for NULL
30499 end_fct after demangling.
30500 (__gconv_release_step): Demangle the end_fct before checking
30501 it for NULL. Remove assert on __shlibc_handle != NULL.
30502 (gen_steps): Don't check btowc_fct for NULL before mangling.
30503 Demangle init_fct before checking for NULL.
30504 (increment_counter): Likewise.
30505 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30506 end_fct for NULL before mangling.
30507 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30508 for NULL.
30509
30510 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30511
30512 [BZ #21971]
30513 * locale/iso-639.def: add Morisyen.
30514
30515 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30516
30517 [BZ #21930]
30518 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30519 (iszero): New C++ implementation that does not use
30520 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30521 signaling nans are enabled, since __builtin_types_compatible_p
30522 is a C-only feature.
30523 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30524 defined, include ieee754_float128.h for access to the union and
30525 member ieee854_float128.ieee.
30526 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30527 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30528 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30529 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30530 options of test-math-zero on powerpc64le.
30531
30532 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30533
30534 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30535 Change double to float.
30536
30537 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30538
30539 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30540 unconditional.
30541 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30542 conditional code; define contents only for [LIBM_SVID_COMPAT].
30543
30544 2017-08-28 Florian Weimer <fweimer@redhat.com>
30545
30546 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30547 (abi-lp64_be-options): Remove.
30548 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30549 (abi-hard-options): Likewise.
30550 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30551 (abi-o32_hard-options, abi-o32_soft_2008-options)
30552 (abi-o32_hard_2008-options, abi-n32_soft-options)
30553 (abi-n32_hard-options, abi-n32_soft_2008-options)
30554 (abi-n32_hard_2008-options, abi-n64_soft-options)
30555 (abi-n64_hard-options, abi-n64_soft_2008-options)
30556 (abi-n64_hard_2008-options): Likewise.
30557 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30558 (abi-64-v1-options, abi-64-v2-options): Likewise.
30559 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30560 (abi-64-options): Likewise.
30561 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30562 (abi-64-options): Likewise.
30563 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30564 (abi-64-options): Likewise.
30565 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30566 (abi-64-options, abi-x32-options): Likewise.
30567
30568 2017-08-28 Florian Weimer <fweimer@redhat.com>
30569
30570 Store supported list of SYS_* system calls in the source tree.
30571 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30572 (bits/syscall.h): Generate from list file.
30573 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30574 [$(subdir) = misc] (tests): Add tst-syscall-list.
30575 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30576 [$(subdir) = misc] (tst-syscall-list-macros.list)
30577 [$(subdir) = misc] (tst-syscall-list-nr.list)
30578 (tst-syscall-list-sys.list): Helper targets for new
30579 tst-syscall-list test.
30580 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30581 tst-syscall-list.sh.
30582 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30583 target. Do not include bits/syscall.d.
30584 [$(subdir) = misc] (generated): Do not update.
30585 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30586 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30587 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30588 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30589
30590 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30591
30592 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30593 (tst-cxa_atexit, tst-on_exit): Likewise.
30594 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30595 tst-cxa_atexit, and tst-on_exit.
30596 * stdlib/tst-atexit-common.c: New file.
30597 * stdlib/tst-atexit.c: New file.
30598 * stdlib/tst-at_quick_exit.c: New file.
30599 * stdlib/tst-cxa_atexit.c: New file.
30600 * stdlib/tst-on_exit.c: New file.
30601
30602 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30603
30604 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30605 * mach/stack_chk_fail_local.c: New file.
30606 * hurd/stack_chk_fail_local.c: New file.
30607 * mach/Machrules ($(interface-library)-routines): Add
30608 stack_chk_fail_local.
30609 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30610 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30611 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30612 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30613 * hurd/Makefile (CFLAGS-hurdstartup.o,
30614 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30615
30616 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30617
30618 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30619 (index_cpu_*, index_arch_*): Removed.
30620
30621 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30622
30623 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30624 Use uint64_t instead of unsigned long.
30625
30626 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30627
30628 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30629 [__HAVE_DISTINCT_FLOAT128].
30630
30631 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30632 of <bits/math-finite.h>.
30633 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30634 inclusion of <bits/math-finite.h>.
30635 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30636 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30637 __NO_LONG_DOUBLE_MATH].
30638 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30639 (__MATH_REDIRCALL_2): Likewise.
30640 (__MATH_REDIRCALL_INTERNAL): Likewise.
30641 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30642 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30643 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30644
30645 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30646 Remove file.
30647 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30648 Likewise.
30649 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30650 Likewise.
30651 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30652 Likewise.
30653 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30654 Likewise.
30655 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30656 Likewise.
30657 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30658 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30659 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30660 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30661 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30662 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30663 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30664 w_sqrtf_compat-ppc32.
30665
30666 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30667
30668 * math/math.h [defined __cplusplus] (issignaling): In the long
30669 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30670 is not defined. Call __issignaling, otherwise.
30671
30672 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30673
30674 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30675 syscall definitions and replace __builtin_expect with __glibc_likely.
30676 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30677 syscall.
30678 (SYSCALL_CANCELLABLE): Removedefinition
30679 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30680 definition.
30681 (PSEUDO_END): Likewise.
30682 [IS_IN (libpthread)] (CENABLE): Likewise.
30683 [IS_IN (libpthread)] (CDISABLE): Likewise.
30684 [IS_IN (libc)] (CENABLE): Likewise.
30685 [IS_IN (libc)] (CENABLE): Likewise.
30686 [IS_IN (librt)] (CDISABLE): Likewise.
30687 [IS_IN (librt)] (CDISABLE): Likewise.
30688 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30689 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30690 definition.
30691 (PSEUDO_END): Likewise.
30692 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30693 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30694 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30695 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30696 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30697 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30698 (CENABLE): Likewise.
30699 (CDISABLE): Likewise.
30700 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30701 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30702 defintion.
30703 (PSEUDO_END): Likewise.
30704 [IS_IN (libpthread)] (CENABLE): Likewise.
30705 [IS_IN (libpthread)] (CDISABLE): Likewise.
30706 [IS_IN (libc)] (CENABLE): Likewise.
30707 [IS_IN (libc)] (CENABLE): Likewise.
30708 [IS_IN (librt)] (CDISABLE): Likewise.
30709 [IS_IN (librt)] (CDISABLE): Likewise.
30710 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30711 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30712 definition.
30713 (PSEUDO_END): Likewise.
30714 [IS_IN (libpthread)] (CENABLE): Likewise.
30715 [IS_IN (libpthread)] (CDISABLE): Likewise.
30716 [IS_IN (libc)] (CENABLE): Likewise.
30717 [IS_IN (libc)] (CENABLE): Likewise.
30718 [IS_IN (librt)] (CDISABLE): Likewise.
30719 [IS_IN (librt)] (CDISABLE): Likewise.
30720 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30721 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30722 definition.
30723 (PSEUDO_END): Likewise.
30724 [IS_IN (libpthread)] (CENABLE): Likewise.
30725 [IS_IN (libpthread)] (CDISABLE): Likewise.
30726 [IS_IN (libc)] (CENABLE): Likewise.
30727 [IS_IN (libc)] (CENABLE): Likewise.
30728 [IS_IN (librt)] (CDISABLE): Likewise.
30729 [IS_IN (librt)] (CDISABLE): Likewise.
30730 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30731 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30732 definition.
30733 (PSEUDO_END): Likewise.
30734 [IS_IN (libpthread)] (CENABLE): Likewise.
30735 [IS_IN (libpthread)] (CDISABLE): Likewise.
30736 [IS_IN (libc)] (CENABLE): Likewise.
30737 [IS_IN (libc)] (CENABLE): Likewise.
30738 [IS_IN (librt)] (CDISABLE): Likewise.
30739 [IS_IN (librt)] (CDISABLE): Likewise.
30740 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30741 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30742 definition.
30743 (PSEUDO_END): Likewise.
30744 [IS_IN (libpthread)] (CENABLE): Likewise.
30745 [IS_IN (libpthread)] (CDISABLE): Likewise.
30746 [IS_IN (libc)] (CENABLE): Likewise.
30747 [IS_IN (libc)] (CENABLE): Likewise.
30748 [IS_IN (librt)] (CDISABLE): Likewise.
30749 [IS_IN (librt)] (CDISABLE): Likewise.
30750 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30751 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30752 definition.
30753 (PSEUDO_END): Likewise.
30754 [IS_IN (libpthread)] (CENABLE): Likewise.
30755 [IS_IN (libpthread)] (CDISABLE): Likewise.
30756 [IS_IN (libc)] (CENABLE): Likewise.
30757 [IS_IN (libc)] (CENABLE): Likewise.
30758 [IS_IN (librt)] (CDISABLE): Likewise.
30759 [IS_IN (librt)] (CDISABLE): Likewise.
30760 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30761 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30762 Remove definition.
30763 (PSEUDO_END): Likewise.
30764 [IS_IN (libpthread)] (CENABLE): Likewise.
30765 [IS_IN (libpthread)] (CDISABLE): Likewise.
30766 [IS_IN (libc)] (CENABLE): Likewise.
30767 [IS_IN (libc)] (CENABLE): Likewise.
30768 [IS_IN (librt)] (CDISABLE): Likewise.
30769 [IS_IN (librt)] (CDISABLE): Likewise.
30770 (SINGLE_THREAD_P): Likewise.
30771 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30772 definition.
30773 (PSEUDO_END): Likewise.
30774 [IS_IN (libpthread)] (CENABLE): Likewise.
30775 [IS_IN (libpthread)] (CDISABLE): Likewise.
30776 [IS_IN (libc)] (CENABLE): Likewise.
30777 [IS_IN (libc)] (CENABLE): Likewise.
30778 [IS_IN (librt)] (CDISABLE): Likewise.
30779 [IS_IN (librt)] (CDISABLE): Likewise.
30780 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30781 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30782 definition.
30783 (PSEUDO_END): Likewise.
30784 [IS_IN (libpthread)] (CENABLE): Likewise.
30785 [IS_IN (libpthread)] (CDISABLE): Likewise.
30786 [IS_IN (libc)] (CENABLE): Likewise.
30787 [IS_IN (libc)] (CENABLE): Likewise.
30788 [IS_IN (librt)] (CDISABLE): Likewise.
30789 [IS_IN (librt)] (CDISABLE): Likewise.
30790 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30791 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30792 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30793 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30794 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30795 definition.
30796 (PSEUDO_END): Likewise.
30797 [IS_IN (libpthread)] (CENABLE): Likewise.
30798 [IS_IN (libpthread)] (CDISABLE): Likewise.
30799 [IS_IN (libc)] (CENABLE): Likewise.
30800 [IS_IN (libc)] (CENABLE): Likewise.
30801 [IS_IN (librt)] (CDISABLE): Likewise.
30802 [IS_IN (librt)] (CDISABLE): Likewise.
30803 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30804 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30805 definition.
30806 (PSEUDO_END): Likewise.
30807 [IS_IN (libpthread)] (CENABLE): Likewise.
30808 [IS_IN (libpthread)] (CDISABLE): Likewise.
30809 [IS_IN (libc)] (CENABLE): Likewise.
30810 [IS_IN (libc)] (CENABLE): Likewise.
30811 [IS_IN (librt)] (CDISABLE): Likewise.
30812 [IS_IN (librt)] (CDISABLE): Likewise.
30813 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30814 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30815 definition.
30816 (PSEUDO_END): Likewise.
30817 [IS_IN (libpthread)] (CENABLE): Likewise.
30818 [IS_IN (libpthread)] (CDISABLE): Likewise.
30819 [IS_IN (libc)] (CENABLE): Likewise.
30820 [IS_IN (libc)] (CENABLE): Likewise.
30821 [IS_IN (librt)] (CDISABLE): Likewise.
30822 [IS_IN (librt)] (CDISABLE): Likewise.
30823 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30824 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30825 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30826 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30827 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30828 definition.
30829 (PSEUDO_END): Likewise.
30830 [IS_IN (libpthread)] (CENABLE): Likewise.
30831 [IS_IN (libpthread)] (CDISABLE): Likewise.
30832 [IS_IN (libc)] (CENABLE): Likewise.
30833 [IS_IN (libc)] (CENABLE): Likewise.
30834 [IS_IN (librt)] (CDISABLE): Likewise.
30835 [IS_IN (librt)] (CDISABLE): Likewise.
30836 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30837 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30838 definition.
30839 (PSEUDO_END): Likewise.
30840 [IS_IN (libpthread)] (CENABLE): Likewise.
30841 [IS_IN (libpthread)] (CDISABLE): Likewise.
30842 [IS_IN (libc)] (CENABLE): Likewise.
30843 [IS_IN (libc)] (CENABLE): Likewise.
30844 [IS_IN (librt)] (CDISABLE): Likewise.
30845 [IS_IN (librt)] (CDISABLE): Likewise.
30846 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30847
30848 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30849
30850 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30851
30852 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30853
30854 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30855
30856 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30857
30858 [BZ #21982]
30859 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30860 middle and outer with size_t instead of int. Repleace %d and
30861 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30862 "MAX (outer, nchars - 64)" to support unsigned outer and
30863 nchars. Also exit loop when outer == 0.
30864
30865 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30866
30867 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30868 * include/signal.h (__sigsuspend_nocancel): Likewise.
30869 * include/time.h (__nanosleep_nocancel): Likewise.
30870 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30871 * login/utmp_file.c: Include non cancellable syscall header.
30872 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30873 prototype.
30874
30875 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30876
30877 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30878 .byte sequences with AVX512F instructions.
30879 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30880 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30881 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30882 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30883 Likewise.
30884 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30885 Likewise.
30886
30887 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30888 Steve Ellcey <sellcey@cavium.com>
30889
30890 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30891 Use PTR_REG macro in cmp instruction.
30892
30893 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30894
30895 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30896 Change the return type of the ifunc resolver to match the return
30897 type of the target function.
30898
30899 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30900
30901 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30902 (preadv64): Likewise.
30903 (pwrite64(: Likewise.
30904 (pwritev64): Likewise.
30905
30906 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30907 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30908 (LOAD_ARGS_0): Likewise.
30909 (LOAD_ARGS_1): Likewise.
30910 (LOAD_ARGS_2): Likewise.
30911 (LOAD_ARGS_3): Likewise.
30912 (LOAD_ARGS_4): Likewise.
30913 (LOAD_ARGS_5): Likewise.
30914 (LOAD_ARGS_6): Likewise.
30915 (LOAD_REGS_0): Likewise.
30916 (LOAD_REGS_1): Likewise.
30917 (LOAD_REGS_2): Likewise.
30918 (LOAD_REGS_3): Likewise.
30919 (LOAD_REGS_4): Likewise.
30920 (LOAD_REGS_5): Likewise.
30921 (LOAD_REGS_6): Likewise.
30922 (ASM_ARGS_0): Likewise.
30923 (ASM_ARGS_1): Likewise.
30924 (ASM_ARGS_2): Likewise.
30925 (ASM_ARGS_3): Likewise.
30926 (ASM_ARGS_4): Likewise.
30927 (ASM_ARGS_5): Likewise.
30928 (ASM_ARGS_6): Likewise.
30929 (LOAD_ARGS_TYPES_1): Likewise.
30930 (LOAD_ARGS_TYPES_2): Likewise.
30931 (LOAD_ARGS_TYPES_3): Likewise.
30932 (LOAD_ARGS_TYPES_4): Likewise.
30933 (LOAD_ARGS_TYPES_5): Likewise.
30934 (LOAD_ARGS_TYPES_6): Likewise.
30935 (LOAD_REGS_TYPES_1): Likewise.
30936 (LOAD_REGS_TYPES_2): Likewise.
30937 (LOAD_REGS_TYPES_3): Likewise.
30938 (LOAD_REGS_TYPES_4): Likewise.
30939 (LOAD_REGS_TYPES_5): Likewise.
30940 (LOAD_REGS_TYPES_6): Likewise.
30941 (TYPEFY): New define.
30942 (ARGIFY): Likewise.
30943 (internal_syscall0): Likewise.
30944 (internal_syscall1): Likewise.
30945 (internal_syscall2): Likewise.
30946 (internal_syscall3): Likewise.
30947 (internal_syscall4): Likewise.
30948 (internal_syscall5): Likewise.
30949 (internal_syscall6): Likewise.
30950 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30951 (INTERNAL_SYSCALL_NCS): Remove define.
30952 (internal_syscall1): Add define.
30953
30954 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30955
30956 * math/w_remainder_compat.c: Remove duplicate inclusion of
30957 math-svid-compat.h.
30958 * math/w_remainderf_compat.c: Likewise.
30959 * math/w_remainderl_compat.c: Likewise.
30960
30961 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30962
30963 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30964
30965 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30966
30967 [BZ #21684]
30968 * math/tgmath.h (__floating_type): Simplify definitions.
30969 (__real_integer_type): New macro.
30970 (__complex_integer_type): Likewise.
30971 (__expr_is_real): Likewise.
30972 (__tgmath_real_type_sub): Update comment to describe handling of
30973 complex types.
30974 (__tgmath_complex_type_sub): New macro.
30975 (__tgmath_complex_type): Likewise.
30976 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30977 (__TGMATH_CF128): Use __expr_is_real.
30978 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30979 __expr_is_real.
30980 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30981 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30982 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30983 integer types.
30984
30985 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30986
30987 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30988 macro.
30989 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30990 alias.
30991 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30992 Likewise.
30993
30994 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30995 nanosleep_not_cancel with __nanosleep_nocancel.
30996 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30997 (__nanosleep_nocancel): New macro.
30998 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30999 function.
31000 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
31001 macro.
31002 (__nanosleep_nocancel): New prototype.
31003
31004 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
31005 pause_not_cancel with __pause_nocancel.
31006 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
31007 (__pause_nocancel): New macro.
31008 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
31009 macro.
31010 (__pause_nocancel): New prototype.
31011 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
31012
31013 2017-08-22 Martin Sebor <msebor@redhat.com>
31014
31015 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
31016 to return a pointer to the same type as the target function.
31017
31018 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31019
31020 [BZ #18822]
31021 [BZ #21986]
31022 * include/printf.h (__printf_fphex): Add attribute_hidden.
31023 (__guess_grouping): New prototype.
31024 * stdio-common/printf_fp.c (__guess_grouping): Removed.
31025 * stdio-common/reg-printf.c (__register_printf_specifier): Add
31026 libc_hidden_proto and libc_hidden_def.
31027 * stdlib/strfmon_l.c (__guess_grouping): Removed.
31028 (__vstrfmon_l): Remove the third argument passed to
31029 __guess_grouping.
31030
31031 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31032
31033 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31034 definition for issignaling that does not rely on __MATH_TG,
31035 since __MATH_TG uses __builtin_types_compatible_p, which is only
31036 available in C mode.
31037 (CFLAGS-test-math-issignaling.cc): New variable.
31038 * math/Makefile [CXX] (tests): Add test-math-issignaling.
31039 * math/test-math-issignaling.cc: New test for C++ implementation
31040 of type-generic issignaling.
31041 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31042 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31043 options of test-math-issignaling on powerpc64le.
31044
31045 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31046
31047 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31048 building libc.a.
31049 (hidden_proto): Likewise.
31050 (hidden_tls_proto): Likewise.
31051 (__hidden_proto): Likewise.
31052
31053 2017-08-22 Florian Weimer <fweimer@redhat.com>
31054
31055 math: Statically link tests of internal functionality.
31056 * math/Makefile (tests): Remove atest-exp, atest-sincos,
31057 atest-exp2.
31058 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31059 (gmp-objs): Remove assignment.
31060 (atest-exp, atest-sincos, atest-exp2): Remove targets.
31061
31062 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31063
31064 [BZ #21987]
31065 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31066 and copy to ...
31067 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31068 ... here.
31069 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31070 ... and here.
31071
31072 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31073 variable definitions above inclusion of ../Rules.
31074
31075 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31076
31077 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31078 case calling __builtin_unreachable.
31079
31080 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31081
31082 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31083 __waitpid_nocancel.
31084 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31085 (__waitpid_nocancel): New macro.
31086 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31087 macro.
31088 (__waitpid_nocancel): Replace macro with a function.
31089 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31090 function.
31091
31092 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31093 __fcntl_nocancel.
31094 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31095 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31096
31097 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31098 __writev_nocancel_nostatus.
31099 (write_call_graph): Likewise.
31100 (write_bb_counts): Likewise.
31101 * resolv/herror.c (herror): Likewise.
31102 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31103 macro.
31104 (__writev_nocancel_nostatus): New macro.
31105 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31106 Remove macro.
31107 (__writev_nocancel_nostatus): New function.
31108
31109 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31110
31111 Revert:
31112 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31113
31114 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31115 building libc.a.
31116 (hidden_proto): Likewise.
31117 (hidden_tls_proto): Likewise.
31118 (__hidden_proto): Likewise.
31119
31120 [BZ #21973]
31121 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31122 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31124 Likewise.
31125 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31126 Likewise.
31127 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31128 Likewise.
31129 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31130 Likewise.
31131 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31132 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31133 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31134 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31135 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31136 GLIBC_2.0 sqrtl symbol.
31137
31138 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31139 [__USE_MISC] (_LIB_VERSION): Likewise.
31140 [__USE_MISC] (struct exception): Likewise.
31141 [__USE_MISC] (matherr): Likewise.
31142 [__USE_MISC] (DOMAIN): Likewise.
31143 [__USE_MISC] (SING): Likewise.
31144 [__USE_MISC] (OVERFLOW): Likewise.
31145 [__USE_MISC] (UNDERFLOW): Likewise.
31146 [__USE_MISC] (TLOSS): Likewise.
31147 [__USE_MISC] (PLOSS): Likewise.
31148 [__USE_MISC] (HUGE): Likewise.
31149 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31150 * math/math-svid-compat.h: New file.
31151 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31152 and matherrl.
31153 * include/math.h [!_ISOMAC] (__matherr): Remove.
31154 * manual/arith.texi (FP Exceptions): Do not document matherr.
31155 * math/Makefile (tests): Change test-matherr to test-matherr-3.
31156 (tests-internal): New variable.
31157 (install-lib): Do not add libieee.a.
31158 (non-lib.a): Likewise.
31159 (extra-objs): Do not add libieee.a and ieee-math.o.
31160 (CPPFLAGS-s_lib_version.c): Remove variable.
31161 ($(objpfx)libieee.a): Remove rule.
31162 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31163 * math/ieee-math.c: Remove.
31164 * math/libm-test-support.c (matherr): Remove.
31165 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31166 and license notices. Include <math-svid-compat.h> and
31167 <shlib-compat.h>.
31168 (matherr): Undefine as macro. Use compat_symbol_reference.
31169 (_LIB_VERSION): Likewise.
31170 * math/test-matherr-2.c: New file.
31171 * math/test-matherr-3.c: Likewise.
31172 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31173 declaration.
31174 (__kernel_standard_f): Likewise.
31175 (__kernel_standard_l): Likewise.
31176 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31177 <math_private.h>. Include <math-svid-compat.h>.
31178 (_LIB_VERSION): Undefine as macro.
31179 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31180 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31181 [LIBM_SVID_COMPAT], use compat_symbol.
31182 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31183 <math_private.h>. Include <math-svid-compat.h>.
31184 (matherr): Undefine as macro.
31185 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31186 compat_symbol.
31187 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31188 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31189 compat_symbol_reference.
31190 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31191 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31192 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31193 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31194 (MATHERR_D): Remove declaration.
31195 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31196 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31197 [LIBM_BUILD] (pmatherrf): Likewise.
31198 [LIBM_BUILD] (pmatherr): Likewise.
31199 [LIBM_BUILD] (pmatherrl): Likewise.
31200 (DOMAIN): Likewise.
31201 (SING): Likewise.
31202 (OVERFLOW): Likewise.
31203 (UNDERFLOW): Likewise.
31204 (TLOSS): Likewise.
31205 (PLOSS): Likewise.
31206 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31207 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31208 compat_symbol.
31209 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31210 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31211 compat_symbol.
31212 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31213 * math/w_acos_compat.c: Likewise.
31214 * math/w_acosf_compat.c: Likewise.
31215 * math/w_acosh_compat.c: Likewise.
31216 * math/w_acoshf_compat.c: Likewise.
31217 * math/w_acoshl_compat.c: Likewise.
31218 * math/w_acosl_compat.c: Likewise.
31219 * math/w_asin_compat.c: Likewise.
31220 * math/w_asinf_compat.c: Likewise.
31221 * math/w_asinl_compat.c: Likewise.
31222 * math/w_atan2_compat.c: Likewise.
31223 * math/w_atan2f_compat.c: Likewise.
31224 * math/w_atan2l_compat.c: Likewise.
31225 * math/w_atanh_compat.c: Likewise.
31226 * math/w_atanhf_compat.c: Likewise.
31227 * math/w_atanhl_compat.c: Likewise.
31228 * math/w_cosh_compat.c: Likewise.
31229 * math/w_coshf_compat.c: Likewise.
31230 * math/w_coshl_compat.c: Likewise.
31231 * math/w_exp10_compat.c: Likewise.
31232 * math/w_exp10f_compat.c: Likewise.
31233 * math/w_exp10l_compat.c: Likewise.
31234 * math/w_exp2_compat.c: Likewise.
31235 * math/w_exp2f_compat.c: Likewise.
31236 * math/w_exp2l_compat.c: Likewise.
31237 * math/w_fmod_compat.c: Likewise.
31238 * math/w_fmodf_compat.c: Likewise.
31239 * math/w_fmodl_compat.c: Likewise.
31240 * math/w_hypot_compat.c: Likewise.
31241 * math/w_hypotf_compat.c: Likewise.
31242 * math/w_hypotl_compat.c: Likewise.
31243 * math/w_j0_compat.c: Likewise.
31244 * math/w_j0f_compat.c: Likewise.
31245 * math/w_j0l_compat.c: Likewise.
31246 * math/w_j1_compat.c: Likewise.
31247 * math/w_j1f_compat.c: Likewise.
31248 * math/w_j1l_compat.c: Likewise.
31249 * math/w_jn_compat.c: Likewise.
31250 * math/w_jnf_compat.c: Likewise.
31251 * math/w_jnl_compat.c: Likewise.
31252 * math/w_lgamma_main.c: Likewise.
31253 * math/w_lgamma_r_compat.c: Likewise.
31254 * math/w_lgammaf_main.c: Likewise.
31255 * math/w_lgammaf_r_compat.c: Likewise.
31256 * math/w_lgammal_main.c: Likewise.
31257 * math/w_lgammal_r_compat.c: Likewise.
31258 * math/w_log10_compat.c: Likewise.
31259 * math/w_log10f_compat.c: Likewise.
31260 * math/w_log10l_compat.c: Likewise.
31261 * math/w_log2_compat.c: Likewise.
31262 * math/w_log2f_compat.c: Likewise.
31263 * math/w_log2l_compat.c: Likewise.
31264 * math/w_log_compat.c: Likewise.
31265 * math/w_logf_compat.c: Likewise.
31266 * math/w_logl_compat.c: Likewise.
31267 * math/w_pow_compat.c: Likewise.
31268 * math/w_powf_compat.c: Likewise.
31269 * math/w_powl_compat.c: Likewise.
31270 * math/w_remainder_compat.c: Likewise.
31271 * math/w_remainderf_compat.c: Likewise.
31272 * math/w_remainderl_compat.c: Likewise.
31273 * math/w_scalb_compat.c: Likewise.
31274 * math/w_scalbf_compat.c: Likewise.
31275 * math/w_scalbl_compat.c: Likewise.
31276 * math/w_sinh_compat.c: Likewise.
31277 * math/w_sinhf_compat.c: Likewise.
31278 * math/w_sinhl_compat.c: Likewise.
31279 * math/w_sqrt_compat.c: Likewise.
31280 * math/w_sqrtf_compat.c: Likewise.
31281 * math/w_sqrtl_compat.c: Likewise.
31282 * math/w_tgamma_compat.c: Likewise.
31283 * math/w_tgammaf_compat.c: Likewise.
31284 * math/w_tgammal_compat.c: Likewise.
31285 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31286 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31287 * sysdeps/ieee754/k_standard.c: Likewise.
31288 * sysdeps/ieee754/k_standardf.c: Likewise.
31289 * sysdeps/ieee754/k_standardl.c: Likewise.
31290 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31291 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31292 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31293 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31294 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31295 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31296 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31297 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31298 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31299 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31300 Likewise.
31301 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31302 Likewise.
31303 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31304 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31305 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31306 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31307
31308 2017-08-21 Florian Weimer <fweimer@redhat.com>
31309
31310 [BZ #21864]
31311 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31312 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31313 Move before inclusion of ../Rules.
31314
31315 2017-08-21 Florian Weimer <fweimer@redhat.com>
31316
31317 [BZ #21972]
31318 * assert/assert.h (assert): Use static_cast (bool) for C++.
31319 Use the ternary operator in the warning branch for GNU C.
31320 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31321 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31322 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31323 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31324 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31325
31326 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31327
31328 [BZ #18822]
31329 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31330 (__syscall_clock_gettime): Add attribute_hidden.
31331 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31332 (__start_context): Likewise.
31333
31334 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31335
31336 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31337 building libc.a.
31338 (hidden_proto): Likewise.
31339 (hidden_tls_proto): Likewise.
31340 (__hidden_proto): Likewise.
31341
31342 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31343
31344 * include/libc-symbols.h (attribute_hidden): Enable hidden
31345 visibility in libc.a compiled with PIE.
31346
31347 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31348
31349 [BZ #18822]
31350 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31351 Add attribute_hidden.
31352
31353 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31354
31355 [BZ #21864]
31356 * Makerules (all-nonlib): Add $(others-extras).
31357 * catgets/Makefile (others-extras): New.
31358 * elf/Makefile (others-extras): Likewise.
31359 * nss/Makefile (others-extras): Likewise.
31360
31361 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31362
31363 [BZ #18822]
31364 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31365 * elf/dl-open.c: Include <libc-internal.h>.
31366 (__libc_multiple_libcs): Removed.
31367 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31368 <hp-timing.h>.
31369 * include/libc-internal.h (__libc_multiple_libcs): New.
31370 * misc/sbrk.c: Include <libc-internal.h>.
31371 (__libc_multiple_libcs): Removed.
31372
31373 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31374
31375 [BZ #18822]
31376 * grp/initgroups.c (__nss_group_database): Removed.
31377 (__nss_initgroups_database): Likewise.
31378 * nscd/gai.c (__nss_hosts_database): Likewise.
31379 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31380 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31381 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31382 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31383 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31384 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31385 attribute_hidden.
31386 * nss/nsswitch.c (__nss_database_custom): Define only if
31387 USE_NSCD is defined.
31388 (__nss_configure_lookup): Use __nss_database_custom only if
31389 USE_NSCD is defined.
31390 * nss/nsswitch.h (__nss_database_custom): Declare only if
31391 USE_NSCD is defined. Add attribute_hidden.
31392 (__nss_setent): Add attribute_hidden.
31393 (__nss_endent): Likewise.
31394 (__nss_getent_r): Likewise.
31395 (__nss_getent): Likewise.
31396 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31397
31398 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31399
31400 [BZ #18822]
31401 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31402 libc_hidden_proto and libc_hidden_def.
31403
31404 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31405
31406 [BZ #18822]
31407 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31408 Add libc_hidden_proto.
31409 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31410 Add libc_hidden_def.
31411
31412 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31413
31414 [BZ #21974]
31415 * gmon/Makefile (routines): Remove bb_init_func and
31416 bb_exit_func.
31417 (elide-routines.os): Removed.
31418 * gmon/bb_exit_func.c: Likewise.
31419 * gmon/bb_init_func.c: Likewise.
31420 * include/sys/gmon.h (__bb): Likewise.
31421 (__bb_init_func): Likewise.
31422 (__bb_exit_func): Likewise.
31423 * sysdeps/alpha/bb_init_func.S: Likewise.
31424
31425 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31426
31427 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31428 * include/setjmp.h (____longjmp_chk): Here. Add
31429 attribute_hidden.
31430
31431 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31432
31433 [BZ #18822]
31434 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31435 attribute_hidden.
31436 (__strspn_sse2): Likewise.
31437
31438 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31439
31440 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31441 (close_not_cancel_no_status): Likewise.
31442 (__close_nocancel): New macro.
31443 (__close_nocancel_nostatus): Likewise.
31444 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31445 macro.
31446 (close_not_cancel): Likewise.
31447 (close_not_cancel_no_status): Likewise.
31448 (__close_nocancel): New prototype.
31449 (__close_nocancel_nostatus): New function.
31450 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31451 * catgets/open_catalog.c (__open_catalog): Replace
31452 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31453 * gmon/gmon.c (write_gmon): Likewise.
31454 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31455 * intl/loadmsgcat.c (close): Likewise.
31456 * io/ftw.c (open_dir_stream): Likewise.
31457 (ftw_startup): Likewise.
31458 * libio/fileops.c (_IO_file_open): Likewise.
31459 (_IO_file_close_mmap): Likewise.
31460 (_IO_file_close): Likewise.
31461 * libio/iopopen.c (_IO_dup2): Likewise.
31462 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31463 * locale/loadlocale.c (_nl_load_locale): Likewise.
31464 * login/utmp_file.c (pututline_file): Likewise.
31465 (endutent_file): Likewise.
31466 * misc/daemon.c (daemon): Likewise.
31467 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31468 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31469 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31470 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31471 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31472 * nscd/nscd_helper.c (open_socket): Likewise.
31473 (__nscd_open_socket): Likewise.
31474 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31475 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31476 (__nscd_innetgr): Likewise.
31477 * nss/nss_db/db-open.c (internal_setent): Likewise.
31478 * resolv/res-close.c (__res_iclose): Likewise.
31479 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31480 * sysdeps/posix/closedir.c (__closedir): Likewise.
31481 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31482 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31483 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31484 (opendir_tail): Likewise.
31485 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31486 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31487 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31488 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31489 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31490 (gethostid): Likewise.
31491 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31492 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31493 Likewise.
31494 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31495 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31496 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31497 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31498 Likewise.
31499 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31500 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31501 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31502 Likewise.
31503 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31504 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31505 Likewise.
31506 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31507 Likewise.
31508 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31509 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31510 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31511 __close_nocancel.
31512
31513 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31514 (openat_not_cancel_3): Likewise.
31515 (openat64_not_cancel_3): Likewise).
31516 (openat_not_cancel_3): Likewise).
31517 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31518 macro.
31519 (openat_not_cancel_3): Likewise.
31520 (openat64_not_cancel): Likewise.
31521 (openat64_not_cancel_3): Likewise.
31522 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31523 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31524 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31525 __open{64}_nocancel.
31526 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31527 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31528 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31529
31530 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31531
31532 [BZ #18822]
31533 * include/argz.h (__argz_create_sep): New function prototype.
31534 (__argz_append): Likewise.
31535 (__argz_add): Likewise.
31536 (__argz_add_sep): Likewise.
31537 (__argz_delete): Likewise.
31538 (__argz_insert): Likewise.
31539 (__argz_replace): Likewise.
31540 * string/argz.h (__argz_create_sep): Removed.
31541 (__argz_append): Likewise.
31542 (__argz_add): Likewise.
31543 (__argz_add_sep): Likewise.
31544 (__argz_delete): Likewise.
31545 (__argz_insert): Likewise.
31546 (__argz_replace): Likewise.
31547
31548 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31549
31550 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31551 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31552 (GNU_PROPERTY_STACK_SIZE): Likewie.
31553 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31554 (GNU_PROPERTY_LOPROC): Likewise.
31555 (GNU_PROPERTY_HIPROC): Likewise.
31556 (GNU_PROPERTY_LOUSER): Likewise.
31557 (GNU_PROPERTY_HIUSER): Likewise.
31558 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31559 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31560 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31561 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31562 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31563 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31564 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31565 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31566 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31567 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31568 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31569 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31570 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31571 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31572 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31573 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31574 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31575 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31576 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31577 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31578 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31579 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31580 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31581
31582 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31583
31584 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31585 in C++ mode.
31586
31587 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31588
31589 [BZ #21930]
31590 * math/math.h (isinf): Check if in C or C++ mode before using
31591 __builtin_types_compatible_p, since this is a C mode feature.
31592
31593 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31594
31595 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31596 (__write_nocancel): New macro.
31597 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31598 Rewrite as a function prototype.
31599 (write_not_cancel): Remove macro.
31600 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31601 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31602 (write_gmon): Likewise.
31603 * libio/fileops.c (_IO_new_file_write): Likewise.
31604 * login/utmp_file.c (pututline_file): Likewise.
31605 (updwtmp_file): Likewise.
31606 * stdio-common/psiginfo.c (psiginfo): Likewise.
31607 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31608 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31609 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31610 Likewise.
31611 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31612 Likewise.
31613
31614 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31615 (__read_nocancel): New macro.
31616 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31617 __read_nocancel.
31618 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31619 macro.
31620 (__read_nocancel): New prototype.
31621 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31622 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31623 with __read_nocancel.
31624 * intl/loadmsgcat.c (read): Likewise.
31625 * libio/fileops.c (_IO_file_read): Likewise.
31626 * locale/loadlocale.c (_nl_load_locale): Likewise.
31627 * login/utmp_file.c (getutent_r_file): Likewise.
31628 (internal_getut_r): Likewise.
31629 (getutline_r_file): Likewise.
31630 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31631 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31632 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31633 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31634 Likewise.
31635 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31636 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31637 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31638 Likewise.
31639 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31640 Likewise.
31641 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31642 Likewise.
31643 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31644 Likewise.
31645 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31646
31647 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31648
31649 [BZ #21966]
31650 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31651 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31652 usable.
31653
31654 2017-08-17 DJ Delorie <dj@redhat.com>
31655
31656 * bug17079.c: Update to new test harness.
31657 * test-digits-dots.c: Likewise.
31658 * test-netdb.c: Likewise.
31659 * tst-field.c: Likewise.
31660 * tst-nss-getpwent.c: Likewise.
31661 * tst-nss-static.c: Likewise.
31662 * tst-nss-test1.c: Likewise.
31663 * tst-nss-test2.c: Likewise.
31664 * tst-nss-test3.c: Likewise.
31665 * tst-nss-test4.c: Likewise.
31666 * tst-nss-test5.c: Likewise.
31667
31668 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31669
31670 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31671 (open_not_cancel_2): Likewise.
31672 (open_nocancel): New macro.
31673 (open64_nocancel): Likewise.
31674 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31675 (open_not_cancel_2): Likewise.
31676 (__open_nocancel): New prototype.
31677 (__open64_nocancel): Likewise.
31678 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31679 __open_nocancel.
31680 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31681 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31682 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31683 with __open_nocancel.
31684 * csu/check_fds.c (check_one_fd): Likewise.
31685 * gmon/gmon.c (write_gmon): Likewise.
31686 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31687 * intl/loadmsgcat.c (open): Likewise.
31688 * libio/fileops.c (_IO_file_open): Likewise.
31689 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31690 * locale/loadlocale.c (_nl_load_locale): Likewise.
31691 * login/utmp_file.c (setutent_file): Likewise.
31692 * misc/daemon.c (daemon): Likewise.
31693 * nss/nss_db/db-open.c (internal_setent): Likewise.
31694 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31695 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31696 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31697 (__opendir): Likewise.
31698 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31699 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31700 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31701 (gethostid): Likewise.
31702 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31703 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31704 Likewise.
31705 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31706 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31707 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31708 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31709 Likewise.
31710 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31711 Likewise.
31712 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31713 Likewise.
31714 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31715 Likewise.
31716 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31717 Likewise.
31718 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31719 Likewise.
31720 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31721 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31722
31723 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31724
31725 * benchtests/bench-skeleton.c (main): Add support for
31726 latency benchmarking.
31727 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31728
31729 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31730
31731 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31732 the startup object.
31733
31734 2017-08-17 Florian Weimer <fweimer@redhat.com>
31735
31736 * include/sys/socket.h (__opensock): Remove internal_function.
31737 * socket/opensock.c (__opensock): Likewise.
31738 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31739
31740 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31741
31742 [BZ #21944]
31743 * signal/bits/types/__sigval_t.h: New file.
31744 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31745 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31746 and define sigval_t using __sigval_t.
31747 * include/bits/types/__sigval_t.h: New file.
31748 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31749 instead of <bits/types/__sigval_t.h>.
31750 (struct sigevent): Use __sigval_t instead of sigval_t.
31751 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31752 instead of <bits/types/__sigval_t.h>.
31753 (siginfo_t): Use __sigval_t instead of sigval_t.
31754 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31755 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31756 (struct sigevent): Use __sigval_t instead of sigval_t.
31757 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31758 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31759 (siginfo_t): Use __sigval_t instead of sigval_t.
31760 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31761
31762 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31763
31764 * NEWS: Remove "[Add new features here]" for 2.27.
31765
31766 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31767
31768 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31769 libc.so.
31770
31771 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31772
31773 * NEWS: Mention x86-64 FMA optimization.
31774
31775 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31776
31777 [BZ #21912]
31778 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31779 Add e_expf-fma.
31780 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31781 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31782 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31783
31784 2017-08-16 Andreas Schwab <schwab@suse.de>
31785
31786 [BZ #16750]
31787 CVE-2009-5064
31788 * elf/ldd.bash.in: Never run file directly.
31789
31790 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31791
31792 [BZ #21955]
31793 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31794 (L(SP_INF_0)): Likewise.
31795
31796 2017-08-15 Florian Weimer <fweimer@redhat.com>
31797
31798 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31799 run-built-tests.
31800
31801 2017-08-15 Florian Weimer <fweimer@redhat.com>
31802
31803 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31804 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31805 BROKEN_THREAD_SIGNALS code.
31806 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31807 request_list): Remove caller_pid member used for
31808 BROKEN_THREAD_SIGNALS.
31809 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31810 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31811 Remove BROKEN_THREAD_SIGNALS support.
31812 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31813 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31814
31815 2017-08-15 Florian Weimer <fweimer@redhat.com>
31816
31817 * gmon/Makefile (tests): Add tst-gmon.
31818 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31819 Set.
31820 (tests-special): Add tst-gmon-prof.out.
31821 (tst-gmon.out): Depend on clean-tst-gmon-data.
31822 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31823 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31824 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31825 startup object.
31826 * aclocal.m4 (GPROF): Set and substitute.
31827 * config.amke.in (GPROF): Set.
31828 * configure: Regenerate.
31829
31830 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31831
31832 * elf/elf.h A (NT_PPC_TAR): New macro.
31833 (NT_PPC_PPR): Likewise.
31834 (NT_PPC_DSCR): Likewise.
31835 (NT_PPC_EBB): Likewise.
31836 (NT_PPC_PMU): Likewise.
31837 (NT_PPC_TM_CGPR): Likewise.
31838 (NT_PPC_TM_CFPR): Likewise.
31839 (NT_PPC_TM_CVMX): Likewise.
31840 (NT_PPC_TM_CVSX): Likewise.
31841 (NT_PPC_TM_SPR): Likewise.
31842 (NT_PPC_TM_CTAR): Likewise.
31843 (NT_PPC_TM_CPPR): Likewise.
31844 (NT_PPC_TM_CDSCR): Likewise.
31845
31846 2017-08-15 Florian Weimer <fweimer@redhat.com>
31847
31848 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31849 regparm (2) instead of internal_function.
31850 (_MCOUNT_DECL): Adjust.
31851
31852 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31853
31854 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31855 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31856
31857 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31858
31859 * conform/data/sys/wait.h-data (si_value): Do not expect for
31860 XPG42.
31861
31862 2017-08-14 Florian Weimer <fweimer@redhat.com>
31863
31864 [BZ #21962]
31865 NSS: Create stubs for accidentally exported lookup functions.
31866 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31867 Remove declaration.
31868 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31869 (ether_hostton): Call __nss_ethers_lookup2 instead.
31870 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31871 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31872 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31873 (setup): Call __nss_netgroup_lookup2 instead.
31874 * nss/Makefile (routines): Add compat-lookup.
31875 * nss/Versions (GLIBC_2.27): Add symbol version.
31876 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31877 (DB_COMPAT_FCT): Remove.
31878 * nss/compat-lookup.c: New file.
31879 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31880 from databases.def.
31881 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31882 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31883 (netname2user): Call __nss_publickey_lookup2 instead.
31884 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31885 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31886 instead.
31887
31888 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31889 Sergei Trofimovich <slyfox@inbox.ru>
31890
31891 [BZ #21908]
31892 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31893 Rename to MMAP2_PAGE_UNIT.
31894 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31895 __OFF_T_MATCHES_OFF64_T is not defined.
31896 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31897 uint64_t.
31898 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31899 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31900
31901 2017-08-14 Florian Weimer <fweimer@redhat.com>
31902
31903 i386: Do not set internal_function.
31904 * config.h.in (USE_REGPARMS, internal_function): Remove.
31905 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31906 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31907
31908 2017-08-14 Florian Weimer <fweimer@redhat.com>
31909
31910 * elf/dl-init.c (_dl_init): Remove internal_function.
31911 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31912 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31913
31914 2017-08-14 Florian Weimer <fweimer@redhat.com>
31915
31916 * elf/rtld.c (_dl_start): Remove internal_function.
31917 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31918 _dl_start.
31919
31920 2017-08-14 Florian Weimer <fweimer@redhat.com>
31921
31922 * elf/dl-fini.c (_dl_fini): Remove internal_function
31923 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31924
31925 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31926
31927 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31928 (bit_cpu_SHSTK): Likewise.
31929 (index_cpu_IBT): Likewise.
31930 (index_cpu_SHSTK): Likewise.
31931 (reg_IBT): Likewise.
31932 (reg_SHSTK): Likewise.
31933 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31934 Handle index_cpu_IBT and index_cpu_SHSTK.
31935
31936 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31937
31938 [BZ #19982]
31939 * po/fr.po: Fix spelling mistake.
31940
31941 2017-08-13 Florian Weimer <fweimer@redhat.com>
31942
31943 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31944 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31945 (_dl_catch_error, _dl_receive_error): Likewise.
31946 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31947 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31948 (_dl_deallocate_tls): Likewise.
31949 * include/dlfcn.h (_dl_addr): Likewise.
31950 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31951 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31952 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31953 Likewise.
31954
31955 2017-08-13 Florian Weimer <fweimer@redhat.com>
31956
31957 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31958 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31959 internal_function.
31960 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31961
31962 2017-08-13 Florian Weimer <fweimer@redhat.com>
31963
31964 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31965 internal_function.
31966 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31967 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31968 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31969 internal_function from _dl_make_stack_executable_hook member.
31970 (_dl_make_stack_executable): Remove internal_function.
31971 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31972 Likewise.
31973 * sysdeps/unix/sysv/linux/dl-execstack.c
31974 (_dl_make_stack_executable): Likewise.
31975
31976 2017-08-13 Florian Weimer <fweimer@redhat.com>
31977
31978 * sysdeps/unix/sysv/linux/netlinkaccess.h
31979 (__netlink_assert_response): Remove internal_function.
31980 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31981 (__netlink_assert_response): Likewise.
31982
31983 2017-08-13 Florian Weimer <fweimer@redhat.com>
31984
31985 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31986 internal_function.
31987 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31988
31989 2017-08-13 Florian Weimer <fweimer@redhat.com>
31990
31991 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31992 internal_function.
31993 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31994 * inet/netgroup.h (__internal_setnetgrent)
31995 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31996 * inet/getnetgrent_r.c (__internal_setnetgrent)
31997 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31998 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31999 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
32000 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
32001 * nss/nsswitch.h (db_lookup_function): Likewise.
32002
32003 2017-08-13 Florian Weimer <fweimer@redhat.com>
32004
32005 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
32006 Remove internal_function.
32007 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
32008 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
32009 message argument on the stack.
32010 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
32011 Likeweise.
32012
32013 2017-08-12 Mike FABIAN <mfabian@redhat.com>
32014
32015 Adapt test case data to the changes in the thousands
32016 separators.
32017
32018 [BZ #20756]
32019 * localedata/tst-langinfo.sh: Adapt test case data.
32020 * stdlib/tst-strfmon_l.c: Likewise.
32021 * stdlib/tst-strtod4.c: Likewise.
32022 * stdlib/tst-strtod5i.c: Likewise.
32023
32024 2017-08-11 Florian Weimer <fweimer@redhat.com>
32025
32026 [BZ #21242]
32027 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32028 Suppress pedantic warning resulting from statement expression.
32029 (__ASSERT_FUNCTION): Add missing __extension__.
32030
32031 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
32032
32033 * benchtests/bench-memmove-large.c: Print output in JSON
32034 format.
32035 * benchtests/bench-memmove.c: Likewise.
32036
32037 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32038 * benchtests/bench-memchr.c (do_one_test): Likewise.
32039 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32040 * benchtests/bench-memcpy.c (do_one_test): Likewise.
32041 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32042 * benchtests/bench-memmove.c (do_one_test): Likewise.
32043 * benchtests/bench-memset-large.c (do_one_test): Likewise.
32044 * benchtests/bench-memset.c (do_one_test): Likewise.
32045 * benchtests/bench-string.h (test_init): Remove memsets.
32046
32047 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32048
32049 * manual/lang.texi
32050 (Computing the Width of an Integer Data Type): Rename section to
32051 "Width of an Integer Type". Remove inaccurate statement regarding
32052 lack of C language facilities for determining width of integer
32053 types, and reorder content to improve flow and context of
32054 discussion.
32055
32056 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32057
32058 * lang.texi (va_copy): Change standard from ISO to C99.
32059 (__va_copy): Add standard and header annotation.
32060 Update description for clarity of origins and current use.
32061
32062 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32063
32064 [BZ #21941]
32065 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32066 xssqrtqp requires operands to be in Vector Registers
32067 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32068 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32069 (__ieee754_sqrtf128): Likewise.
32070
32071 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
32072
32073 * sysdeps/aarch64/memcmp.S (memcmp):
32074 Rewrite of optimized memcmp.
32075
32076 2017-08-10 Florian Weimer <fweimer@redhat.com>
32077
32078 Introduce ld.so exceptions.
32079 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32080 (_dl_exception_create, _dl_exception_create_format)
32081 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32082 (_dl_catch_exception): Declare.
32083 (_dl_catch_error): Update comment.
32084 * elf/dl-error-skeleton.c (struct catch): Replace objname,
32085 errstring, malloced members with exception member.
32086 (_dl_out_of_memory): Remove.
32087 (fatal_error): New function, extracted from _dl_signal_error.
32088 (_dl_signal_exception, _dl_signal_cexception): New functions.
32089 (_dl_signal_error): Call _dl_exception_create to allocate an
32090 exception object.
32091 (_dl_catch_exception): New function, based on _dl_catch_error.
32092 (_dl_catch_error): Implement using _dl_catch_exception.
32093 * elf/dl-exception.c: New file.
32094 * elf/Makefile (dl-routines): Add dl-exception.
32095 (elide-routines.os): Likewise.
32096 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32097 _dl_exception_create_format, _dl_exception_free.
32098 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32099 _dl_signal_exception.
32100 * elf/dl-lookup.c (make_string): Remove.
32101 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32102 _dl_signal_cexception, _dl_exception_free.
32103 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32104 _dl_signal_exception.
32105 * elf/dl-sym.c (do_sym): Likewise.
32106 * elf/dl-version.c (make_string): Remove.
32107 (match_symbol): Use _dl_exception_create_format,
32108 _dl_signal_cexception, _dl_exception_free.
32109 (_dl_check_map_versions): Likewise.
32110 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32111 _dl_catch_exception.
32112 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32113 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32114 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32115 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32116 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32117 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32118 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32119 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32120 Likewise.
32121 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32123 (ld.so): Likewise.
32124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32125 (ld.so): Likewise.
32126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32127 Likewise.
32128 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32129 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32130 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32131 Likewise.
32132 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32133 Likewise.
32134 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32135
32136 2017-08-10 Florian Weimer <fweimer@redhat.com>
32137
32138 * inet/net-internal.h (__inet6_scopeid_pton): Remove
32139 attribute_hidden, internal_function.
32140 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32141 internal_function.
32142
32143 2017-08-10 Florian Weimer <fweimer@redhat.com>
32144
32145 * malloc/malloc.c (get_max_fast): Reimplement as an inline
32146 function which calls __builtin_unreachable.
32147
32148 2017-08-10 Mike FABIAN <mfabian@redhat.com>
32149
32150 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32151 Indian monetary formatting
32152 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32153 test cases.
32154
32155 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
32156
32157 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32158 Fix typo in comment.
32159
32160 [BZ #21928]
32161 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32162 PTRACE_SEIZE_DEVEL): Remove.
32163 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32164 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32165 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32166 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32167 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32168
32169 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32170
32171 * posix/bits/types.h (__qaddr_t): Remove.
32172
32173 [BZ #21457]
32174 * sysdeps/arm/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/generic/sys/ucontext.h (__ctx): New macro.
32178 (ucontext_t): Use __ctx with uc_flags.
32179 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32180 (__ctxt): Likewise.
32181 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32182 __glibc_reserved1.
32183 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32184 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32185 __glibc_reserved1.
32186 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32187 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32188 __glibc_reserved1.
32189 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32190 macro.
32191 (ucontext_t): Use __ctx with uc_flags.
32192 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32193 (ucontext_t): Use __ctx with uc_flags.
32194 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32195 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32196 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32197 (ucontext_t): Use __ctx with uc_flags.
32198 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32199 undefine further down.
32200 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32201 __glibc_reserved1.
32202 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32203 undefine further down.
32204 (ucontext_t): Use __ctx with uc_flags.
32205 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32206 undefine further down.
32207 (ucontext_t): Use __ctx with uc_flags.
32208 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32209 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32210 Rename uc_pad to __glibc_reserved1.
32211 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32212 undefine further down.
32213 (ucontext_t): Use __ctx with uc_flags.
32214 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32215 further down.
32216 (ucontext_t): Use __ctx with uc_flags.
32217 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32218 __ctx with uc_flags.
32219 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32220 (ucontext_t): Use __ctx with uc_flags.
32221 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32222 __ctx with uc_flags.
32223
32224 2017-08-09 Florian Weimer <fweimer@redhat.com>
32225
32226 [BZ #21932]
32227 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32228 before early return.
32229
32230 2017-08-09 Andreas Schwab <schwab@suse.de>
32231
32232 [BZ #21041]
32233 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32234 renamed alias.
32235
32236 [BZ #21041]
32237 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32238 tst-compat-forwarder.
32239 (modules-names): Add tst-compat-forwarder-mod.
32240 ($(objpfx)tst-compat-forwarder): Depend on
32241 $(objpfx)tst-compat-forwarder-mod.so.
32242 * nptl/tst-compat-forwarder.c: New file.
32243 * nptl/tst-compat-forwarder-mod.c: New file.
32244
32245 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32246
32247 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32248 comments.
32249
32250 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32251 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32252 memcpy_falkor.
32253 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32254 Bump.
32255 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32256 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32257 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32258 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32259 Add falkor.
32260 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32261 New macro.
32262
32263 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32264
32265 [BZ #759]
32266 * manual/setjmp.texi (getcontex): Document uc_stack value
32267 compatibility differences.
32268
32269 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32270
32271 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32272 (old_malloc_hook): Likewise.
32273 (old_memalign_hook): Likewise.
32274 (old_realloc_hook): Likewise.
32275 (struct hdr): Likewise.
32276 (flood): Likewise.
32277 (freehook): Likewise.
32278 (mallochook): Likewise.
32279 (memalignhook): Likewise.
32280 (reallochook): Likewise.
32281 (mprobe): Likewise.
32282 * malloc/mtrace.c (mallwatch): Likewise.
32283 (tr_old_free_hook): Likewise.
32284 (tr_old_malloc_hook): Likewise.
32285 (tr_old_realloc_hook): Likewise.
32286 (tr_old_memalign_hook): Likewise.
32287 (tr_where): Likewise.
32288 (lock_and_info): Likewise.
32289 (tr_freehook): Likewise.
32290 (tr_mallochook): Likewise.
32291 (tr_reallochook): Likewise.
32292 (tr_memalignhook): Likewise.
32293 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32294 * misc/mmap.c (__mmap): Likewise.
32295 * misc/mmap64.c (__mmap64): Likewise.
32296 * misc/mprotect.c (__mprotect): Likewise.
32297 * misc/msync.c (msync): Likewise.
32298 * misc/munmap.c (__munmap): Likewise.
32299 * posix/posix_madvise.c (posix_madvise): Likewise.
32300 * socket/send.c (__send): Likewise.
32301 * socket/sendto.c (__sendto): Likewise.
32302 * socket/setsockopt.c (__setsockopt): Likewise.
32303 * string/memcmp.c (__ptr_t): Remove macro.
32304 (MEMCMP): Use void * instead of ptr_t.
32305 * string/memrchr.c (__ptr_t): Remove macro.
32306 (__memrchr): Use void * instead of ptr_t.
32307 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32308 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32309 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32310 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32311 * sysdeps/mach/msync.c (msync): Likewise.
32312 * sysdeps/mach/munmap.c (__munmap): Likewise.
32313 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32314 Likewise.
32315 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32316 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32317 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32318 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32319 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32320 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32321 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32322 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32323 Likewise.
32324 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32325 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32326 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32327 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32328 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32329 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32330 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32331 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32332 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32333 Likewise.
32334 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32335 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32336 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32337 (MEMCMP): Use void * instead of ptr_t.
32338 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32339 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32340
32341 2017-08-08 Florian Weimer <fweimer@redhat.com>
32342
32343 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32344 return statement.
32345
32346 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32347
32348 [BZ #21913]
32349 * csu/libc-tls.c: Include <startup.h> first.
32350 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32351 * elf/dl-tunables.c: Include <startup.h> first.
32352 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32353 * sysdeps/generic/startup.h: New file.
32354 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32355 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32356 (I386_USE_SYSENTER): New. Defined to 0.
32357
32358 2017-08-08 Andreas Schwab <schwab@suse.de>
32359
32360 [BZ #21041]
32361 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32362 * nptl/pt-system.c (system): Likewise.
32363
32364 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32365
32366 [BZ #21780]
32367 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32368 EOPNOTSUPP.
32369 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32370 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32371 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32372 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32373 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32374 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32375 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32376
32377 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32378
32379 [BZ #21899]
32380 * bits/sigaction.h (struct sigaction): Define sa_handler and
32381 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32382 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32383 [__USE_XOPEN_EXTENDED].
32384 (SA_RESTART): Likewise.
32385 (SA_NODEFER): Likewise.
32386 (SA_RESETHAND): Likewise.
32387 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32388 (struct sigaction): Define sa_handler and sa_sigaction using union
32389 also for [__USE_XOPEN_EXTENDED].
32390 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32391 [__USE_XOPEN_EXTENDED].
32392 (SA_RESTART): Likewise.
32393 (SA_NODEFER): Likewise.
32394 (SA_RESETHAND): Likewise.
32395 * sysdeps/unix/sysv/linux/bits/sigaction.h
32396 (struct sigaction): Define sa_handler and sa_sigaction using union
32397 also for [__USE_XOPEN_EXTENDED].
32398 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32399 [__USE_XOPEN_EXTENDED].
32400 (SA_RESTART): Likewise.
32401 (SA_NODEFER): Likewise.
32402 (SA_RESETHAND): Likewise.
32403 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32404 (struct sigaction): Define sa_handler and sa_sigaction using union
32405 also for [__USE_XOPEN_EXTENDED].
32406 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32407 [__USE_XOPEN_EXTENDED].
32408 (SA_RESTART): Likewise.
32409 (SA_NODEFER): Likewise.
32410 (SA_RESETHAND): Likewise.
32411 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32412 (struct sigaction): Define sa_handler and sa_sigaction using union
32413 also for [__USE_XOPEN_EXTENDED].
32414 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32415 [__USE_XOPEN_EXTENDED].
32416 (SA_RESTART): Likewise.
32417 (SA_NODEFER): Likewise.
32418 (SA_RESETHAND): Likewise.
32419 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32420 (struct sigaction): Define sa_handler and sa_sigaction using union
32421 also for [__USE_XOPEN_EXTENDED].
32422 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32423 [__USE_XOPEN_EXTENDED].
32424 (SA_RESTART): Likewise.
32425 (SA_NODEFER): Likewise.
32426 (SA_RESETHAND): Likewise.
32427 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32428 (struct sigaction): Define sa_handler and sa_sigaction using union
32429 also for [__USE_XOPEN_EXTENDED].
32430 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32431 [__USE_XOPEN_EXTENDED].
32432 (SA_RESTART): Likewise.
32433 (SA_NODEFER): Likewise.
32434 (SA_RESETHAND): Likewise.
32435 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32436 (struct sigaction): Define sa_handler and sa_sigaction using union
32437 also for [__USE_XOPEN_EXTENDED].
32438 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32439 [__USE_XOPEN_EXTENDED].
32440 (SA_RESTART): Likewise.
32441 (SA_NODEFER): Likewise. Define directly rather than as alias.
32442 (SA_RESETHAND): Likewise.
32443 (SA_INTERRUPT): Define only for [__USE_MISC].
32444 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32445 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32446 [__USE_MISC].
32447 (SA_STACK): Define only for [__USE_MISC].
32448 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32449 (struct sigaction): Define sa_handler and sa_sigaction using union
32450 also for [__USE_XOPEN_EXTENDED].
32451 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32452 [__USE_XOPEN_EXTENDED].
32453 (SA_RESTART): Likewise.
32454 (SA_NODEFER): Likewise.
32455 (SA_RESETHAND): Likewise.
32456 (SA_NOPTRACE): Define only for [__USE_MISC].
32457
32458 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32459 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32460 (struct catalog_info): Likewise.
32461 * inet/htontest.c (lo): Likewise.
32462 (foo): Likewise.
32463 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32464 * inet/inet_net.c (inet_network): Likewise.
32465 * inet/inet_netof.c (inet_netof): Likewise.
32466 * inet/rcmd.c (__ivaliduser): Likewise.
32467 (iruserok): Likewise.
32468 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32469 * locale/programs/locale-spec.c (locale_special): Likewise.
32470 * nis/nis_findserv.c (struct findserv_req): Likewise.
32471 (__nis_findfastest_with_timeout): Likewise.
32472 * nss/test-netdb.c (test_network): Likewise.
32473 * resolv/inet_neta.c (inet_neta): Likewise.
32474 * resolv/ns_date.c (ns_datetosecs): Likewise.
32475 (SECS_PER_DAY): Likewise.
32476 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32477 Likewise.
32478 * resolv/res_comp.c (__putlong): Likewise.
32479 (__putshort): Likewise.
32480 (_getlong): Likewise.
32481 (_getshort): Likewise.
32482 * resolv/res_debug.c (p_time): Likewise.
32483 (precsize_ntoa): Likewise.
32484 (precsize_aton): Likewise.
32485 (latlon2ul): Likewise.
32486 (loc_aton): Likewise.
32487 (loc_ntoa): Likewise.
32488 * resolv/res_hconf.c (struct netaddr): Likewise.
32489 (_res_hconf_reorder_addrs): Likewise.
32490 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32491 (clnttcp_control): Likewise.
32492 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32493 (clntudp_control): Likewise.
32494 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32495 (clntunix_control): Likewise.
32496 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32497 * sunrpc/rpc/auth.h (union des_block): Likewise.
32498 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32499 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32500 (xdrrec_create): Likewise.
32501 (xdrrec_endofrecord): Likewise.
32502 (flush_out): Likewise.
32503 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32504 (xdrstdio_putlong): Likewise.
32505 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32506 Likewise.
32507
32508 * misc/sys/cdefs.h (__long_double_t): Remove.
32509 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32510 instead of __long_double_t,
32511 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32512
32513 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32514
32515 * benchtests/scripts/compare_strings.py: Avoid display error when
32516 running on a text terminal.
32517
32518 * benchtests/scripts/compare_strings.py (main): Add an
32519 optional -base option.
32520 (process_results): New argument base_func.
32521
32522 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32523 hardcoding memcpy.
32524 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32525 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32526
32527 2017-08-07 Andreas Schwab <schwab@suse.de>
32528
32529 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32530 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32531 * intl/Makefile ($(objpfx)tst-gettext.out)
32532 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32533 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32534 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32535 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32536 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32537 * posix/Makefile ($(objpfx)globtest.out)
32538 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32539 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32540 ($(objpfx)tst-printf.out): Likewise.
32541 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32542 ($(objpfx)tst-setcontext3.out): Likewise.
32543
32544 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32545
32546 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32547 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32548 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32549 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32550 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32551 and mptan-fma.
32552 (CFLAGS-doasin-fma.c): New.
32553 (CFLAGS-dosincos-fma.c): Likewise.
32554 (CFLAGS-e_asin-fma.c): Likewise.
32555 (CFLAGS-e_atan2-fma.c): Likewise.
32556 (CFLAGS-e_exp-fma.c): Likewise.
32557 (CFLAGS-e_log-fma.c): Likewise.
32558 (CFLAGS-e_pow-fma.c): Likewise.
32559 (CFLAGS-halfulp-fma.c): Likewise.
32560 (CFLAGS-mpa-fma.c): Likewise.
32561 (CFLAGS-mpatan-fma.c): Likewise.
32562 (CFLAGS-mpatan2-fma.c): Likewise.
32563 (CFLAGS-mpexp-fma.c): Likewise.
32564 (CFLAGS-mplog-fma.c): Likewise.
32565 (CFLAGS-mpsqrt-fma.c): Likewise.
32566 (CFLAGS-mptan-fma.c): Likewise.
32567 (CFLAGS-s_atan-fma.c): Likewise.
32568 (CFLAGS-sincos32-fma.c): Likewise.
32569 (CFLAGS-slowexp-fma.c): Likewise.
32570 (CFLAGS-slowpow-fma.c): Likewise.
32571 (CFLAGS-s_sin-fma.c): Likewise.
32572 (CFLAGS-s_tan-fma.c): Likewise.
32573 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32574 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32575 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32576 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32577 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32578 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32579 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32580 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32581 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32582 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32583 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32584 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32585 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32586 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32587 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32588 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32589 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32590 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32591 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32592 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32593 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32594 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32595 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32596 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32597 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32598 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32599 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32600 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32601 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32602 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32603 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32604
32605 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32606
32607 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32608 (min_of_type_f): New macro.
32609 (min_of_type_): Likewise.
32610 (min_of_type_l): Likewise.
32611 (min_of_type_f128): Likewise.
32612 (min_of_type): Define using __MATH_TG and taking an expression
32613 argument.
32614 (math_check_force_underflow): Pass expression instead of type to
32615 min_of_type.
32616 (math_check_force_underflow_nonneg): Likewise.
32617
32618 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32619
32620 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32621 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32622 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32623
32624 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32625
32626 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32627 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32628 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32629 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32630 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32631 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32632 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32633 memmove_chk-nonshared and memset_chk-nonshared
32634 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32635 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32636 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32637 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32638 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32639 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32640 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32641 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32642 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32643 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32644 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32645 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32646 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32647 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32648 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32649 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32650 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32651 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32652 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32653 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32654 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32655 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32656 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32657 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32658 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32659 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32660 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32661 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32662 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32663 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32664 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32665 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32666 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32667 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32668 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32669 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32670 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32671 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32672 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32673 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32674 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32675 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32676 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32677 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32678 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32679 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32680 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32681 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32682 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32683 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32684 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32685 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32686 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32687 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32688 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32689 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32690 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32691 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32692 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32693 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32694 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32695 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32696 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32697 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32698 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32699 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32700 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32701 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32702 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32703 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32704 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32705 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32706 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32707 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32708 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32709 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32710 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32711 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32712 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32713 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32714 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32715 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32716 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32717 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32718 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32719 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32720 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32721 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32722 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32723 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32724 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32725 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32726 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32727 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32728 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32729 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32730 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32731 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32732 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32733 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32734 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32735 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32736 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32737 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32738 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32739 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32740 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32741 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32742
32743 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32744
32745 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32746 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32747 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32748 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32749 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32750 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32751 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32752 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32753 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32754 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32755 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32756 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32757 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32758 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32759 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32760 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32761 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32762 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32763 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32764 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32765 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32766 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32767 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32768 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32769 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32770 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32771 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32772 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32773 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32774 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32775 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32776 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32777 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32778 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32779 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32780 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32781 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32782 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32783 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32784 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32785 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32786 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32787 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32788 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32789 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32790 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32791 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32792 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32793 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32794 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32795 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32796 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32797 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32798 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32799 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32800 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32801 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32802 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32803 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32804 ...
32805 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32806 Don't include <sysdep.h> nor <init-arch.h>.
32807 (_ZGVbN2v_cos): Removed.
32808 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32809 ...
32810 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32811 Don't include <sysdep.h> nor <init-arch.h>.
32812 (_ZGVdN4v_cos): Removed.
32813 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32814 ...
32815 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32816 Don't include <sysdep.h> nor <init-arch.h>.
32817 (_ZGVeN8v_cos): Removed.
32818 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32819 ...
32820 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32821 Don't include <sysdep.h> nor <init-arch.h>.
32822 (_ZGVbN2v_exp): Removed.
32823 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32824 ...
32825 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32826 Don't include <sysdep.h> nor <init-arch.h>.
32827 (_ZGVdN4v_exp): Removed.
32828 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32829 ...
32830 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32831 Don't include <sysdep.h> nor <init-arch.h>.
32832 (_ZGVeN8v_exp): Removed.
32833 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32834 ...
32835 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32836 Don't include <sysdep.h> nor <init-arch.h>.
32837 (_ZGVbN2v_log): Removed.
32838 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32839 ...
32840 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32841 Don't include <sysdep.h> nor <init-arch.h>.
32842 (_ZGVdN4v_log): Removed.
32843 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32844 ...
32845 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32846 Don't include <sysdep.h> nor <init-arch.h>.
32847 (_ZGVeN8v_log): Removed.
32848 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32849 ...
32850 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32851 Don't include <sysdep.h> nor <init-arch.h>.
32852 (_ZGVbN2vv_pow): Removed.
32853 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32854 ...
32855 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32856 Don't include <sysdep.h> nor <init-arch.h>.
32857 (_ZGVdN4vv_pow): Removed.
32858 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32859 ...
32860 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32861 Don't include <sysdep.h> nor <init-arch.h>.
32862 (_ZGVeN8vv_pow): Removed.
32863 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32864 ...
32865 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32866 Don't include <sysdep.h> nor <init-arch.h>.
32867 (_ZGVbN2v_sin): Removed.
32868 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32869 ...
32870 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32871 Don't include <sysdep.h> nor <init-arch.h>.
32872 (_ZGVbN4v_sin): Removed.
32873 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32874 ...
32875 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32876 Don't include <sysdep.h> nor <init-arch.h>.
32877 (_ZGVbN8v_sin): Removed.
32878 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32879 ...
32880 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32881 Don't include <sysdep.h> nor <init-arch.h>.
32882 (_ZGVbN2vvv_sincos): Removed.
32883 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32884 ...
32885 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32886 Don't include <sysdep.h> nor <init-arch.h>.
32887 (_ZGVdN4vvv_sincos): Removed.
32888 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32889 ...
32890 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32891 Don't include <sysdep.h> nor <init-arch.h>.
32892 (_ZGVeN8vvv_sincos): Removed.
32893 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32894 ...
32895 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32896 Don't include <sysdep.h> nor <init-arch.h>.
32897 (_ZGVeN16v_cosf): Removed.
32898 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32899 ...
32900 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32901 Don't include <sysdep.h> nor <init-arch.h>.
32902 (_ZGVbN4v_cosf): Removed.
32903 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32904 ...
32905 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32906 Don't include <sysdep.h> nor <init-arch.h>.
32907 (_ZGVdN8v_cosf): Removed.
32908 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32909 ...
32910 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32911 Don't include <sysdep.h> nor <init-arch.h>.
32912 (_ZGVeN16v_expf): Removed.
32913 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32914 ...
32915 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32916 Don't include <sysdep.h> nor <init-arch.h>.
32917 (_ZGVbN4v_expf): Removed.
32918 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32919 ...
32920 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32921 Don't include <sysdep.h> nor <init-arch.h>.
32922 (_ZGVdN8v_expf): Removed.
32923 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32924 ...
32925 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32926 Don't include <sysdep.h> nor <init-arch.h>.
32927 (_ZGVeN16v_logf): Removed.
32928 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32929 ...
32930 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32931 Don't include <sysdep.h> nor <init-arch.h>.
32932 (_ZGVbN4v_logf): Removed.
32933 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32934 ...
32935 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32936 Don't include <sysdep.h> nor <init-arch.h>.
32937 (_ZGVdN8v_logf): Removed.
32938 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32939 ...
32940 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32941 Don't include <sysdep.h> nor <init-arch.h>.
32942 (_ZGVeN16vv_powf): Removed.
32943 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32944 ...
32945 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32946 Don't include <sysdep.h> nor <init-arch.h>.
32947 (_ZGVbN4vv_powf): Removed.
32948 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32949 ...
32950 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32951 Don't include <sysdep.h> nor <init-arch.h>.
32952 (_ZGVdN8vv_powf): Removed.
32953 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32954 ...
32955 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32956 Don't include <sysdep.h> nor <init-arch.h>.
32957 (_ZGVeN16vvv_sincosf): Removed.
32958 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32959 ...
32960 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32961 Don't include <sysdep.h> nor <init-arch.h>.
32962 (_ZGVbN4vvv_sincosf): Removed.
32963 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32964 ...
32965 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32966 Don't include <sysdep.h> nor <init-arch.h>.
32967 (_ZGVdN8vvv_sincosf): Removed.
32968 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32969 ...
32970 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32971 Don't include <sysdep.h> nor <init-arch.h>.
32972 (_ZGVeN16v_sinf): Removed.
32973 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32974 ...
32975 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32976 Don't include <sysdep.h> nor <init-arch.h>.
32977 (_ZGVbN4v_sinf): Removed.
32978 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32979 ...
32980 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32981 Don't include <sysdep.h> nor <init-arch.h>.
32982 (_ZGVdN8v_sinf): Removed.
32983
32984 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32985
32986 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32987 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32988 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32989 s_rint-sse4_1 and s_rintf-sse4_1.
32990 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32991 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32992 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32993 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32994 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32995 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32996 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32997 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32998 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32999 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
33000 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
33001 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33002 (__ceil): Removed.
33003 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
33004 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
33005 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33006 (__ceilf): Removed.
33007 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
33008 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
33009 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33010 (__floor): Removed.
33011 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
33012 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
33013 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33014 (__floorf): Removed.
33015 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
33016 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
33017 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33018 (__nearbyint): Removed.
33019 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
33020 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
33021 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33022 (__nearbyintf): Removed.
33023 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
33024 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
33025 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33026 (__rint): Removed.
33027 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33028 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
33029 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33030 (__rintf): Removed.
33031
33032 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33033
33034 * sysdeps/i386/start.S (_start): Check Check PIC instead of
33035 SHARED. Avoid dynamic relocation against main in static PIE.
33036
33037 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33038
33039 [BZ #21815]
33040 * elf/Makefile (CFLAGS-tst-prelink.c): New.
33041 (LDFLAGS-tst-prelink): Likewise.
33042
33043 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33044
33045 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33046 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33047 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33048 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33049 (INTERNAL_SYSCALL_NCS): Likewise.
33050 (LOADARGS_1): Likewise.
33051 (LOADARGS_5): Likewise.
33052 (RESTOREARGS_1): Likewise.
33053 (RESTOREARGS_5): Likewise.
33054
33055 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33056
33057 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33058 (MEMPCPY_SYMBOL): Likewise.
33059 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33060 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33061 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33062 in libc.a.
33063 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33064 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33065 Likewise.
33066 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33067 (__hidden_ver1): Don't use in libc.a.
33068 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33069 (__mempcpy): Don't create a weak alias in libc.a.
33070 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33071 libc.a.
33072 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33073 (__hidden_ver1): Don't use in libc.a.
33074
33075 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33076
33077 * config.make.in (have-insert): New.
33078 * configure.ac (libc_cv_insert): New. Set to yes if linker
33079 supports INSERT in linker script.
33080 (AC_SUBST(libc_cv_insert): New.
33081 * configure: Regenerated.
33082 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33083 if $(have-insert) == yes.
33084
33085 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33086
33087 * elf/Makefile (tests): Add vismain only if
33088 $(have-protected-data) == yes.
33089 (tests-pie): Likewise.
33090
33091 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33092
33093 [BZ #21871]
33094 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33095 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33096
33097 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33098
33099 [BZ #21790]
33100 * sysdeps/i386/i586/memset.S
33101 (__memset_zero_constant_len_parameter): Removed.
33102 * sysdeps/i386/i686/memset.S
33103 (__memset_zero_constant_len_parameter): Likewise.
33104 * sysdeps/i386/i686/multiarch/memset_chk.S
33105 (__memset_zero_constant_len_parameter): Likewise.
33106 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33107 Likewise.
33108
33109 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33110
33111 * stdlib/getentropy.c (getentropy): Change return type to int.
33112
33113 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33114
33115 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33116
33117 2017-08-03 Joseph Myers <joseph@codesourcery.com>
33118
33119 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33120 u_intN_t.
33121 * math/s_nexttowardf.c (__nexttowardf): Likewise.
33122 * sysdeps/generic/math_private.h (ieee_double_shape_type):
33123 Likewise.
33124 (ieee_float_shape_type): Likewise.
33125 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33126 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33127 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33128 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33129 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33130 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33131 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33132 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33133 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33134 Likewise.
33135 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33136 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33137 (__ieee754_yn): Likewise.
33138 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33139 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33140 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33141 Likewise.
33142 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33143 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33144 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33145 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33146 (__erfc): Likewise.
33147 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33148 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33149 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33150 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33151 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33152 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33153 Likewise.
33154 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33155 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33156 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33157 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33158 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33159 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33160 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33161 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33162 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33163 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33164 (__issignaling): Likewise.
33165 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33166 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33167 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33168 Likewise.
33169 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33170 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33171 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33172 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33173 Likewise.
33174 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33175 Likewise.
33176 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33177 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33178 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33179 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33180 (__erfcf): Likewise.
33181 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33182 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33183 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33184 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33185 Likewise.
33186 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33187 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33188 Likewise.
33189 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33190 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33191 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33192 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33193 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33194 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33195 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33196 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33197 Likewise.
33198 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33199 Likewise.
33200 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33201 Likewise.
33202 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33203 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33204 Likewise.
33205 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33206 Likewise.
33207 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33208 (__ieee754_ynl): Likewise.
33209 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33210 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33211 Likewise.
33212 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33213 Likewise.
33214 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33215 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33216 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33217 Likewise.
33218 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33219 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33220 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33221 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33222 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33223 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33224 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33225 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33226 Likewise.
33227 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33228 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33229 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33230 Likewise.
33231 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33232 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33233 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33234 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33235 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33236 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33237 Likewise.
33238 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33239 Likewise.
33240 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33241 Likewise.
33242 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33243 Likewise.
33244 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33245 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33246 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33247 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33248 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33249 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33250 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33251 Likewise.
33252 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33253 Likewise.
33254 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33255 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33256 Likewise.
33257 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33258 (__ieee754_remainderl): Likewise.
33259 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33260 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33261 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33262 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33263 Likewise.
33264 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33265 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33266 Likewise.
33267 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33268 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33269 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33270 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33271 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33272 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33273 Likewise.
33274 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33275 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33276 (__ieee754_y0l): Likewise.
33277 (pzero): Likewise.
33278 (qzero): Likewise.
33279 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33280 (__ieee754_y1l): Likewise.
33281 (pone): Likewise.
33282 (qone): Likewise.
33283 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33284 (__ieee754_ynl): Likewise.
33285 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33286 (__ieee754_lgammal_r): Likewise.
33287 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33288 Likewise.
33289 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33290 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33291 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33292 (__erfcl): Likewise.
33293 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33294 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33295 Likewise.
33296 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33297 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33298 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33299 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33300 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33301 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33302 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33303 Likewise.
33304 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33305 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33306 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33307 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33308 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33309 Likewise.
33310 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33311 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33312 Likewise.
33313 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33314 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33315 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33316 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33317 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33318
33319 2017-08-03 Florian Weimer <fweimer@redhat.com>
33320
33321 [BZ #21885]
33322 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33323 on memory allocation failure.
33324
33325 2017-08-03 Alan Modra <amodra@gmail.com>
33326
33327 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33328 tst-tlsopt-powerpc.c with function name change and no test harness.
33329 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33330 Call tls_get_addr_opt_test.
33331 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33332 (modules-names): Add mod-tlsopt-powerpc.
33333 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33334 (tst-tlsopt-powerpc): Depend on .so.
33335 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33336 define. Expand use in TLS_GD and TLS_LD.
33337
33338 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33339
33340 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33341 function.
33342 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33343
33344 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33345
33346 [BZ #21686]
33347 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33348 comparing size with that of double.
33349 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33350 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33351 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33352 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33353 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33354 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33355 unsigned __int128 types.
33356
33357 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33358
33359 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33360 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33361 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33362 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33363 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33364
33365 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33366
33367 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33368
33369 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33370
33371 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33372 of SHARED.
33373 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33374 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33375 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33376 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33377 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33378 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33379 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33380
33381 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33382
33383 [BZ #21685]
33384 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33385 bit-field expressions passed to sizeof or typeof.
33386 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33387 (__TGMATH_F128): Likewise.
33388 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33389 (__TGMATH_CF128): Likewise.
33390 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33391 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33392 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33393 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33394 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33395 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33396 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33397 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33398 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33399 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33400 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33401 (__TGMATH_UNARY_IMAG): Likewise.
33402 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33403 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33404 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33405 type.
33406 (define_vars_for_type): Handle bit_field type specially.
33407 (Tests.__init__): Declare structure with bit-field element.
33408
33409 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33410
33411 [BZ #21791]
33412 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33413 (MEMCPY_CHK): Define only if SHARED is defined.
33414 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33415 Likewise.
33416 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33417 Likewise.
33418
33419 See ChangeLog.18 for earlier changes.